:root {
  color-scheme: light;
  --ink: #132c3e;
  --muted: #657581;
  --line: #dbe4e8;
  --paper: #ffffff;
  --wash: #f2f7f6;
  --brand: #0c806c;
  --brand-dark: #096554;
  --accent: #d9f3eb;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); min-width: 320px; }
button, input, select { font: inherit; }

.topbar {
  height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center;
  justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); display: flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 12px; }
.brand-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.secure { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.secure span { color: var(--brand); font-size: 10px; }

.page-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(320px, .86fr) minmax(480px, 1.14fr); }
.intro-panel { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) clamp(32px, 6vw, 88px); background: var(--ink); color: white; }
.intro-panel::after { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: rgba(32,170,143,.16); top: -210px; right: -180px; }
.eyebrow { color: #76d8c5; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 800; }
h1 { max-width: 520px; margin: 17px 0 18px; font: 700 clamp(42px, 5vw, 70px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.lead { color: #c5d1d7; font-size: 17px; line-height: 1.7; max-width: 510px; margin: 0; }

.car-card { position: relative; height: 210px; max-width: 520px; margin: 40px 0 30px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); overflow: hidden; }
.car-card svg { position: relative; width: 94%; height: 100%; margin-left: 3%; z-index: 1; }
.car-body { fill: #28a88d; stroke: #91ddce; stroke-width: 2; }
.car-window { fill: #173d4f; stroke: #91ddce; stroke-width: 2; }
.car-line, .car-shadow { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }
.car-shadow { stroke-width: 7; stroke-linecap: round; opacity: .18; }
.wheel { fill: #112633; stroke: #8edccb; stroke-width: 5; }
.hub { fill: #d7f3ed; }
.road-line { position: absolute; bottom: 34px; left: 0; right: 0; border-bottom: 1px dashed rgba(255,255,255,.16); }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.benefits li { display: flex; align-items: center; gap: 12px; }
.benefits li > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink); background: #76d8c5; border-radius: 50%; font-size: 13px; font-weight: 900; }
.benefits strong, .benefits small { display: block; }
.benefits strong { font-size: 14px; }
.benefits small { color: #9fb0ba; font-size: 12px; margin-top: 2px; }

.form-panel { background: var(--paper); padding: clamp(45px, 7vw, 90px) clamp(28px, 8vw, 110px); }
#form-view { max-width: 680px; margin: 0 auto; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.progress { height: 5px; margin: 12px 0 46px; background: #e9efef; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 50%; background: var(--brand); border-radius: inherit; transition: width .3s ease; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font: 700 clamp(28px, 3vw, 38px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.section-copy { margin: 10px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field-grid { display: grid; gap: 18px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.address-row { grid-template-columns: minmax(180px, 1fr) 80px 80px; }
.postal-row { grid-template-columns: 150px 1fr; }
label { display: grid; gap: 8px; color: #314957; font-size: 13px; font-weight: 700; margin-bottom: 19px; }
input, select { width: 100%; min-height: 49px; padding: 0 14px; color: var(--ink); background: white; border: 1px solid #cbd8dd; border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #9aa8b0; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,128,108,.12); }
input:user-invalid, select:user-invalid { border-color: #dc8881; }
.subheading { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; color: var(--ink); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.subheading::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.choice-section { margin: 2px 0 20px; }
.choice-label { display: block; color: #314957; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 49px; display: grid; place-items: center; border: 1px solid #cbd8dd; border-radius: 10px; background: white; cursor: pointer; }
.segmented input:checked + span { color: var(--brand-dark); border-color: var(--brand); background: var(--accent); box-shadow: inset 0 0 0 1px var(--brand); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(12,128,108,.15); }
.consent { grid-template-columns: 21px 1fr; align-items: start; gap: 11px; padding: 15px; background: #f6f9f8; border-radius: 10px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.consent input { width: 19px; min-height: 19px; height: 19px; margin-top: 1px; accent-color: var(--brand); }

.actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 28px; margin-top: 10px; border-top: 1px solid var(--line); }
.button { min-height: 50px; padding: 0 22px; border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; }
.button.primary { color: white; background: var(--brand); box-shadow: 0 8px 22px rgba(12,128,108,.18); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: var(--ink); background: #eef3f3; margin-right: auto; }
.button span { margin-left: 9px; }
.loading span { display: none; }
.privacy-note { margin: 18px 0 0; color: #87949b; font-size: 11px; line-height: 1.5; text-align: center; }
.alert { padding: 13px 15px; margin-top: 18px; border-radius: 10px; font-size: 13px; }
.alert.error { color: var(--danger); background: #fff1f0; border: 1px solid #f2c8c4; }

.success-view { max-width: 540px; margin: min(15vh, 110px) auto 0; text-align: center; }
.success-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 28px; color: white; background: var(--brand); border-radius: 50%; font-size: 32px; box-shadow: 0 14px 32px rgba(12,128,108,.22); }
.success-view h2 { margin: 12px 0; font: 700 clamp(36px, 5vw, 54px)/1 Georgia, serif; letter-spacing: -.035em; }
.success-view p { color: var(--muted); line-height: 1.7; }
.reference { display: inline-flex; gap: 7px; margin-top: 25px; padding: 11px 15px; color: var(--muted); background: var(--wash); border-radius: 8px; font-size: 12px; }
.reference strong { color: var(--ink); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }
  .intro-panel { padding: 52px 28px; }
  .car-card { height: 175px; margin: 30px 0 24px; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefits small { display: none; }
  .form-panel { padding: 48px 28px 70px; }
}

@media (max-width: 580px) {
  .topbar { height: 64px; padding: 0 18px; }
  .secure { font-size: 0; }
  .secure span { font-size: 10px; }
  .page-shell { min-height: calc(100vh - 64px); }
  .intro-panel { padding: 42px 20px; }
  h1 { font-size: 45px; }
  .lead { font-size: 15px; }
  .car-card { height: 150px; }
  .benefits { grid-template-columns: 1fr; gap: 11px; }
  .form-panel { padding: 40px 20px 60px; }
  .field-grid.two, .address-row, .postal-row { grid-template-columns: 1fr; gap: 0; }
  .address-row { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .address-row label:first-child { grid-column: 1 / -1; }
  .actions { flex-wrap: wrap; }
  .button.primary { flex: 1; }
}
