/* ═══════════════════════════════════════════════════════════════
   VERITAS LANGUAGE LLC — order.css
   Order form — Navy + Amber palette, Geist font only
═══════════════════════════════════════════════════════════════ */

/* ─── Page layout ────────────────────────────────────────────── */
.order-page { padding-top: 36px; min-height: 100vh; background: var(--cream); }
.order-wrap { max-width: 980px; margin: 0 auto; padding: 0 24px 60px; }

.order-header { text-align: center; margin-bottom: 36px; }
.order-header .section-tag {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 12px;
}
.order-header h1 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 42px);
  font-weight: 500; color: var(--ink); letter-spacing: -.02em; margin-bottom: 10px;
}
.order-header h1 em { color: var(--gold-soft); font-style: italic; }
.order-header p { font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* ─── Login prompt banner ────────────────────────────────────── */
.login-prompt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; margin-bottom: 20px; flex-wrap: wrap;
  background: rgba(200,146,42,.06); border: 1px solid rgba(200,146,42,.2);
  border-radius: var(--r-sm);
}
.login-prompt p { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.login-prompt a {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--ink); padding: 6px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: all .15s; text-decoration: none; white-space: nowrap;
}
.login-prompt a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ─── Step indicator ─────────────────────────────────────────── */
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; gap: 0;
}
.si-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.si-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  color: var(--muted); transition: all .25s;
}
.si-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.si-step.active .si-dot { background: var(--ink); border-color: var(--ink); color: var(--cream); box-shadow: 0 0 0 4px rgba(13,42,78,.12); }
.si-step.active .si-label { color: var(--ink); }
.si-step.done .si-dot { background: rgba(200,146,42,.12); border-color: var(--gold); color: var(--gold); }
.si-step.done .si-label { color: var(--gold); }
.si-line {
  flex: 1; height: 2px; background: var(--line);
  max-width: 100px; margin: 0 6px; margin-bottom: 22px; transition: background .3s;
}
.si-line.active { background: var(--ink); }

/* ─── Form card ──────────────────────────────────────────────── */
.order-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.form-step { display: none; padding: 32px; }
.form-step.active { display: block; }

/* ─── Section title ──────────────────────────────────────────── */
.step-title {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: .02em;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.step-title svg { width: 16px; height: 16px; color: var(--gold); }

/* ─── Field groups ───────────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field-group label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.field-group input, .field-group select, .field-group textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 14px;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,42,.1);
  background: var(--paper);
}
.field-group textarea { resize: vertical; min-height: 80px; }
.req { color: var(--gold); }

/* ─── Grid ───────────────────────────────────────────────────── */
.o-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ─── Price preview ──────────────────────────────────────────── */
.price-preview {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px; margin-top: 16px;
}
.pp-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-family: var(--sans); font-size: 13px;
  color: var(--muted); border-bottom: 1px solid rgba(200,146,42,.08);
}
.pp-row:last-child { border-bottom: none; }
.pp-divider { height: 1px; background: var(--line); margin: 6px 0; }
.total-row { font-weight: 700; font-size: 15px; color: var(--ink); }
.discount-row .discount-val { color: var(--success); font-weight: 500; }

/* ─── Ref code ───────────────────────────────────────────────── */
.code-input-row { display: flex; gap: 8px; }
.code-input-row input { flex: 1; text-transform: uppercase; letter-spacing: .1em; }
.code-apply-btn {
  padding: 10px 16px; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--muted);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.code-apply-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.code-badge {
  margin-top: 6px; padding: 7px 11px; border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
}
.code-badge.valid { background: rgba(74,124,89,.08); border: 1px solid rgba(74,124,89,.25); color: var(--success); }
.code-badge.invalid { background: rgba(181,64,64,.08); border: 1px solid rgba(181,64,64,.2); color: var(--error); }

/* Countdown for temp codes */
.code-countdown {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--muted); margin-top: 4px;
}
.code-countdown span { color: var(--ink); }
.code-countdown span.urgent { color: var(--error); }

/* ─── Upload zone ────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--line); border-radius: var(--r-md);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: all .2s; position: relative; margin-bottom: 12px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold); background: rgba(200,146,42,.03);
}
.upload-zone.ref-zone { padding: 18px; margin-top: 12px; }
.uz-icon { margin: 0 auto 10px; color: var(--muted); }
.uz-icon svg { width: 36px; height: 36px; }
.uz-icon.small svg { width: 22px; height: 22px; }
.uz-main { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.uz-sub { font-family: var(--sans); font-size: 12px; color: var(--muted); }

.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px;
}
.file-item-name { flex: 1; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { font-family: var(--sans); font-size: 11px; color: var(--muted); flex-shrink: 0; }
.file-item-remove {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); border-radius: 4px; cursor: pointer; border: none; background: transparent;
  transition: all .15s;
}
.file-item-remove:hover { color: var(--error); background: rgba(181,64,64,.1); }

/* ─── Order summary ──────────────────────────────────────────── */
.order-summary {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.os-row {
  display: flex; justify-content: space-between;
  padding: 10px 14px; font-family: var(--sans); font-size: 13px;
  color: var(--muted); border-bottom: 1px solid rgba(200,146,42,.08);
}
.os-row:last-child { border-bottom: none; }
.os-divider { height: 1px; background: var(--line); }
.total-summary { font-weight: 700; color: var(--ink); font-size: 15px; }
.discount-summary { color: var(--success); }
.discount-val { color: var(--success); font-weight: 500; }

/* ─── Payment tabs ───────────────────────────────────────────── */
.pay-method-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.pmt-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .15s; flex: 1; justify-content: center;
  background: var(--cream);
}
.pmt-tab svg { width: 15px; height: 15px; }
.pmt-tab:hover { border-color: var(--ink-soft); color: var(--ink); }
.pmt-tab.active { background: var(--paper); border-color: var(--ink-soft); color: var(--ink); }

/* ─── Transfer info ──────────────────────────────────────────── */
.transfer-info { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.ti-header { padding: 10px 14px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: var(--cream-deep); border-bottom: 1px solid var(--line); }
.ti-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--sans); font-size: 13px; border-bottom: 1px solid rgba(200,146,42,.06); color: var(--muted); }
.ti-row:last-of-type { border-bottom: none; }
.ti-row span:last-child { color: var(--ink); font-weight: 500; }
.ti-row.highlight span:last-child { color: var(--gold); font-family: monospace; letter-spacing: .08em; }
.ti-note { padding: 10px 14px; font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); }
.iban { font-family: monospace; letter-spacing: .06em; }

/* ─── Square payment ─────────────────────────────────────────── */
.square-container { margin-top: 14px; }
.square-container label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
#square-card-container { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; min-height: 42px; transition: border-color .15s; }
#square-card-container:focus-within { border-color: var(--gold); }

/* ─── Step actions ───────────────────────────────────────────── */
.step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-actions.two { justify-content: space-between; }

.btn-next {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  border-radius: var(--r-sm); border: 1px solid var(--ink);
  cursor: pointer; transition: all .2s;
}
.btn-next:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); transform: translateY(-1px); }
.btn-next svg { width: 15px; height: 15px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; background: transparent; color: var(--muted);
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: all .15s;
}
.btn-back:hover { border-color: var(--ink); color: var(--ink); }
.btn-back svg { width: 15px; height: 15px; }

.btn-submit {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 28px; background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  border-radius: var(--r-sm); border: 1px solid var(--ink); cursor: pointer; transition: all .2s;
}
.btn-submit:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }

/* ─── Form error & Warnings ─────────────────────────────────────────────── */
.form-error { display: none; padding: 10px 14px; background: rgba(181,64,64,.06); border: 1px solid rgba(181,64,64,.2); border-radius: var(--r-sm); color: var(--error); font-family: var(--sans); font-size: 13px; margin-top: 12px; }
.addon-warning { display: none; padding: 10px 14px; background: rgba(200,146,42,.08); border: 1px solid rgba(200,146,42,.2); border-radius: var(--r-sm); color: var(--ink); font-family: var(--sans); font-size: 12px; margin-top: 10px; line-height: 1.5; }

/* ─── Ref section ────────────────────────────────────────────── */
.ref-section { background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-top: 18px; }
.ref-section h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.ref-section p { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.optional { font-size: 11px; font-weight: 400; color: var(--muted); }

/* ─── Success screen ─────────────────────────────────────────── */
.success-screen { text-align: center; padding: 48px 24px; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 22px; background: rgba(74,124,89,.1); border: 2px solid rgba(74,124,89,.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: scaleIn .5s ease; }
.success-icon svg { width: 34px; height: 34px; color: var(--success); }
@keyframes scaleIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-screen h2 { font-family: var(--sans); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -.02em; }
.success-ref { display: inline-block; padding: 10px 22px; background: rgba(200,146,42,.08); border: 1px solid rgba(200,146,42,.25); border-radius: var(--r-sm); font-family: monospace; font-size: 22px; font-weight: 700; letter-spacing: .12em; color: var(--gold); margin: 14px 0; }
.success-email { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.success-email strong { color: var(--ink); }

/* ─── Reminder text ──────────────────────────────────────────── */
.reminder-text { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ─── Nav overrides for order page ──────────────────────────── */
.nav-btn-ghost { font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; transition: all .15s; }
.nav-btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ─── Payment Choice Cards ─────────────────────────────────────── */
.pay-choice-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.pay-choice-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  position: relative; overflow: hidden;
}
.pay-choice-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px; border: 2px solid transparent; transition: all 0.3s;
}
.pay-choice-card.selected {
  background: var(--cream-deep);
}
.pay-choice-card.selected::after {
  border-color: var(--gold);
}
.pay-choice-card:hover {
  transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(13,42,78,0.12); border-color: rgba(200,146,42,.3);
}
.pcc-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.pay-choice-card:hover .pcc-icon {
  background: var(--gold); color: white; transform: scale(1.05);
}
.pcc-body { flex: 1; display: flex; flex-direction: column; align-items: center; }
.pcc-title {
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  color: var(--ink); margin-bottom: 8px;
}
.pcc-sub {
  font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.4;
}
.pcc-arrow { display: none; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-step { padding: 20px 16px; }
  .si-line { max-width: 50px; }
}
@media (max-width: 600px) {
  .o-grid-2 { grid-template-columns: 1fr; }
  .o-grid-2 .field-group[style*="grid-column"] { grid-column: auto !important; }
  .pay-choice-grid { grid-template-columns: 1fr; }
  .step-indicator { gap: 0; }
  .order-wrap { padding: 0 12px 40px; }
}
/* ─── Modals (Square & Zelle) ────────────────────────────────── */
.pay-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13, 20, 28, 0.75); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pay-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; transition: color 0.15s;
  z-index: 10;
}
.pay-modal-close:hover { color: var(--error); }

/* Square Modal */
.pay-modal-box {
  background: var(--paper); border-radius: var(--r-lg);
  width: 100%; max-width: 800px;
  display: flex; overflow: hidden; position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pm-left {
  background: var(--cream-deep); width: 40%;
  padding: 40px 32px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.pm-brand { margin-bottom: 30px; }
.pm-summary-title {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 20px;
}
.pm-summary-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex: 1; }
.pm-srow {
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 13px; color: var(--muted); border-bottom: 1px solid rgba(200,146,42,.08); padding-bottom: 8px;
}
.pm-srow strong { color: var(--ink); font-weight: 600; }
.pm-srow.pm-srow-addon { display: grid; grid-template-columns: 1fr; border-bottom: none; }
.pm-total-box {
  background: var(--cream); border: 1px solid var(--gold); border-radius: var(--r-sm);
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--ink);
  margin-bottom: 20px;
}
.pm-powered { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 11px; color: var(--muted); }

.pm-right {
  width: 60%; padding: 40px 32px; background: var(--paper); display: flex; flex-direction: column; justify-content: center;
}
.pm-right-title {
  font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink);
  margin-bottom: 24px;
}

/* Zelle (Other) Modal */
.zelle-modal-box {
  background: var(--paper); border-radius: var(--r-lg);
  width: 100%; max-width: 440px;
  padding: 32px; position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.zm-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.zm-icon {
  width: 52px; height: 52px; background: rgba(116, 81, 235, 0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #7451EB;
}
.zm-title { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--ink); }
.zm-subtitle { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 2px; }
.zm-body {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--cream);
  padding: 0 16px; margin-bottom: 20px;
}
.zm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 14px; color: var(--muted);
}
.zm-row:last-child { border-bottom: none; }
.zm-value { font-weight: 600; color: var(--ink); }
.zm-highlight { font-size: 18px; color: #7451EB; font-weight: 700; }
.zm-copy { cursor: pointer; transition: color 0.15s; }
.zm-copy:hover { color: var(--gold); }
.zm-note {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--sans); font-size: 12px; color: var(--muted);
  line-height: 1.5; padding: 14px; background: rgba(200,146,42,.06);
  border-radius: var(--r-sm); margin-bottom: 20px;
}
@media (max-width: 768px) {
  .pay-modal-box { flex-direction: column; }
  .pm-left { width: 100%; border-right: none; border-bottom: 1px solid var(--line); }
  .pm-right { width: 100%; }
}

