:root {
  color-scheme: light;
  --surface: #f9f9ff;
  --surface-white: #ffffff;
  --surface-slate: #f4f6f9;
  --surface-container: #e6eeff;
  --primary: #00142f;
  --primary-container: #0f294a;
  --secondary: #295ea8;
  --on-surface: #0c1c30;
  --muted: #44474e;
  --border: #e2e8f0;
  --success: #0e8a42;
  --danger: #ba1a1a;
  font-family: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { color: var(--on-surface); background: var(--surface); }
button, input { font: inherit; }

.site-body { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 8px rgba(0, 0, 0, .04); backdrop-filter: blur(12px); }
.header-inner { width: min(100%, 1024px); height: 80px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--primary); text-decoration: none; }
.brand-name { font-family: 'Domine', serif; font-size: 1.05rem; font-weight: 700; }
.brand-divider { width: 1px; height: 24px; background: var(--border); }
.brand-subtitle, .secure-label { color: var(--muted); font-size: .78rem; font-weight: 500; }
.secure-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.secure-label .material-symbols-outlined { color: var(--success); font-size: 18px; }

.page-main { flex: 1; width: min(100%, 1280px); margin: 0 auto; padding: 40px 24px 48px; }
.content-wrap { width: min(100%, 672px); margin: 0 auto; }
.page-intro { margin-bottom: 28px; text-align: center; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px; color: var(--muted); background: var(--surface-container); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.status-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
h1, h2 { margin: 0; color: var(--primary); }
h1 { font-family: 'Domine', serif; font-size: 2.25rem; line-height: 1.25; letter-spacing: -.015em; }
.page-intro p { margin: 8px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }

.steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: .78rem; }
.step span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-size: .72rem; }
.step strong { font-weight: 600; }
.step-muted { color: var(--muted); opacity: .65; }
.step-muted span { color: var(--on-surface); background: var(--surface-container); }
.step-line { width: 32px; height: 1px; background: var(--border); }

.payment-panel { padding: 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-white); box-shadow: 0 1px 8px rgba(0, 0, 0, .04); }
.section-heading { margin-bottom: 16px; color: var(--primary); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.field-label { display: block; margin-bottom: 7px; color: var(--primary); font-size: .75rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.amount-field { position: relative; display: flex; align-items: center; }
.amount-field input { width: 100%; height: 56px; padding: 8px 48px 8px 16px; border: 0; border-radius: 8px; outline: 0; color: var(--primary); background: var(--surface-slate); font-family: 'Domine', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.amount-field span { position: absolute; right: 16px; color: var(--muted); font-family: 'Domine', serif; font-size: 1.25rem; font-weight: 600; pointer-events: none; }
.text-field { width: 100%; height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; outline: 0; color: var(--on-surface); background: var(--surface-slate); font-size: .875rem; }
.text-field::placeholder, .amount-field input::placeholder { color: #818894; }
.text-field:focus, .amount-field input:focus { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(41, 94, 168, .15); }
.hint { margin: 9px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.form-divider { height: 1px; margin: 26px 0; background: var(--border); }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.error { margin: 20px 0 0; color: var(--danger); font-size: .8rem; line-height: 1.4; }
.primary-button { width: 100%; min-height: 56px; margin-top: 24px; padding: 14px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; color: #fff; background: var(--primary); cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .03em; box-shadow: 0 8px 20px rgba(0, 20, 47, .12); transition: background .2s, transform .2s; }
.primary-button:hover:not(:disabled) { background: var(--primary-container); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.primary-button .material-symbols-outlined { font-size: 18px; }
.button-arrow { transition: transform .2s; }
.primary-button:hover:not(:disabled) .button-arrow { transform: translateX(3px); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 20px; color: var(--muted); font-size: .68rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 4px; }
.trust-row .material-symbols-outlined { color: var(--success); font-size: 15px; }
.help-text { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: .72rem; }
.site-footer { width: min(100%, 1024px); margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Pages returned after Checkout. */
.shell { flex: 1; display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--surface); }
.card { width: min(100%, 500px); padding: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-white); box-shadow: 0 1px 8px rgba(0, 0, 0, .04); text-align: center; }
.result-card .eyebrow { justify-content: center; margin-bottom: 12px; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.result-card h1 { font-size: 2rem; }
.result-card .intro { margin: 12px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.result-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; font-size: 2rem; font-weight: 700; }
.success-icon { color: var(--success); background: #e2f5e9; }
.cancel-icon { color: var(--danger); background: #fbe6e5; }
.secondary-button { display: flex; justify-content: center; width: 100%; margin-top: 28px; padding: 16px 20px; border-radius: 10px; color: #fff; background: var(--primary); font-size: .85rem; font-weight: 600; text-decoration: none; }
.secondary-button:hover { background: var(--primary-container); }

@media (max-width: 600px) {
  .header-inner { height: 68px; padding: 0 16px; }
  .brand-subtitle, .secure-label span:not(.material-symbols-outlined) { display: none; }
  .page-main { padding: 32px 16px 40px; }
  h1 { font-size: 1.8rem; }
  .payment-panel { padding: 24px 20px; }
  .fields-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps { gap: 8px; }
  .step { font-size: .7rem; }
  .site-footer { padding: 16px; }
  .card { padding: 36px 24px; }
}
