/* ============================================================
   BUILD YOUR QUOTE — VISUAL LAYER
   Loaded after quote.css on the public builder only.

   Everything here is scoped to .quote-page (and the two dialogs
   that page owns), so the admin surfaces that share quote.css —
   .admin and every .qa-* class — are untouched.

   It adds depth, contrast and motion on top of the existing
   markup. It introduces no new IDs or classes that quote.js
   looks for, and changes no element it reads or writes.
   ============================================================ */

/* ---------- 1. Tokens ---------------------------------------- */

.quote-page {
  --qe-bg: #09090a;
  --qe-surface: #141416;
  --qe-surface-2: #1b1b1f;
  --qe-surface-3: #242429;
  --qe-line: rgba(255, 255, 255, .09);
  --qe-line-2: rgba(255, 255, 255, .16);
  --qe-line-3: rgba(255, 255, 255, .28);

  --qe-accent: #ff3b4d;          /* bright: text, borders, glow on dark */
  --qe-accent-solid: #d41f2e;    /* carries white text */
  --qe-accent-weak: rgba(224, 36, 52, .12);
  --qe-accent-line: rgba(255, 59, 77, .42);

  --qe-ink: #f5f5f3;
  --qe-ink-2: #cacac6;
  --qe-muted: #93938e;

  --qe-r: 12px;
  --qe-r-sm: 8px;
  --qe-ease: cubic-bezier(.22, .61, .36, 1);
  --qe-spring: cubic-bezier(.34, 1.3, .54, 1);

  --qe-shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 40px rgba(0, 0, 0, .35);
  --qe-shadow-lg: 0 10px 30px rgba(0, 0, 0, .5), 0 36px 80px rgba(0, 0, 0, .45);

  /* Existing variables, re-pointed so untouched rules pick up the new palette. */
  --q-surface: var(--qe-surface);
  --q-surface2: var(--qe-surface-2);
  --q-line: var(--qe-line);
  --q-accent: var(--qe-accent);
  --q-muted: var(--qe-muted);

  background: var(--qe-bg);
}

/* ---------- 2. Page atmosphere -------------------------------
   One fixed, non-interactive backdrop: a faint engineering grid
   with a warm pool of light behind the hero. It replaces a flat
   black field with something that has depth and a light source. */

.quote-page .grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(130% 90% at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 10%, transparent 70%);
}
.quote-page::before {
  content: '';
  position: fixed;
  z-index: 0;
  top: -340px;
  left: 50%;
  width: min(1200px, 130vw);
  height: 760px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(224, 36, 52, .16), transparent 70%);
  filter: blur(14px);
}
/* Only the in-flow content needs lifting above the fixed backdrop. This must
   NOT be a blanket `.quote-page > *` rule: the site header is position:fixed
   (top:0, z-index:100) and setting position:relative on it drops it out of
   the viewport and into the document flow. Everything else that sits above
   the backdrop — the header, skip link, mobile total bar, dialogs and the
   live region — is already positioned with its own z-index. */
.quote-page > main,
.quote-page > .q-footer { position: relative; z-index: 1; }

/* ---------- 3. Hero ------------------------------------------ */

.quote-page .q-hero .display { letter-spacing: -.03em; }
.quote-page .q-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--qe-accent);
  letter-spacing: .19em;
}
.quote-page .q-hero .eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--qe-accent);
}
.quote-page .q-hero .lede { color: var(--qe-ink-2); }
.quote-page .q-hero-note {
  border-left: 0;
  position: relative;
  padding: 20px 0 20px 30px;
}
.quote-page .q-hero-note::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--qe-accent), transparent);
}
.quote-page .q-hero-note p { color: var(--qe-ink-2); }

/* ---------- 4. Journey stepper --------------------------------
   The connecting rules fill in as each step becomes current, so
   progress through the builder is visible rather than implied. */

.quote-page .q-journey {
  border: 1px solid var(--qe-line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--qe-surface-2), var(--qe-surface));
  padding: 14px 26px;
  margin-bottom: 34px;
  box-shadow: var(--qe-shadow);
  overflow-x: auto;
  scrollbar-width: none;
}
.quote-page .q-journey::-webkit-scrollbar { display: none; }
.quote-page .q-journey span { white-space: nowrap; color: var(--qe-muted); transition: color .3s var(--qe-ease); }
/* inline-block, not a bare flex item: below 520px quote.css switches these
   steps to display:block, where width/height on an inline box is ignored and
   the dot would collapse into a sliver across the step number. */
.quote-page .q-journey span::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--qe-line-3);
  flex: 0 0 7px;
  transition: background .3s var(--qe-ease), box-shadow .3s var(--qe-ease), transform .3s var(--qe-spring);
}
/* In the flex row the parent's gap already spaces it. */
.quote-page .q-journey span { gap: 0; }
.quote-page .q-journey span::before { margin-right: 9px; }
.quote-page .q-journey .is-current { color: var(--qe-ink); }
.quote-page .q-journey .is-current::before {
  background: var(--qe-accent);
  box-shadow: 0 0 0 4px rgba(255, 59, 77, .18);
  transform: scale(1.15);
}
.quote-page .q-journey .is-current b { color: var(--qe-ink); font-weight: 700; }
.quote-page .q-journey i {
  background: linear-gradient(90deg, var(--qe-accent), var(--qe-line));
  background-size: var(--fill, 0%) 100%;
  background-repeat: no-repeat;
  background-color: var(--qe-line);
  transition: background-size .5s var(--qe-ease);
}

/* ---------- 5. Contact gate ---------------------------------- */

.quote-page .q-contact-gate {
  border-radius: var(--qe-r);
  background: linear-gradient(170deg, var(--qe-surface-2), var(--qe-surface));
  border-color: var(--qe-line-2);
  box-shadow: var(--qe-shadow);
  position: relative;
  overflow: hidden;
  padding: 26px 30px 30px;
}
.quote-page .q-contact-gate::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--qe-accent), rgba(255, 59, 77, 0) 70%);
}
.quote-page .q-gate-heading h2 { letter-spacing: -.02em; }
.quote-page .q-gate-heading > span {
  border: 1px solid var(--qe-line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  background: var(--qe-surface-3);
}
.quote-page .q-gate-grid :is(input, select) {
  background: var(--qe-bg);
  border-color: var(--qe-line-2);
  border-radius: var(--qe-r-sm);
  transition: border-color .18s var(--qe-ease), box-shadow .18s var(--qe-ease), background .18s;
}
.quote-page .q-gate-grid :is(input, select):hover { border-color: var(--qe-line-3); }
.quote-page .q-gate-grid :is(input, select):focus {
  outline: none;
  border-color: var(--qe-accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 77, .2);
  background: var(--qe-surface);
}
.quote-page .q-gate-known {
  background: var(--qe-accent-weak);
  border-color: var(--qe-accent-line);
  border-left-width: 3px;
}

/* The strip shown once contact details are confirmed. */
.quote-page .q-contact-strip {
  border-radius: 999px;
  border-color: var(--qe-line-2);
  background: linear-gradient(180deg, var(--qe-surface-2), var(--qe-surface));
  box-shadow: var(--qe-shadow);
  padding: 14px 24px;
}
.quote-page .q-contact-strip p { display: flex; align-items: center; gap: 10px; }
.quote-page .q-contact-strip p::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, .16);
}

/* ---------- 6. Filters + search ------------------------------- */

.quote-page .q-filters {
  gap: 7px;
  padding-bottom: 2px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
}
.quote-page .q-filters::-webkit-scrollbar { display: none; }
.quote-page .q-filters button {
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  background: var(--qe-surface-2);
  border-color: var(--qe-line);
  color: var(--qe-ink-2);
  font-weight: 600;
  transition: background .2s var(--qe-ease), border-color .2s, color .2s, transform .2s var(--qe-spring);
}
.quote-page .q-filters button:hover {
  background: var(--qe-surface-3);
  border-color: var(--qe-line-3);
  color: var(--qe-ink);
  transform: translateY(-1px);
}
.quote-page .q-filters button.is-active {
  background: var(--qe-ink);
  border-color: var(--qe-ink);
  color: #0b0b0c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

.quote-page .q-search {
  max-width: 320px;
  border: 1px solid var(--qe-line-2);
  border-radius: 999px;
  background: var(--qe-surface-2);
  padding: 2px 16px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.quote-page .q-search:focus-within {
  border-color: var(--qe-accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 77, .18);
  background: var(--qe-surface);
}
.quote-page .q-search input { border-bottom: 0; padding: 11px 0; }
/* The wrapper carries the focus indicator, so the input must not draw a
   second ring inside it. */
.quote-page .q-search input:focus-visible { outline: none; }
.quote-page #q-visible-count {
  border: 1px solid var(--qe-line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--qe-surface-2);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- 7. Group headings --------------------------------- */

.quote-page .q-feature-group { margin-bottom: 46px; }
.quote-page .q-feature-head {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--qe-line-2);
}
.quote-page .q-feature-head h3 {
  font-size: 25px;
  letter-spacing: -.025em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-page .q-feature-head h3::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--qe-accent);
  flex: 0 0 9px;
}
.quote-page .q-feature-head p { color: var(--qe-muted); font-size: 15px; line-height: 1.75; margin-top: 10px; }
.quote-page .q-group-head h4 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--qe-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.quote-page .q-group-head h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--qe-line);
}
.quote-page .q-category-description,
.quote-page .q-subcategory-description { color: var(--qe-muted); line-height: 1.75; }
.quote-page .q-direct-label,
.quote-page .q-subcategory-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--qe-muted);
}

/* ---------- 8. Service cards ----------------------------------
   The main surface of the page. Layered fill, a lit top edge, a
   lift on hover, and a red edge + tinted wash when selected. */

.quote-page .q-service {
  position: relative;
  overflow: hidden;
  border-radius: var(--qe-r);
  border-color: var(--qe-line-2);
  background: linear-gradient(168deg, var(--qe-surface-2) 0%, var(--qe-surface) 60%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: border-color .22s var(--qe-ease), background .22s var(--qe-ease),
              transform .22s var(--qe-spring), box-shadow .22s var(--qe-ease);
}
/* Lit top edge: reads as a light source rather than a flat border. */
.quote-page .q-service::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  pointer-events: none;
}
/* Red edge that wipes in on selection. */
.quote-page .q-service::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--qe-accent), var(--qe-accent-solid));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--qe-ease);
}
.quote-page .q-service:hover {
  border-color: var(--qe-line-3);
  transform: translateY(-3px);
  box-shadow: var(--qe-shadow);
}
.quote-page .q-service.is-selected {
  border-color: var(--qe-accent-line);
  background:
    radial-gradient(90% 100% at 0% 0%, rgba(224, 36, 52, .13), transparent 60%),
    linear-gradient(168deg, var(--qe-surface-2), var(--qe-surface));
}
.quote-page .q-service.is-selected::before { transform: scaleY(1); }

/* The effort label is a sentence ("Task-based · no hours needed"), so it stays
   sentence case — upper-casing it wraps to two shouty lines. */
.quote-page .q-service-type {
  display: inline-block;
  border: 1px solid var(--qe-line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--qe-muted);
  background: var(--qe-surface-3);
}
.quote-page .q-service.is-selected .q-service-type {
  border-color: var(--qe-accent-line);
  color: #ffb3ba;
  background: var(--qe-accent-weak);
}
.quote-page .q-service :is(h5, h6) {
  font-size: 18px;
  letter-spacing: -.015em;
  line-height: 1.35;
  color: var(--qe-ink);
}
.quote-page .q-service > p { color: var(--qe-ink-2); font-size: 14.5px; line-height: 1.8; }

.quote-page .q-requires,
.quote-page .q-service-minimum {
  border-left: 2px solid var(--qe-accent-line);
  background: var(--qe-accent-weak);
  border-radius: 0 var(--qe-r-sm) var(--qe-r-sm) 0;
  padding: 10px 13px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #e3b6bb;
}
.quote-page .q-service-roles { color: var(--qe-muted); font-size: 13px; line-height: 1.75; }
.quote-page .q-roles-label { color: var(--qe-ink-2); font-weight: 600; }

.quote-page .q-service-bottom { border-top: 1px solid var(--qe-line); padding-top: 18px; }
.quote-page .q-service-bottom strong {
  font-size: 22px;
  letter-spacing: -.025em;
  color: var(--qe-ink);
  font-variant-numeric: tabular-nums;
  display: block;
  transition: color .22s var(--qe-ease);
}
.quote-page .q-service.is-selected .q-service-bottom strong { color: #ff9aa4; }
.quote-page .q-service-bottom small { color: var(--qe-muted); font-size: 12.5px; line-height: 1.6; }

/* Add / Selected / Required control. */
.quote-page .q-select {
  border-radius: 999px;
  min-height: 40px;
  min-width: 86px;
  padding: 9px 17px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--qe-surface-3);
  border-color: var(--qe-line-2);
  color: var(--qe-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .18s var(--qe-ease), border-color .18s, color .18s,
              transform .2s var(--qe-spring), box-shadow .18s;
}
.quote-page .q-select::before {
  content: '+';
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}
.quote-page .q-select:hover {
  background: var(--qe-ink);
  border-color: var(--qe-ink);
  color: #0b0b0c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.quote-page .q-select.is-selected {
  background: var(--qe-accent-solid);
  border-color: var(--qe-accent-solid);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 31, 46, .34);
}
.quote-page .q-select.is-selected::before { content: '✓'; font-size: 12px; }
.quote-page .q-select.is-selected:hover {
  background: #b81526;
  border-color: #b81526;
  color: #fff;
}
/* "Required" is informational, not an action. */
.quote-page .q-select[aria-pressed="true"]:disabled,
.quote-page .q-service .q-select:not(.is-selected):disabled { opacity: .55; }

/* ---------- 9. Summary panel ---------------------------------- */

.quote-page .q-summary {
  border-radius: var(--qe-r);
  border-color: var(--qe-line-2);
  background: linear-gradient(180deg, var(--qe-surface-2), var(--qe-surface) 240px);
  box-shadow: var(--qe-shadow-lg);
}
.quote-page .q-summary::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--qe-accent), var(--qe-accent-solid), transparent);
  z-index: 2;
}
.quote-page .q-summary { position: sticky; }
.quote-page .q-summary-head {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(224, 36, 52, .2), transparent 62%),
    linear-gradient(180deg, var(--qe-surface-3), transparent);
  border-bottom-color: var(--qe-line-2);
}
.quote-page .q-summary-head h2 { letter-spacing: -.025em; }
.quote-page .q-summary-meta { color: var(--qe-muted); }
.quote-page #q-selected-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--qe-line);
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--qe-surface-3);
  font-weight: 600;
  color: var(--qe-ink-2);
  transition: transform .3s var(--qe-spring), background .25s, border-color .25s, color .25s;
}
.quote-page #q-selected-count.qe-bump { transform: scale(1.07); }
.quote-page #q-selected-count.qe-has {
  background: var(--qe-accent-weak);
  border-color: var(--qe-accent-line);
  color: #ffb3ba;
}

.quote-page .q-lines { scrollbar-color: var(--qe-line-3) transparent; }
.quote-page .q-lines::-webkit-scrollbar { width: 9px; }
.quote-page .q-lines::-webkit-scrollbar-thumb {
  background: var(--qe-line-3);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
.quote-page .q-line {
  border-bottom-color: var(--qe-line);
  border-radius: var(--qe-r-sm);
  padding: 16px 10px;
  margin: 0 -10px;
  transition: background .18s var(--qe-ease);
  animation: qe-line-in .32s var(--qe-ease) both;
}
.quote-page .q-line:hover { background: rgba(255, 255, 255, .03); }
@keyframes qe-line-in { from { opacity: 0; transform: translateY(-5px); } }
.quote-page .q-line-top > strong { color: var(--qe-ink); font-size: 14.5px; }
.quote-page .q-line-remove {
  border-radius: 50%;
  min-width: 28px;
  min-height: 28px;
  transition: background .16s, color .16s, transform .2s var(--qe-spring);
}
.quote-page .q-line-remove:hover {
  background: var(--qe-accent-weak);
  color: var(--qe-accent);
  transform: rotate(90deg);
}
.quote-page .q-line-bottom input {
  background: var(--qe-bg);
  border-color: var(--qe-line-2);
  border-radius: var(--qe-r-sm);
  min-height: 34px;
  font-variant-numeric: tabular-nums;
  transition: border-color .16s, box-shadow .16s;
}
.quote-page .q-line-bottom input:focus {
  outline: none;
  border-color: var(--qe-accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 77, .18);
}
.quote-page .q-line-bottom > strong { font-variant-numeric: tabular-nums; color: var(--qe-ink); }
.quote-page .q-required-tag {
  display: inline-block;
  border: 1px solid var(--qe-accent-line);
  background: var(--qe-accent-weak);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ffb3ba;
}

.quote-page .q-total { border-top-color: var(--qe-line-2); }
.quote-page .q-total > strong {
  font-size: 34px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--qe-ink);
  transition: transform .3s var(--qe-spring), color .3s var(--qe-ease);
}
.quote-page .q-total > strong.qe-bump { transform: scale(1.05); color: #ff9aa4; }

.quote-page .q-minimum-rule {
  border-radius: var(--qe-r-sm);
  padding: 9px 12px;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.6;
}
.quote-page .q-minimum-rule.is-met { background: rgba(61, 220, 132, .09); color: #9fe0bb; }
.quote-page .q-minimum-rule.is-short { background: var(--qe-accent-weak); color: #ffb3ba; }

.quote-page .q-summary > .q-primary {
  border-radius: 999px;
  min-height: 52px;
  justify-content: center;
  gap: 10px;
  font-size: 15px !important;
  box-shadow: 0 6px 20px rgba(212, 31, 46, .32);
  transition: background .18s, transform .2s var(--qe-spring), box-shadow .2s;
}
.quote-page .q-summary > .q-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 31, 46, .42);
}
.quote-page .q-reassure { color: var(--qe-muted); }

/* ---------- 10. Buttons (page-wide) --------------------------- */

.quote-page .q-primary,
.quote-page .q-secondary { border-radius: 999px; font-weight: 700; }
.quote-page .q-primary {
  background: var(--qe-accent-solid);
  border-color: var(--qe-accent-solid);
  box-shadow: 0 4px 16px rgba(212, 31, 46, .3);
  transition: background .18s, border-color .18s, transform .2s var(--qe-spring), box-shadow .2s;
}
.quote-page .q-primary:not(:disabled):hover {
  background: #b81526;
  border-color: #b81526;
  transform: translateY(-2px);
  box-shadow: 0 9px 26px rgba(212, 31, 46, .4);
}
.quote-page .q-secondary {
  background: var(--qe-surface-3);
  border-color: var(--qe-line-2);
  transition: background .18s, border-color .18s, transform .2s var(--qe-spring);
}
.quote-page .q-secondary:not(:disabled):hover {
  background: var(--qe-surface-2);
  border-color: var(--qe-line-3);
  transform: translateY(-2px);
}
.quote-page .q-text-btn { transition: color .18s; }

/* ---------- 11. Mobile total bar ------------------------------
   Upgraded to a floating card that clears the iOS home indicator. */

@media (max-width: 800px) {
  .quote-page .q-mobile-total {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--qe-line-2);
    background: rgba(20, 20, 22, .9);
    backdrop-filter: saturate(1.5) blur(16px);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    box-shadow: var(--qe-shadow-lg);
    margin-bottom: env(safe-area-inset-bottom, 0px);
    animation: qe-rise .4s var(--qe-spring) both;
  }
  .quote-page .q-mobile-total strong {
    font-size: 21px;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--qe-ink);
  }
  .quote-page .q-mobile-total > span { color: var(--qe-muted); gap: 1px; }
  .quote-page .q-mobile-total button {
    border-radius: 999px;
    min-height: 44px;
    padding: 11px 20px;
    font-weight: 700;
    background: var(--qe-accent-solid);
    border-color: var(--qe-accent-solid);
    color: #fff;
  }
  .quote-page .q-footer { margin-bottom: 96px; }
}
@keyframes qe-rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 12. Closing section + footer ---------------------- */

.quote-page .q-next { border-top-color: var(--qe-line-2); }
.quote-page .q-next-grid article {
  border: 1px solid var(--qe-line);
  border-radius: var(--qe-r);
  background: linear-gradient(168deg, var(--qe-surface-2), var(--qe-surface));
  padding: 26px 24px;
  transition: border-color .22s var(--qe-ease), transform .22s var(--qe-spring), box-shadow .22s;
}
.quote-page .q-next-grid article:hover {
  border-color: var(--qe-line-3);
  transform: translateY(-3px);
  box-shadow: var(--qe-shadow);
}
.quote-page .q-next-grid article > span {
  color: var(--qe-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.quote-page .q-next-grid h3 { font-size: 19px; letter-spacing: -.015em; }
.quote-page .q-next-grid p:not(.q-kicker) { color: var(--qe-ink-2); }
.quote-page .q-footer { border-top-color: var(--qe-line-2); }

/* ---------- 13. Dialogs --------------------------------------- */

.q-dialog {
  border-radius: 16px;
  border-color: var(--qe-line-2, rgba(255, 255, 255, .16));
  background: linear-gradient(180deg, #1b1b1f, #141416 300px);
  box-shadow: 0 30px 110px rgba(0, 0, 0, .7);
}
.q-dialog::backdrop { background: rgba(6, 6, 8, .76); backdrop-filter: blur(7px); }
.q-dialog[open] { animation: qe-dialog-in .3s var(--qe-spring) both; }
@keyframes qe-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.q-dialog .q-close {
  border-radius: 50%;
  transition: background .16s, color .16s, transform .2s var(--qe-spring);
}
.q-dialog .q-close:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: rotate(90deg); }
.q-dialog .q-dep-line { border-bottom-color: rgba(255, 255, 255, .09); }
.q-dialog .q-ack {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .18s, background .18s;
}
.q-dialog .q-ack:has(input:checked) {
  border-color: rgba(255, 59, 77, .42);
  background: rgba(224, 36, 52, .1);
}
.q-dialog .q-ack input { accent-color: #d41f2e; width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; }
.q-dialog .q-success { text-align: center; }

/* ---------- 14. Reveal on scroll ------------------------------ */

.quote-page [data-qe-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--qe-ease), transform .45s var(--qe-ease);
  transition-delay: var(--qe-delay, 0ms);
}
.quote-page [data-qe-reveal].qe-in { opacity: 1; transform: none; }

/* ---------- 15. Responsive ------------------------------------ */

/* Tablet (601–800px): the summary drops below the catalogue, so the cards
   get the full width — two columns there instead of one very wide card.
   Between 801 and 1250 the summary still sits alongside, leaving the
   catalogue column too narrow to split, so quote.css's single column stands.
   The .quote-page prefix is needed to outrank quote.css's later max-800 rule. */
@media (min-width: 601px) and (max-width: 800px) {
  .quote-page .q-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1250px) {
  .quote-page .q-journey { padding: 12px 18px; }
}
@media (max-width: 800px) {
  .quote-page .q-hero-note { display: none; }
  .quote-page .q-contact-gate { padding: 22px; }
  .quote-page .q-summary { position: static; }
  .quote-page .q-search { max-width: none; }
  .quote-page .q-search-wrap { flex-wrap: wrap; gap: 12px; }
  .quote-page .q-feature-head h3 { font-size: 22px; }
}
@media (max-width: 520px) {
  .quote-page .q-journey {
    border-radius: var(--qe-r);
    padding: 14px 18px;
    gap: 10px;
  }
  .quote-page .q-journey span { line-height: 2; }
  .quote-page .q-service { padding: 20px 18px 18px; }
  .quote-page .q-service :is(h5, h6) { font-size: 17px; }
  .quote-page .q-service-bottom { flex-wrap: wrap; gap: 14px; }
  .quote-page .q-service-bottom > div { flex: 1 1 100%; }
  .quote-page .q-select { width: 100%; min-height: 46px; }
  .quote-page .q-total > strong { font-size: 30px; }
  .quote-page .q-contact-strip { border-radius: var(--qe-r); }
}

/* ---------- 16. Motion preferences ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  .quote-page [data-qe-reveal] { opacity: 1 !important; transform: none !important; }
  .quote-page *, .q-dialog * { animation: none !important; }
  .quote-page .q-service:hover,
  .quote-page .q-next-grid article:hover,
  .quote-page .q-select:hover,
  .quote-page .q-primary:hover { transform: none !important; }
}
