/* ═══════════════════════════════════════════════════════
   forms.css — Order form, thank-you page styles
   ═══════════════════════════════════════════════════════ */

/* ─── ORDER FORM WRAPPER ─────────────────────────────── */
.order-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 72px 80px;
  position: relative;
  z-index: 1;
}

.order-page-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.order-page-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 40px;
}

/* ─── ORDER SUMMARY CARD ─────────────────────────────── */
.order-summary-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.order-summary-header {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  padding: 16px 24px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-summary-body {
  padding: 20px 24px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.order-line:last-child { border-bottom: none; }
.order-line-name { color: var(--text-1); }
.order-line-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.order-line-price {
  font-family: var(--font-d);
  font-weight: 700;
  white-space: nowrap;
}
.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.order-total-label {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
}
.order-total-amount {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-1);
}

/* ─── STEPS INDICATOR ────────────────────────────────── */
.order-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-2);
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t);
}
.step.active .step-num {
  background: var(--text-1);
  color: white;
}
.step.done .step-num {
  background: var(--accent2);
  color: white;
}
.step-label {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  transition: color var(--t);
}
.step.active .step-label { color: var(--text-1); }
.step.done .step-label  { color: var(--accent2); }
.step-connector {
  width: 40px;
  height: 1.5px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── PAYMENT SELECTOR ───────────────────────────────── */
.payment-title {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-1);
}
.network-logos {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.network-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--t);
  outline: none;
}
.network-option img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--r-md);
  border: 2.5px solid var(--border);
  background: var(--surface-3);
  padding: 10px;
  transition: all var(--t);
}
.network-option:hover img,
.network-option.selected img {
  border-color: var(--text-1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.network-option.selected img {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(106,18,190,0.22);
}
.network-option span {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  transition: color var(--t);
}
.network-option.selected span { color: var(--text-1); }
.network-option.dimmed { opacity: 0.3; }

/* Payment instructions box */
.payment-instructions {
  display: none;
  background: rgba(42,96,73,0.06);
  border: 1.5px solid rgba(42,96,73,0.2);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.payment-instructions.visible { display: block; }
.payment-instructions p {
  font-size: 14px;
  color: var(--accent2);
  line-height: 1.7;
  white-space: pre-line;
}

/* ─── FORM STYLES ────────────────────────────────────── */
.order-form-section {
  display: none;
  flex-direction: column;
  gap: 0;
}
.order-form-section.visible { display: flex; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1/-1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-input,
.form-textarea {
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--text-1);
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--text-1);
  box-shadow: 0 0 0 3px rgba(13,13,13,0.06);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(138,129,120,0.6);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-hint {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}
.form-hint.warning { color: var(--accent); }

.form-submit {
  width: 100%;
  background: var(--text-1);
  color: var(--surface-1);
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 17px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106,18,190,0.25);
}
.form-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ─── LOADING OVERLAY ────────────────────────────────── */
#loadingSpinner {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
#loadingSpinner .spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#loadingSpinner p {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
}

/* ─── THANK YOU PAGE ─────────────────────────────────── */
.thankyou-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}
.thankyou-card {
  background: var(--surface-3);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 60px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thankyou-icon {
  width: 80px; height: 80px;
  background: rgba(42,96,73,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}
.thankyou-card h1 {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-1);
}
.thankyou-card > p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.thankyou-steps {
  text-align: left;
  background: var(--surface-1);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 32px;
}
.thankyou-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.thankyou-step:last-child { margin-bottom: 0; }
.thankyou-step-num {
  width: 28px; height: 28px;
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.thankyou-step-text {
  font-size: 14px;
  color: var(--text-1);
  padding-top: 4px;
  line-height: 1.5;
}
.thankyou-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .order-wrap { padding: 32px 20px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .order-steps { display: none; }
  .thankyou-card { padding: 40px 28px; }
}
