/* ============================================================
   DentKings — Instant Estimate wizard
   (builds on css/style.css design tokens)
   ============================================================ */

/* ---------- document scroll (CarBodyLab-style) ----------
   NO locked 100svh shell. The page scrolls normally; the keyboard overlays
   and iOS scrolls the focused field into view. No white dead panel.
   Hero video is ONLY a fixed decorative layer — never in document flow. */
html {
  height: auto;
  /* clip (not hidden) so sticky car is not broken by overflow-x */
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #faf8f4;
}
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}
.quote-page {
  box-sizing: border-box;
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  height: auto !important;
  max-height: none !important;
  /* override homepage flex app-shell from style.css */
  display: block !important;
  overflow: visible;
  background: transparent;
  position: relative;
}

/* Full-bleed hero video — fixed wallpaper only (out of flow).
   Use z-index:0 (not -1) so the clip stays inside the iframe and does not
   fall behind the parent page through a transparent overlay. */
.quote-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #e8ecef;
}
.quote-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.quote-bg-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.72) 0%, rgba(250, 248, 244, 0.55) 40%, rgba(250, 248, 244, 0.7) 100%);
}

/* Skeleton must stay fixed and leave no space after boot */
.quote-page > .q-skeleton {
  position: fixed !important;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}
.q-ready .q-skeleton,
body.q-ready .q-skeleton {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.quote-main {
  position: relative;
  z-index: 1;
  display: block;
  overflow: visible;
  min-height: 0;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: transparent;
}
.quote-page .site-footer {
  position: relative;
  z-index: 1;
}

/* No homepage section banding under the wizard */
.quote-page #main > section,
.quote-page .wizard-section {
  background: transparent !important;
}

/* Full site header on quote page stays on top */
.quote-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.quote-topbar {
  position: sticky;
  top: var(--header-h, 4.75rem);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  padding: 0.45rem clamp(1rem, 3vw, 2rem);
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.quote-topbar-strip {
  /* lives under main nav; brand removed from this strip */
}
.quote-home {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(25, 20, 16, 0.07);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.quote-home svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.quote-home:hover {
  color: var(--orange-deep);
  border-color: rgba(var(--orange-rgb), 0.45);
  transform: translateY(-1px);
}
.quote-brand { display: flex; flex: none; }
.quote-brand img { width: 46px; height: 46px; object-fit: contain; }

.quote-topbar-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.quote-topbar-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}
.quote-progressbar {
  height: 4px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.quote-progressbar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-bright), var(--orange));
  transition: width 0.5s cubic-bezier(0.3, 0.8, 0.3, 1);
}

/* leave room for the host page's floating close button */
body.framed .quote-live { margin-right: 3rem; }

.quote-live {
  flex: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.quote-live span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
}
.quote-live strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  color: var(--orange-deep);
  transition: transform 0.15s ease;
  white-space: nowrap;
}
.quote-live.bump strong { transform: scale(1.12); }

.wizard-section {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(0.8rem, 2vh, 1.25rem) clamp(0.8rem, 2vw, 1.4rem) clamp(1.4rem, 3vh, 2rem);
  background: transparent; /* no outer white rectangle — only the card */
}

/* ---------- progress ---------- */
.wiz-progress {
  list-style: none;
  display: flex;
  margin: 0.4rem 0 1.1rem;
  counter-reset: step;
}
.wiz-progress li {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.wiz-progress li:focus-visible {
  outline: none;
}
.wiz-progress li:focus-visible i {
  box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.35);
}
.wiz-progress li:hover i {
  border-color: var(--orange);
  transform: scale(1.06);
}
.wiz-progress li:active i {
  transform: scale(0.96);
}
.wiz-progress li::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line-soft);
  z-index: 0;
}
.wiz-progress li:first-child::before { display: none; }
.wiz-progress li i {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 2px solid var(--line-soft);
  color: var(--muted);
  border-radius: var(--radius-xs, 12px);
  transition: all 0.25s ease;
}
.wiz-progress li.current { color: var(--orange-deep); }
.wiz-progress li.current i {
  background: linear-gradient(120deg, var(--orange-bright), var(--orange));
  border-color: var(--orange);
  color: #fff;
}
.wiz-progress li.done i {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--orange-bright);
}
.wiz-progress li.done::before,
.wiz-progress li.current::before { background: var(--orange); }

/* ---------- card (solid form — video is only the page wallpaper) ---------- */
.wizard-card {
  scroll-margin-top: 96px;
  position: relative;
  background: var(--panel, #fff);
  border: var(--border-card, 1px solid rgba(25, 20, 16, 0.08));
  border-radius: var(--radius-lg, 28px);
  box-shadow: var(--shadow-card-hover, 0 18px 44px rgba(25, 20, 16, 0.12));
  padding: clamp(1.25rem, 2.5vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* MUST stay visible — overflow:hidden kills position:sticky on the car */
  overflow: visible;
}
.wiz-step {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: step-in 0.4s ease both;
}
.wiz-step[hidden] { display: none; }

@media (min-width: 861px) {
  .wizard-section:has(.wiz-step[data-step="1"]:not([hidden])),
  .wizard-section:has(.wiz-step[data-step="2"]:not([hidden])) {
    max-width: 580px;
  }
  .wizard-section:has(.wiz-step[data-step="3"]:not([hidden])) {
    max-width: 860px;
  }

  /* Compact contact layout: names share a row; phone and email stay full-width. */
  .wiz-step[data-step="1"] .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .wiz-step[data-step="1"] .form-row + .form-row {
    grid-template-columns: 1fr;
  }
  .wiz-step[data-step="1"] .field {
    gap: 0.3rem;
  }
  .wiz-step[data-step="1"] .field input {
    padding-block: 0.62rem;
  }

  /* Vehicle step follows the same narrow, vertical rhythm. */
  .wiz-step[data-step="2"] .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

@keyframes step-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wiz-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
}
.wiz-step-title {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  flex: 1 1 12rem;
  margin: 0;
  min-width: 0;
}
.wiz-step-sub { color: var(--muted); margin-top: -0.35rem; }

/* Clear whole form — labeled so it's obvious */
.wiz-restart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(25, 20, 16, 0.06);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.wiz-restart svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.wiz-restart:hover {
  color: var(--orange-deep);
  border-color: rgba(var(--orange-rgb), 0.45);
  background: rgba(var(--orange-rgb), 0.06);
  box-shadow: 0 6px 18px rgba(var(--orange-rgb), 0.12);
}
.wiz-restart:active { transform: scale(0.98); }
.wiz-restart:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.field label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.7;
}
.field-hint { font-size: 0.78rem; color: var(--orange-deep); }

.form-row-3 { grid-template-columns: 0.8fr 1.1fr 1.1fr; }

.linklike {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-deep);
  text-decoration: underline;
  cursor: pointer;
}
.linklike:hover { color: var(--orange); }

/* ---------- photo tips ---------- */
.photo-tips {
  background: var(--panel-warm);
  border: var(--border-card, 1px solid rgba(25, 20, 16, 0.08));
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md, 22px);
  padding: 1rem 1.2rem;
}
.photo-tips h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.photo-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.photo-tips li::before {
  content: "→";
  color: var(--orange);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ---------- panel picker ---------- */
.picker-grid {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

/* Car diagram stays pinned on the LEFT while panel forms scroll */
.picker-car {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-h, 4.75rem) + 3.1rem); /* under sticky header + estimate strip */
  z-index: 5;
  align-self: start;
  max-height: calc(100dvh - var(--header-h, 4.75rem) - 3.5rem);
  overflow: visible;
  padding: 0.4rem;
  margin: 0;
  border-radius: var(--radius-md, 22px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(25, 20, 16, 0.1);
}

.car-svg {
  width: 100%;
  height: auto;
  display: block;
}
.car-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md, 22px);
  user-select: none;
  -webkit-user-select: none;
  border: var(--border-card, 1px solid rgba(25, 20, 16, 0.08));
  box-shadow: var(--shadow-card, 0 10px 30px rgba(25, 20, 16, 0.07));
}

/* ── tap spots over the car, Price-A-Dent style ── */
.pad-stage { position: relative; }
.pad-spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 16.5%;
  min-width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #16181d;
  color: #16181d;
  font-family: var(--font-body);
  font-size: clamp(0.52rem, 2.4vw, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 22, 26, 0.14);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pad-spot[data-panel="lrail"], .pad-spot[data-panel="rrail"] { font-size: clamp(0.46rem, 2.1vw, 0.58rem); }
.pad-spot:hover { transform: translate(-50%, -50%) scale(1.07); border-color: var(--orange); color: var(--orange); }
.pad-spot.selected {
  background: var(--panel-color, var(--orange));
  border-color: var(--panel-color, var(--orange-deep));
  color: #fff;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--panel-color, var(--orange)) 28%, transparent),
    0 4px 12px rgba(20, 22, 26, 0.16);
}
.pad-spot.selected:hover {
  color: #fff;
  filter: brightness(1.06);
}
/* Beam / glow on the panel you're currently scrolling past */
.pad-spot.selected.is-active,
.pad-spot.is-flash {
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 4;
  animation: panel-beam 1.15s ease-in-out infinite;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--panel-color, var(--orange)) 55%, transparent),
    0 0 22px 6px color-mix(in srgb, var(--panel-color, var(--orange)) 45%, transparent),
    0 8px 18px rgba(20, 22, 26, 0.22);
}
.pad-spot.selected:not(.is-active) {
  opacity: 0.72;
  filter: saturate(0.85);
}
@keyframes panel-beam {
  0%, 100% {
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--panel-color, var(--orange)) 40%, transparent),
      0 0 14px 2px color-mix(in srgb, var(--panel-color, var(--orange)) 30%, transparent),
      0 6px 14px rgba(20, 22, 26, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 7px color-mix(in srgb, var(--panel-color, var(--orange)) 55%, transparent),
      0 0 28px 8px color-mix(in srgb, var(--panel-color, var(--orange)) 50%, transparent),
      0 10px 20px rgba(20, 22, 26, 0.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pad-spot.selected.is-active { animation: none; }
}

.picker-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.picker-hint svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

/* selected panel cards */
.picker-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.picker-empty {
  color: var(--muted);
  font-size: 0.95rem;
  border: 1.5px dashed var(--line-soft);
  border-radius: var(--radius-md, 22px);
  padding: 2rem 1.2rem;
  text-align: center;
}

.panel-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-card {
  container-type: inline-size;
  position: relative;
  z-index: 0;
  border: var(--border-card, 1px solid rgba(25, 20, 16, 0.08));
  border-left: 4px solid var(--panel-color, var(--orange));
  border-radius: var(--radius-md, 22px);
  background: var(--paper);
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-card, 0 10px 30px rgba(25, 20, 16, 0.07));
  scroll-margin-top: 5.5rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.panel-card.is-active {
  z-index: 1;
  transform: translateY(-2px) scale(1.008);
  border-color: color-mix(in srgb, var(--panel-color, var(--orange)) 58%, #fff);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--panel-color, var(--orange)) 32%, transparent),
    0 18px 42px rgba(25, 20, 16, 0.16);
  background: #fff;
  animation: panel-card-breathe 4s ease-in-out infinite;
}
.panel-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
@keyframes panel-card-breathe {
  0%, 100% {
    transform: translateY(-2px) scale(1.008);
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--panel-color, var(--orange)) 28%, transparent),
      0 16px 38px rgba(25, 20, 16, 0.13);
  }
  50% {
    transform: translateY(-3px) scale(1.014);
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--panel-color, var(--orange)) 36%, transparent),
      0 20px 46px rgba(25, 20, 16, 0.17);
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel-card.is-active { animation: none; }
}
.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.panel-card-badge {
  flex: none;
  min-width: 2.6rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 0;
  background: var(--panel-color, var(--orange));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--panel-color, var(--orange)) 35%, transparent);
}
.panel-card-badge:hover { filter: brightness(1.06); }
.panel-card-head h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.panel-card-price {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--panel-color, var(--orange-deep));
  white-space: nowrap;
}
.panel-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex: none;
}
.panel-card-restart,
.panel-card-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  padding: 0.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.panel-card-restart svg {
  width: 17px;
  height: 17px;
  display: block;
}
.panel-card-restart:hover {
  color: var(--orange-deep);
  background: rgba(var(--orange-rgb, 255, 90, 31), 0.1);
}
.panel-card-remove:hover {
  color: #d92f21;
  background: rgba(217, 47, 33, 0.08);
}
.panel-card-remove {
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.estimate-markup-note {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.chip-group { display: flex; flex-direction: column; gap: 0.3rem; }
.chip-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid var(--line-soft);
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--orange); color: var(--orange-deep); }
.chip.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.panel-code {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  vertical-align: 2px;
}
.chip-group-label small { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* size buckets — Coin · Golf · Tennis · Bigger */
.size-buckets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.size-bucket {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.35rem 0.7rem;
  background: #fff;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-md, 22px);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 4px 14px rgba(25, 20, 16, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.size-bucket-icon {
  --icon-scale: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff 0%, var(--paper, #faf8f4) 100%);
  color: var(--ink);
  flex: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(25, 20, 16, 0.06);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
/* glyph itself grows: Coin < Golf < Tennis < Bigger */
.size-bucket-icon svg {
  width: 38px;
  height: 38px;
  display: block;
  transform: scale(var(--icon-scale, 1));
  transform-origin: center;
}
.size-bucket--coin .size-bucket-icon { width: 48px; height: 48px; }
.size-bucket--golf .size-bucket-icon { width: 52px; height: 52px; }
.size-bucket--tennis .size-bucket-icon { width: 56px; height: 56px; }
.size-bucket--bigger .size-bucket-icon { width: 60px; height: 60px; }
.size-bucket-word {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.size-bucket:hover {
  border-color: rgba(var(--orange-rgb), 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(var(--orange-rgb), 0.1);
}
.size-bucket:hover .size-bucket-icon {
  color: var(--orange-deep);
  transform: scale(1.04);
}
.size-bucket.selected {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(var(--orange-rgb), 0.08) 0%, rgba(var(--orange-rgb), 0.03) 100%);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.16), 0 10px 24px rgba(var(--orange-rgb), 0.12);
  color: var(--orange-deep);
}
.size-bucket.selected .size-bucket-icon {
  background: linear-gradient(145deg, var(--orange-bright) 0%, var(--orange) 55%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--orange-rgb), 0.35);
}
.size-bucket:active { transform: translateY(0); }
@media (max-width: 560px) {
  .size-buckets { gap: 0.4rem; }
  .size-bucket { padding: 0.65rem 0.2rem 0.55rem; border-radius: var(--radius-sm, 16px); gap: 0.4rem; }
  .size-bucket-icon svg { width: 32px; height: 32px; }
  .size-bucket--coin .size-bucket-icon { width: 40px; height: 40px; }
  .size-bucket--golf .size-bucket-icon { width: 44px; height: 44px; }
  .size-bucket--tennis .size-bucket-icon { width: 48px; height: 48px; }
  .size-bucket--bigger .size-bucket-icon { width: 52px; height: 52px; }
  .size-bucket-word { font-size: 0.78rem; }
}

/* depth — plain words + the matrix percentages, like the original app */
.depth-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.depth-opt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.65rem 0.3rem;
  background: #fff;
  border: none;
  border-left: 1.5px solid var(--line-soft);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease;
}
.depth-opt:first-child { border-left: none; }
.depth-opt b { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.depth-opt span { font-size: 0.68rem; color: var(--text); }
.depth-opt small { font-size: 0.62rem; color: var(--muted); }
.depth-opt.selected { background: var(--orange); }
.depth-opt.selected b, .depth-opt.selected span { color: #fff; }
.depth-opt.selected small { color: rgba(255, 255, 255, 0.85); }

@container (max-width: 420px) {
  .size-buckets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .size-bucket {
    gap: 0.3rem;
    padding: 0.55rem 0.1rem 0.5rem;
    border-radius: 16px;
  }
  .size-bucket--coin .size-bucket-icon {
    width: 34px;
    height: 34px;
  }
  .size-bucket--golf .size-bucket-icon {
    width: 38px;
    height: 38px;
  }
  .size-bucket--tennis .size-bucket-icon {
    width: 42px;
    height: 42px;
  }
  .size-bucket--bigger .size-bucket-icon {
    width: 46px;
    height: 46px;
  }
  .size-bucket-icon svg {
    width: 28px;
    height: 28px;
  }
  .size-bucket-word {
    font-size: 0.72rem;
  }
  .depth-opt b {
    font-size: 0.72rem;
    letter-spacing: 0;
  }
  .depth-opt span {
    font-size: 0.62rem;
  }
}

/* the Kordon factor sheet */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.factor-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: #fff;
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.factor-chip b { font-size: 0.7rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.factor-chip:hover { border-color: var(--orange); }
.factor-chip.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.factor-chip.selected b { color: var(--orange-bright, #ff8a4d); }

/* Global paint Q sits above the stack of panel cards */
.paint-check {
  margin: 0 0 0.35rem;
  padding: 0.9rem 1rem;
  border: var(--border-card, 1px solid rgba(25, 20, 16, 0.08));
  border-radius: var(--radius-md, 22px);
  background: #fff;
  box-shadow: var(--shadow-card, 0 10px 30px rgba(25, 20, 16, 0.07));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.paint-check[hidden] { display: none !important; }
.paint-check-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.paint-check + .panel-cards {
  margin-top: 0.85rem;
}

.live-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md, 22px);
}
.live-total span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}
.live-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange-bright);
}

/* ---------- estimate step ---------- */
.estimate-hero {
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: clamp(1.6rem, 4vw, 2.4rem) 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md, 22px);
}
.estimate-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange-bright), var(--orange-deep));
}
.estimate-hero-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.estimate-hero-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1;
  color: var(--orange-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}
/* prize applied: old price small & struck on its own line, new price big */
.estimate-hero-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- preferred appointment — mini calendar + time grid ---------- */
.appt-book {
  margin-top: 1.35rem;
  padding: 1.2rem 1.15rem 1.25rem;
  border-radius: var(--radius-md, 28px);
  border: 1px solid var(--line-soft, #eae2d6);
  background: linear-gradient(165deg, rgba(var(--orange-rgb, 255, 107, 51), 0.06) 0%, #fff 48%);
  box-shadow: 0 8px 22px rgba(25, 20, 16, 0.04);
}
.appt-book-head { margin-bottom: 0.95rem; }
.appt-book-title {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.2;
}
.appt-book-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.appt-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.appt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.1rem 1.35rem;
  align-items: start;
}

/* Calendar card */
.appt-cal {
  background: #fff;
  border: 1px solid rgba(25, 20, 16, 0.08);
  border-radius: 20px;
  padding: 0.75rem 0.7rem 0.85rem;
  box-shadow: 0 4px 14px rgba(25, 20, 16, 0.04);
}
.appt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.appt-cal-month {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.appt-cal-nav-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(25, 20, 16, 0.1);
  background: #faf8f4;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.appt-cal-nav-btn svg { width: 16px; height: 16px; }
.appt-cal-nav-btn:hover:not(:disabled) {
  border-color: rgba(var(--orange-rgb, 255, 107, 51), 0.4);
  background: #fff;
}
.appt-cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.appt-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.appt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}
.appt-cal-cell {
  aspect-ratio: 1;
  min-height: 2.15rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.appt-cal-cell.is-muted {
  color: rgba(110, 101, 92, 0.35);
  cursor: default;
  font-weight: 500;
}
.appt-cal-cell.is-disabled {
  color: rgba(110, 101, 92, 0.28);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(110, 101, 92, 0.2);
}
.appt-cal-cell.is-open:hover {
  background: rgba(var(--orange-rgb, 255, 107, 51), 0.12);
  color: var(--orange-deep, #e8541a);
}
.appt-cal-cell.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px rgba(var(--orange-rgb, 255, 107, 51), 0.35);
}
.appt-cal-cell.is-selected {
  background: linear-gradient(140deg, var(--orange-bright, #ff8a55), var(--orange, #ff6b33) 60%, var(--orange-deep, #e8541a));
  color: #fff;
  box-shadow: 0 6px 14px rgba(var(--orange-rgb, 255, 107, 51), 0.3);
}
.appt-cal-selected {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange-deep, #e8541a);
}

/* Time slots — compact 2-col grid */
.appt-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.appt-chip {
  appearance: none;
  border: 1.5px solid rgba(25, 20, 16, 0.12);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 0.7rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.appt-chip:hover:not(:disabled) {
  border-color: rgba(var(--orange-rgb, 255, 107, 51), 0.45);
}
.appt-chip.is-selected {
  border-color: transparent;
  background: linear-gradient(120deg, var(--orange-bright, #ff8a55), var(--orange, #ff6b33) 55%, var(--orange-deep, #e8541a));
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--orange-rgb, 255, 107, 51), 0.28);
}
.appt-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.appt-times .field-hint {
  grid-column: 1 / -1;
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.appt-skip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.35;
}
.appt-skip input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--orange);
  flex: none;
}
.appt-book.is-skipped .appt-layout,
.appt-book.is-skipped .appt-label {
  opacity: 0.4;
  pointer-events: none;
}
.appt-book .field { margin-bottom: 0; }

@media (max-width: 720px) {
  .appt-layout { grid-template-columns: 1fr; gap: 1rem; }
  .appt-times { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .appt-times { grid-template-columns: 1fr 1fr; }
  .appt-cal-cell { min-height: 2rem; font-size: 0.82rem; border-radius: 10px; }
}

.estimate-breakdown {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
}
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}
.breakdown-row + .breakdown-row { border-top: 1px solid var(--line-soft); }
.breakdown-row .bd-panel { font-weight: 600; }
.breakdown-row .bd-desc { color: var(--muted); font-size: 0.82rem; }
.breakdown-row .bd-price { font-weight: 700; color: var(--orange-deep); white-space: nowrap; }

.estimate-warnings { display: flex; flex-direction: column; gap: 0.5rem; }
.estimate-warning {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(var(--orange-rgb), 0.07);
  border-left: 3px solid var(--orange);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text);
}
.estimate-warning svg { width: 18px; height: 18px; flex: none; color: var(--orange-deep); margin-top: 0.1rem; }

/* ---------- wizard nav ---------- */
.wiz-nav .btn[hidden] { display: none; }

.wiz-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.3rem;
}
/* spacer no longer pushes actions to the right — buttons stay centered */
.wiz-nav-spacer { display: none; }
.wiz-nav .btn {
  flex: 0 1 auto;
  min-width: 8.5rem;
  justify-content: center;
  text-align: center;
}

.wiz-success {
  position: relative;
  inset: auto;
  min-height: min(70dvh, 28rem);
  padding: 2rem 1rem 1.5rem;
  z-index: 5;
}
.wizard-card.is-success .wiz-step,
.wizard-card.is-success .wiz-nav {
  display: none !important;
}
.wizard-card.is-success .wiz-success {
  display: flex;
}
.wiz-success-restart {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 18rem;
  min-height: 3rem;
  justify-content: center;
}

.wizard-footnote {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}
.wizard-footnote a { color: var(--orange-deep); font-weight: 600; }

/* Progress dots sit on the video — keep labels readable */
.wiz-progress {
  background: transparent;
  padding: 0.15rem 0.25rem 0.35rem;
}
.wiz-progress li { color: rgba(25, 20, 16, 0.55); }
.wiz-progress li.current { color: var(--orange-deep); }

/* SMS / TCPA consent on personal-info step */
.sms-consent {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.sms-consent a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sms-consent a:hover { color: var(--orange); }

/* ---------- error shake ---------- */
.field select.invalid { border-color: #d92f21; box-shadow: 0 0 0 3px rgba(217, 47, 33, 0.12); }
.picker-grid.invalid .picker-empty { border-color: #d92f21; color: #d92f21; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .form-row-3 { grid-template-columns: 1fr; }
  .picker-grid { grid-template-columns: 1fr; }
}

/*
 * Mobile quote: easier natural scroll (less “locked app cage”),
 * sticky Back/Next still handy, panel colors + jump chips for clarity.
 */
@media (max-width: 860px) {
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .quote-page {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible !important;
    background: transparent;
  }

  .quote-page .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.35rem 0.75rem;
    background: rgba(250, 248, 244, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .quote-page .site-header .brand {
    --brand-h: 4.2rem;
    height: var(--brand-h);
  }
  .quote-page .site-header .brand-logo {
    max-height: var(--brand-h);
    height: var(--brand-h);
    aspect-ratio: 1 / 1;
    width: auto;
  }
  .quote-page .header-cta {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .quote-topbar {
    position: sticky;
    top: var(--header-h, 3.6rem);
    z-index: 90;
    padding: 0.4rem 0.85rem;
    gap: 0.55rem;
    background: rgba(250, 248, 244, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .quote-topbar-title {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .quote-home {
    width: 2.25rem;
    padding-inline: 0;
  }
  .quote-home span { display: none; }
  .quote-live strong { font-size: 1rem; }

  .quote-main {
    overflow: visible;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .wizard-section {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.7rem 1rem;
  }

  .wiz-progress {
    margin: 0.15rem 0 0.55rem;
  }
  .wiz-progress li span { display: none; }
  .wiz-progress li i {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.82rem;
  }

  .wizard-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.95rem 0.9rem 0.85rem;
    border-radius: 22px;
    overflow: visible;
  }

  .wiz-step {
    overflow: visible;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
  }
  .wiz-step-title {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
    line-height: 1.15;
  }
  .wiz-step-sub {
    margin-top: 0;
    font-size: 0.86rem;
    line-height: 1.4;
  }
  .wiz-restart {
    display: inline-flex !important;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 2;
  }
  .wiz-step-head {
    position: relative;
    z-index: 2;
  }

  /* Mobile: the complete car stays visible as a compact sticky mini-map. */
  .picker-car {
    position: sticky;
    top: calc(var(--header-h, 3.6rem) + 3.15rem);
    z-index: 12;
    max-width: 100%;
    height: 340px;
    width: 100%;
    margin: 0 auto 0.65rem;
    padding: 0.5rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line-soft);
    box-shadow: 0 10px 28px rgba(25, 20, 16, 0.13);
    transition: height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.45s ease;
  }
  .picker-car .pad-stage {
    width: 175px;
    flex: none;
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .picker-car .car-img {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    display: block;
  }
  .picker-car .picker-hint {
    display: flex;
    max-width: 10rem;
    font-size: 0.78rem;
    margin-top: 0.55rem;
    text-align: left;
  }
  .picker-car .pad-spot {
    min-width: 30px;
    border-width: 2px;
    font-size: 0.46rem;
  }
  .picker-grid.has-selection .picker-car {
    height: 310px;
    padding-block: 0.45rem;
  }
  .picker-grid.has-selection .picker-car .pad-stage {
    width: 160px;
  }
  .picker-grid.has-selection .picker-car .pad-spot {
    min-width: 32px;
    border-width: 2px;
    font-size: 0.46rem;
  }
  .picker-grid.has-selection .picker-car .picker-hint {
    display: none;
  }
  body.framed .picker-car {
    position: sticky;
    top: 3.15rem;
  }

  .form-row,
  .form-row-3 { gap: 0.55rem; }
  .quote-page .field input,
  .quote-page .field select,
  .quote-page .field textarea {
    min-height: 2.85rem;
    font-size: 16px;
  }

  .wiz-nav {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin: 0.35rem -0.15rem 0;
    padding: 0.7rem 0.35rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 28%, rgba(255, 255, 255, 0.72) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 0;
    box-shadow: none;
    gap: 0.55rem;
    justify-content: center;
  }
  .wiz-nav .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 3rem;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(25, 20, 16, 0.1);
  }

  .quote-page .site-footer { display: none !important; }
  .wizard-footnote {
    margin-top: 0.75rem;
    font-size: 0.8rem;
  }

  .panel-photos-demo {
    height: 118px;
    max-height: 118px;
  }
  .panel-card {
    padding: 0.8rem 0.85rem 0.9rem;
    gap: 0.55rem;
    scroll-margin-top: 7.5rem;
  }
  .panel-card-head {
    cursor: pointer;
    min-height: 2.5rem;
  }
  .panel-card.is-collapsed {
    transform: none;
    animation: none;
    border-color: var(--line-soft);
    box-shadow: 0 5px 16px rgba(25, 20, 16, 0.07);
    background: rgba(255, 255, 255, 0.94);
  }
  .panel-card.is-collapsed .panel-card-body {
    display: none;
  }
  .panel-card.is-collapsed .panel-card-head::after {
    content: "⌄";
    margin-left: 0.15rem;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
  }
  .panel-card-body {
    gap: 0.55rem;
  }
  .paint-check { padding: 0.75rem 0.85rem; }
}

/* Photos nest inside the same panel card (one continuous unit) */
.panel-photos {
  margin: 0.15rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.panel-photos-toggle { display: none; }
.panel-photos-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 860px) {
  .panel-photos-toggle {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid rgba(var(--orange-rgb), 0.35);
    border-radius: 999px;
    background: rgba(var(--orange-rgb), 0.06);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;
  }
  .panel-photos-toggle b {
    font-size: 1.2rem;
    line-height: 1;
  }
  .panel-photos.is-collapsed .panel-photos-content {
    display: none;
  }
}
.panel-photos-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}
.panel-photos-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.panel-photos-demo {
  position: relative;
  width: 100%;
  height: 132px; /* compact, but full card width */
  max-height: 132px;
  border-radius: var(--radius-sm, 16px);
  overflow: hidden;
  background: #f0ebe3;
  border: var(--border-card, 1px solid rgba(25, 20, 16, 0.08));
}
.panel-photos-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the whole frame */
  object-position: center;
  background: #eae4da;
}
/* Take photo / From library */
.panel-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.panel-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-md, 22px);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1.5px solid var(--line-soft);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.panel-photo-btn svg { width: 22px; height: 22px; flex: none; }
.panel-photo-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.panel-photo-btn:not(:disabled):active { transform: scale(0.98); }
.panel-photo-btn-cam {
  background: linear-gradient(120deg, var(--orange-bright), var(--orange) 55%, var(--orange-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--orange-rgb), 0.28);
}
.panel-photo-btn-cam:not(:disabled):hover { filter: brightness(1.05); }
.panel-photo-btn-lib {
  background: #fff;
  color: var(--ink);
  border-color: rgba(25, 20, 16, 0.14);
}
.panel-photo-btn-lib:not(:disabled):hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.panel-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 2px dashed rgba(var(--orange-rgb), 0.45);
  border-radius: var(--radius-md, 22px);
  background: rgba(var(--orange-rgb), 0.04);
  color: var(--orange-deep);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.panel-dropzone:hover,
.panel-dropzone.dragover {
  border-color: var(--orange);
  background: rgba(var(--orange-rgb), 0.09);
}
.panel-dropzone.is-full { opacity: 0.5; pointer-events: none; }
.panel-dropzone svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
}
.panel-dropzone-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--orange-deep);
}
.panel-dropzone-hint {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.panel-thumbs { margin-top: 0.15rem; }

/* Phone: keep step head compact (title + Start over wrap, no tall gap) */
@media (max-width: 860px) {
  .wiz-step-head {
    align-items: center;
    gap: 0.45rem 0.65rem;
  }
  .wiz-step-title {
    flex: 1 1 auto; /* width only — never 12rem height in a wrap layout */
    min-width: min(100%, 12rem);
  }
  .wiz-restart {
    margin-left: 0;
  }
}

/* Framed overlay — form at top, video only behind as wallpaper */
html.framed,
html.framed body.quote-page,
body.framed {
  --header-h: 0px !important;
}
html.framed .site-header,
body.framed .site-header {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
html.framed .skip-link,
body.framed .skip-link {
  display: none !important;
}
body.framed .site-footer { display: none !important; }
body.framed .wizard-section {
  padding: 0.45rem 0.75rem 0.85rem;
  margin-top: 0;
}
body.framed .quote-topbar,
html.framed .quote-topbar {
  position: sticky;
  top: 0 !important;
  margin-top: 0 !important;
  z-index: 20;
  background: rgba(250, 248, 244, 0.94);
}
body.framed .quote-main {
  padding-top: 0;
  margin-top: 0;
}
body.framed .wiz-progress {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}
body.framed .picker-car {
  top: 3.4rem;
  max-height: calc(100dvh - 4rem);
}
body.framed .wiz-nav {
  position: sticky;
  bottom: 0;
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(250, 248, 244, 0) 0%, rgba(250, 248, 244, 0.92) 30%, #faf8f4 100%);
}

@media (max-width: 860px) {
  html.framed .quote-topbar,
  body.framed .quote-topbar {
    top: 0 !important;
  }
}

/* ── Camera overlay (react-camera-pro style) ── */
body.cam-open { overflow: hidden !important; }
.cam-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
}
.cam-overlay[hidden] { display: none !important; }
.cam-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}
.cam-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.cam-error {
  position: absolute;
  left: 1rem; right: 1rem; top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 16, 12, 0.88);
  color: #fff;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  z-index: 2;
}
.cam-chrome {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.cam-chrome-top {
  top: 0;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
.cam-chrome-bottom {
  bottom: 0;
  justify-content: space-between;
  align-items: center;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.cam-chrome-top {
  justify-content: flex-end;
  gap: 0.75rem;
}
.cam-chrome-top .cam-hint {
  margin-right: auto;
  text-align: left;
}
.cam-hint {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
}
.cam-btn-spacer {
  width: 44px;
  height: 44px;
  flex: none;
  visibility: hidden;
}
.cam-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.16);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex: none;
}
.cam-btn:active { transform: scale(0.94); }
.cam-close { font-size: 1.25rem; line-height: 1; }
.cam-shutter {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: transparent;
  padding: 5px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
}
.cam-shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.12s ease, background 0.12s ease;
}
.cam-shutter:active span {
  transform: scale(0.88);
  background: var(--orange, #f85000);
}

/* Full site footer on quote page */
.quote-page .site-footer {
  margin-top: 2rem;
}
