/* ==========================================================================
   Apex Garage Doors
   Colors from the logo: navy door, lime roofline, white letters.
   Navy is the frame of the site (header, footer, dark bands); lime marks the
   one main action on each screen (build a quote, approve). Concrete grey
   is the quiet background, like a driveway.
   Type: Barlow (from highway signage) for reading, Barlow Condensed for
   headings and prices, set tight and heavy like a stencil on a door.
   ========================================================================== */

:root {
  --navy: #264374;
  --navy-deep: #182D52;
  --navy-ink: #10203D;
  --lime: #ABD368;
  --lime-bright: #C2E58A;
  --lime-deep: #4A7314;      /* lime as text on white, 5.3:1 */
  --concrete: #F0F1EC;
  --concrete-2: #E3E5DE;
  --white: #FFFFFF;
  --text: #172338;
  --muted: #55607A;
  --line: rgba(38, 67, 116, 0.16);
  --danger: #B3261E;

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --max: 80rem;
  --header-h: 5rem;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.6rem 1rem; background: var(--white); color: var(--navy); }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, .h2, .h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; letter-spacing: -0.005em; color: var(--navy-ink); }
.display { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); line-height: 0.95; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1; }
.h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.1; }
.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 38rem; }
.on-dark .lede, .on-dark p { color: rgba(255, 255, 255, 0.82); }
.on-dark .h2, .on-dark .h3, .on-dark .display { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lime { background: var(--lime); color: var(--navy-ink); }
.btn--lime:hover { background: var(--lime-bright); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.link { color: var(--navy); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--lime); }
.link:hover { text-decoration-color: var(--navy); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy-ink); color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.4rem; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar a:hover { color: var(--lime); }
.topbar-links { display: flex; gap: 1.5rem; }
@media (max-width: 640px) { .topbar-area { display: none; } .topbar .wrap { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: var(--white); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 3.6rem; width: auto; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a { padding: 0.5rem 0.8rem; border-radius: var(--radius); font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, 0.88); }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--lime); }
.header-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; padding: 0.55rem 0.9rem; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius); background: none; color: var(--white); font-weight: 600; cursor: pointer; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; }
}
@media (max-width: 560px) {
  :root { --header-h: 4.25rem; }
  .brand img { height: 2.9rem; }
  .header-cta { padding: 0 0.9rem; min-height: 2.6rem; font-size: 0.95rem; }
  .header-inner { gap: 0.75rem; }
}
@media (max-width: 380px) { .header-cta .long { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); min-height: min(88vh, 46rem); display: grid; align-items: end; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 32, 61, 0.92) 0%, rgba(16, 32, 61, 0.78) 34%, rgba(16, 32, 61, 0.15) 66%, rgba(16, 32, 61, 0) 100%),
    linear-gradient(0deg, rgba(16, 32, 61, 0.55) 0%, rgba(16, 32, 61, 0) 40%);
}
.hero-inner { width: 100%; padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-copy { max-width: 36rem; }
.hero .display { color: var(--white); }
.hero .lede { color: rgba(255, 255, 255, 0.86); margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }
.hero-note strong { color: var(--lime); font-weight: 600; }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(16, 32, 61, 0.96) 0%, rgba(16, 32, 61, 0.86) 55%, rgba(16, 32, 61, 0.35) 100%); }
  .hero-inner { padding-top: 12rem; }
}

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.section--concrete { background: var(--concrete); }
.section--navy { background: var(--navy); color: var(--white); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }

/* ---------- design-it-first (style picker) ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.designer-stage {
  background: var(--white); border-radius: var(--radius); padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  box-shadow: 0 1px 0 var(--concrete-2), 0 30px 60px -30px rgba(16, 32, 61, 0.35);
}
.designer-stage svg { width: 100%; height: auto; }
.chip-label { margin-top: 1.75rem; font-weight: 600; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.chip {
  padding: 0.5rem 0.95rem; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); font-weight: 500; font-size: 0.95rem; cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.swatch {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; background: var(--c);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--navy); }
.designer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.designer-cta small { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) { .designer { grid-template-columns: 1fr; } .designer-stage { order: -1; } }

/* ---------- three paths: homes and commercial ---------- */
.paths { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; }
.path { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.path-media { aspect-ratio: 16 / 10; background: var(--navy-deep); overflow: hidden; }
.path-media img, .path-media svg { width: 100%; height: 100%; object-fit: cover; }
.path-body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.5rem 1.5rem 1.75rem; flex: 1; }
.path-body p { color: var(--muted); }
.ticks { display: grid; gap: 0.45rem; margin-top: 0.25rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.5em; width: 0.8rem; height: 0.45rem;
  border-left: 2.5px solid var(--lime-deep); border-bottom: 2.5px solid var(--lime-deep); transform: rotate(-45deg);
}
.path-body .link { margin-top: auto; padding-top: 0.5rem; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

/* ---------- service area ---------- */
.area { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.area-copy { display: grid; gap: 1.25rem; }
.area-groups { display: grid; gap: 1.5rem; margin-top: 0.75rem; }
.area-groups .h3 { font-size: 1.3rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--navy); }
.area-groups ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-top: 0.6rem; color: var(--text); }
.area-map { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.area-map-canvas { height: min(calc(100vh - var(--header-h) - 5rem), 40rem); min-height: 22rem; border-radius: var(--radius); overflow: hidden; background: var(--concrete-2); box-shadow: 0 30px 60px -30px rgba(16, 32, 61, 0.35); }
.area-fallback { padding: 1.5rem; color: var(--muted); }
.area-map-canvas .leaflet-tile-pane { filter: grayscale(1) contrast(0.95) brightness(1.03); }
.leaflet-container { font-family: "Barlow", sans-serif; }
.leaflet-tooltip.map-label { padding: 0.15rem 0.45rem; border: 0; border-radius: 4px; background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.8rem; box-shadow: none; }
.leaflet-tooltip.map-label::before { display: none; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } .area-map { position: static; } .area-map-canvas { height: 26rem; } }

/* ---------- repairs ---------- */
.repair { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.repair-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.repair-list li { padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.repair-list strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--white); }
.repair-list span { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; }
.repair .hero-actions { margin-top: 1.75rem; }
@media (max-width: 860px) { .repair { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .repair-list { grid-template-columns: 1fr; } }

/* ---------- who + brands ---------- */
.who { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--navy); }
.who li { padding: 1.25rem 1rem 0 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--navy-ink); line-height: 1.15; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr 1fr; } .who li { padding-bottom: 0.75rem; } }
.brands { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; align-items: baseline; }
.brands ul { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; }
.brands li { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .brands { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- owner ---------- */
.owner { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.owner-photo { border-radius: var(--radius); overflow: hidden; background: var(--concrete-2); }
.owner-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.owner-copy { display: grid; gap: 1.1rem; max-width: 38rem; }
.owner-sign { font-weight: 600; color: var(--navy-ink); }
.owner-sign span { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 760px) { .owner { grid-template-columns: 1fr; } .owner-photo { max-width: 18rem; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.contact-direct { display: grid; gap: 0.35rem; margin-top: 2rem; }
.contact-direct a { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 700; color: var(--white); text-decoration: none; line-height: 1.2; }
.contact-direct a.small { font-family: "Barlow", sans-serif; font-size: 1.05rem; font-weight: 500; color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.35rem; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(171, 211, 104, 0.55); }
.field .err { display: none; color: var(--danger); font-size: 0.875rem; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--danger); }
.field.is-bad .err { display: block; }
.on-dark .field label { color: var(--white); }
.on-dark .field input, .on-dark .field select, .on-dark .field textarea { border-color: transparent; }
.on-dark .field .err { color: #FFB4AB; }
.on-dark .field.is-bad input, .on-dark .field.is-bad select, .on-dark .field.is-bad textarea { border-color: #FFB4AB; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-status { font-weight: 600; }
.form-status.is-ok { color: var(--lime); }
.form-status.is-bad { color: #FFB4AB; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--navy-ink); color: rgba(255, 255, 255, 0.75); padding-block: 3rem 2rem; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 3rem; align-items: start; }
.footer img { height: 4.25rem; width: auto; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer-copy { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Quote builder (/quote/)
   ========================================================================== */
.q-intro { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(1.5rem, 1rem + 1vw, 2.25rem); display: grid; gap: 0.9rem; }
.q-intro .h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); }
.q-sample {
  display: block; max-width: 46rem; margin-top: 0.5rem;
  padding: 0.85rem 1rem; border-radius: var(--radius); background: #FFF4D6; color: #5C4300; font-size: 0.95rem;
  border: 1px solid #F0D58A;
}
.q-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; padding-bottom: 6rem; }

/* stage: the door, the doors list, the running total */
.q-stage { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.q-doors { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.q-door-tab {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.95rem;
}
.q-door-tab button { border: 0; background: none; cursor: pointer; padding: 0.45rem 0.4rem 0.45rem 0.95rem; font-weight: 600; }
.q-door-tab button.q-x { padding: 0.45rem 0.75rem 0.45rem 0.3rem; color: var(--muted); font-weight: 400; }
.q-door-tab button.q-x:hover { color: var(--danger); }
.q-door-tab.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.q-door-tab.is-on button.q-x { color: rgba(255, 255, 255, 0.7); }
.q-add { border: 1.5px dashed var(--navy); border-radius: 999px; background: none; color: var(--navy); padding: 0.45rem 1rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.q-add:hover { background: var(--concrete); }
.q-preview { background: var(--concrete); border-radius: var(--radius); padding: clamp(0.5rem, 0.3rem + 1vw, 1rem); }
.q-preview svg { width: 100%; height: auto; max-height: 52vh; }
.q-caption { color: var(--muted); font-size: 0.98rem; }
.q-total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--navy); color: var(--white);
}
.q-total span { font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.q-total strong { font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; line-height: 1; font-weight: 700; }
.q-total small { flex-basis: 100%; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.q-total a { color: var(--lime); font-weight: 600; }

/* steps */
.q-form { display: grid; gap: 2.75rem; }
.q-step { display: grid; gap: 1rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.q-step legend { display: flex; align-items: center; gap: 0.75rem; padding: 0; margin-bottom: 0.35rem; font-family: "Barlow Condensed", sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--navy-ink); line-height: 1.1; }
.q-num {
  display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--lime); color: var(--navy-ink); font-size: 1.15rem;
}
.q-help { color: var(--muted); font-size: 0.98rem; margin-top: -0.4rem; }
.q-for { font-weight: 600; color: var(--navy); }

.q-opts { display: grid; gap: 0.6rem; }
.q-opts--sizes { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.q-opts--styles { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.q-opts--colors { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.q-group-label { grid-column: 1 / -1; font-weight: 600; font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

.q-opt { position: relative; display: grid; gap: 0.2rem; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.q-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-opt:hover { border-color: rgba(38, 67, 116, 0.5); }
.q-opt:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.q-opt.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #F6F8FC; }
.q-opt.is-on::after {
  content: ""; position: absolute; bottom: 0.8rem; right: 0.85rem; width: 0.75rem; height: 0.42rem;
  border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg);
}
.q-opt-name { font-weight: 600; line-height: 1.3; }
.q-opt-desc:last-child, .q-opt > .q-opt-price:last-child { padding-right: 1.4rem; }
.q-opt-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.q-opt-price { font-weight: 600; font-size: 0.95rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.q-opt-price.is-zero { color: var(--lime-deep); }
.q-opt--size { text-align: left; }
.q-opt--size .q-opt-name { font-family: "Barlow Condensed", sans-serif; font-size: 1.45rem; font-weight: 700; }
.q-opt--style .q-mini { margin: -0.15rem -0.25rem 0.4rem; border-radius: 4px; overflow: hidden; background: var(--concrete); }
.q-opt--style .q-mini svg { width: 100%; height: 4.5rem; }
.q-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); margin-bottom: 0.25rem; }
.q-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem; }

/* extras: steppers + checkboxes */
.q-extras { display: grid; gap: 0.6rem; }
.q-extra { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); }
.q-extra .q-opt-desc { display: block; }
.q-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.q-stepper button { width: 2.4rem; height: 2.4rem; border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--navy); border-radius: 50%; }
.q-stepper button:hover { background: var(--concrete); }
.q-stepper button:disabled { color: var(--concrete-2); cursor: default; background: none; }
.q-stepper output { min-width: 1.6rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-check { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.q-check input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--navy); flex: none; }

/* review */
.q-review { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius); background: var(--concrete); gap: 1.25rem; }
.q-lines { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.q-lines th, .q-lines td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.q-lines th { font-weight: 600; color: var(--muted); font-size: 0.85rem; width: 4.5rem; padding-right: 0.75rem; }
.q-lines td.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.q-lines tfoot td, .q-lines tfoot th { border-bottom: 0; padding-top: 0.75rem; }
.q-lines tfoot .grand td { font-family: "Barlow Condensed", sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--navy-ink); }
.q-fine { color: var(--muted); font-size: 0.9rem; }
.q-review .form-grid { margin-top: 0.5rem; }
.q-approve { padding: 1rem; border-radius: var(--radius); background: var(--white); border: 1.5px solid var(--line); }
.q-approve.is-bad { border-color: var(--danger); }
.q-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.q-submit .btn { min-width: 14rem; }
.q-status { font-weight: 600; }
.q-status.is-bad { color: var(--danger); }

/* done */
.q-done { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.q-done-card { max-width: 44rem; display: grid; gap: 1.1rem; }
.q-done-no { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--lime-deep); }
.q-done .hero-actions { margin-top: 0.75rem; }

/* phone: total bar at the bottom of the screen */
.q-bar { display: none; }
@media (max-width: 900px) {
  .q-layout { grid-template-columns: 1fr; }
  .q-stage { position: static; }
  .q-preview svg { max-height: 40vh; }
  .q-stage .q-total { display: none; }
  .q-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--navy); color: var(--white); box-shadow: 0 -6px 20px rgba(16, 32, 61, 0.25);
  }
  .q-bar-door { flex: none; width: 4.2rem; }
  .q-bar-door svg { width: 100%; height: auto; border-radius: 2px; }
  .q-bar-sum { margin-right: auto; }
  .q-bar span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
  .q-bar strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.7rem; line-height: 1; }
  .q-bar .btn { min-height: 2.75rem; padding: 0 1.1rem; }
  .footer { padding-bottom: 6rem; }
}
