/* order.css — Order form + confirmation pages */

.order-page {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: flex-start;
  padding: 64px 32px;
}
.order-inner {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.order-header { margin-bottom: 40px; }
.order-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #FF4500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.order-headline {
  font-family: 'DM Mono', monospace;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 12px;
}
.order-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.order-error {
  background: #FFF0EE;
  border: 1px solid #FF4500;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: #c0392b;
  margin-bottom: 24px;
}
.order-notice {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

/* Package grid */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.order-option { cursor: pointer; }
.order-option input { display: none; }
.option-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.order-option:hover .option-card { border-color: #999; }
.order-option.selected .option-card {
  border-color: var(--fg);
  background: var(--bg);
}
.option-card.popular { border-color: #FF4500; }
.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF4500;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.option-count {
  font-family: 'DM Mono', monospace;
  font-size: 32px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}
.option-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
}
.option-price {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}
.option-per {
  font-size: 11px;
  color: var(--fg-muted);
}

/* Form */
.checkout-form { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
}
.optional { font-weight: 400; color: var(--fg-muted); }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--fg); }

/* Summary */
.form-summary {
  background: var(--fg);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #F0F0F0;
  margin-bottom: 6px;
}
.summary-note { font-size: 12px; color: #666; }

/* Button */
.btn-primary {
  width: 100%;
  background: #FF4500;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  padding: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}
.btn-primary:hover:not(:disabled) { background: #e63e00; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
}
.btn-secondary:hover { color: var(--fg); }

/* Trust row */
.order-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'DM Mono', monospace;
}

/* Confirmation */
.confirm-check { margin-bottom: 24px; }
.confirm-header { margin-bottom: 32px; }
.confirm-details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--fg-muted); }
.detail-value { font-weight: 600; color: var(--fg); text-align: right; }
.confirm-meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.mono { font-family: 'DM Mono', monospace; }
.confirm-next { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* Processing spinner */
.processing-spinner { margin-bottom: 24px; }

/* Nav logo link */
.nav-logo-link { text-decoration: none; }

@media (max-width: 600px) {
  .order-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .order-trust { flex-direction: column; gap: 12px; }
}