:root {
  --ink: #102235;
  --muted: #5a6876;
  --navy: #0b1f33;
  --navy-2: #143a5d;
  --gold: #c79a43;
  --gold-light: #f5ead3;
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --line: #d8e0e7;
  --danger: #a82d36;
  --success: #217a57;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(11, 31, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #eef3f6 0, #f8fafb 460px, #fff 100%); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--navy); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { background: rgba(11, 31, 51, .96); color: #fff; padding: 16px max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left)); }
.brand-wrap { width: min(1120px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { color: var(--gold); font-weight: 900; letter-spacing: -.04em; font-size: 1.35rem; border-right: 1px solid rgba(255,255,255,.3); padding-right: 10px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .98rem; letter-spacing: .02em; }
.brand-copy small { color: #becbd6; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }
.header-phone { text-decoration: none; color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; }

main { padding: 0 18px 70px; }
.hero { width: min(780px, 100%); margin: 0 auto; padding: 58px 0 34px; text-align: center; }
.eyebrow, .step-kicker { color: #8a6421; font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 7vw, 4.35rem); line-height: 1.02; letter-spacing: -.04em; margin: 12px auto 18px; max-width: 760px; color: var(--navy); }
.hero > p { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 660px; margin: auto; }
.trust-list { display: flex; justify-content: center; gap: 12px 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 25px 0 0; color: var(--navy-2); font-size: .9rem; font-weight: 700; }
.trust-list li::before { content: "✓"; color: var(--success); margin-right: 7px; }

.form-shell { width: min(860px, 100%); margin: 0 auto; background: var(--paper); border: 1px solid rgba(16,34,53,.08); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.progress { position: sticky; top: 0; z-index: 8; padding: 16px 24px 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.progress-copy { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
#step-name { color: var(--navy); }
.progress-track { height: 4px; margin-top: 13px; background: #e6ebef; border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--gold), #dfbd78); border-radius: inherit; transition: width .3s ease; }

.form-step { padding: 36px clamp(20px, 6vw, 54px) 44px; }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .success-panel h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 5vw, 2.65rem); line-height: 1.1; letter-spacing: -.025em; margin: 8px 0 12px; color: var(--navy); }
.section-heading p { color: var(--muted); margin: 0; max-width: 660px; }
.field-grid { display: grid; gap: 18px; }
.field { margin-bottom: 20px; }
.field-grid .field { margin-bottom: 0; }
.field-grid + .field-grid, .field-grid + .field, .field + .field-grid { margin-top: 20px; }
label, legend { display: block; color: var(--ink); font-weight: 750; font-size: .9rem; margin-bottom: 8px; }
label span[aria-hidden="true"], legend span[aria-hidden="true"], .check-line b { color: var(--danger); }
input, select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cbd5dd; border-radius: 11px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
input, select { min-height: 50px; }
textarea { resize: vertical; min-height: 105px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,154,67,.15); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money-input input { padding-left: 29px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.choice-group legend { width: 100%; }
.choice-pill { position: relative; display: inline-flex; margin: 0; }
.choice-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice-pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid #cbd5dd; border-radius: 999px; background: #fff; color: var(--navy); font-size: .86rem; font-weight: 700; cursor: pointer; }
.choice-pill input:checked + span { color: #fff; background: var(--navy-2); border-color: var(--navy-2); }
.choice-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(199,154,67,.2); }

.transaction-grid { display: grid; gap: 12px; margin-bottom: 28px; }
.transaction-card { position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 13px; row-gap: 0; margin: 0; padding: 17px; border: 1px solid #d5dde4; border-radius: 14px; cursor: pointer; transition: .2s; }
.transaction-card input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.transaction-card:has(input:checked) { border-color: var(--gold); background: #fffbf3; box-shadow: 0 0 0 3px rgba(199,154,67,.14); }
.transaction-card:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(199,154,67,.2); }
.transaction-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-light); color: #76551d; font-size: 1.35rem; }
.transaction-card strong { align-self: end; font-size: 1rem; }
.transaction-card small { align-self: start; color: var(--muted); font-weight: 500; }

.purpose-panel { padding: 24px; margin-bottom: 22px; background: #f8fafb; border: 1px solid #e1e7eb; border-radius: 16px; }
.purpose-panel h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 1.45rem; margin: 0 0 21px; }
.privacy-note, .legal-note { padding: 16px 17px; border-left: 4px solid var(--gold); background: #fff9ed; color: #634e28; border-radius: 4px 10px 10px 4px; font-size: .87rem; }
.privacy-note strong { display: block; color: #493617; }

.signature-list { display: grid; gap: 18px; }
.signature-card { border: 1px solid #d8e0e7; border-radius: 16px; padding: 20px; }
.signature-card.optional { background: #fbfcfd; }
.signature-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.signature-heading span { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 1.2rem; font-weight: 700; }
.signature-heading strong { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.signature-pad { position: relative; height: 170px; overflow: hidden; border: 1px dashed #9cabb8; border-radius: 12px; background: #fff; touch-action: none; }
.signature-pad canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.sign-here { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #82909d; font-size: .82rem; pointer-events: none; text-align: center; }
.signature-pad.has-ink .sign-here { opacity: 0; }
.clear-signature { position: absolute; right: 8px; top: 8px; width: auto; border: 0; border-radius: 999px; background: #edf1f4; color: var(--navy); padding: 7px 11px; font-size: .75rem; font-weight: 750; cursor: pointer; }
.signature-pad.signature-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(168,45,54,.1); }
.acknowledgment { display: grid; gap: 14px; margin-top: 26px; }
.check-line { display: grid; grid-template-columns: 23px 1fr; gap: 11px; align-items: start; margin: 0; color: var(--muted); font-size: .86rem; font-weight: 500; }
.check-line input { width: 21px; height: 21px; min-height: 0; margin: 1px 0 0; accent-color: var(--navy-2); }

.form-alert { margin: 24px clamp(20px,6vw,54px) 0; padding: 13px 15px; background: #fff1f2; border: 1px solid #efc3c7; border-radius: 10px; color: var(--danger); font-weight: 700; font-size: .88rem; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.form-actions.single { justify-content: flex-end; }
.button { min-height: 50px; width: auto; border: 0; border-radius: 999px; padding: 12px 23px; font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(199,154,67,.35); outline-offset: 3px; }
.button.primary { color: #fff; background: var(--navy); box-shadow: 0 9px 20px rgba(11,31,51,.17); }
.button.primary:hover { background: var(--navy-2); }
.button.secondary { color: var(--navy); background: #eef2f5; }
.submit-button { display: inline-flex; align-items: center; gap: 9px; }
.submit-button[disabled] { opacity: .7; cursor: wait; transform: none; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.is-submitting .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.review-summary { display: grid; gap: 14px; }
.review-card { padding: 18px; border: 1px solid #dde4e9; border-radius: 14px; }
.review-card h3 { color: var(--navy); margin: 0 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.review-card dl { display: grid; grid-template-columns: minmax(120px, .7fr) 1.3fr; gap: 8px 16px; margin: 0; font-size: .86rem; }
.review-card dt { color: var(--muted); }
.review-card dd { margin: 0; color: var(--ink); font-weight: 650; white-space: pre-wrap; overflow-wrap: anywhere; }
.delivery-note { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; margin: 22px 0 16px; padding: 16px; border-radius: 14px; background: #eef8f3; color: #245c46; }
.delivery-note > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--success); font-weight: 900; }
.delivery-note p { margin: 0; font-size: .88rem; }

.success-panel { text-align: center; padding: clamp(42px, 9vw, 78px) clamp(22px, 7vw, 70px); }
.success-mark { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 23px; color: #fff; background: var(--success); border-radius: 50%; font-size: 2rem; font-weight: 900; box-shadow: 0 12px 28px rgba(33,122,87,.22); }
.success-panel > p { color: var(--muted); }
.reference-box { display: inline-grid; gap: 4px; min-width: 240px; padding: 15px 24px; margin: 14px auto; border: 1px solid #dbe3e8; border-radius: 13px; background: #f7f9fa; }
.reference-box span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.reference-box strong { color: var(--navy); font-size: 1.2rem; letter-spacing: .04em; }
.success-contact { font-size: .85rem; }

footer { display: grid; gap: 5px; justify-items: center; padding: 36px 20px max(40px, env(safe-area-inset-bottom)); text-align: center; color: #6c7985; font-size: .78rem; }
footer strong { color: var(--navy); font-size: .9rem; }

@media (min-width: 650px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .transaction-grid { grid-template-columns: repeat(3, 1fr); }
  .transaction-card { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 5px; }
  .transaction-icon { grid-row: auto; margin-bottom: 3px; }
}

@media (max-width: 480px) {
  main { padding-left: 10px; padding-right: 10px; }
  .site-header { padding-left: 14px; padding-right: 14px; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy small { font-size: .63rem; }
  .header-phone { font-size: .76rem; }
  .hero { padding-top: 42px; }
  .form-shell { border-radius: 18px; }
  .progress { padding-left: 18px; padding-right: 18px; }
  .purpose-panel { padding: 18px 14px; }
  .signature-card { padding: 16px 13px; }
  .signature-heading { align-items: flex-start; }
  .signature-heading strong { text-align: right; }
  .review-card dl { grid-template-columns: 1fr; gap: 2px; }
  .review-card dd { margin-bottom: 8px; }
  .button { padding-left: 19px; padding-right: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
