/* ---------- Service request: a five-step flow that starts on the Miami-Dade map ----------
   Loaded by hero-preview.html on top of style.css; reuses .quote, .quote-form, .field, .btn and .error. */

.req-head { display: grid; gap: 28px; margin-bottom: clamp(24px, 3vw, 36px); }
.req-lead { margin-top: 14px; max-width: 46ch; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.42; color: var(--ink-soft); }

/* Stepper: numbers on a line, the current one filled, the done ones checkable */
.req-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.req-steps button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0;
  border: 0; background: none; font: inherit; color: var(--ink-2); text-align: left; cursor: default;
}
.req-steps button:not(:disabled) { cursor: pointer; }
.req-steps button:not(:disabled):hover .req-name { color: var(--ink); }
.req-num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 620;
  transition: background-color .3s var(--ease), color .3s, box-shadow .3s;
}
.req-name { font-size: 15px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.req-steps .is-done .req-num { background: var(--celeste-soft); color: var(--celeste-ink); box-shadow: inset 0 0 0 1px rgba(10, 106, 142, .25); }
.req-steps .is-current .req-num { background: var(--ink); color: #fff; box-shadow: none; }
.req-steps .is-current .req-name { color: var(--ink); font-weight: 620; }
.req-steps button:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 4px; border-radius: 999px; }
.req-progress { height: 4px; border-radius: 4px; background: rgba(29, 29, 31, .08); overflow: hidden; }
.req-progress span {
  display: block; height: 100%; width: 20%; border-radius: inherit;
  background: linear-gradient(90deg, var(--rosa-line), var(--celeste-line));
  transition: width .6s var(--ease);
}

/* The card: one step at a time */
.req-card { --pad: clamp(18px, 3vw, 36px); position: relative; padding: var(--pad); }
.req-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.req-step[hidden] { display: none; }
.req-step.is-entering { animation: req-in .5s var(--ease) both; }
@keyframes req-in { from { opacity: 0; transform: translateX(24px); } }
.req-step.is-entering.is-back { animation-name: req-in-back; }
@keyframes req-in-back { from { opacity: 0; transform: translateX(-24px); } }
.req-title {
  display: block; margin: 0 0 20px; padding: 0; outline: none;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); font-weight: 620; line-height: 1.12; letter-spacing: -0.03em; color: var(--ink);
}
.req-help { margin: -8px 0 20px; color: var(--ink-soft); }

/* Step 1: map and side panel */
.req-step--zone { display: grid; gap: 24px; }
.req-side .field { margin-bottom: 16px; }

.zm {
  position: relative; overflow: hidden; border-radius: 16px;
  height: clamp(480px, 80svh, 820px); background: #e3f3fa;
  box-shadow: inset 0 0 0 1px rgba(10, 106, 142, .08);
  user-select: none; -webkit-user-select: none;
}
.zm-stage { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.zm.is-zoomed .zm-stage { touch-action: none; }
.zm-stage.is-dragging { cursor: grabbing; }
.zm-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 14px; }
.zm-svg { display: block; width: 100%; height: 100%; }
.zm-water { fill: #e3f3fa; }
.zm-west { fill: #eceef1; }
.zm-nb path { fill: #eef0f2; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }

.zm-zone {
  stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  cursor: pointer; transition: fill .25s, filter .25s;
}
.zm-zone.t0 { fill: #eceef1; }
.zm-zone.t1 { fill: #fbd9e6; }
.zm-zone.t2 { fill: #cfeaf6; }
.zm-zone.t3 { fill: #fde3cf; }
.zm-zone.t4 { fill: #e4dcf5; }
.zm-zone.t5 { fill: #d6f0e3; }
.zm-zone:hover, .zm-zone.is-hover { filter: brightness(.93) saturate(1.3); }
.zm-zone:focus { outline: none; }
.zm-zone:focus-visible { stroke: var(--ink); stroke-width: 2.5; }
.zm-zone.is-picked { fill: url(#zm-pick); stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 6px 10px rgba(173, 47, 99, .35)); }

/* font-size and stroke-width live on the group: the script scales them with the zoom */
.zm-labels { font-size: 12px; stroke-width: 3px; }
.zm-labels text {
  font-weight: 600; letter-spacing: -0.01em; fill: #3a3a3e; text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-linejoin: round;
  pointer-events: none; transition: opacity .2s;
}
.zm-labels text.is-off { opacity: 0; }
.zm-labels text.zm-muted { fill: #8e8e93; font-weight: 500; font-style: italic; }
.zm-labels text.is-picked { fill: #fff; stroke: rgba(173, 47, 99, .55); font-weight: 700; opacity: 1; }
.zm-labels .zm-water-label { fill: #5aa8c7; stroke: none; font-style: italic; font-weight: 500; letter-spacing: .04em; }

/* Bottom right is always open water, in every view */
.zm-tools { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: grid; gap: 6px; }
.zm-tool {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(29, 29, 31, .08), 0 8px 20px -10px rgba(29, 29, 31, .3);
  transition: background-color .2s;
}
.zm-tool:hover { background: #fff; }
.zm-tool:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 2px; }
.zm-tool:disabled { opacity: .45; cursor: default; }
.zm-hint {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); font-size: 12px; color: var(--ink-2); pointer-events: none;
}
.zm-hint-pinch { display: none; }
@media (hover: none) { .zm-hint-wheel { display: none; } .zm-hint-pinch { display: inline; } }
.zm-tip {
  position: absolute; z-index: 3; left: 0; top: 0; padding: 7px 12px; border-radius: 12px; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}
.zm-tip small { display: block; font-weight: 400; opacity: .7; font-size: 11px; }

.zm-picked {
  display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--rosa-soft), var(--celeste-soft));
}
.zm-picked[hidden] { display: none; }
.zm-picked .i { flex: none; color: var(--rosa-ink); }
.zm-picked strong { display: block; font-size: 17px; font-weight: 620; color: var(--ink); }
.zm-picked span { font-size: 13px; color: var(--ink-2); }
.zm-picked.is-pop { animation: req-pop .5s var(--ease); }
@keyframes req-pop { 40% { transform: scale(1.03); } }

/* Step 2: service cards */
.req-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.req-opt { position: relative; cursor: pointer; }
.req-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.req-opt > span {
  display: grid; gap: 4px; height: 100%; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.req-opt strong { font-size: 18px; font-weight: 620; color: var(--ink); }
.req-opt small { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.req-opt em { margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--celeste-ink); }
.req-opt:hover > span { border-color: #aeaeb2; }
.req-opt input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 18px 40px -24px rgba(29, 29, 31, .5); transform: translateY(-2px); }
.req-opt input:focus-visible + span { outline: 2px solid var(--celeste-ink); outline-offset: 3px; }
.req-opt input[aria-invalid="true"] + span { border-color: #c4122f; }
/* Home cleaning before the streak is active: in view, greyed, saying why (its link stays clickable) */
.req-opt.is-locked { cursor: not-allowed; }
.req-opt.is-locked input { cursor: not-allowed; }
.req-opt.is-locked > span { background: var(--mist, #f5f5f7); }
.req-opt.is-locked strong, .req-opt.is-locked > span > small:not([data-lock]), .req-opt.is-locked em { opacity: .5; }
.req-opt [data-lock] { position: relative; z-index: 1; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--celeste-ink, #0a6a8e); }
.req-opt [data-lock][hidden] { display: none; }
.req-opt [data-lock] a { color: inherit; text-decoration: underline; }
/* The flame: the logged-in client's streak */
.req-streak { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(245, 160, 97, .14), rgba(242, 138, 184, .12) 45%, rgba(82, 194, 236, .12)); font-size: 15px; color: var(--ink); }
.req-streak[hidden] { display: none; }
/* Last step without an account: confirm the email to send */
.req-gate { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--celeste-mist, #e5f5fb); display: grid; gap: 12px; justify-items: start; font-size: 15px; color: var(--ink); }
.req-gate[hidden] { display: none; }
.req-gate b { font-weight: 620; }
.req-streak b { font-weight: 620; }
.req-flame { font-size: 26px; line-height: 1; }
.req-days { display: block; margin-top: 2px; font-weight: 600; color: var(--celeste-ink, #0a6a8e); }

/* Step 3: pill choices instead of dropdowns */
.req-group { margin-bottom: 22px; }
.req-group .label { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.req-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.req-pills--wide { grid-template-columns: 1fr 1fr; }
.req-pills label { position: relative; cursor: pointer; }
.req-pills input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
/* Home types are set by the square feet: the ones that don't match are greyed out */
.req-pills input:disabled { cursor: not-allowed; }
.req-pills input:disabled + span { opacity: .38; }
/* Home sizes have longer names: each pill takes the width of its words */
.req-pills[aria-labelledby="lbl-ptype"] { display: flex; flex-wrap: wrap; }
.req-pills[aria-labelledby="lbl-ptype"] label { flex: 1 1 auto; }
.req-pills[aria-labelledby="lbl-ptype"] span { white-space: nowrap; padding-inline: 16px; }
.req-pills span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--ink-soft);
  transition: background-color .25s, color .25s, border-color .2s;
}
.req-pills label:hover span { border-color: #aeaeb2; color: var(--ink); }
.req-pills input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.req-pills input:focus-visible + span { outline: 2px solid var(--celeste-ink); outline-offset: 2px; }

/* Step 5: review */
.req-review { margin: 0 0 24px; display: grid; border-top: 1px solid var(--mist-2); }
.req-review > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--mist-2); }
.req-review dt { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.req-review dd { grid-column: 1; margin: 0; font-size: 17px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

/* The cart bar: sticks to the bottom of the screen while the card scrolls past */
.req-nav {
  position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px;
  margin: 28px calc(var(--pad) * -1) calc(var(--pad) * -1); padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--mist-2); border-radius: 0 0 28px 28px;
}
.req-nav [data-req-next] { margin-left: 0; }
.req-nav[hidden] { display: none; }
.req-call { margin-top: 20px; text-align: center; color: var(--ink-soft); }

@media (min-width: 640px) {
  .req-cards { grid-template-columns: 1fr 1fr; }
  .req-pills { grid-template-columns: repeat(6, 1fr); }
  .req-pills--wide { grid-template-columns: repeat(4, 1fr); }
  .req-review > div { grid-template-columns: 180px 1fr auto; }
  .req-review dt, .req-review dd { grid-column: auto; grid-row: 1; }
}
@media (min-width: 900px) {
  .req-head { grid-template-columns: 1fr minmax(0, 620px); align-items: end; column-gap: 48px; }
  .req-progress { grid-column: 1 / -1; }
  .req-step--zone { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 36px; align-items: start; }
  .req-side { position: sticky; top: calc(var(--nav-h) + 24px); padding-top: 8px; }
  .req-step:not(.req-step--zone) { max-width: 820px; margin-inline: auto; }
  .req-nav { max-width: none; }
}
@media (max-width: 639px) {
  .req-steps { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .req-name { display: none; }
  .req-steps .is-current .req-name { display: inline; }
  .zm { height: clamp(380px, 62svh, 560px); margin-inline: calc(clamp(18px, 3vw, 36px) * -1); border-radius: 0; }
  .req-nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .req-step.is-entering { animation: none; }
  .req-progress span { transition: none; }
}

/* Exact location: GPS first, typed address second, the result shown with links to check it */
.loc { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--mist-2); }
.loc > .label { display: block; margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.loc > .label em { display: block; margin-top: 2px; font-style: normal; font-weight: 400; color: var(--ink-2); }
.loc-gps {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 18px;
  border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: linear-gradient(135deg, var(--rosa-soft), var(--celeste-soft));
  box-shadow: inset 0 0 0 1px rgba(10, 106, 142, .14);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.loc-gps .i { color: var(--rosa-ink); }
.loc-gps:hover { box-shadow: inset 0 0 0 1px rgba(10, 106, 142, .35); }
.loc-gps:active { transform: scale(.98); }
.loc-gps:disabled { opacity: .6; cursor: progress; }
.loc-gps:focus-visible, .loc-find:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 2px; }
.loc-hint { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.loc-hint[hidden] { display: none; }
.loc-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 13px; color: var(--ink-2); }
.loc-or::before, .loc-or::after { content: ""; flex: 1; height: 1px; background: var(--mist-2); }
.loc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.loc-row .field { margin-bottom: 0; }
.loc .field { margin-bottom: 8px; }
.loc-find {
  min-height: 52px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
}
.loc-find:hover { background: #000; }
.loc-find:disabled { opacity: .6; cursor: progress; }
.loc-status { margin-top: 6px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.loc-status[hidden] { display: none; }
.loc-status.is-busy { background: var(--mist); color: var(--ink-2); }
.loc-status.is-ok { background: #e7f6ee; color: #1d5b3a; }
.loc-status.is-warn { background: #fff4e5; color: #7a4a0a; }
.loc-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.loc-links .link { font-size: 14px; }

/* The pin keeps its on-screen size; the script scales it with the zoom */
.zm-pin { pointer-events: none; }
.zm-pin[hidden] { display: none; }
.zm-pin-body { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.zm-pin-dot { fill: #fff; }
.zm-pin-pulse { fill: rgba(242, 138, 184, .45); transform-box: fill-box; transform-origin: center; animation: zm-pulse 1.8s var(--ease) infinite; }
@keyframes zm-pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zm-pin-pulse { animation: none; opacity: .5; } }
.req-pay { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #e7f6ee; color: #1d5b3a; font-size: 15px; font-weight: 500; }
.req-pay .i { flex: none; }


/* Extras: chips with their price, like toppings on an order */
.req-group[hidden] { display: none; }
.req-group .label em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.req-extras { display: grid; grid-template-columns: 1fr; gap: 8px; }
.req-extra { position: relative; cursor: pointer; }
.req-extra input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.req-extra > span {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px 0 44px;
  border-radius: 12px; border: 1px solid var(--line); font-size: 15px; color: var(--ink);
  position: relative; transition: border-color .2s, background-color .25s;
}
.req-extra > span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px #aeaeb2; background: #fff center / 12px no-repeat; transition: background-color .2s, box-shadow .2s;
}
.req-extra b { font-weight: 500; }
.req-extra i { font-style: normal; font-weight: 600; color: var(--celeste-ink); white-space: nowrap; }
.req-extra:hover > span { border-color: #aeaeb2; }
.req-extra input:checked + span { border-color: var(--ink); background: var(--mist); }
.req-extra input:checked + span::before {
  background-color: var(--ink); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.req-extra input:focus-visible + span { outline: 2px solid var(--celeste-ink); outline-offset: 2px; }
.req-extra.is-included { cursor: default; }
.req-extra.is-included > span { border-style: dashed; color: var(--ink-2); }
.req-extra.is-included > span::before { background-color: var(--celeste-soft); box-shadow: inset 0 0 0 1.5px rgba(10, 106, 142, .3); }
.req-extra.is-included i { color: #1d7a4a; }
.req-pills small { margin-left: 6px; font-size: 12px; font-weight: 700; color: #1d7a4a; }
.req-pills input:checked + span small { color: #9be3bd; }
.req-pills span small:empty { display: none; }

/* The running total in the cart bar */
.req-total {
  flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px;
  min-height: 56px; padding: 6px 14px; border: 0; border-radius: 16px; background: none; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer;
}
.req-total:hover:not(.is-empty) { background: var(--mist); }
.req-total:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 2px; }
.req-total small { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.req-total strong { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.req-total strong.is-bump { animation: req-bump .45s var(--ease); }
@keyframes req-bump { 40% { transform: scale(1.08); color: var(--rosa-ink); } }
.req-total-more { justify-self: start; font-size: 13px; font-weight: 500; color: var(--celeste-ink); text-decoration: underline; text-underline-offset: 3px; }
.req-total.is-empty { cursor: default; }
.req-total.is-empty strong { color: var(--ink-2); }
.req-total.is-empty .req-total-more { display: none; }

/* Receipt: pops over the cart bar, and sits inline on the review step */
.req-receipt dl { margin: 0; display: grid; gap: 2px; }
.req-receipt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; }
.req-receipt dt { color: var(--ink-soft); }
.req-receipt dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.req-receipt .is-save dd { color: #1d7a4a; }
.req-receipt .is-total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 18px; }
.req-receipt .is-total dt { color: var(--ink); font-weight: 620; }
.req-receipt p { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.req-receipt--pop {
  position: sticky; bottom: 96px; z-index: 5; margin: 0 0 -1px auto; max-width: 420px; padding: 18px 20px;
  border-radius: 16px; background: #fff; box-shadow: 0 2px 6px rgba(29, 29, 31, .06), 0 30px 60px -20px rgba(29, 29, 31, .4);
  animation: req-pop-in .35s var(--ease);
}
@keyframes req-pop-in { from { opacity: 0; transform: translateY(10px); } }
.req-receipt--pop[hidden] { display: none; }
.req-receipt--inline { margin-bottom: 20px; padding: 18px 20px; border-radius: 16px; background: var(--mist); }
.req-receipt--inline:empty { display: none; }

@media (min-width: 640px) {
  .req-extras { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .req-nav { gap: 8px; }
  .req-nav .btn { flex: none; }
  .req-nav [data-req-back] { --px: 16px; }
  .req-nav [data-req-back] svg + * { display: none; }
  .req-total { padding: 4px 8px; }
  .req-receipt--pop { bottom: 90px; max-width: none; }
}

/* .quote clips its background light with overflow: hidden, which would trap the sticky cart bar;
   clip crops the same way without creating a scroll container */
.quote.req { overflow: clip; }

/* ---------- Fit to one screen: the section works like an app, the card fills what's left ----------
   The page never scrolls inside the flow; a long step scrolls inside the card, the cart bar stays put. */
.quote.req { min-height: 100svh; padding: calc(var(--nav-h) + 16px) 0 24px; }
.req .req-head { gap: 12px 40px; margin-bottom: 14px; }
.req .req-head h2 { font-size: clamp(1.625rem, min(1.1rem + 1.8vw, 5svh), 2.5rem); line-height: 1.05; }
.req .req-lead { margin-top: 6px; font-size: 15px; max-width: 60ch; }
.req-card {
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100svh - var(--nav-h) - var(--req-head-h, 120px) - 56px); min-height: 500px; max-height: 900px;
  padding-bottom: 0;
}
.req-card > [data-req-status] { position: absolute; }
.req-card .req-step { grid-row: 1; grid-column: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 12px; }
.req-card .req-nav { grid-row: 2; position: static; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); }
.req-receipt--pop { position: absolute; right: var(--pad); bottom: 88px; width: min(420px, calc(100% - var(--pad) * 2)); margin: 0; }
.req-title { margin-bottom: 14px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.req-help { margin: -6px 0 14px; font-size: 15px; }

/* Step 1: the map takes the full height of the card */
.req-step--zone { overflow: hidden; }
.req-step--zone .zm { height: 100%; min-height: 0; }
.req-side { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.req-side .field { margin-bottom: 12px; }
.zm-picked { margin: -2px 0 12px; padding: 10px 14px; }
.loc { padding-top: 14px; }
.loc-or { margin: 10px 0; }

/* Steps 2–5: tighter rhythm so they fit without inner scroll on most screens */
.req-opt > span { padding: 14px 18px; }
.req-group { margin-bottom: 14px; }
.req-group .label { margin-bottom: 8px; }
.req-pills span, .req-extra > span { min-height: 46px; }
.req-extras { gap: 6px; }
.req-review > div { padding: 9px 0; }
.req-receipt--inline { padding: 12px 16px; margin-bottom: 12px; }
.req-receipt--inline dl > div { padding: 4px 0; }
.req-pay { margin-bottom: 12px; padding: 10px 14px; }

@media (min-width: 900px) {
  .req .req-head { grid-template-columns: auto minmax(0, 640px); justify-content: space-between; }
  .req-step--zone { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 28px; padding-top: 0; }
  .req-side { position: static; height: 100%; padding-top: 4px; }
  .req-extras { grid-template-columns: repeat(3, 1fr); }
}
/* Tablets and small laptops: the head is too narrow for title and stepper side by side, so the stepper takes its own row */
@media (min-width: 900px) and (max-width: 1199px) { .req .req-head { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) { .req-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .req-step--zone { display: grid; grid-template-rows: minmax(230px, 46%) minmax(0, 1fr); gap: 14px; }
  .req-step--zone .zm { margin-inline: calc(var(--pad) * -1); border-radius: 0; }
  .req .req-lead { display: none; }
}
@media (max-width: 639px) {
  .quote.req { padding-top: calc(var(--nav-h) + 10px); padding-bottom: 12px; }
  .req-card { height: calc(100svh - var(--nav-h) - var(--req-head-h, 90px) - 30px); min-height: 460px; border-radius: 22px; }
  .req .req-head h2 { font-size: 1.625rem; }
  .req-step--zone .zm { height: auto; }
  .zm-hint { display: none; }
}

/* Review: compact tiles side by side, each with a pencil that jumps back to its step */
.req-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; border: 0; }
.req-chip {
  position: relative; display: grid; gap: 2px; align-content: start; min-height: 64px; padding: 10px 40px 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.req-chip:hover { border-color: var(--ink); background: var(--mist); }
.req-chip:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 2px; }
.req-chip small { font-size: 12px; color: var(--ink-2); }
.req-chip span { font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req-chip svg { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; color: var(--ink-2); transition: color .2s; }
.req-chip:hover svg { color: var(--rosa-ink); }
.req-chip--wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .req-review { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Short screens: the card gives up its floor so the cart bar never falls below the fold */
.req-card { min-height: 420px; }
@media (max-height: 720px) and (min-width: 900px) {
  .quote.req { padding-top: calc(var(--nav-h) + 10px); padding-bottom: 12px; }
  .req .req-head h2 { font-size: 2rem; }
  .req-card { height: calc(100svh - var(--nav-h) - var(--req-head-h, 110px) - 36px); }
}

/* Editing one thing from the review: only that control shows in its step */
.req-step.is-editing [data-edit]:not(.is-edit-target) { display: none; }

/* .btn sets its own display, so hidden nav buttons need the reminder */
.req-nav [hidden] { display: none !important; }
.req-total strong { white-space: nowrap; }
@media (max-width: 639px) {
  .req-step--zone .zm { height: 100%; }
  .req-total strong { font-size: 1.25rem; }

}
.req-review { grid-auto-flow: dense; }
.req-chip { padding-right: 34px; }
.req-chip span { overflow-wrap: break-word; hyphens: auto; }
.req-send { flex: none; }
@media (max-width: 639px) { .req-send-long { display: none; } .req-send { --px: 18px; } }

/* ---------- Polish: back on DESIGN.md ---------- */
/* Proportional Figures Rule */
.req-total strong, .req-receipt dd { font-variant-numeric: normal; }
/* Savings and inclusions speak in celeste-ink (the system's savings colour), never an off-palette green */
.req-receipt .is-save dd, .req-pills small, .req-extra.is-included i { color: var(--celeste-ink); }
.req-pills input:checked + span small { color: #fff; opacity: .8; }
.req-pay { background: var(--celeste-soft); color: var(--celeste-ink); }
.loc-status.is-ok { background: var(--celeste-soft); color: var(--celeste-ink); }
.loc-status.is-warn { background: var(--rosa-soft); color: var(--rosa-ink); }
/* Border-or-Shadow Rule: a selected option says so with its stroke only */
.req-opt input:checked + span { box-shadow: 0 0 0 1px var(--ink); transform: none; }
/* Controls are pills: GPS is a soft button, Find a primary one */
.loc-gps { border-radius: 999px; background: var(--mist); box-shadow: none; }
.loc-gps:hover { background: var(--mist-2); box-shadow: none; }
.loc-gps .i { color: var(--celeste-ink); }
.loc-find { border-radius: 999px; padding: 0 22px; }
/* Browser surfaces: inner scroll areas take the palette */
.req-card .req-step, .req-side { scrollbar-width: thin; scrollbar-color: var(--mist-2) transparent; }
/* Unincorporated land is mostly farmland and Everglades: not a tap target. Address/GPS still detect it, and the list keeps "Other area" */
.zm-zone[data-type="uninc"] { pointer-events: none; }

/* CTAs at the end of each chapter: one ink pill, aligned with each chapter's own layout */
.how-cta { margin-top: 32px; }
.condos-cta { margin-top: 36px; }
.reviews-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.unveil-cta { display: inline-flex; margin-left: 14px; font-size: 17px; }
@media (max-width: 599px) {
  .unveil-cta { display: flex; margin: 10px 0 0; justify-content: center; }
  .how-cta .btn, .condos-cta .btn, .reviews-cta .btn { width: 100%; }
}
.statement-cta { margin-top: 28px; font-size: 19px; }
.faq-list { border-top: 0; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h3 { margin: 0; padding: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* Miami Home Cleaning Guide on the landing: an editorial list, each row the whole link */
.guides { padding: var(--sec) 0; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide a { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.guide h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 620; line-height: 1.15; letter-spacing: -0.025em; max-width: 30ch; transition: color .2s; }
.guide p { color: var(--ink-2); max-width: 60ch; }
.guide-meta { font-size: 13px; color: var(--ink-2); }
.guide a:hover h3 { color: var(--celeste-ink); }
.guide a:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 4px; border-radius: 12px; }
@media (min-width: 900px) {
  .guide-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* The second set of trails sits a step back */
.trails .trail:nth-of-type(n+4), .trails .trail-dot.is-on:nth-of-type(n+4) { opacity: .8; }

/* Sandblasted glass behind text: the trails pass under it, blurred and frosted, so they never cross the words.
   A pseudo-element sized past the block, so layout and alignment stay exactly as they were. */
:is(.statement-text, .section-head, .how-steps, .included, .promise, .areas-copy, .reviews-head, .guide a, .faq-list) {
  position: relative; isolation: isolate;
}
:is(.statement-text, .section-head, .how-steps, .included, .promise, .areas-copy, .reviews-head, .guide a, .faq-list)::before {
  content: ""; position: absolute; z-index: -1; inset: -14px -18px; border-radius: 22px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    rgba(255, 255, 255, .74);
  background-size: 140px 140px, auto;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  opacity: .96;
}
/* Rows inside lists share one pane instead of a pane per row */
.guide a::before { inset: 0 -18px; border-radius: 0; }
.guide-list .guide:first-child a::before { border-radius: 22px 22px 0 0; }
.guide-list .guide:last-child a::before { border-radius: 0 0 22px 22px; }
@media (min-width: 900px) {
  .guide-list .guide:nth-child(-n+2) a::before { border-radius: 22px 22px 0 0; }
  .guide-list .guide:nth-last-child(-n+2) a::before { border-radius: 0 0 22px 22px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(.statement-text, .section-head, .how-steps, .included, .promise, .areas-copy, .reviews-head, .guide a, .faq-list)::before { background-color: rgba(255, 255, 255, .9); }
}
.promise::before { inset: 0 -18px; }
/* The FAQ heading sits outside a section head */
.faq h2 { position: relative; isolation: isolate; }
.faq h2::before {
  content: ""; position: absolute; z-index: -1; inset: -14px -18px; border-radius: 22px; pointer-events: none;
  background: inherit; background-color: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
}
/* On tinted grounds the glass takes the ground's tone, so it frosts instead of reading as a white card */
.reviews .reviews-head::before { background-color: rgba(245, 245, 247, .78); }
.areas .areas-copy::before { background-color: rgba(255, 255, 255, .42); }
/* Gallery arrows sit on the frosted header: a paper ground with the Float shadow keeps them visible */
.gallery-nav button { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 29, 31, .06), 0 12px 32px -16px rgba(29, 29, 31, .25); }
.gallery-nav button:hover:not(:disabled) { background: var(--mist); }
.gallery-nav button:disabled { opacity: .5; }

/* Glassmorphism, as in the client's references: a clear pane, heavy blur and saturation so the trails
   behind turn into soft coloured light, a bright 1px rim with a diagonal sheen, and a soft drop shadow. */
:is(.statement-text, .section-head, .how-steps, .included, .promise, .areas-copy, .reviews-head, .guide a, .faq-list, .faq h2)::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .14) 42%, rgba(255, 255, 255, .06) 70%, rgba(255, 255, 255, .22) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    rgba(255, 255, 255, .24);
  background-size: auto, 140px 140px, auto;
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .75),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 1px rgba(29, 29, 31, .05),
    0 24px 60px -32px rgba(29, 29, 31, .28);
  border-radius: 26px;
  opacity: 1;
}
.reviews .reviews-head::before, .areas .areas-copy::before { background-color: rgba(255, 255, 255, .16); }
/* Guide rows share one pane: the rim only on its outer edges */
.guide a::before { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .75), inset -1px 0 0 rgba(255, 255, 255, .75), 0 24px 60px -40px rgba(29, 29, 31, .2); border-radius: 0; }
.guide-list .guide:first-child a::before { border-radius: 26px 26px 0 0; }
.guide-list .guide:last-child a::before { border-radius: 0 0 26px 26px; }
@media (min-width: 900px) {
  .guide-list .guide:nth-child(-n+2) a::before { border-radius: 26px 26px 0 0; }
  .guide-list .guide:nth-last-child(-n+2) a::before { border-radius: 0 0 26px 26px; }
}
/* Thinner glass: a light blur so the trails still read behind it as soft lines, not a white wall */
:is(.statement-text, .section-head, .how-steps, .included, .promise, .areas-copy, .reviews-head, .guide a, .faq-list, .faq h2)::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .14) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    rgba(255, 255, 255, .1);
  background-size: auto, 140px 140px, auto;
  -webkit-backdrop-filter: blur(7px) saturate(1.5);
  backdrop-filter: blur(7px) saturate(1.5);
}
.reviews .reviews-head::before, .areas .areas-copy::before { background-color: rgba(255, 255, 255, .06); }
.promise::before { inset: 8px -18px; }
:is(.statement-text, .section-head, .how-steps, .included, .promise, .areas-copy, .reviews-head, .guide a, .faq-list, .faq h2)::before {
  background-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(5px) saturate(1.5);
  backdrop-filter: blur(5px) saturate(1.5);
}

/* .reviews-head is a full-width .wrap: its pane stays inside the gutters instead of past the screen edge */
.reviews .reviews-head::before { inset: -14px calc(var(--gutter) - 18px); }
/* Landscape and small phones are too short for a one-screen card: the card grows with its step and the cart bar sticks */
@media (max-height: 600px) {
  .req-card { height: auto; min-height: 0; max-height: none; display: block; }
  .req-card .req-step { overflow: visible; }
  .req-step--zone { display: grid; grid-template-rows: none; }
  .req-step--zone .zm { height: 70svh; min-height: 240px; }
  .req-side { overflow: visible; }
  .req-card .req-nav { position: sticky; bottom: 0; }
}

/* Sent: request saved, tracking link */
.req-done { display: grid; justify-items: start; align-content: center; gap: 14px; text-align: left; }
.req-done p { margin: 0; max-width: 46ch; color: var(--ink-2, #636368); }
.req-done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--rosa, #f7b6cd), var(--celeste, #8fd6f0)); color: #1d1d1f; }
.req-done-icon .i { width: 26px; height: 26px; }
.req-done .link { font: inherit; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }

/* Small phones: the card's one column never grows past the card, and the cart bar fits in 320px */
.req-card { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { .req-step--zone .zm { margin-inline: 0; border-radius: 16px; } }
@media (max-width: 400px) {
  .req-nav .btn-lg { --px: 16px; font-size: 16px; }
  .req-nav [data-req-back] { --px: 12px; }
  .req-total-more { display: none; }
}
@media (max-width: 359px) { .req-review { grid-template-columns: minmax(0, 1fr); } .req-nav .btn .go { display: none; } }

/* Free days offered when the picked day is full */
.req-days { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.req-days[hidden] { display: none; }
.req-day { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--celeste-soft); box-shadow: inset 0 0 0 1.5px var(--celeste-line); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.req-day:hover { background: #fff; }

/* Phones: longer option names (Condominio, Apartamento) get room instead of being cut */
@media (max-width: 599px) {
  .req-pills:not(.req-pills--wide) { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .req-pills span { padding-inline: 8px; overflow-wrap: anywhere; }
}
