/* =============================================================================
 * Golden Crown Detailing — Estimate Calculator
 * Black, white & gold. Hairlines instead of boxes; one highlighted quote.
 * Mobile-first. Brand tokens live in :root.
 * ========================================================================== */

:root {
  --bg: #000000;
  --surface: #080808;
  --tile: #0b0b0b;
  --line: #1d1d1d;
  --line-strong: #2e2e2e;
  --text: #f4f1ea;
  --muted: #9a958c;
  --faint: #8d887f;  /* ≥ 4.5:1 on the dark tiles (WCAG AA) */
  --gold: #d4af37;
  --gold-light: #e9cd72;
  --gold-grad: linear-gradient(135deg, #f1d983 0%, #d4af37 48%, #b08d26 100%);
  --gold-line: rgba(212, 175, 55, 0.32);
  --gold-tint: rgba(212, 175, 55, 0.07);
  --danger: #e8806f;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: lining-nums; /* Cormorant defaults to old-style figures */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.is-embedded body { min-height: 0; } /* height must follow content inside an auto-height iframe */

h1, h2, h3, p { margin: 0; }
a { color: var(--gold-light); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.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;
}
.muted { color: var(--faint); font-weight: 400; }

.group-title,
.included-title,
.quote-brand,
.quote-total-label,
.nav-total-label,
.progress-label,
.field > label,
.field > .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 0;
}
@media (min-width: 720px) { .app { padding: 56px 32px 0; } }

/* ---------- Masthead ---------- */
.masthead { text-align: center; }
.masthead-logo { width: 88px; height: 88px; display: block; margin: 0 auto 14px; }
.masthead-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.masthead-sub { margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 300; }
.masthead::after {
  content: '';
  display: block;
  width: 44px; height: 1px;
  margin: 26px auto 0;
  background: var(--gold);
}

/* ---------- Progress ---------- */
.progress { margin: 32px 0 40px; }
.progress-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.progress-steps button {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0 0 12px;
  background: none;
  border: 0;
  color: var(--faint);
  transition: color 0.25s var(--ease);
}
.progress-steps button:disabled { cursor: default; }
.progress-num { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.progress-label { font-size: 10px; letter-spacing: 0.18em; }
.progress-steps .is-done button { color: var(--muted); }
.progress-steps .is-done button:hover { color: var(--text); }
.progress-steps .is-current button { color: var(--gold); }
.progress-track { position: relative; height: 1px; background: var(--line-strong); }
.progress-track span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
@media (min-width: 720px) { .progress-label { font-size: 11px; } }

/* ---------- Panels ---------- */
.panel.is-entering { animation: enter 0.45s var(--ease); }
@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.panel-head { text-align: center; margin-bottom: 28px; }
.panel-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 2.2rem);
  line-height: 1.15;
}
.panel-sub { margin-top: 6px; color: var(--muted); font-size: 15px; font-weight: 300; }

/* ---------- Vehicle tiles ---------- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) { .vehicle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }

.vehicle {
  --tile: #0b0b0b;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  padding: 16px 6px 16px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.vehicle:has(input:focus-visible) { outline: 1px solid var(--gold); outline-offset: 2px; }
.vehicle.is-selected { --tile: #110e06; border-color: var(--gold); }
.vehicle-art { display: block; width: 100%; margin-bottom: 6px; }
.vehicle-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.vehicle.is-selected .vehicle-name { color: var(--gold-light); }
.vehicle-eg { font-size: 11.5px; color: var(--faint); line-height: 1.35; }

/* Vehicle illustrations (js/vehicles.js). Paint = per-vehicle gradient whose
   stop colors are set here, so the selected tile turns gold. */
.vh { display: block; width: 100%; height: auto; overflow: visible; }

/* Silver metallic paint: roof → shoulder highlight → horizon line → ground reflection */
.vh-s0 { stop-color: #f4f4f4; }
.vh-s1 { stop-color: #c9c9c9; }
.vh-s2 { stop-color: #f6f6f6; }
.vh-s3 { stop-color: #d2d2d2; }
.vh-s4 { stop-color: #6d6d6d; }
.vh-s5 { stop-color: #a2a2a2; }
.vh-s6 { stop-color: #4a4a4a; }
/* Gold metallic paint (selected) */
.is-selected .vh-s0 { stop-color: #f9e9b0; }
.is-selected .vh-s1 { stop-color: #cfa940; }
.is-selected .vh-s2 { stop-color: #fdf0c2; }
.is-selected .vh-s3 { stop-color: #d9b653; }
.is-selected .vh-s4 { stop-color: #6c5112; }
.is-selected .vh-s5 { stop-color: #b48d2d; }
.is-selected .vh-s6 { stop-color: #5a440e; }

.vh-sheen { fill: url(#vh-sheen); }
.vh-shadow { fill: url(#vh-shadow); }
.vh-contact { fill: #000; opacity: 0.85; }
.vh-body { stroke: rgba(0, 0, 0, 0.5); stroke-width: 0.5; }
.vh-well { fill: #050505; }
.vh-arch { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 0.8; }
.vh-flare { fill: none; stroke: #161616; }
.vh-clad { fill: url(#vh-clad); }
.vh-sill { fill: url(#vh-clad); opacity: 0.75; }
.vh-grille { fill: #161616; stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.4; }
.vh-intake { fill: #1a1a1a; stroke: rgba(255, 255, 255, 0.14); stroke-width: 0.4; }
.vh-crease { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.7; }
.vh-seam { fill: none; stroke: rgba(0, 0, 0, 0.55); stroke-width: 0.7; }
.vh-seam-hl { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 0.5; }
.vh-handle { fill: url(#vh-chrome); stroke: rgba(0, 0, 0, 0.45); stroke-width: 0.4; }
.vh-line-hl { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 0.7; }
.vh-line-dark { fill: none; stroke: rgba(0, 0, 0, 0.5); stroke-width: 0.7; }
.vh-rail { fill: url(#vh-chrome); stroke: rgba(0, 0, 0, 0.6); stroke-width: 0.4; opacity: 0.85; }
.vh-step { fill: #141414; stroke: #2e2e2e; stroke-width: 0.5; }
.vh-glass { fill: url(#vh-glass); }
.vh-reflect { fill: #ffffff; opacity: 0.09; }
.vh-pillar { fill: #050505; }
.vh-pillar-body { stroke: rgba(0, 0, 0, 0.45); stroke-width: 0.4; }
.vh-trim { fill: none; stroke: url(#vh-chrome); stroke-width: 0.9; opacity: 0.75; }
.vh-mirror { stroke: rgba(0, 0, 0, 0.55); stroke-width: 0.5; }
.vh-headlight { fill: url(#vh-head); stroke: rgba(0, 0, 0, 0.5); stroke-width: 0.4; }
.vh-taillight { fill: url(#vh-tail); stroke: rgba(0, 0, 0, 0.5); stroke-width: 0.4; }
.vh-tire { fill: #0c0c0c; }
.vh-sidewall { fill: none; stroke: #222; }
.vh-lip { fill: url(#vh-chrome); }
.vh-barrel { fill: #1a1a1a; }
.vh-disc { fill: #2b2b2b; }
.vh-caliper { fill: none; stroke: #4a4a4a; stroke-linecap: round; }
.is-selected .vh-caliper { stroke: var(--gold); }
.vh-spokes { fill: url(#vh-chrome); stroke: rgba(0, 0, 0, 0.35); stroke-width: 0.25; }
.vh-cap { fill: url(#vh-chrome); stroke: #111; stroke-width: 0.3; }

/* ---------- Choice rows (services & add-ons) ---------- */
.choice-list { border-top: 1px solid var(--line); }
.choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 16px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.choice input:focus-visible + .choice-mark,
.check input:focus-visible + .choice-mark { outline: 1px solid var(--gold); outline-offset: 3px; }
.choice-text { display: grid; gap: 3px; min-width: 0; }
.choice-name { font-size: 15.5px; font-weight: 500; line-height: 1.35; transition: color 0.2s; }
.choice-desc { font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.5; }
.choice-price { font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.choice.is-selected .choice-name,
.choice.is-selected .choice-price { color: var(--gold-light); }

/* Service rows are the main decision — give them more presence. */
#service-options .choice { padding: 24px 2px; }
#service-options .choice-name,
#service-options .choice-price { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
#service-options .choice-mark { margin-top: 4px; }

/* Radio / checkbox marks */
.choice-mark {
  position: relative;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice--checkbox .choice-mark,
.check .choice-mark { border-radius: 2px; }
.is-selected > .choice-mark { border-color: var(--gold); }
.choice--radio.is-selected .choice-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.choice--checkbox.is-selected .choice-mark,
.check.is-selected .choice-mark { background: var(--gold); }
.choice--checkbox.is-selected .choice-mark::after,
.check.is-selected .choice-mark::after {
  content: '';
  position: absolute;
  left: 5.5px; top: 2px;
  width: 5px; height: 10px;
  border: solid #0a0a0a;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* What's included */
.included { margin-top: 26px; }
.included-title { color: var(--gold); margin-bottom: 12px; }
.included ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 7px 24px;
  font-size: 14px;
  font-weight: 300;
}
@media (min-width: 560px) { .included ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.included li { position: relative; padding-left: 18px; }
.included li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.included-note { margin-top: 14px; font-size: 13px; color: var(--faint); font-weight: 300; }

/* ---------- Customize ---------- */
.group { margin: 0 0 36px; padding: 0; border: 0; min-width: 0; }
.group-title { padding: 0; margin-bottom: 12px; color: var(--gold); }
.empty-note { color: var(--muted); text-align: center; margin-bottom: 32px; }

/* Vehicle location */
.group-sub { margin: -4px 0 14px; font-size: 13.5px; font-weight: 300; color: var(--muted); }
.location .fields { gap: 18px 16px; }
.location .field--loc-city { grid-column: span 4; }
.location .field--loc-zip { grid-column: span 2; }
.area-note { margin-top: 14px; font-size: 13.5px; font-weight: 300; color: var(--muted); }
.area-note::before { content: '✓  '; color: var(--gold); }
.area-note.is-outside {
  padding: 2px 0 2px 14px;
  border-left: 1px solid var(--gold);
  color: var(--text);
}
.area-note.is-outside::before { content: none; }

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.seg { cursor: pointer; }
.seg + .seg { border-left: 1px solid var(--line-strong); }
.seg span {
  display: block;
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.seg.is-selected span { background: var(--gold-tint); color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); }
.seg input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: -4px; }
.condition-desc { margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 300; text-align: center; }

.issues { margin-top: 22px; }
.issues-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.check-list { border-top: 1px solid var(--line); }
.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 300;
  cursor: pointer;
}
.check .choice-mark { flex: none; }
.check.is-selected { color: var(--gold-light); }

/* ---------- Step navigation bar ---------- */
.navbar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px -20px 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .navbar { margin: 48px 0 0; padding-inline: 0; } }
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-back:hover { color: var(--text); }
.nav-back svg, .link-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-total { flex: 1; display: grid; justify-items: end; line-height: 1.1; min-width: 0; }
.nav-total-label { font-size: 10px; color: var(--faint); }
.nav-total-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.2s, opacity 0.2s, background-color 0.2s;
}
.btn-gold { background: var(--gold-grad); color: #0b0b0b; }
.btn-gold:disabled { background: #1a1a1a; color: #555; cursor: not-allowed; }
.btn-gold.is-loading:disabled { background: var(--gold-grad); color: #0b0b0b; opacity: 0.8; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-block { width: 100%; }

.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 1.5px solid rgba(11, 11, 11, 0.3);
  border-top-color: #0b0b0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.link-back:hover { color: var(--text); }

/* ---------- The quote (visual highlight) ---------- */
.quote {
  position: relative;
  padding: 30px 22px 26px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(212, 175, 55, 0.09), transparent 70%),
    var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  /* inner hairline frame, like a printed certificate */
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px rgba(212, 175, 55, 0.14);
}
@media (min-width: 640px) { .quote { padding: 44px 48px 36px; } }

.quote-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gold-line);
}
.quote-logo { width: 64px; height: 64px; flex: none; }
.quote-brand { color: var(--gold); font-size: 10.5px; }
.quote-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.1;
  margin-top: 4px;
}

.quote-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 22px 0 0;
}
@media (min-width: 640px) { .quote-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote-meta dt { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.quote-meta dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.35; }

.quote-lines {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 12px;
}
.quote-line { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.quote-line-name { font-weight: 300; min-width: 0; }
.quote-line--service .quote-line-name { font-weight: 500; }
.quote-line-leader { flex: 1; min-width: 16px; border-bottom: 1px dotted #3c3c3c; transform: translateY(-4px); }
.quote-line-price { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

.quote-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
}
.quote-total-label { color: var(--muted); }
.quote-total-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 13vw, 3.8rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote-open { margin-top: 8px; font-size: 12.5px; color: var(--faint); text-align: right; }

.quote-review {
  margin-top: 22px;
  padding: 2px 0 2px 16px;
  border-left: 1px solid var(--gold);
}
.quote-review-title { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.quote-review p:last-child { font-size: 13.5px; color: var(--muted); font-weight: 300; }

.quote-foot {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------- Request form ---------- */
.request { margin-top: 52px; }
.request-head { text-align: center; margin-bottom: 26px; }
.request-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 5.5vw, 2rem); }
.request-sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; font-weight: 300; }

#lead-form { display: grid; gap: 22px; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.field { grid-column: 1 / -1; display: grid; gap: 4px; min-width: 0; }
.field--third { grid-column: span 2; }
@media (min-width: 640px) { .field--half { grid-column: span 3; } }
.field > label, .field > .label { color: var(--muted); font-size: 10.5px; }

input[type='text'], input[type='tel'], input[type='email'], textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 16px; /* ≥16px prevents iOS zoom-on-focus */
  font-weight: 400;
  transition: border-color 0.2s;
}
textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #4a4740; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--gold); }
input[aria-invalid='true'] { border-bottom-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); }
.field-error:empty { display: none; }

.form-error {
  padding: 10px 0 10px 14px;
  border-left: 1px solid var(--danger);
  color: #f0b5aa;
  font-size: 14px;
}
.form-error a { color: #fff; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Photos */
.dropzone {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 6px;
  padding: 18px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--gold); background: var(--gold-tint); }
.dropzone.is-dragging * { pointer-events: none; }
.dropzone-title { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.dropzone-hint { font-size: 12.5px; color: var(--faint); }
.sr-only:focus-visible + .dropzone { outline: 1px solid var(--gold); outline-offset: 3px; }
.sr-only:disabled + .dropzone { opacity: 0.5; cursor: progress; }
.photo-message { font-size: 12.5px; color: var(--gold-light); }
.photo-message:empty { display: none; }
.photo-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-list:empty { display: none; }
@media (min-width: 640px) { .photo-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--tile); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo img.is-broken { visibility: hidden; }
.photo--uploading img { opacity: 0.55; }
.photo--error { border-color: var(--danger); }
.photo--error img { opacity: 0.35; }
.photo-status { position: absolute; left: 6px; bottom: 9px; max-width: calc(100% - 12px); font-size: 11px; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.photo-status:empty { display: none; }
.photo-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, 0.5); }
.photo-progress > span { display: block; height: 100%; background: var(--gold); transition: width 0.2s linear; }
.photo--done .photo-progress, .photo--error .photo-progress { display: none; }
.photo--done::after { content: ''; position: absolute; left: 6px; bottom: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.photo-remove, .photo-retry { position: absolute; border: 0; background: rgba(0, 0, 0, 0.75); color: var(--text); }
.photo-remove { top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; font-size: 1rem; line-height: 1; }
.photo-retry { top: 50%; left: 50%; transform: translate(-50%, -60%); padding: 4px 10px; border: 1px solid var(--gold); border-radius: 2px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Success ---------- */
.success { margin-top: 48px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.success:focus { outline: none; }
.success-logo { width: 72px; height: 72px; }
.success-title { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; }
.success-message { color: var(--muted); font-weight: 300; max-width: 44ch; }
.success-actions { display: grid; gap: 10px; width: 100%; max-width: 320px; margin-top: 14px; }

/* ---------- Footer spacing & fallbacks ---------- */
.panel--estimate { padding-bottom: 56px; }

.fatal, .noscript {
  max-width: 560px;
  margin: 40px auto;
  padding: 28px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  text-align: center;
}
.fatal h1 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 8px; }
.fatal p { color: var(--muted); }
.fatal details { margin-top: 16px; font-size: 13px; color: var(--faint); text-align: left; }
.fatal summary { cursor: pointer; }

/* Hover feedback only where a real pointer can hover (avoids "stuck" hover after taps on phones). */
@media (hover: hover) {
  .vehicle:hover { border-color: var(--line-strong); }
  .vehicle.is-selected:hover { border-color: var(--gold); }
  .choice:hover { background: rgba(255, 255, 255, 0.015); }
  .seg:hover span { color: var(--text); }
  .seg.is-selected:hover span { color: var(--gold-light); }
  .btn-gold:hover:not(:disabled) { filter: brightness(1.07); }
  .btn-ghost:hover { border-color: var(--muted); }
}

/* Print / "Save as PDF": the estimate in dark ink on white paper. */
@media print {
  :root {
    --bg: #ffffff; --surface: #ffffff; --tile: #ffffff;
    --text: #111111; --muted: #444444; --faint: #666666;
    --line: #dddddd; --line-strong: #bbbbbb; --gold-line: #c9a227;
  }
  body { background: #ffffff; color: #111111; min-height: 0; }
  .progress, .navbar, .link-back, .request, .success-actions { display: none !important; }
  .masthead::after { display: none; }
  .panel--estimate { margin-top: 28px; padding-bottom: 0; }
  .quote { box-shadow: none; background: #ffffff; break-inside: avoid; }
  .quote-total-value { background: none; color: #8a6d12; -webkit-text-fill-color: #8a6d12; }
  .quote-brand, .quote-review-title, .group-title { color: #8a6d12; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
