/* Quote engine design layer (2026-11-04). Loaded after style.css + quote-recovery.css.
   Goals: one grid, one type scale, 44px+ targets, no layout shift between steps,
   sticky Back/Next, title-only add-on tiles, mobile and desktop tuned separately.
   Scoped to #quoteWizard so no other page is touched. */

#quote.section-quote {
  overflow: clip;              /* not hidden: keeps position:sticky working */
  align-items: flex-start;     /* no vertical re-centering when step height changes */
}

#quoteWizard {
  --qd-ink: #0c234a;
  --qd-text: #1b2a44;
  --qd-muted: #5a6a82;          /* 5.3:1 on white */
  --qd-line: rgba(20, 35, 63, 0.14);
  --qd-blue: #2563eb;
  --qd-blue-deep: #1d4ed8;
  --qd-soft: #f4f7fd;
  --qd-pad: 40px;
  --qd-min: 640px;
  --qd-gap: 16px;
  --qd-control: 48px;
  display: flex;
  flex-direction: column;
  min-height: var(--qd-min);
  padding: var(--qd-pad);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#quoteWizard .quote-step { min-height: 0; }
#quoteWizard .quote-step.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
#quoteWizard .quote-step.active > * { flex-shrink: 0; }

/* ---------- Type scale: 28 / 16 / 14 / 12 ---------- */
#quoteWizard .step-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--qd-ink);
  text-wrap: balance;
}
#quoteWizard .step-sub {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--qd-muted);
  margin: 0 0 20px;
  text-wrap: balance;
}
#quoteWizard .step-title + :not(.step-sub) { margin-top: 14px; }
#quoteWizard label,
#quoteWizard .input-group label,
#quoteWizard .addon-category-label,
#quoteWizard .plan-section-title,
#quoteWizard .input-group-label,
#quoteWizard .cdp-time-label,
#quoteWizard .last-clean-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--qd-muted);
  margin: 0 0 8px;
}
#quoteWizard p, #quoteWizard li { text-wrap: pretty; }

/* ---------- Progress ---------- */
#quoteWizard .quote-progress { margin: 0 0 24px; }
/* Step announcement: visually hidden on desktop (still read by assistive tech), shown on phones */
#quoteWizard .quote-step-count {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
#quoteWizard .quote-steps-indicator { padding-top: 14px; gap: 8px; }
#quoteWizard .step-dot {
  width: 44px; height: 44px; flex: none;
  font-family: var(--font-body);
  font-size: .875rem;
}
#quoteWizard .step-dot.is-disabled { opacity: .45; }

/* ---------- Controls: one height, one radius ---------- */
#quoteWizard input[type="text"],
#quoteWizard input[type="email"],
#quoteWizard input[type="tel"],
#quoteWizard input[type="number"],
#quoteWizard select {
  min-height: var(--qd-control);
  font-size: 1rem;            /* 16px: no iOS zoom */
  box-sizing: border-box;
}
#quoteWizard .btn { min-height: var(--qd-control); }
#quoteWizard :focus-visible {
  outline: 3px solid var(--qd-blue);
  outline-offset: 2px;
}
#quoteWizard .btn-back, #quoteWizard .btn-next { padding-inline: 22px; }

/* ---------- Nav: always the last row; sticky so it never moves ---------- */
#quoteWizard .step-nav {
  margin-top: auto;
  padding-top: 28px;
  gap: 12px;
}

/* ---------- Step 1 ---------- */
#quoteWizard .service-select-grid { gap: var(--qd-gap); }
#quoteWizard .service-select-card { padding: 24px 22px; }
#quoteWizard .service-select-card .ssc-name { font-size: 1.25rem; }
#quoteWizard .ssc-desc { font-size: .9375rem; }
#quoteWizard .ssc-includes li { font-size: .875rem; line-height: 1.45; }
#quoteWizard .last-clean-question { margin: 20px 0 0; padding: 0; border: 0; background: none; }
#quoteWizard .last-clean-options { gap: 12px; }
#quoteWizard .last-clean-btn { min-height: var(--qd-control); font-size: .9375rem; }
/* reserved slot: the recommendation never pushes content */
#quoteWizard .recommend-slot { min-height: 76px; margin-top: 14px; }
#quoteWizard .recommend-slot .deep-clean-disclaimer {
  margin: 0; padding: 12px 16px; gap: 0;
  align-items: center;
}
#quoteWizard .recommend-slot .disclaimer-content strong { display: block; font-size: .9375rem; }
#quoteWizard .recommend-slot .disclaimer-content p { margin: 2px 0 0; font-size: .875rem; line-height: 1.35; }

/* ---------- Step 2 ---------- */
#quoteWizard .contact-capture-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
#quoteWizard .contact-capture-grid > .input-group { grid-column: span 6; margin: 0; min-width: 0; }
#quoteWizard .contact-capture-grid > .input-group-full { grid-column: 1 / -1; }
#quoteWizard .contact-capture-grid > .input-group-half { grid-column: span 3; }
#quoteWizard .phone-entry { display: flex; gap: 8px; }
#quoteWizard .phone-entry select { width: 92px; flex: none; }
#quoteWizard .phone-entry input { flex: 1; min-width: 0; }

#quoteWizard .contact-confirm-actions { display: flex; gap: 12px; }
#quoteWizard .channel-btn { min-height: var(--qd-control); flex: 1; }
#quoteWizard .quote-verify-fallback { font-size: .875rem; margin: 8px 0 0; }
#quoteWizard .quote-verify-fallback a { display: inline-block; padding: 12px 0; }
#quoteWizard .inline-code-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: stretch; }
#quoteWizard .inline-code-row[style*="display:none"], #quoteWizard .inline-code-row[style*="display: none"] { display: none !important; }
#quoteWizard .inline-code-row input { flex: 1; min-width: 0; }
#quoteWizard .inline-code-row .verify-action { min-height: var(--qd-control); padding-inline: 16px; }
#quoteWizard .zip-feedback:empty { display: none; }

/* ---------- Step 3 ---------- */
#quoteWizard .home-details-grid { gap: 20px; margin-top: 8px; }
#quoteWizard .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#quoteWizard .stepper { display: flex; align-items: stretch; }
#quoteWizard .stepper-btn { width: var(--qd-control); height: var(--qd-control); flex: none; }
#quoteWizard .stepper input { height: var(--qd-control); flex: 1; min-width: 0; text-align: center; }
#quoteWizard .input-slider-wrap { padding: 0; background: none; border: 0; }
#quoteWizard .input-slider-wrap input[type="range"] { height: 44px; width: 100%; border: 0; padding: 0; margin: 0; background: linear-gradient(#c9d6ec, #c9d6ec) center / 100% 4px no-repeat; }
#quoteWizard .input-row > .input-group { min-width: 0; }
#quoteWizard .stepper { width: 100%; }
#quoteWizard .stepper input { width: 0; }

/* ---------- Step 4: add-ons = title-only tiles; detail opens on tap ---------- */
#quoteWizard .addons-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  grid-auto-flow: row dense;
}
#quoteWizard .addons-section > .addon-category-label { grid-column: 1 / -1; margin: 10px 0 0; }
#quoteWizard .addons-section > .addon-category-label:first-child { margin-top: 0; }
#quoteWizard .addons-section > .addon-sub-options { grid-column: 1 / -1; }
#quoteWizard .addons-grid-simple { display: contents; }
#quoteWizard .addon-card {
  min-height: 52px;
  padding: 10px 14px;
  margin: 0;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  width: auto;
}
#quoteWizard .addon-card .addon-note { display: none; }
#quoteWizard .addon-card.is-included .addon-note { display: block; font-size: .75rem; }
#quoteWizard .addon-card .addon-name { font-size: .9375rem; font-weight: 600; line-height: 1.25; }
#quoteWizard .addon-card-full { grid-column: 1 / -1; }
#quoteWizard .addon-sub-options { padding: 12px 14px; margin: 0; }
#quoteWizard .addon-sub-options .addon-pricing-note { font-size: .875rem; }
#quoteWizard .addon-sub-options .stepper-btn { width: 44px; height: 44px; }
#quoteWizard .addon-sub-options input[type="number"] { min-height: 44px; }
#quoteWizard .addon-radio-row { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Step 5: plan + date ---------- */
#quoteWizard .booking-type-grid { gap: 12px; display: grid; grid-template-columns: 1fr 1fr; }
#quoteWizard .booking-type-card { padding: 16px; min-height: 76px; }
#quoteWizard .plan-freq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#quoteWizard .plan-freq-card { padding: 14px 10px; min-height: 64px; position: relative; }
#quoteWizard .pf-popular-tag { font-size: .6875rem; }
#quoteWizard .plan-month-note { font-size: .875rem; margin: 0 0 12px; }
#quoteWizard #planConfig { margin-bottom: 16px; }
#quoteWizard .preferred-date-section { margin-top: 20px; }
#quoteWizard .custom-date-picker { padding: 12px; }
#quoteWizard .cdp-header { margin-bottom: 8px; }
#quoteWizard .cdp-nav { width: 44px; height: 44px; font-size: 1.25rem; }
#quoteWizard .cdp-days { gap: 4px; }
#quoteWizard .cdp-weekdays { margin-bottom: 4px; }
#quoteWizard .cdp-day { min-height: 44px; aspect-ratio: auto; font-size: .9375rem; }
#quoteWizard .cdp-time-section { margin-top: 14px; display: block !important; transition: opacity .15s; }
#quoteWizard .cdp-time-section.is-pending { opacity: .4; pointer-events: none; }
#quoteWizard .cdp-time-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#quoteWizard .cdp-time-btn { min-height: 44px; }
#quoteWizard .date-input-hint { font-size: .875rem; margin: 10px 0 0; color: var(--qd-muted); }

/* ---------- Live estimate bar ---------- */
#quoteWizard .live-estimate { margin-top: 20px; padding: 14px 18px; min-height: 60px; }
#quoteWizard .live-label { font-size: .75rem; }
#quoteWizard .live-price { font-size: 1.5rem; font-variant-numeric: tabular-nums; }

/* ---------- Step 6 ---------- */
#quoteWizard .summary-price { font-variant-numeric: tabular-nums; }
#quoteWizard .summary-actions .btn { min-height: 52px; }
#quoteWizard .summary-secondary-actions { display: flex; gap: 8px; }
#quoteWizard .summary-text-action { min-height: 44px; padding-inline: 12px; }
#quoteWizard .quote-send-note { font-size: .875rem; line-height: 1.4; margin: 10px 0; color: var(--qd-muted); }
#quoteWizard .quote-terms-link { display: inline-block; min-height: 44px; padding: 0 4px; }
#quoteWizard .summary-details { margin-top: 16px; border-top: 1px solid var(--qd-line); }
#quoteWizard .summary-details > summary {
  min-height: 48px; display: flex; align-items: center; cursor: pointer;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--qd-blue-deep);
}

/* ---------- Desktop: form left, live price right (steps 4-5) ---------- */
@media (min-width: 1024px) {
  #quoteWizard { --qd-min: 680px; }
  /* Step 5: plan left, date right. Same order, same flow, one balanced row. */
  #quoteWizard #step5.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
    grid-template-rows: auto auto auto 1fr auto;
    align-content: start;
  }
  #quoteWizard #step5.active > .step-title { grid-column: 1 / -1; grid-row: 1; }
  #quoteWizard #step5.active > .booking-type-grid { grid-column: 1; grid-row: 2; margin-top: 0; }
  #quoteWizard #step5.active > #planConfig { grid-column: 1; grid-row: 3; margin-top: 20px; }
  #quoteWizard #step5.active > .preferred-date-section { grid-column: 2; grid-row: 2 / span 3; margin-top: 0; }
  #quoteWizard #step5.active > .live-estimate { display: none; }
  /* reserve the cadence block so choosing a plan never moves the date picker */
  #quoteWizard #step5.active > #planConfig { display: block !important; min-height: 150px; }
  #quoteWizard #step5.active:not(:has(.booking-type-card[data-type="recurring"].active)) > #planConfig > * { visibility: hidden; }
  #quoteWizard #step5.active > .preferred-date-section { align-self: start; }
  #quoteWizard #step5.active > .step-nav { grid-column: 1 / -1; grid-row: 5; }
  #quoteWizard .addons-section, #quoteWizard .addons-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  #quoteWizard .addons-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  #quoteWizard { --qd-pad: 28px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  #quote.section-quote { padding-top: 28px; padding-bottom: 0; margin-top: 0; }
  #quote .section-header-quote { margin-bottom: 18px; }
  #quoteWizard {
    --qd-pad: 12px;
    --qd-min: calc(100svh - 96px);
    border-width: 2px;
  }
  body.page-home #quote #quoteWizard { padding: 16px 12px 0; }
  body.page-home #quote > .container { padding-inline: 8px; }
  #quoteWizard .step-title { font-size: 1.75rem; }
  #quoteWizard .step-sub { margin-bottom: 14px; }
  /* Progress: thin bar + "Step 2 of 6"; numbered pills hidden (Back handles navigation) */
  #quoteWizard .quote-progress { margin-bottom: 16px; }
  #quoteWizard .quote-steps-indicator { display: none; }
  #quoteWizard .quote-step-count {
    position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal;
    display: block; margin: 0; padding-top: 10px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--qd-muted);
  }
  #quoteWizard .quote-progress-bar { height: 4px; border-radius: 2px; }
  #quoteWizard .quote-progress { padding-top: 0; }
  /* One column everywhere except short paired controls */
  #quoteWizard .service-select-grid { grid-template-columns: 1fr; gap: 10px; }
  #quoteWizard .service-select-card { padding: 14px 16px; min-height: 64px; align-items: flex-start; text-align: left; gap: 2px; }
  #quoteWizard .service-select-card .ssc-includes,
  #quoteWizard .service-select-card .ssc-price { display: none !important; }
  #quoteWizard .last-clean-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #quoteWizard .last-clean-btn { padding: 8px 4px; font-size: .875rem; }
  #quoteWizard .recommend-slot { min-height: 72px; }
  #quoteWizard .contact-capture-grid { gap: 12px; }
  #quoteWizard .contact-capture-grid > .input-group { grid-column: 1 / -1; }
  #quoteWizard .contact-capture-grid > .input-group:has(#qCity) { grid-column: span 5; }
  #quoteWizard .contact-capture-grid > .input-group-half:has(#qState) { grid-column: span 3; }
  #quoteWizard .contact-capture-grid > .input-group-half:has(#qZip) { grid-column: span 4; }
  #quoteWizard .addons-section { gap: 8px; }
  #quoteWizard .addon-card { padding: 8px 10px; gap: 8px; }
  #quoteWizard .addon-card .addon-name { font-size: .875rem; }
  #quoteWizard .plan-freq-grid { gap: 8px; }
  #quoteWizard .plan-freq-card .pf-desc { display: none; }
  #quoteWizard .plan-freq-card { min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; }
  #quoteWizard .pf-popular-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 1px 8px; }
  #quoteWizard #planConfig { margin-top: 12px; }
  #quote .section-header-quote .section-title { font-size: 2rem; line-height: 1.05; }
  #quoteWizard .summary-price { font-size: 3rem; }
  #quoteWizard .summary-document-header h4 { font-size: 1.5rem; }
  #quoteWizard .summary-document-kicker { display: none; }
  #quoteWizard .cdp-time-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #quoteWizard .custom-date-picker { padding: 0; }
  #quoteWizard .cdp-days { gap: 1px; }
  #quoteWizard .cdp-header { padding: 0 2px; }
  #quoteWizard .live-estimate { margin-top: 16px; }

  /* Sticky bottom bar */
  #quoteWizard .step-nav {
    position: sticky; bottom: 0; z-index: 5;
    margin: auto -12px 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--qd-line);
    box-shadow: 0 -6px 16px rgba(12, 35, 74, .06);
  }
  #quoteWizard .step-nav > div:empty { display: none; }
  #quoteWizard .step-nav .btn-next { flex: 1; justify-content: center; margin-left: 0; }
  #quoteWizard .step-nav .btn-back { flex: 0 0 auto; }
  #quoteWizard .step-nav .btn { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  #quoteWizard .quote-step { animation: none; }
  /* Hover/press/selection transitions inside the wizard collapse to instant; nothing moves or fades. */
  #quoteWizard, #quoteWizard *, #quoteWizard *::before, #quoteWizard *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


/* =====================================================================
   Round 2 (2026-11-04): price before the ask. Order on screen:
   Service+ZIP > Home > Extras > Plan+date > Estimate > Contact+verify+Send
   (DOM ids are unchanged: #step3 home, #step4 extras, #step5 plan, #step6 estimate, #step2 contact)
   ===================================================================== */

/* Scroll offsets: card top lands just under the sticky site header; room above the sticky bar */
#quoteWizard { scroll-margin-top: calc(var(--nav-height, 72px) + 6px); scroll-padding-bottom: 104px; }
html { scroll-padding-bottom: 104px; }
#quoteWizard input, #quoteWizard select, #quoteWizard textarea,
#quoteWizard .inline-code-row, #quoteWizard .verify-status, #quoteWizard .quote-submit-status { scroll-margin-bottom: 120px; scroll-margin-top: 96px; }
#quoteWizard .step-title:focus, #quoteWizard .step-header h3:focus { outline: none; }
#quoteWizard .step-title:focus-visible, #quoteWizard .step-header h3:focus-visible { outline: 3px solid var(--qd-blue); outline-offset: 4px; }

/* Step 1: ZIP row */
#quoteWizard .zip-row { margin-top: 16px; max-width: 360px; }
#quoteWizard .zip-row input { width: 100%; max-width: 200px; display: block; }
#quoteWizard .zip-feedback { display: block; min-height: 1.4em; margin-top: 6px; font-size: .875rem; line-height: 1.4; }

/* Estimate: two equal-weight price lines */
#quoteWizard .summary-price-block { display: grid; gap: 10px; padding: 8px 0 4px; }
#quoteWizard .summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#quoteWizard .summary-line[hidden] { display: none; }
#quoteWizard .summary-line-label { font-size: 1.0625rem; font-weight: 700; color: var(--qd-ink); }
#quoteWizard .summary-line .summary-price { font-size: 2.5rem; line-height: 1; margin: 0; }
#quoteWizard .summary-range:empty { display: none; }
#quoteWizard .summary-document-kicker, #quoteWizard .summary-review-label,
#quoteWizard .summary-detail-section-next { display: none; }
#quoteWizard .summary-secondary-actions { margin-top: 8px; display: flex; justify-content: center; }
#quoteWizard .summary-details-grid { align-items: start; }
#quoteWizard .summary-detail-section h4 { margin-top: 0; }

/* Contact + send step */
#quoteWizard .send-recap { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--qd-line); background: var(--qd-soft); font-weight: 700; color: var(--qd-ink); font-size: 1rem; line-height: 1.35; }
#quoteWizard .send-recap:empty { display: none; }
#quoteWizard .send-trust { margin: 6px 0 0; text-align: center; font-size: .8125rem; color: var(--qd-muted); white-space: nowrap; }
#quoteWizard .contact-capture-grid > .input-group:has(#qAddress) { grid-column: span 8; }
#quoteWizard .contact-capture-grid > .input-group:has(#qCity) { grid-column: span 4; }
#quoteWizard .contact-capture-grid > .input-group-half:has(#qState) { display: none; }   /* prefilled TX; service area is set by ZIP */
#quoteWizard .contact-capture-grid > .contact-proof-group { margin-top: 0; }
#quoteWizard #step2.is-sent > :not(.summary-actions) { display: none !important; }
#quoteWizard #step2.is-sent { justify-content: flex-start; }
#quoteWizard .step-nav.summary-actions .btn-send { flex: 1; justify-content: center; max-width: 360px; margin-left: auto; }

/* Verify block: nothing moves when a code row or status appears */
#quoteWizard .channel-btn {
  background: #fff !important; color: var(--qd-blue-deep) !important;
  border: 1.5px solid var(--qd-blue) !important; box-shadow: none !important;
}
#quoteWizard .channel-btn:not(.active) { border-color: var(--qd-line) !important; color: var(--qd-muted) !important; }
#quoteWizard .channel-btn[data-state="verified"] { border-color: #1d4ed8 !important; color: #1d4ed8 !important; background: #eff6ff !important; }
#quoteWizard .contact-proof-group:has(#emailVerifyBtn.active) #emailCodeRow[style*="none"],
#quoteWizard .contact-proof-group:has(#phoneVerifyBtn.active) #phoneCodeRow[style*="none"] {
  display: grid !important; visibility: hidden;
}
#quoteWizard .inline-code-row { min-height: 48px; }

/* Add-ons: six most-booked, rest behind one disclosure */
#quoteWizard .addons-more { grid-column: 1 / -1; }
#quoteWizard .addons-more > summary {
  min-height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--qd-blue-deep);
  border: 1px dashed var(--qd-line); border-radius: 8px; list-style: none;
}
#quoteWizard .addons-more > summary::-webkit-details-marker { display: none; }
#quoteWizard .addons-more[open] > summary { margin-bottom: 10px; }
#quoteWizard .addons-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; grid-auto-flow: row dense; }
#quoteWizard .addons-more-grid > .addon-sub-options { grid-column: 1 / -1; }
#quoteWizard .addon-card .addon-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#quoteWizard .addons-home .addon-card .addon-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }

/* Plan chips and calendar craft */
#quoteWizard .plan-freq-card .pf-name { white-space: nowrap; }
#quoteWizard .plan-freq-card .pf-popular-tag { position: static; transform: none; display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; background: none; padding: 0; color: inherit; }
body.page-home #quote #quoteWizard .cdp-day.cdp-day-disabled { color: #9aa7bd !important; opacity: .55; cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
body.page-home #quote #quoteWizard .cdp-day.cdp-day-empty { visibility: hidden; }
#quoteWizard .cdp-day:focus-visible, #quoteWizard .cdp-day:hover:not(.cdp-day-disabled):not(.cdp-day-empty) { outline: 0; }
#quoteWizard .cdp-day:focus-visible { outline: 3px solid var(--qd-blue); outline-offset: -3px; }

/* Slider thumb in the brand blue */
#quoteWizard input[type="range"]::-webkit-slider-thumb { background: var(--qd-blue); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--qd-blue); height: 24px; width: 24px; }
#quoteWizard input[type="range"]::-moz-range-thumb { background: var(--qd-blue); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--qd-blue); height: 24px; width: 24px; }

@media (min-width: 1024px) {
  #quoteWizard { --qd-min: 680px; }
}
@media (max-width: 640px) {
  #quoteWizard { scroll-padding-bottom: 104px; }
  #quoteWizard .addons-more-grid { grid-template-columns: 1fr; }
  #quoteWizard .contact-capture-grid > .input-group:has(#qAddress),
  #quoteWizard .contact-capture-grid > .input-group:has(#qCity) { grid-column: 1 / -1; }
  #quoteWizard .summary-line .summary-price { font-size: 2.25rem; }
  #quoteWizard .send-trust { font-size: .75rem; }
  #quoteWizard .plan-freq-card .pf-popular-tag { font-size: .625rem; }
  #quoteWizard .step-nav.summary-actions .btn-send { max-width: none; }
}

#quoteWizard .step-nav.summary-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 12px; width: auto; }
#quoteWizard .step-nav.summary-actions > .btn { width: auto; }

#quoteWizard .contact-proof-group:has(#emailVerifyBtn.active) #phoneVerifyStatus,
#quoteWizard .contact-proof-group:has(#phoneVerifyBtn.active) #emailVerifyStatus { display: none; }

#quoteWizard .addon-card .addon-name { padding: 0; margin: 0; flex: 1; min-width: 0; }
@media (max-width: 640px) {
  #quoteWizard .summary-line { flex-direction: column; align-items: flex-start; gap: 2px; }
  #quoteWizard .addon-card .addon-name { font-size: .8125rem; }
  #quoteWizard .addons-home .addon-card,
  #quoteWizard .addons-home .addon-card.active {
    padding: 10px 10px !important;
    gap: 8px;
    min-height: 56px;
  }
  #quoteWizard .addons-home .addon-card .addon-name {
    font-size: .875rem !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
  }
}


/* =====================================================================
   Round 3 (2026-11-04)
   ===================================================================== */

/* --- Step 6: verify block is a flex column: code row first (its height is the only reserve),
       status text below it, helper line sits under the email field --- */
#quoteWizard .inline-contact-confirm > .inline-code-row { order: 1; }
#quoteWizard .inline-contact-confirm > .quote-verify-inline-status { order: 2; }
#quoteWizard .inline-contact-confirm > .verify-status { order: 3; }
#quoteWizard .inline-contact-confirm > .verify-launch-row, #quoteWizard .inline-contact-confirm > .verify-meta { order: 4; }
#quoteWizard .inline-contact-confirm > .quote-verify-fallback { order: 5; }
#quoteWizard .quote-verify-inline-status, #quoteWizard .verify-status, #quoteWizard .contact-proof-note {
  margin: 8px 0 0; font-size: .875rem; line-height: 1.35; min-height: 0;
}
#quoteWizard .quote-verify-inline-status:empty, #quoteWizard .verify-status:empty, #quoteWizard .contact-proof-note:empty { display: none; }
#quoteWizard .contact-proof-note { color: var(--qd-muted); }
/* once verified the reserved code row collapses */
#quoteWizard .contact-proof-group #quoteVerifyGate[data-state="verified"] #emailCodeRow[style],
#quoteWizard .contact-proof-group #quoteVerifyGate[data-state="verified"] #phoneCodeRow[style] { display: none !important; }
#quoteWizard .contact-proof-group #quoteVerifyGate[data-state="verified"] ~ .contact-proof-note { display: none; }

/* --- No green: valid/verified is brand blue. Inline check in the field, no separate box --- */
#quoteWizard #qEmail:valid:not(:placeholder-shown), #quoteWizard #qPhone:valid:not(:placeholder-shown) { border-left: 3px solid var(--qd-blue); }
#quoteWizard .contact-capture-grid:has(#emailVerifyBtn[data-state="verified"]) #qEmail,
#quoteWizard .contact-capture-grid:has(#phoneVerifyBtn[data-state="verified"]) #qPhone {
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px;
}
#quoteWizard .channel-btn[data-state="verified"] {
  background: transparent !important; border-color: transparent !important; color: var(--qd-blue-deep) !important; box-shadow: none !important; font-weight: 700;
}
#quoteWizard .channel-btn[data-state="verified"]::before { content: "\2713\00a0"; }
#quoteWizard .zip-feedback { color: var(--qd-blue-deep); }
#quoteWizard .verification-purpose-chip[data-state="verified"], #quoteWizard .verify-block[data-state="verified"], #quoteWizard .quote-verify-gate[data-state="verified"] {
  background: transparent; border-color: var(--qd-line); color: var(--qd-blue-deep);
}

/* --- Step 6 footer: two lines, one left edge; terms is a real link --- */
#quoteWizard #step2 .quote-send-note { margin: 14px 0 0; padding: 0; text-align: left; font-size: .875rem; line-height: 1.4; color: var(--qd-muted); }
#quoteWizard #step2 .quote-terms-link {
  display: inline; min-height: 0; padding: 0; margin: 0 0 0 2px; background: none !important; border: 0;
  color: var(--qd-blue-deep) !important; text-decoration: underline !important; text-underline-offset: 3px; font-size: inherit !important; font-weight: 600 !important; opacity: 1 !important;
}
#quoteWizard #step2 .send-trust { margin: 4px 0 0; padding: 0; text-align: left; white-space: normal; }
#quoteWizard #step2 .step-nav.summary-actions { padding-inline: 0; margin-inline: 0; width: 100%; max-width: none; justify-content: space-between; }
#quoteWizard #step2 .step-nav.summary-actions .btn-send { flex: 0 0 auto; min-width: 220px; margin-left: auto; max-width: none; }

/* --- Plan chip tag: plain blue text, no pill, no green --- */
body.page-home #quote #quoteWizard .plan-freq-card .pf-popular-tag,
body.page-home #quote #quoteWizard .plan-freq-card.active .pf-popular-tag {
  position: static !important; transform: none !important; display: block; margin: 2px 0 0; padding: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
  color: var(--qd-blue-deep) !important; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
body.page-home #quote #quoteWizard .plan-freq-card.active .pf-popular-tag { color: #fff !important; }
#quoteWizard .plan-freq-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }

/* --- Calendar: reserve six week rows before render so nothing jumps --- */

/* --- Step 1 --- */
#quoteWizard .last-clean-question { padding: 0 !important; margin-inline: 0 !important; }
#quoteWizard .last-clean-options { margin: 0; padding: 0; }
#quoteWizard .last-clean-label { margin-left: 0; padding-left: 0; }

@media (max-width: 640px) {
  #quoteWizard { --qd-min: calc(100svh - 80px); }
  body.page-home #quote.section-quote { padding-bottom: 96px; }
  #quoteWizard .zip-row { max-width: none; }
  #quoteWizard .zip-row input { max-width: none; width: 100%; }
  #quoteWizard .step-nav { margin-top: auto; }
  #quoteWizard .addon-card { padding: 8px 8px; gap: 6px; }
  #quoteWizard #step2 .step-nav.summary-actions { margin-inline: -12px; padding-inline: 12px; width: auto; }
}
@media (max-width: 640px) {
  #quoteWizard #step2 .step-nav.summary-actions .btn-send { flex: 1 1 auto; min-width: 0; margin-left: 0; }
}

/* Round 3 fixes found in review of the first r3 pass */
#quoteWizard .inline-contact-confirm > * { flex: 0 0 auto !important; }
#quoteWizard .quote-verify-inline-status, #quoteWizard .verify-status, #quoteWizard .contact-proof-note { font-size: .875rem !important; line-height: 1.35 !important; min-height: 0 !important; height: auto; }
#quoteWizard #step2 .quote-terms-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  #quoteWizard .step-nav { margin-top: auto !important; }
}


/* =====================================================================
   Round 4 (2026-11-04)
   ===================================================================== */

/* --- Step 6 verify block: one fixed-height slot (row 1) + one feedback area (row 2) ---
   idle: the "Confirm email" button   | code sent: the code row   | verified: a one-line note
   Height never changes between the three; the status text lives in row 2. --- */
#quoteWizard .contact-proof-group { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px auto auto; row-gap: 8px; }
#quoteWizard .contact-proof-group > .verification-purpose-row { display: none; }
#quoteWizard .inline-contact-confirm { display: contents; }
#quoteWizard .contact-proof-group > #channelPicker { grid-column: 1; grid-row: 1; margin: 0; min-height: 0; align-self: stretch; }
#quoteWizard .inline-contact-confirm > .inline-code-row { grid-column: 1; grid-row: 2; margin: 0; min-height: 0; }
#quoteWizard .inline-contact-confirm > .verify-feedback { grid-column: 1; grid-row: 3; min-width: 0; min-height: 1.4em; }
#quoteWizard .contact-confirm-actions { display: flex; gap: 12px; }
#quoteWizard .contact-confirm-actions .channel-btn { min-height: 48px; }
/* the code row replaces the confirm button in the same slot */
/* verified: button text stays for assistive tech, the visible cue is the in-field check + one line */
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"]) > #channelPicker {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"])::after {
  content: "Verified. Tap Send Request to finish."; grid-column: 1; grid-row: 1; align-self: center;
  color: var(--qd-blue-deep); font-weight: 700; font-size: .9375rem;
}
#quoteWizard .channel-btn[data-state="verified"]::before { content: none; }
#quoteWizard .verify-feedback > * { margin: 0 0 6px; }
#quoteWizard .verify-feedback > *:last-child { margin-bottom: 0; }
#quoteWizard .verify-feedback:has(.quote-verify-inline-status:not(:empty), .verify-status:not(:empty)) > .contact-proof-note { display: none; }
#quoteWizard .contact-proof-group #quoteVerifyGate[data-state="verified"] ~ .contact-proof-note { display: none; }
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"]) .contact-proof-note { display: none; }
@media (max-width: 640px) {
}
@media (min-width: 641px) {
}

/* --- Step 1: ZIP and last-clean share one row on desktop --- */
#quoteWizard .step1-details { margin-top: 16px; }
#quoteWizard .step1-details .zip-row { margin-top: 0; }
#quoteWizard .step1-details .last-clean-question { margin-top: 16px; }
#quoteWizard .last-clean-hint { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--qd-muted); }
@media (min-width: 901px) {
  #quoteWizard .step1-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--qd-gap); align-items: start; }
  #quoteWizard .step1-details .zip-row { grid-column: 1; max-width: none; }
  #quoteWizard .step1-details .zip-row input { max-width: none; width: 100%; }
  #quoteWizard .step1-details .last-clean-question { grid-column: 2 / span 2; margin-top: 0; }
}

/* --- Step 5 estimate --- */
#quoteWizard .summary-spec-list > div:has(#summarySpecVisit) { display: none; }
@media (min-width: 1024px) {
  #quoteWizard #step6 .quote-summary { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  #quoteWizard #step6 .quote-summary > .summary-topbar,
  #quoteWizard #step6 .quote-summary > .summary-document-header { grid-column: 1 / -1; }
  #quoteWizard #step6 .quote-summary > .summary-price-block { grid-column: 1; grid-row: 3; }
  #quoteWizard #step6 .quote-summary > .summary-nothing-due { grid-column: 1; grid-row: 4; justify-self: start; }
  #quoteWizard #step6 .quote-summary > .summary-secondary-actions { grid-column: 1; grid-row: 5; justify-content: flex-start; }
  #quoteWizard #step6 .quote-summary > .summary-details { grid-column: 2; grid-row: 3 / span 3; margin-top: 0; border-top: 0; align-self: start; }
  #quoteWizard #step6 .summary-details > summary { display: none; }
  #quoteWizard #step6 .summary-details-grid { grid-template-columns: 1fr !important; grid-template-areas: "scope" "property" "addons" !important; gap: 20px !important; }
}

/* --- Step 4 --- */
#quoteWizard #cdpDays { --cdp-gap: 4px; min-height: calc(var(--cdp-rows, 5) * 44px + (var(--cdp-rows, 5) - 1) * var(--cdp-gap)); align-content: start; }
#quoteWizard #planConfig .plan-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--qd-line); border-radius: 8px; background: var(--qd-soft); font-weight: 600; color: var(--qd-ink); }
#quoteWizard #planConfig .plan-summary[hidden] { display: none; }
#quoteWizard #planConfig .plan-summary-change { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--qd-blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#quoteWizard #planConfig.is-collapsed > :not(.plan-summary) { display: none !important; }
#quoteWizard #step5.active > #planConfig.is-collapsed { min-height: 0 !important; }

#quoteWizard .verify-feedback .quote-verify-fallback { padding: 0; min-height: 0; margin-top: 4px; }
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"]) .contact-proof-note,
#quoteWizard .verify-feedback:has(.quote-verify-inline-status:not(:empty), .verify-status:not(:empty)) > .contact-proof-note { display: none !important; }
#quoteWizard .summary-line { flex-direction: column; align-items: flex-start; gap: 2px; }


/* =====================================================================
   Round 5 (2026-11-04)
   ===================================================================== */

/* Verify area: one 52px row (button, or the one-line "Verified" note) + one status line. The code row and longer
   status text appear after a tap; that shift is tap-driven and small. */
#quoteWizard .verify-feedback > .contact-proof-note { white-space: normal; overflow-wrap: anywhere; }

/* Mobile: the Back/Next bar docks to the bottom of the card (sticky inside the step; no JS) and the card follows
   its content. The quote section keeps a constant height so nothing below it shifts. */
@media (max-width: 640px) {
  #quoteWizard { --qd-min: 0px; min-height: 0; }
  body.page-home #quote.section-quote { min-height: calc(100svh + 170px); padding-bottom: 40px; }
  #quoteWizard .quote-step.active { padding-bottom: 0; }
  #quoteWizard .step-nav {
    position: sticky !important; bottom: 0; z-index: 5; visibility: visible;
    margin: 16px -12px 0 !important; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  #quoteWizard #step2 .step-nav.summary-actions { margin: 16px -12px 0 !important; width: auto; }
  #quoteWizard .step-sub { font-size: .875rem; margin-bottom: 12px; }
  /* reserve the folded plan line so choosing Recurring does not move the calendar */
  /* #122: no reserved empty band for a one-time clean; the plan line only takes room once Recurring is picked */
  #quoteWizard #step5 #planConfig { display: block !important; min-height: 0; }
  #quoteWizard #step5:not(:has(.booking-type-card[data-type="recurring"].active)) #planConfig { display: none !important; }
}

/* Estimate */
#quoteWizard .summary-details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 2px; cursor: pointer; list-style: none;
}
#quoteWizard .summary-details > summary::-webkit-details-marker { display: none; }
#quoteWizard .summary-details > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--qd-blue-deep); border-bottom: 2px solid var(--qd-blue-deep); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
#quoteWizard .summary-details[open] > summary::after { transform: rotate(-135deg); }
@media (min-width: 1024px) {
  #quoteWizard #step6 .quote-summary { grid-template-rows: auto auto auto auto 1fr; }
  #quoteWizard #step6 .quote-summary > .summary-topbar { grid-column: 1 / -1; grid-row: 1; }
  #quoteWizard #step6 .quote-summary > .summary-document-header { grid-column: 1 !important; grid-row: 2 !important; }
  #quoteWizard #step6 .quote-summary > .summary-price-block { grid-column: 1 !important; grid-row: 3 !important; }
  #quoteWizard #step6 .quote-summary > .summary-nothing-due { grid-column: 1 !important; grid-row: 4 !important; }
  #quoteWizard #step6 .quote-summary > .summary-secondary-actions { grid-column: 1; grid-row: 5; align-self: start; }
  #quoteWizard #step6 .quote-summary > .summary-details { grid-column: 2; grid-row: 2 / 6; }
}
/* Step 1 desktop spacing */
@media (min-width: 901px) { #quoteWizard .step1-details { margin-top: 24px; } }


/* =====================================================================
   Round 6 (2026-11-04): two craft cells
   ===================================================================== */

/* Code field: full placeholder, never clipped */
#quoteWizard .inline-code-row input { text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem; min-width: 0; padding-inline: 14px; }
#quoteWizard .inline-code-row input::placeholder { text-transform: none; letter-spacing: 0; }
#quoteWizard .inline-code-row .verify-action { padding-inline: 14px; white-space: nowrap; }
@media (max-width: 420px) {
  #quoteWizard .inline-code-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  #quoteWizard .inline-code-row .verify-action { padding-inline: 10px; font-size: .875rem; }
}
@media (min-width: 901px) { #quoteWizard .inline-code-row { max-width: 560px; } }

/* After the code is sent the confirm control reads as a quiet link, not an input. It stays visible and clickable. */
#quoteWizard .contact-proof-group:has(.inline-code-row[style*="flex"]) > #channelPicker .channel-btn {
  background: transparent !important; border-color: transparent !important; color: var(--qd-muted) !important;
  text-decoration: underline; text-underline-offset: 3px; justify-content: flex-start; padding-inline: 0; min-height: 44px; font-weight: 600;
}
#quoteWizard .contact-proof-group:has(.inline-code-row[style*="flex"]) > #channelPicker { align-self: start; }

/* Verified: the group collapses to the one-line note; no leftover rows or gaps before the footer text */
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"]) { grid-template-rows: auto; row-gap: 0; }
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"])::after { padding: 12px 0 4px; }
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"]) .verify-feedback { display: none; }
#quoteWizard .contact-proof-group:has(#channelPicker .channel-btn[data-state="verified"]) + * { margin-top: 0; }

/* Desktop step 1: the card hugs its content; ZIP and last-clean labels share one baseline */
@media (min-width: 901px) {
  #quoteWizard .recommend-slot { min-height: 0; margin-top: 12px; }
  #quoteWizard .recommend-slot:has(.deep-clean-disclaimer[style*="flex"]) { min-height: 64px; }
}
#quoteWizard .zip-row label, #quoteWizard .step1-details .last-clean-label {
  font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--qd-ink); line-height: 1.3; margin: 0 0 8px; display: block;
}
#quoteWizard .step1-details .last-clean-label .last-clean-hint { display: block; margin-top: 2px; }

/* =====================================================================
   Round 7 polish (2026-11-05, EVAL-6 non-blocking items). Layout only.
   ===================================================================== */

/* Step 1: cards are top-aligned, so a shorter list (White Glove) cannot sit lower than its neighbours */
/* !important: style.css pins justify-content:center on .section-quote cards */
#quoteWizard .service-select-card { justify-content: flex-start !important; }

/* Step 6: an input is not stretched by its grid track; fill it so Confirm and Resend sit right against the field */
#quoteWizard .inline-code-row input { width: 100% !important; max-width: none !important; box-sizing: border-box; }

/* Step 1: the recommendation slot takes space only while a recommendation shows (desktop and mobile) */
#quoteWizard .recommend-slot { min-height: 0; }
#quoteWizard .recommend-slot:has(.deep-clean-disclaimer[style*="flex"]) { min-height: 64px; }

/* Phone: the helper line under a step title uses the muted helper size (style.css sets the larger size with higher specificity) */
@media (max-width: 900px) {
  body.page-home #quoteWizard .quote-step .step-sub { font-size: .875rem !important; line-height: 1.4 !important; }
}

/* Step 4: the folded plan line stays readable without overlapping Change on a phone */
@media (max-width: 480px) {
  #quoteWizard #planConfig .plan-summary { padding: 8px 12px; gap: 10px; }
  #quoteWizard #planConfig .plan-summary-text { font-size: .9rem; white-space: normal; line-height: 1.3; min-width: 0; flex: 1 1 auto; }
  #quoteWizard #planConfig .plan-summary-change { flex: 0 0 auto; white-space: nowrap; }
}

/* =====================================================================
   Balance pass (2026-11-05, Bailey: "it's unbalanced"). Layout only.
   One label style, one control edge, confirmation that never moves the row.
   ===================================================================== */
#quoteWizard {
  --qd-edge: rgba(20, 35, 63, 0.2);   /* one border colour for inputs and choice buttons */
  --qd-radius: 4px;
}

/* Step 1: ONE label style (ZIP and last-clean) */
#quoteWizard .step1-details .zip-row > label,
#quoteWizard .step1-details .last-clean-label {
  display: block; margin: 0 0 8px; padding: 0;
  font-family: var(--font-body); font-size: .875rem !important; font-weight: 600 !important; line-height: 1.3 !important;
  letter-spacing: 0 !important; text-transform: none !important; color: var(--qd-ink);
}

/* Step 1: the ZIP input and the three buttons share one top edge, height, border and radius */
#quoteWizard .step1-details .zip-row input,
#quoteWizard .step1-details .last-clean-btn {
  box-sizing: border-box; height: var(--qd-control); min-height: var(--qd-control);
  border: 1px solid var(--qd-edge); border-radius: var(--qd-radius);
  padding-block: 0; padding-inline: 14px; line-height: 1.2;
}
#quoteWizard .step1-details .last-clean-btn.active { border-color: var(--qd-blue); }
#quoteWizard .step1-details .last-clean-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#quoteWizard .step1-details .last-clean-btn { display: flex; align-items: center; justify-content: center; }
#quoteWizard .step1-details .zip-row, #quoteWizard .step1-details .last-clean-question { margin-top: 0; }

/* Service-area confirmation: a reserved line, left-aligned, brand blue, never moves the row */
#quoteWizard .step1-details .zip-feedback,
#quoteWizard .step1-details .zip-feedback:empty {
  display: block; min-height: 1.4em; margin: 6px 0 0; text-align: left;
  font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--qd-blue-deep);
}
#quoteWizard .step1-details { margin-top: 20px; }
@media (min-width: 901px) {
  #quoteWizard .step1-details { padding-bottom: 28px; }          /* holds the confirmation line */
  #quoteWizard .step1-details .zip-row { position: relative; }
  #quoteWizard .step1-details .zip-feedback { position: absolute; left: 0; top: 100%; white-space: nowrap; margin: 6px 0 0; }
}
@media (max-width: 900px) {
  #quoteWizard .step1-details { display: grid; row-gap: 12px; }
}
/* Phone: the empty ZIP state reserves one 20px line (was ~49px of dead space). The line stays reserved, so the confirmation never shifts the row below. */
@media (max-width: 480px) {
  #quoteWizard .step1-details { row-gap: 8px; }
  #quoteWizard .step1-details .zip-feedback,
  #quoteWizard .step1-details .zip-feedback:empty { min-height: 20px; line-height: 20px; margin: 2px 0 0; }
  #quoteWizard .step1-details .last-clean-question { margin-top: 0 !important; }
}

/* Step 1: cards top-align at every width; the Next button follows the block instead of floating away */
#quoteWizard .service-select-card { justify-content: flex-start !important; align-content: flex-start; }
#quoteWizard .quote-step[data-step="1"] .step-nav { padding-top: 16px; }
#quoteWizard .quote-step[data-step="1"] .recommend-slot { margin-top: 0; }

/* Tablet: three cards in one row (no orphan third card); a narrow tablet gives the third card the full row */
@media (min-width: 641px) and (max-width: 900px) {
  #quoteWizard .service-select-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  #quoteWizard .service-select-card { padding: 20px 16px; }
  #quoteWizard .step1-details .zip-row { max-width: none; }
  #quoteWizard .step1-details .zip-row input { max-width: none; width: 100%; }
}
@media (min-width: 641px) and (max-width: 719px) {
  #quoteWizard .service-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #quoteWizard .service-select-grid > .service-select-card:nth-child(3) { grid-column: 1 / -1; }
}

/* One field-label style across every step (was: small caps on step 1, muted 16px elsewhere) */
#quoteWizard .input-group > label,
#quoteWizard .input-group-label,
#quoteWizard .plan-section-title,
#quoteWizard .cdp-time-label,
#quoteWizard .addon-sub-row > label {
  display: block; margin: 0 0 8px; padding: 0;
  font-family: var(--font-body); font-size: .875rem !important; font-weight: 600 !important; line-height: 1.3 !important;
  letter-spacing: 0 !important; text-transform: none !important; color: var(--qd-ink) !important;
}

/* =====================================================================
   Result screen ("Quote request received"): ONE left-aligned system.
   Header = success + price together; actions are one tidy row; the two
   columns (Visit details, What happens next) share one top rule and baseline.
   ===================================================================== */
#quoteWizard #step2.is-sent .summary-actions { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
#quoteWizard #step2.is-sent .sent-card {
  display: grid; text-align: left; padding: 8px 0 0; margin: 0; width: 100%;
  grid-template-columns: minmax(0, 1fr); row-gap: 16px;
  grid-template-areas: "lead" "price" "sub" "plan" "actions" "cols";
}
#quoteWizard #step2.is-sent .sent-head { display: contents; }
#quoteWizard #step2.is-sent .sent-lead { grid-area: lead; display: flex; align-items: center; gap: 14px; }
#quoteWizard #step2.is-sent .sent-check { flex: 0 0 auto; width: 40px; height: 40px; color: var(--qd-blue); }
#quoteWizard #step2.is-sent .sent-lead-text { min-width: 0; }
#quoteWizard #step2.is-sent .booking-confirmed .confirmed-title,
#quoteWizard #step2.is-sent .sent-card .confirmed-title {
  margin: 0; text-align: left !important; color: var(--qd-ink) !important;
  /* Owner 2026-11-05: greeting is sentence case in the hero serif, not the all-caps condensed headline face. */
  font-family: 'Playfair Display', ui-serif, serif !important; font-weight: 500 !important; text-transform: none !important;
  letter-spacing: -0.01em !important; text-wrap: balance; font-size: clamp(22px, 6vw, 32px) !important; line-height: 1.18 !important; overflow-wrap: break-word;
}
#quoteWizard #step2.is-sent .sent-card .sent-ref { margin: 4px 0 0; text-align: left; font-size: .9375rem !important; color: var(--qd-muted) !important; }
#quoteWizard #step2.is-sent .sent-card .confirmed-sub { grid-area: sub; margin: 0; text-align: left; font-size: 1rem !important; font-weight: 400 !important; line-height: 1.45; color: var(--qd-text) !important; opacity: 1 !important; }
#quoteWizard #step2.is-sent .sent-card .sent-plan { grid-area: plan; margin: 0; text-align: left; font-size: .9375rem !important; color: var(--qd-muted) !important; }
#quoteWizard #step2.is-sent .sent-price {
  grid-area: price; display: grid; gap: 4px; align-self: start; justify-items: start; text-align: left;
  padding: 20px 24px; border: 1px solid var(--qd-line); border-radius: 8px; background: var(--qd-soft);
}
#quoteWizard #step2.is-sent .sent-price-label { font-size: .875rem; font-weight: 600; color: var(--qd-ink); }
#quoteWizard #step2.is-sent .sent-price-amount { font-family: var(--font-display) !important; font-weight: 400 !important; font-size: 3.5rem; line-height: 1; letter-spacing: .02em; color: var(--qd-ink); }
#quoteWizard #step2.is-sent .sent-price-then { font-size: 1rem; font-weight: 600; color: var(--qd-ink); }
#quoteWizard #step2.is-sent .sent-price-note { font-size: .875rem; color: var(--qd-muted); }
#quoteWizard #step2.is-sent .sent-price-discount { font-size: .875rem; font-weight: 600; color: var(--qd-accent, #1d4ed8); }
#quoteWizard #step2.is-sent .sent-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
#quoteWizard #step2.is-sent .sent-actions .btn {
  flex: 0 0 auto; width: auto !important; max-width: none !important; min-width: 0; min-height: var(--qd-control);
  box-sizing: border-box; height: var(--qd-control); margin: 0 !important; padding-inline: 24px; justify-content: center; text-decoration: none;
}
#quoteWizard #step2.is-sent .sent-actions .btn-primary span { color: #fff !important; }
#quoteWizard #step2.is-sent .sent-columns {
  grid-area: cols; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 20px; align-items: start; margin-top: 8px;
}
#quoteWizard #step2.is-sent .sent-col { border-top: 1px solid var(--qd-line); padding-top: 16px; min-width: 0; }
#quoteWizard #step2.is-sent .sent-col-title {
  margin: 0 0 8px; font-family: var(--font-body); font-size: .75rem; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--qd-ink);
}
#quoteWizard #step2.is-sent .sent-spec { margin: 0; display: grid; }
#quoteWizard #step2.is-sent .sent-spec > div {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--qd-line); font-size: .9375rem;
}
#quoteWizard #step2.is-sent .sent-spec > div:first-child { border-top: 0; padding-top: 4px; }
#quoteWizard #step2.is-sent .sent-spec dt { color: var(--qd-muted); }
#quoteWizard #step2.is-sent .sent-spec dd { margin: 0; text-align: right; font-weight: 600; color: var(--qd-ink); }
@media (min-width: 901px) {
  #quoteWizard #step2.is-sent .sent-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px;
    grid-template-areas: "lead price" "sub price" "plan price" "actions price" "cols cols";
    grid-template-rows: auto auto auto 1fr auto;
  }
  #quoteWizard #step2.is-sent .sent-columns { margin-top: 20px; }
}
@media (max-width: 640px) {
  #quoteWizard #step2.is-sent .sent-columns { grid-template-columns: minmax(0, 1fr); }
  #quoteWizard #step2.is-sent .sent-price { padding: 16px 18px; }
  #quoteWizard #step2.is-sent .sent-price-amount { font-size: 3rem; }
  #quoteWizard #step2.is-sent .sent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #quoteWizard #step2.is-sent .sent-actions .btn { width: 100% !important; padding-inline: 8px; font-size: .9375rem; }
}
/* Phone: stack the two actions full width, Call us on top (primary), each at least 48px tall. */
@media (max-width: 480px) {
  #quoteWizard #step2.is-sent .sent-actions { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #quoteWizard #step2.is-sent .sent-actions .btn { min-height: 48px; height: 48px; padding-inline: 16px; font-size: 1rem; }
}

/* Step 5 (estimate): the right-hand column starts on the same line as the heading, and its headings share one style */
@media (min-width: 1024px) {
  #quoteWizard #step6 .quote-summary > .summary-details { align-self: start; margin-top: 0 !important; padding-top: 0 !important; }
}
#quoteWizard #step6 .summary-detail-section h4,
#quoteWizard #step6 .summary-detail-section h4 span {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em !important; text-transform: uppercase; line-height: 1.3;
}
@media (min-width: 1024px) {
  #quoteWizard #step6 .summary-detail-section-scope { border-top: 0 !important; padding-top: 4px !important; margin-top: 0 !important; }
  #quoteWizard #step6 .summary-details-grid > .summary-detail-section { border-top: 0; }
}
@media (min-width: 1024px) {
  #quoteWizard #step6 .summary-details > .summary-services { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
}
/* Estimate: the Download link sits on the same left edge as the price and notice above it */
#quoteWizard #step6 .summary-secondary-actions .summary-text-action { margin-left: 0 !important; padding-left: 0 !important; }


/* =====================================================================
   Specialty cleaning first (2026-11-05, owner: the add-ons we sell must be prominent)
   Tier 1 = five specialty services as two-line cards (name + "from $X");
   tier 2 = home extras, the compact tiles above. Same card, same label style, 48px+ controls.
   ===================================================================== */
#quoteWizard .addons-section + .addons-section { margin-top: 22px; }
#quoteWizard .addons-specialty { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
#quoteWizard .addons-specialty > .addon-card-specialty { grid-column: span 1; }
#quoteWizard .addon-card-specialty { min-height: 64px; align-items: center; }
#quoteWizard .addon-card-specialty .addon-copy { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; text-align: left; }
#quoteWizard .addon-card-specialty .addon-name { white-space: normal; overflow: visible; text-overflow: clip; font-size: .875rem; font-weight: 600; line-height: 1.25; min-height: 0; }
#quoteWizard .addon-card-specialty .addon-from { font-size: .8125rem; font-weight: 500; line-height: 1.3; color: var(--qd-muted); margin-top: 0; }
#quoteWizard .addon-card-specialty.active .addon-from { color: inherit; }
@media (max-width: 640px) {
  #quoteWizard .addons-specialty { grid-template-columns: 1fr; }
  #quoteWizard .addons-specialty > .addon-card-specialty { grid-column: 1 / -1; }
  #quoteWizard .addon-card-specialty .addon-name { font-size: .9375rem; }
  #quoteWizard .addons-home > .addon-card { min-height: 52px; }
}


/* =====================================================================
   Wizard steps pass (2026-11-05). Layout and copy only; no price logic.
   One label style everywhere (the step-1 style), no dead space, nothing
   shifts content out of line, every control 44px+.
   ===================================================================== */

/* --- One label style: 14px / 600 / ink, sentence case, no tracking (step 1) --- */
body.page-home #quote #quoteWizard .addon-category-label,
body.page-home #quote #quoteWizard .plan-section-title,
body.page-home #quote #quoteWizard .cdp-time-label,
body.page-home #quote #quoteWizard .input-group-label,
body.page-home #quote #quoteWizard .last-clean-label,
body.page-home #quote #quoteWizard .zip-row > label,
body.page-home #quote #quoteWizard .input-group > label,
body.page-home #quote #quoteWizard .addon-sub-row > label,
body.page-home #quote #quoteWizard .summary-detail-section h4,
body.page-home #quote #quoteWizard .summary-detail-section h4 span {
  display: block; margin: 0 0 8px; padding: 0;
  font-family: var(--font-body); font-size: .875rem; font-weight: 600; line-height: 1.3;
  letter-spacing: 0; text-transform: none; color: var(--qd-ink);
}
body.page-home #quote #quoteWizard .summary-detail-section h4 span { display: inline; margin: 0; }
/* the disclosure rows ("More extras", "What's included") use the same type, in the link blue */
body.page-home #quote #quoteWizard .addons-more > summary,
body.page-home #quote #quoteWizard .summary-details > summary {
  font-family: var(--font-body); font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--qd-blue-deep);
}
#quoteWizard .addons-section > .addon-category-label { margin: 6px 0 0; }
#quoteWizard .addons-section > .addon-category-label:first-child { margin-top: 0; }
#quoteWizard .cdp-time-label .cdp-time-hint { display: none; margin-left: 6px; font-weight: 500; color: var(--qd-muted); }
#quoteWizard .cdp-time-section.is-pending .cdp-time-hint { display: inline; }

/* --- No dead space: the card follows its content on tablet and desktop --- */
@media (min-width: 641px) {
  #quoteWizard { --qd-min: 0px; min-height: 0; }
}

/* --- Step 2: slider track is not linear (see syncSqftSlider); the number input stays exact --- */
#quoteWizard .home-confirm-estimate-row { display: none; }   /* its only child (the running price) is hidden site-wide on this card */

/* --- Step 3: add-on tiles. Titles are top-aligned (a second line never pushes a title off the row) --- */
#quoteWizard .addon-card { align-items: flex-start; padding-block: 14px; min-height: 52px; }
#quoteWizard .addon-card .addon-check { flex: none; width: 24px; height: 24px; margin: 0; }
#quoteWizard .addon-card .addon-name { font-weight: 600; line-height: 1.3; min-height: 24px; align-self: flex-start; }
#quoteWizard .addon-card .addon-name .addon-note { line-height: 1.35; margin-top: 2px; }
#quoteWizard .addon-card-specialty { min-height: 64px; align-items: flex-start; }
#quoteWizard .addon-card-specialty .addon-copy { gap: 5px; }
#quoteWizard .addon-card-specialty .addon-name { font-size: .875rem; font-weight: 600; line-height: 1.25; min-height: 0; }
#quoteWizard .addon-card-specialty .addon-from { font-size: .8125rem; font-weight: 500; line-height: 1.3; margin-top: 0; }
/* Included (Deep Clean): a statement, not a checkbox. Same box, no tick box, quiet colours. */
#quoteWizard .addon-card.is-included {
  cursor: default; background: var(--qd-soft) !important; border-color: var(--qd-line) !important; box-shadow: none !important;
  color: var(--qd-ink) !important; opacity: 1; pointer-events: none;
}
#quoteWizard .addon-card.is-included .addon-check {
  background: transparent !important; border: 0 !important; color: var(--qd-blue) !important; box-shadow: none !important;
}
#quoteWizard .addon-card.is-included .addon-check svg { opacity: 1 !important; transform: none !important; color: var(--qd-blue); stroke: var(--qd-blue); }
#quoteWizard .addon-card.is-included .addon-name,
#quoteWizard .addon-card.is-included .addon-note { color: var(--qd-ink) !important; }
#quoteWizard .addon-card.is-included .addon-note { display: block; font-size: .75rem; font-weight: 500; color: var(--qd-muted) !important; }
#quoteWizard .addon-card .addon-price { font-variant-numeric: tabular-nums; }
#quoteWizard .addon-card.is-included .addon-price { display: none; }

/* --- Step 4: plan and date --- */
#quoteWizard .booking-type-card { display: flex; align-items: center; justify-content: center; min-height: 64px; text-align: center; }
#quoteWizard .plan-section-title { margin-top: 4px; }
/* "Most popular" sits on the card's top edge: it adds no line inside the card, so the three titles stay level */
#quoteWizard .plan-freq-card { overflow: visible; min-height: 72px; }
body.page-home #quote #quoteWizard .plan-freq-card .pf-popular-tag,
body.page-home #quote #quoteWizard .plan-freq-card.active .pf-popular-tag {
  position: absolute !important; top: -9px; left: 50%; transform: translateX(-50%) !important; margin: 0 !important;
  padding: 0 6px !important; min-height: 0 !important; height: 16px !important; background: #fff !important; border-radius: 2px !important; white-space: nowrap; line-height: 16px;
  color: var(--qd-blue-deep) !important; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
#quoteWizard .plan-freq-card .pf-name, #quoteWizard .plan-freq-card .pf-desc { text-align: center; }
#quoteWizard .plan-month-note { margin: 12px 0 0; font-size: .875rem; line-height: 1.4; color: var(--qd-muted); }
/* time slots: while no date is picked they are quiet, not "disabled", and the label says why */
#quoteWizard .cdp-time-section.is-pending { opacity: 1; }
#quoteWizard .cdp-time-section.is-pending .cdp-time-slots { opacity: .55; }
#quoteWizard .cdp-time-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* today is a quiet dot, not a blue number that reads as "selected" */
body.page-home #quote #quoteWizard .cdp-day.cdp-day-today:not(.cdp-day-selected) { color: var(--qd-ink) !important; font-weight: 400; background: transparent; position: relative; }
body.page-home #quote #quoteWizard .cdp-day.cdp-day-today:not(.cdp-day-selected)::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--qd-muted);
}
@media (min-width: 641px) and (max-width: 1023px) {
  #quoteWizard .cdp-time-slots { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  #quoteWizard .cdp-time-btn { padding-inline: 2px; font-size: .875rem; white-space: nowrap; }
}
@media (min-width: 1024px) {
  /* Desktop: plan and time on the left, the calendar on the right; both columns end on one line.
     The cadence block is reserved, so choosing Recurring never moves the calendar. */
  #quoteWizard #step5.active { grid-template-rows: auto auto auto auto auto auto; }
  #quoteWizard #step5.active > .preferred-date-section { display: contents; }
  #quoteWizard .cdp-date-col { grid-column: 2; grid-row: 2 / span 4; align-self: start; }
  #quoteWizard #step5.active .cdp-time-section { grid-column: 1; grid-row: 4; margin-top: 8px; align-self: start; }
  #quoteWizard #step5.active .date-input-hint { grid-column: 1; grid-row: 5; margin-top: 8px; align-self: start; }
  #quoteWizard #step5.active > .step-nav { grid-row: 6; }
}
/* phones: the sticky bar never hides the last row; focused or tapped targets scroll clear of it */
@media (max-width: 640px) {
  #quoteWizard .cdp-day, #quoteWizard .cdp-time-btn, #quoteWizard .addon-card, #quoteWizard .plan-freq-card,
  #quoteWizard .booking-type-card, #quoteWizard .verify-action, #quoteWizard .channel-btn { scroll-margin-bottom: 120px; }
  #quoteWizard .quote-step.active { scroll-padding-bottom: 120px; }
}

/* --- Step 5: estimate --- */
/* recurring: the ongoing price leads, the first clean is one smaller line beneath it */
#quoteWizard #step6 .summary-price-block:has(#summaryLineThen:not([hidden])) #summaryLineThen { order: -1; }
#quoteWizard #step6 .summary-price-block:has(#summaryLineThen:not([hidden])) #summaryLineFirst {
  flex-direction: row; align-items: baseline; gap: 8px;
}
#quoteWizard #step6 .summary-price-block:has(#summaryLineThen:not([hidden])) #summaryLineFirst .summary-line-label { font-size: 1rem; font-weight: 600; color: var(--qd-muted); }
#quoteWizard #step6 .summary-price-block:has(#summaryLineThen:not([hidden])) #summaryLineFirst .summary-price {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--qd-muted);
}
#quoteWizard #step6 .summary-price-block:has(#summaryLineThen:not([hidden])) #summaryLineFirst .summary-price::before { content: none; }
/* phone-and-tablet facts (desktop shows the full lists in the right column) */
#quoteWizard .summary-facts { display: grid; gap: 2px; margin: 12px 0 0; font-size: .9375rem; line-height: 1.4; color: var(--qd-text); }
#quoteWizard .summary-facts [hidden] { display: none; }
@media (min-width: 1024px) { #quoteWizard .summary-facts { display: none; } }
/* one container on phones: the estimate is not a card inside a card */
@media (max-width: 640px) {
  #quoteWizard #step6 .quote-summary {
    border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important;
  }
  #quoteWizard #step6 .summary-topbar { display: none; }
}
#quoteWizard #step6 .summary-detail-section[hidden] { display: none !important; }

/* --- Step 6: details --- */
/* (selectors carry body.page-home #quote: older rules key off :has(#qAddress) and :has(#qCity), which count an id) */
body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-street { grid-column: span 6; }
body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-unit { grid-column: span 2; }
body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-city { grid-column: span 4; }
body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-email,
body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-phone { grid-column: span 6; }
body.page-home #quote #quoteWizard .contact-capture-grid > .contact-hint { grid-column: 1 / -1; }
@media (max-width: 640px) {
  body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-street,
  body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-email,
  body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-phone { grid-column: 1 / -1; }
  body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-unit { grid-column: span 5; }
  body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-city { grid-column: span 7; }
  #quoteWizard .quote-privacy-note { font-size: .8125rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
  body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-unit { grid-column: span 3; }
  body.page-home #quote #quoteWizard .contact-capture-grid > .input-group-city { grid-column: span 3; }
}
#quoteWizard .contact-capture-grid input { width: 100%; box-sizing: border-box; min-width: 0; }
/* an error message sits under its field and never takes width from it */
#quoteWizard .contact-capture-grid .input-group { display: block; }
#quoteWizard .contact-capture-grid [id$="_error"] { display: block; margin: 4px 0 0; line-height: 1.3; }
#quoteWizard .field-hint { margin: -6px 0 0; font-size: .875rem; line-height: 1.4; color: var(--qd-muted); }
#quoteWizard .field-hint.is-error { color: #dc2626; font-weight: 600; }
/* the code row appears only after Confirm is tapped (that shift is tap-driven); no blank reserve beforehand */
#quoteWizard .contact-proof-group:has(#emailVerifyBtn.active) #emailCodeRow[style*="none"],
#quoteWizard .contact-proof-group:has(#phoneVerifyBtn.active) #phoneCodeRow[style*="none"] { display: none !important; }
#quoteWizard .contact-proof-group { grid-template-rows: auto auto auto; }
/* two short lines of fine print, one left edge */
#quoteWizard .quote-consent-note { margin: 14px 0 0; font-size: .9375rem; line-height: 1.45; color: var(--qd-ink); }
#quoteWizard .quote-resume-notice { margin: 0 0 12px; font-weight: 700; }
#quoteWizard .quote-privacy-note { margin: 8px 0 0; font-size: .875rem; line-height: 1.4; color: var(--qd-muted); }
#quoteWizard #step2 .quote-send-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 4px 0 0; padding: 0; min-height: 44px; text-align: left;
}
#quoteWizard #step2 .quote-send-note .quote-terms-link { display: inline-flex; align-items: center; margin: 0; min-height: 44px; padding: 0; }
@media (max-width: 640px) {
  #quoteWizard .plan-freq-card { min-height: 56px; }
}

/* The older quote-recovery.css pins these estimate pieces with !important; this layer wins by specificity. */
body.page-home #quote #quoteWizard #step6 .quote-summary .summary-detail-section h4,
body.page-home #quote #quoteWizard #step6 .quote-summary .summary-detail-section h4 span {
  font-family: var(--font-body) !important; font-size: .875rem !important; font-weight: 600 !important; line-height: 1.3 !important;
  letter-spacing: 0 !important; text-transform: none !important; color: var(--qd-ink) !important;
}
body.page-home #quote #quoteWizard #step6 .quote-summary .summary-price-block:has(#summaryLineThen:not([hidden])) #summaryLineFirst .summary-price {
  font-family: var(--font-body) !important; font-size: 1rem !important; font-weight: 600 !important; letter-spacing: 0 !important;
  line-height: 1.4 !important; color: var(--qd-muted) !important;
}
body.page-home #quote #quoteWizard #step6 .quote-summary .summary-price-block:has(#summaryLineThen:not([hidden])) #summaryLineFirst { gap: 8px; margin-top: 4px; }
body.page-home #quote #quoteWizard .addons-section > .addon-category-label {
  font-family: var(--font-body) !important; font-size: .875rem !important; font-weight: 600 !important; line-height: 1.3 !important;
  letter-spacing: 0 !important; text-transform: none !important; color: var(--qd-ink) !important;
}

/* Sent screen: "Download quote" is a quiet text link beside the two buttons */
#quoteWizard #step2.is-sent .sent-actions .sent-download {
  flex: 0 0 auto; width: auto; min-height: 48px; padding: 0 8px; margin: 0; background: none; border: 0;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--qd-blue-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@media (max-width: 640px) {
  #quoteWizard #step2.is-sent .sent-actions .sent-download { grid-column: 1 / -1; justify-self: center; }
}

/* Round 3 (2026-11-10): primary step buttons never wrap past two lines in any language (ES labels are longer). */
#quoteWizard .step-nav .btn-next { text-wrap: balance; line-height: 1.2; }
#quoteWizard .step-nav .btn-next > span { min-width: 0; }
#quoteWizard .step-nav .btn-next > svg { flex: 0 0 auto; }
@media (max-width: 420px) {
  #quoteWizard .btn-back, #quoteWizard .btn-next { padding-inline: 14px; }
}

/* #122: no time grid until a day is picked (the script lifts is-pending on the first day tap) */
html body #quote #quoteWizard .cdp-time-section.is-pending { display: none !important; }

/* #119 price-first order (flag, default OFF): the running price shows from the extras step on */
html body.quote-price-first .section-quote #quoteWizard :is(#step4, #step5).active > .live-estimate:not([hidden]) { display: flex !important; }

/* Wave 8: Progressive disclosure for specialty services + 3-stage Step 6 progress */
#quoteWizard .addons-home + .addons-specialty-disclosure {
  margin-top: 16px;
  border-top: 1px solid var(--qd-line);
  padding-top: 6px;
}
#quoteWizard .addons-specialty-disclosure > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--qd-blue-deep);
}
#quoteWizard .addons-specialty-disclosure[open] > #specialtyAddons {
  margin-top: 10px;
}
#quoteWizard #laundrySubOptions .addon-sub-row {
  flex-wrap: wrap;
  gap: 8px 10px;
}
#quoteWizard #laundrySubOptions .mini-stepper {
  position: relative;
  flex: 0 0 auto;
  padding-right: 10px;
  gap: 2px;
}
#quoteWizard #laundrySubOptions #laundryLoadsInput {
  width: 68px !important;
  min-width: 64px !important;
  flex: 0 0 auto !important;
  padding: 0 6px !important;
  text-align: center !important;
  -moz-appearance: textfield;
}
#quoteWizard #laundrySubOptions #laundryLoadsInput::-webkit-inner-spin-button,
#quoteWizard #laundrySubOptions #laundryLoadsInput::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#quoteWizard #laundrySubOptions .mini-stepper .input-suffix {
  position: static;
  transform: none;
  right: auto;
  top: auto;
  flex: 0 0 auto;
  margin-left: 2px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--qd-muted);
  pointer-events: none;
}
#quoteWizard .summary-stage-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}
#quoteWizard .summary-stage {
  border: 1px solid var(--qd-line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--qd-soft);
}
#quoteWizard .summary-stage--active {
  border-color: var(--qd-blue);
  background: #eff6ff;
}
#quoteWizard .summary-stage__label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--qd-ink);
}
#quoteWizard .summary-stage--active .summary-stage__label {
  color: var(--qd-blue-deep);
}
#quoteWizard .summary-stage__hint {
  display: block;
  margin-top: 2px;
  font-size: .6875rem;
  line-height: 1.25;
  color: var(--qd-muted);
}
@media (max-width: 640px) {
  #quoteWizard .summary-stage-rail {
    grid-template-columns: 1fr;
  }
}
