:root {
  --ink: #111111;
  --muted: #6e6e73;
  --surface: #f5f5f7;
  --navy: #071b37;
  --blue: #0b2a55;
  --red: #bd171e;
  --line: rgba(17, 17, 17, 0.11);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, label, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.83);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand-link { display: flex; align-items: center; }
.brand-link img { width: 150px; height: 62px; object-fit: contain; }
.header-cta, .primary-cta, .next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 680;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.header-cta { min-height: 42px; padding: 0 19px; font-size: 14px; }
.header-cta:hover, .primary-cta:hover, .next-button:hover {
  transform: translateY(-1px);
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(7, 27, 55, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 116px 24px 110px;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 950px; margin: 0 auto; }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(18px); opacity: 0.17; }
.glow-left { top: -340px; left: -190px; background: radial-gradient(circle, #bd171e 0, transparent 67%); }
.glow-right { right: -210px; bottom: -360px; background: radial-gradient(circle, #0b2a55 0, transparent 67%); }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 13px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(54px, 8vw, 106px); font-weight: 730; letter-spacing: -.065em; line-height: .94; }
.hero h1 span {
  display: block;
  background: linear-gradient(95deg, #111 12%, #173b69 59%, #bd171e 112%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy { max-width: 700px; margin: 34px auto 0; color: var(--muted); font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -.025em; line-height: 1.45; }
.primary-cta { min-height: 58px; margin-top: 38px; padding: 0 28px; font-size: 17px; }
.primary-cta svg, .next-button svg, .back-button svg { width: 18px; height: 18px; }
.hero-note { margin: 16px 0 0; color: #86868b; font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1160px; margin: 0 auto; padding: 0 24px 110px; }
.steps article { position: relative; min-height: 280px; padding: 34px; overflow: hidden; border-radius: 30px; background: var(--surface); }
.step-number { position: absolute; top: 24px; right: 26px; color: #a4a4a8; font-size: 13px; font-weight: 720; }
.steps article > svg { width: 34px; height: 34px; margin: 42px 0 34px; color: var(--blue); }
.steps h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.steps p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }

.form-section { scroll-margin-top: 76px; padding: 100px 24px 84px; background: var(--surface); }
.form-shell { max-width: 900px; min-height: 620px; margin: 0 auto; padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(255,255,255,.8); border-radius: 38px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.form-heading h2, .success-state h2 { max-width: 650px; margin: 0; font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -.055em; line-height: 1.02; }
.form-heading > span { flex: 0 0 auto; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 660; }
.progress-track { height: 5px; margin: 34px 0 42px; overflow: hidden; border-radius: 999px; background: #e5e5e7; }
.progress-track div { width: 33.333%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--red)); transition: width 260ms ease; }

fieldset { min-width: 0; }
.js .form-step { display: none; }
.js .form-step.active { display: block; animation: step-in 260ms ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.form-step { margin: 0; padding: 0; border: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vehicle-grid { display: grid; grid-template-columns: .7fr 1.15fr 1.15fr; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 9px; }
.field-group > span, .group-label, .choice-block h3, .photo-guide h3 { color: #343438; font-size: 14px; font-weight: 690; }
.field-group small, .choice-block small { color: #8d8d92; font-size: 12px; font-weight: 520; }
.field-group input, .field-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}
.field-group input { height: 56px; padding: 0 16px; }
.field-group textarea { min-height: 132px; padding: 16px; resize: vertical; line-height: 1.5; }
.field-group input:focus, .field-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,42,85,.1); }
.field-group input::placeholder, .field-group textarea::placeholder { color: #929297; }
.section-divider { height: 1px; margin: 32px 0; background: var(--line); }
.group-label { margin: 0 0 12px; }
.choice-block + .choice-block { margin-top: 32px; }
.choice-block h3, .photo-guide h3 { margin: 0 0 13px; }
.radio-cards { display: grid; gap: 10px; }
.radio-cards.three { grid-template-columns: repeat(3, 1fr); }
.radio-cards.two { grid-template-columns: repeat(2, 1fr); }
.choice-card { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: #313135; font-size: 14px; transition: border 150ms ease, background 150ms ease; }
.choice-card:has(input:checked) { border-color: var(--blue); background: #f3f7fc; }
.choice-card input { width: 17px; height: 17px; accent-color: var(--blue); }
.damage-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.damage-chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #39393d; font-size: 14px; transition: all 150ms ease; }
.damage-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.damage-chip:has(input:checked) { border-color: var(--blue); background: var(--blue); color: #fff; }
.details-field { margin-top: 32px; }

.photo-guide { padding: 22px 24px; border-radius: 22px; background: #f5f7fa; }
.photo-guide ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.photo-guide li { display: flex; gap: 9px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.photo-guide li span { color: #2e7d54; font-weight: 800; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.upload-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 164px; padding: 18px 14px; border: 1.5px dashed rgba(11,42,85,.28); border-radius: 20px; background: #fafbfc; text-align: center; transition: border 160ms ease, background 160ms ease, transform 160ms ease; }
.upload-card:hover { transform: translateY(-1px); border-color: var(--blue); background: #f4f7fb; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 24px; line-height: 1; }
.upload-card strong { font-size: 14px; }
.upload-card small { max-width: 150px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.upload-card.has-file { border-style: solid; border-color: #2e7d54; background: #f2faf6; }
.upload-card.has-file .upload-mark { background: #2e7d54; font-size: 0; }
.upload-card.has-file .upload-mark::after { content: "✓"; font-size: 20px; }
.upload-note { margin: 12px 0 0; color: #85858a; font-size: 11px; line-height: 1.45; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; color: #55555a; font-size: 13px; line-height: 1.5; }
.consent-row input { width: 20px; height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--navy); }
.privacy-note { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; color: #737378; font-size: 12px; }
.privacy-note svg { width: 17px; height: 17px; flex: 0 0 auto; }

.form-error { margin: 22px 0 0; padding: 13px 15px; border-radius: 13px; background: #fff0f0; color: #a50e14; font-size: 13px; font-weight: 600; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.back-button, .next-button { min-height: 52px; padding: 0 22px; }
.back-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-right: auto; border: 0; background: transparent; color: #4d4d52; font-weight: 650; }
.next-button:disabled { cursor: wait; opacity: .66; transform: none; }
.estimate-disclaimer { max-width: 740px; margin: 22px auto 0; color: #818186; font-size: 12px; line-height: 1.5; text-align: center; }

.success-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 500px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 28px; border-radius: 24px; background: var(--navy); color: #fff; box-shadow: 0 20px 50px rgba(7,27,55,.18); }
.success-icon svg { width: 31px; height: 31px; stroke-width: 2.2; }
.success-state > p:not(.eyebrow) { max-width: 600px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.success-summary { margin-top: 30px; padding: 15px 18px; border-radius: 15px; background: var(--surface); color: #45454a; font-size: 13px; }

footer { display: flex; flex-direction: column; align-items: center; padding: 72px 24px 42px; text-align: center; }
footer img { width: 180px; height: 76px; object-fit: contain; }
footer p { max-width: 620px; margin: 8px 0 24px; color: var(--muted); font-size: 15px; }
footer > span { color: #9a9a9f; font-size: 12px; }
.bot-field, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 18px; }
  .brand-link img { width: 122px; height: 54px; }
  .header-cta { min-height: 38px; padding: 0 15px; font-size: 13px; }
  .hero { padding: 82px 20px 74px; }
  .hero h1 { font-size: clamp(48px, 14.5vw, 70px); }
  .hero-copy { margin-top: 26px; font-size: 19px; }
  .primary-cta { width: 100%; max-width: 360px; }
  .steps { grid-template-columns: 1fr; padding: 0 16px 76px; }
  .steps article { min-height: 220px; padding: 28px; }
  .steps article > svg { margin: 30px 0 25px; }
  .form-section { padding: 56px 12px 60px; }
  .form-shell { min-height: 600px; padding: 28px 18px; border-radius: 28px; }
  .form-heading { display: block; }
  .form-heading h2 { font-size: 36px; }
  .form-heading > span { display: block; margin-top: 14px; }
  .progress-track { margin: 24px 0 32px; }
  .field-grid, .vehicle-grid { grid-template-columns: 1fr; gap: 16px; }
  .radio-cards.three, .radio-cards.two { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .upload-card { min-height: 150px; }
  .form-actions { align-items: stretch; }
  .next-button { flex: 1; padding: 0 16px; }
  .back-button { padding: 0 8px; }
  .success-state { min-height: 480px; }
}

@media (max-width: 420px) {
  .photo-grid { grid-template-columns: 1fr; }
  .upload-card { min-height: 138px; }
}

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