:root {
  --ink: #171918;
  --muted: #626762;
  --paper: #f3f0e8;
  --card: #fffdf8;
  --line: #d9d5ca;
  --red: #bf2026;
  --red-dark: #8f151b;
  --green: #176b4d;
  --shadow: 0 18px 50px rgba(28, 25, 20, 0.11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(191, 32, 38, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.page-shell { min-height: 100vh; }

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: white;
  background: var(--ink);
  border-bottom: 5px solid var(--red);
}

.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { padding: 7px 9px; color: white; background: var(--red); font-weight: 900; letter-spacing: -0.05em; }
.brand-copy { font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.brand-copy span { display: block; margin-top: 5px; color: #bbbdb9; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.secure-label { color: #c8cbc7; font-size: 0.82rem; }

main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.intro { position: relative; padding: 0 0 34px 28px; border-left: 5px solid var(--red); }
.intro h1 { max-width: 760px; margin: 5px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 6vw, 4.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
.intro > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.04rem; }
.eyebrow { margin: 0; color: var(--red); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.vehicle-badge { display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; padding: 10px 14px; background: #e8e4da; border-radius: 4px; }
.vehicle-badge span { color: var(--muted); font-size: 0.82rem; }

form, .success-card {
  margin-top: 26px;
  padding: clamp(22px, 5vw, 52px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.progress-wrap { margin-bottom: 48px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.progress-track { height: 5px; overflow: hidden; background: #e6e2d9; }
.progress-track span { display: block; width: 20%; height: 100%; background: var(--red); transition: width 220ms ease; }

.form-step { display: none; }
.form-step.is-active { display: block; animation: reveal 220ms ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

.section-heading { display: grid; grid-template-columns: 46px 1fr; gap: 15px; margin-bottom: 28px; }
.section-heading > span { color: var(--red); font-family: Georgia, serif; font-size: 1.7rem; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 500; }
.section-heading p, .subsection p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; color: #343734; font-size: 0.84rem; font-weight: 750; }
.field-wide { grid-column: 1 / -1; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #bbb8af;
  border-radius: 3px;
  outline: none;
  font-weight: 500;
}
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(191, 32, 38, 0.12); }
.field input:user-invalid { border-color: var(--red); }
.field small { color: var(--muted); font-weight: 500; }
.uppercase { text-transform: uppercase; }

.subsection { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.subsection h3 { margin: 0; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.subsection .field-grid { margin-top: 20px; }

.locked-vehicle { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 24px; padding: 17px; background: #ece8df; border-left: 4px solid var(--ink); }
.locked-vehicle span:first-child { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); }
legend { padding: 0 6px; font-size: 0.86rem; font-weight: 750; }
fieldset label { display: inline-flex; margin: 10px 8px 0 0; cursor: pointer; }
fieldset input { position: absolute; opacity: 0; pointer-events: none; }
fieldset label span { padding: 8px 13px; background: #eeeae1; border: 1px solid transparent; border-radius: 3px; font-size: 0.84rem; font-weight: 700; }
fieldset input:checked + span { color: white; background: var(--ink); border-color: var(--ink); }
fieldset input:focus-visible + span { outline: 3px solid rgba(191, 32, 38, 0.25); }
.stacked-choices { display: grid; gap: 18px; }

.consent { display: flex; gap: 12px; margin-top: 26px; padding: 18px; background: #eeeae1; font-size: 0.87rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--red); }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.button { min-height: 48px; padding: 11px 22px; border: 0; border-radius: 3px; cursor: pointer; font-weight: 800; }
.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--ink); background: #e7e3da; }
.button:disabled { opacity: 0.55; cursor: wait; }

.notice { margin-top: 22px; padding: 16px 18px; border-left: 4px solid; }
.notice p { margin: 6px 0 0; }
.notice-error { color: #72191d; background: #fae8e7; border-color: var(--red); }
.success-card { text-align: center; }
.success-card h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 2.4rem; font-weight: 500; }
.success-card > p:last-child { color: var(--muted); }
.success-icon { display: inline-grid; width: 58px; height: 58px; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 1.8rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { padding: 26px; color: #7b7f7a; background: var(--ink); text-align: center; font-size: 0.78rem; }

@media (max-width: 680px) {
  .brand-bar { min-height: 68px; padding-inline: 18px; }
  .secure-label { display: none; }
  main { width: min(100% - 20px, 920px); padding-top: 38px; }
  .intro { padding-left: 18px; }
  .intro h1 { font-size: 2.65rem; }
  form { padding: 22px 18px; }
  .field-grid, .choice-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .progress-copy { align-items: flex-end; gap: 12px; }
  .progress-copy span:last-child { text-align: right; }
  .section-heading { grid-template-columns: 36px 1fr; }
  .locked-vehicle { grid-template-columns: 1fr auto; }
  .locked-vehicle span:last-child { display: none; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions.is-first-step { grid-template-columns: 1fr; }
}
