/* =========================================================
   People'z Choice — site styles
   Colors and sizes live in the :root block below.
   Change a color there and it updates everywhere.
   ========================================================= */

:root {
  /* Brand colors (from the price chart PDF) */
  --black: #111111;
  --ink: #151412;
  --gold: #d4a91e;
  --red: #c8352b;             /* "Best value" burst: a warm red beside the gold */
  --gold-dark: #8a6a0e;      /* gold that is dark enough for text on light backgrounds */
  --gold-focus: #f0c94a;

  /* Neutrals */
  --cream: #faf7ef;          /* page background */
  --white: #ffffff;
  --panel: #1f1d1a;          /* inner box on the black recurring panel */
  --line: #e4e1d8;           /* borders on light backgrounds */
  --line-soft: #eeebe3;
  --line-dark: #34312b;      /* borders on black backgrounds */
  --muted: #5f5b52;          /* secondary text on light backgrounds */
  --muted-dark: #bdb7a8;     /* secondary text on black backgrounds */
  --soft-dark: #d9d4c7;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-brand: var(--font-body);   /* the PEOPLE'Z CHOICE wordmark */
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1312px;
  --gutter: 64px;
  --section-space: 56px;
  --radius-card: 18px;
  --radius-table: 16px;
  --header-h: 92px;
  --topbar-h: 44px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-variant-numeric: lining-nums;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtext (section intros, card descriptions, hints, fine print) reads too thin at
   Manrope's 400, so it all sits one step heavier. Titles and labels stay 700–800. */
.hero-lead, .hero-next, .section-intro, .disclaimer,
.est-step-sub, .est-svc-line, .est-bubble-sub, .est-choice-text, .est-plan span,
.est-routine-note, .est-minimum, .est-notes, .rebook-card span,
.svc-card-desc, .svc-card-list, .est-bubble-list, .quote-disclaimer, .field-hint, .ac-sub, .quote-done p,
.signin-intro, .signin-fine, .account-text, .account-status,
.cleaning-what, .cleaning-where, .cleaning-notes, .pay-note, .pay-option-text small, .cleaning-locked {
  font-weight: 500;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold-focus); outline-offset: 2px; }

.gold { color: var(--gold); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--black); font-weight: 800;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #e2b829; color: var(--black); }
.btn-rect { border-radius: 0; }

/* "Request a Cleaning" button: metallic gold, a light sweep, and glitter
   sparkles (the sparkles are added by js/sparkle.js) */
.btn-shine {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, #b8860b 0%, #f7d774 30%, #d4a91e 55%, #fbe38e 80%, #c9971a 100%);
  background-size: 200% 200%;
  animation: cta-gradient 6s ease-in-out infinite;
}
.btn-shine:hover { background: linear-gradient(135deg, #c9971a 0%, #fbe38e 40%, #e2b829 100%); transform: translateY(-1px); }
.btn-shine-sheen { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.btn-shine-sheen::before {
  content: ""; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg);
  animation: cta-sweep 5s ease-in-out infinite;
}
.sparkle {
  position: absolute; z-index: 1; pointer-events: none;
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  background: var(--color);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 1px rgba(138, 106, 14, .9)) drop-shadow(0 0 4px rgba(255, 220, 110, .95));
  animation: sparkle-twinkle var(--dur) ease-in-out forwards;
}
@keyframes sparkle-twinkle {
  0%   { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  40%  { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .4)) scale(1) rotate(90deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0) rotate(180deg); opacity: 0; }
}
@keyframes cta-sweep {
  0%, 60% { left: -75%; }
  85%, 100% { left: 125%; }
}
@keyframes cta-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-shine, .btn-shine-sheen::before { animation: none; }
  .sparkle { display: none; }
}
.btn-block { width: 100%; }

/* ---------- Shared headings ---------- */
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-dark);
}
.kicker-line { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.kicker-line::before { content: ""; width: 36px; height: 3px; background: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); }
h2 { font-weight: 700; font-size: clamp(34px, 4.2vw, 52px); line-height: 1; }

.section { padding: var(--section-space) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.section-head-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-intro { max-width: 460px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: #f3efe4; font-size: 13px; font-weight: 600; }
.topbar-inner { min-height: 44px; padding-block: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 24px; }
.topbar-claims, .topbar-contact { display: flex; align-items: center; gap: 10px; }
.topbar-contact { gap: 24px; }
.topbar-claims { font-size: 16px; font-weight: 800; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .dot { color: #8c877c; }

/* Small outlined "Sign in" button. On wide screens it sits in the top-right corner;
   on smaller screens it follows the email; on phones it moves into the menu. */
.topbar-inner { position: relative; }
.topbar-signin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 1px solid rgba(212, 169, 30, .5); border-radius: 999px;
  background: none; color: inherit; font: inherit; font-size: 12px; letter-spacing: .02em; cursor: pointer;
}
.topbar-signin svg { color: var(--gold); }
.topbar-signin:hover { border-color: var(--gold); color: var(--gold); }
.topbar-signin:focus-visible { outline: 2px solid var(--gold-focus); outline-offset: 2px; }
@media (min-width: 1181px) {
  .topbar-signin { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
}
.nav-signin { display: none; }

/* ---------- Header (sticky, together with the top bar) ---------- */
.site-top { position: sticky; top: 0; z-index: 50; }
.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(17, 17, 17, .08);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-text { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.header-cta { white-space: nowrap; }
.brand-name { font-family: var(--font-brand); font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: .18em; margin-right: -.18em; }
.brand-sub { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gold-dark); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 17px; font-weight: 500; white-space: nowrap; }
.site-nav a { text-decoration: none; }
.nav-cta { display: none; }   /* only shown inside the mobile menu */

/* Nav previews (js/nav-peek.js): pointing at a label pops a short note under it */
.site-nav { position: relative; }
.nav-peek {
  position: absolute; top: calc(100% + 14px); z-index: 60; width: 260px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  box-shadow: 0 14px 32px rgba(17, 17, 17, .14);
  color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: normal; line-height: 1.5; white-space: normal; text-align: left;
  animation: nav-peek-in .1s ease-out;
}
.nav-peek::before { /* little pointer up to the label */
  content: ""; position: absolute; top: -7px; left: var(--peek-caret, 50%); width: 12px; height: 12px; margin-left: -6px;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); transform: rotate(45deg);
}
.nav-peek[hidden] { display: none; }
.topbar-inner > .nav-peek { top: calc(100% + 8px); right: var(--gutter); }
@keyframes nav-peek-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-peek { animation: none; } }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--cream); }
/* Row 1: headline | photo. Row 2: "Build the clean…" | promise (under the photo). */
.hero-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; padding-right: 40px; padding-bottom: 64px; }
.hero-copy { padding: 72px 0 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.01em; }
.hero h1 { text-wrap: balance; }
.hero h1 .gold { display: block; font-style: italic; } /* the gold line always on its own */
.hero-lead { max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--soft-dark); }
.hero-promise, .hero-next { max-width: 560px; padding-top: 32px; }
.hero-next { padding-top: 28px; } /* same spacing as the lines above it, so the left column reads as one block */
.hero-next { font-size: 19px; line-height: 1.55; color: var(--soft-dark); } /* same size as the intro above it */
.hero-next-line { display: block; margin-top: 10px; } /* "We'll confirm your final price…" on its own line */
.hero-promise-title { margin: 0 0 14px; font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
/* Columns, not a grid: a two-line item doesn't leave a gap beside it */
.hero-promise-list { columns: 2; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.hero-promise-list li { position: relative; break-inside: avoid; margin-bottom: 10px; padding-left: 24px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--cream); }
.hero-promise-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* The photo fills the row instead of setting its height, so the headline column decides it */
.hero-media { position: relative; min-height: 420px; }
.hero-media img { position: absolute; top: 40px; right: 0; bottom: 0; left: 0; width: 100%; height: calc(100% - 40px); object-fit: cover; border-radius: 24px; }

/* ---------- Estimator ---------- */
.section-estimate { padding-top: 48px; }
.section-head-center { align-items: center; text-align: center; }
.section-head-center .section-intro { max-width: 560px; text-wrap: balance; }

/* "Build your clean" (js/estimator.js): numbered steps on the left, the
   receipt on the right; one column on narrow screens. Rounded, white and
   soft-shadowed like the rest of the quote form; black + gold = picked. */
.est-app { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.est-app[hidden] { display: none; }
.est-steps { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.est-step-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.est-step-num {
  flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%;
  background: var(--black); color: var(--gold); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.est-step-title { font-family: var(--font-body); font-size: 20px; font-weight: 800; line-height: 1.3; }
.est-step-sub { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* 1 · Your home */
.est-home { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: end; } /* property type, floors */
/* Rooms to clean: tick-box chips, a count on the ones there can be several of */
.est-roomsel { margin-top: 20px; }
.est-roomsel[hidden] { display: none; }
.est-roomsel > .est-label { margin: 0 0 10px; }
.est-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.est-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 4px;
  border: 1.5px solid #cfcabd; border-radius: 999px; background: var(--white);
}
.est-chip.is-on { border-color: var(--black); }
.est-chip label { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.est-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-chip input:checked + .est-box { background: var(--black); border-color: var(--black); }
.est-chip input:checked + .est-box::after { content: "✓"; color: var(--gold); font-size: 13px; font-weight: 900; }
.est-chip input:focus-visible + .est-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.est-chip .est-box { width: 20px; height: 20px; }
.est-app .est-select.est-chip-count {
  width: auto; min-height: 30px; margin-right: 2px; padding: 2px 26px 2px 10px; border: 0; border-radius: 999px;
  background-color: var(--cream); background-position: right 9px center; background-size: 11px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.est-chip-count[hidden] { display: none; }
.est-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.est-field[hidden] { display: none; }
.est-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.est-app .est-select { width: 100%; max-width: none; min-height: 52px; padding-left: 18px; font-size: 16px; color: var(--ink); }

/* 2 · Service cards, each with a "what's included" bubble */
.est-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.est-svc { position: relative; }
.est-svc-card {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px;
  border: 0; border-radius: 18px; background: var(--white); box-shadow: var(--soft-shadow);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.est-svc-card:hover { box-shadow: var(--soft-shadow-hover); transform: translateY(-1px); }
.est-svc-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.est-svc-card b { font-size: 16px; font-weight: 800; }
.est-svc-line { font-size: 13px; line-height: 1.4; color: var(--muted); }
.est-svc-more { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 800; color: var(--gold-dark); }
.est-svc-card[aria-pressed="true"] { background: var(--black); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.est-svc-card[aria-pressed="true"] b, .est-svc-card[aria-pressed="true"] .est-svc-more { color: var(--gold); }
.est-svc-card[aria-pressed="true"] .est-svc-line { color: var(--muted-dark); }

/* The bubble grows out of its tail, then its lines draw in one by one
   (the owner's "message pop-up" animation, sped up to about half) */
.est-bubble {
  position: absolute; left: 10px; bottom: calc(100% + 14px); z-index: 30;
  width: 360px; max-width: calc(100vw - 32px); /* always full height: js/estimator.js makes room for it */
  padding: 16px 18px 14px; border-radius: 18px; background: var(--black); color: var(--cream);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28); pointer-events: none;
  transform-origin: 26px calc(100% + 12px); transform: scale(0);
  transition: transform .2s cubic-bezier(.672, 0, .365, 1);
}
.est-svc.is-open .est-bubble { transform: scale(1); transition: transform .24s cubic-bezier(.49, 0, .175, 1); }
/* No room above the card (under the sticky header): it opens below, tail pointing up */
.est-svc.is-below .est-bubble { bottom: auto; top: calc(100% + 14px); transform-origin: 26px -12px; }
.est-svc.is-below.is-left .est-bubble { transform-origin: calc(100% - 26px) -12px; }
.est-svc.is-below::after { bottom: auto; top: calc(100% + 3px); clip-path: polygon(15% 0, 0 100%, 100% 100%); transform-origin: 15% 0; }
.est-svc.is-below.is-left::after { clip-path: polygon(85% 0, 0 100%, 100% 100%); transform-origin: 85% 0; }
/* Open, the bubble takes clicks itself: a click on it closes it instead of falling
   through to the cards underneath */
.est-svc.is-open .est-bubble { pointer-events: auto; }
.est-svc.is-left .est-bubble { left: auto; right: 10px; transform-origin: calc(100% - 26px) calc(100% + 12px); }
.est-svc::after {
  content: ""; position: absolute; left: 28px; bottom: calc(100% + 3px); z-index: 31; width: 18px; height: 12px;
  background: var(--black); clip-path: polygon(0 0, 100% 0, 15% 100%);
  transform: scale(0); transform-origin: 15% 100%; transition: transform .2s cubic-bezier(.672, 0, .365, 1); pointer-events: none;
}
.est-svc.is-left::after { left: auto; right: 28px; clip-path: polygon(0 0, 100% 0, 85% 100%); transform-origin: 85% 100%; }
.est-svc.is-open::after { transform: scale(1); transition: transform .24s cubic-bezier(.49, 0, .175, 1); }
/* In the quote pop-up: as wide as the card grid (js/estimator.js sets the width and
   where the tail is), so the list takes more columns and the bubble is shorter */
.est-svc .est-bubble.is-wide { max-width: none; transform-origin: var(--tail-x) calc(100% + 12px); }
.est-svc.is-below .est-bubble.is-wide { transform-origin: var(--tail-x) -12px; }
.est-bubble.is-wide .est-bubble-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* An invisible margin under it, so the pop-up can scroll a little past its bottom edge */
.est-bubble.is-wide::after { content: ""; position: absolute; left: 0; bottom: -24px; width: 1px; height: 24px; pointer-events: none; }
.est-bubble-title { margin: 0 0 2px; font-size: 15px; font-weight: 800; color: var(--gold); }
.est-bubble-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted-dark); }
.est-bubble-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; font-size: 13px; line-height: 1.35; }
.est-bubble-list li { position: relative; padding-left: 16px; }
.est-bubble-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.est-bubble-sub, .est-bubble-list li {
  clip-path: inset(0 0 0 100%); opacity: .2;
  transition: clip-path .12s cubic-bezier(.702, 0, .298, 1), opacity .12s;
}
.est-svc.is-open .est-bubble-sub, .est-svc.is-open .est-bubble-list li {
  clip-path: inset(0 0 0 0); opacity: 1; transition-delay: calc(.04s + var(--i) * .01s);
}

/* 3 · Routine or one-time */
.est-routine { padding: 20px; border-radius: 22px; background: var(--white); box-shadow: var(--soft-shadow); }
.est-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.est-choice {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 18px;
  background: var(--white); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.est-choice:hover { border-color: var(--ink); }
.est-choice:focus-visible, .est-plan:focus-visible, .est-room-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.est-choice b { display: block; font-size: 16px; font-weight: 800; }
.est-choice-text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.est-dot { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #cfcabd; display: inline-flex; align-items: center; justify-content: center; }
.est-choice[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--cream); }
.est-choice[aria-pressed="true"] b { color: var(--gold); }
.est-choice[aria-pressed="true"] .est-choice-text { color: var(--muted-dark); }
.est-choice[aria-pressed="true"] .est-dot { border-color: var(--gold); }
.est-choice[aria-pressed="true"] .est-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.est-plans-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.est-plans-wrap.is-open { grid-template-rows: 1fr; }
.est-plans-wrap > div { overflow: hidden; }
.est-plans-wrap:not(.is-open) .est-plan { visibility: hidden; }
.est-plans-inner { padding-top: 18px; }
.est-plans-label { margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.est-plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.est-plan {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px; border: 1.5px solid transparent; border-radius: 16px;
  background: var(--cream); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.est-plan:hover { border-color: var(--ink); }
/* "Best value": a jagged comic burst ("BOOM!") in red, black outline, tilted on the card's corner.
   The outline is drop-shadows on the wrapper, which trace the clipped shape inside it. */
.est-plan { position: relative; }
.est-plan .est-burst {
  position: absolute; top: -16px; right: -10px; z-index: 2; pointer-events: none; transform: rotate(10deg);
  filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)) drop-shadow(2px 3px 0 rgba(17, 17, 17, .25));
}
.est-plan .est-burst .est-burst-fill {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0 13px; box-sizing: border-box;
  background: var(--red); color: var(--cream); text-align: center;
  font-size: 10px; font-weight: 900; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(48% 0%, 57.3% 17.8%, 71.6% 9.4%, 73.1% 21.1%, 87.8% 17.3%, 77.9% 36.5%, 93.3% 41.9%, 86% 50%, 98.2% 59%, 80.6% 64.8%, 85.5% 80.8%, 68.7% 73.5%, 73.5% 94.1%, 58.2% 86.1%, 48.2% 95%, 42.9% 81.2%, 30.9% 94%, 28.2% 77.4%, 9.7% 79.6%, 22.1% 63.5%, 5.6% 62%, 14% 50%, 2.7% 37.2%, 20.3% 35.7%, 14.5% 24%, 31.3% 26.5%, 30.1% 4.1%, 42.2% 15.9%);
}
.est-plans-wrap.is-open .est-burst { animation: est-boom .45s cubic-bezier(.34, 1.56, .64, 1) .2s both; }
@keyframes est-boom { from { transform: rotate(-25deg) scale(.2); opacity: 0; } to { transform: rotate(10deg) scale(1); opacity: 1; } }
.est-plan b { font-size: 15px; font-weight: 800; }
.est-plan span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.est-plan[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--cream); }
.est-plan[aria-pressed="true"] b { color: var(--gold); }
.est-plan[aria-pressed="true"] span { color: var(--muted-dark); }
.est-routine-note { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.est-routine-note svg { flex: none; margin-top: 1px; color: var(--gold-dark); }

/* 4 · Add-ons: one row per room, opening into a checklist */
.est-rooms { display: grid; gap: 10px; }
.est-room { border-radius: 18px; background: var(--white); box-shadow: var(--soft-shadow); }
.est-room-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 0; border-radius: 18px;
  background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.est-room-head b { font-size: 16px; font-weight: 800; }
.est-room-count { font-size: 13px; font-weight: 700; color: var(--gold-dark); }
.est-chev { margin-left: auto; transition: transform .25s; }
.est-room.is-open .est-chev { transform: rotate(180deg); }
.est-room-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.est-room.is-open .est-room-body { grid-template-rows: 1fr; }
.est-room-body > div { overflow: hidden; }
.est-room:not(.is-open) .est-checks { visibility: hidden; }
.est-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 0 18px 16px; }
.est-check { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line-soft); }
.est-check label { flex: 1; display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 15px; font-weight: 600; cursor: pointer; }
.est-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-box {
  flex: none; width: 22px; height: 22px; border: 1.5px solid #cfcabd; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.est-check input:checked + .est-box { background: var(--black); border-color: var(--black); }
.est-check input:checked + .est-box::after { content: "✓"; color: var(--gold); font-size: 13px; font-weight: 900; }
.est-check input:focus-visible + .est-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.est-qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--cream); }
.est-qty[hidden] { display: none; }
.est-qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font: inherit; font-weight: 800; cursor: pointer; }
.est-qty-num { min-width: 22px; text-align: center; font-size: 14px; font-weight: 800; }

/* The receipt: only as tall as what's in it, follows you down the page */
.est-receipt {
  position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px);
  padding: 24px; border-radius: 22px; background: var(--black); color: var(--cream); box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.est-receipt-label { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.est-amount { display: flex; align-items: baseline; gap: 10px; }
.est-amount small { font-size: 13px; font-weight: 600; color: var(--muted-dark); }
.est-amount strong { font-size: 44px; font-weight: 800; line-height: 1; color: var(--gold); }
.est-minimum { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted-dark); }
.est-receipt-lines { margin: 0 0 16px; border-top: 1px solid var(--line-dark); }
.est-receipt-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
.est-receipt-line dt { color: var(--muted-dark); }
.est-receipt-line dd { margin: 0; font-weight: 700; text-align: right; }
.est-receipt-line.is-new { overflow: hidden; animation: est-line-in .35s cubic-bezier(.49, 0, .175, 1); }
@keyframes est-line-in { from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } to { max-height: 60px; opacity: 1; } }

@media (max-width: 1000px) {
  .est-app { grid-template-columns: 1fr; }
  .est-receipt { position: static; }
  .est-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .est-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-home { grid-template-columns: 1fr 1fr; }
  .est-choices, .est-checks { grid-template-columns: 1fr; }
  .est-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two cards per row: the bubble spans both, lined up with the grid's edges */
  .est-bubble { left: 0; width: calc(200% + 12px); max-width: none; }
  .est-svc.is-left .est-bubble { right: 0; }
  .est-bubble-list { grid-template-columns: 1fr; }
  .est-bubble.is-wide .est-bubble-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .est-bubble, .est-svc::after, .est-bubble-sub, .est-bubble-list li, .est-plans-wrap, .est-room-body, .est-chev { transition: none !important; }
  .est-plans-wrap.is-open .est-burst { animation: none; }
  .est-receipt-line.is-new { animation: none; }
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid #cfcabd; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--gold); font-weight: 800; }

/* Fieldsets with a small caps legend (the account's "Preferred day" / "Arrival window") */
.est-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-group[hidden] { display: none; }
.est-group legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* The quote pop-up's summary of what they picked */
.est-summary-label { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.est-lines { margin: 0; border-top: 1px solid var(--line-dark); }
.est-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.est-line dt { color: var(--muted-dark); }
.est-line dd { margin: 0; font-weight: 700; text-align: right; }
.est-notes { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--muted-dark); }
.est-fine { font-size: 12px; line-height: 1.5; color: #9c968a; text-align: center; }

/* The estimator inside the account's Schedule card: one column, receipt under the steps */
.est-embedded.est-app { grid-template-columns: 1fr; }
.est-embedded .est-receipt { position: static; max-width: 420px; }

/* "Book this again" (account Schedule tab) */
.rebook-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rebook-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rebook-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 0; border-radius: 18px;
  background: var(--white); box-shadow: var(--soft-shadow); font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.rebook-card:hover { box-shadow: var(--soft-shadow-hover); transform: translateY(-1px); }
.rebook-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rebook-card b { font-size: 15px; font-weight: 800; }
.rebook-card span { font-size: 13px; color: var(--muted); }
.rebook-card em { margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--gold-dark); }
.rebook-card[aria-pressed="true"] { background: var(--black); color: var(--cream); }
.rebook-card[aria-pressed="true"] span { color: var(--muted-dark); }
.rebook-card[aria-pressed="true"] em { color: var(--gold); }

.estimator-fallback {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px 36px; font-size: 17px;
}
.estimator-fallback a { font-weight: 800; }

.disclaimer { margin-top: 36px; max-width: 1040px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.disclaimer strong { color: var(--ink); }

/* ---------- Our services (js/services.js) ----------
   Square corners here only (the estimator stays rounded). Photo on the left,
   then name, who it is best for, description and the full checklist. */
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); border: 1px solid var(--line); background: var(--cream); }
.svc-card-photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.svc-card-body { padding: 14px 16px 16px; min-width: 0; }
.svc-card-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; }
.svc-card-best { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--gold-dark); }
.svc-card-desc { margin: 4px 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.svc-card-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; font-size: 13px; line-height: 1.35; }
.svc-card-list li { position: relative; padding-left: 15px; }
.svc-card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* ---------- Who we are (about + contact) ----------
   Stands out a little from the other sections: a white band with a soft gold
   wedge, and the Promise card floating over the photo. */
.section-about {
  position: relative; overflow: hidden; padding: calc(var(--section-space) + 24px) 0;
  background: linear-gradient(115deg, var(--white) 0%, var(--white) 58%, #f7f0dc 58%, #f7f0dc 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 56px; row-gap: 0;
  grid-template-areas: "copy visual" "contact visual"; align-items: center;
}
.about-copy { grid-area: copy; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.about-copy h2 { max-width: 18ch; }
.about-copy h2 { text-wrap: balance; }
.about-copy h2 .gold { display: block; font-style: italic; } /* the slogan, styled like the hero: "Comfort and peace." on its own line */
.about-lead, .about-text { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.about-contact { grid-area: contact; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); width: 100%; max-width: 560px; }
.about-contact-title { font-size: 22px; line-height: 1.2; }
.about-visual { grid-area: visual; position: relative; padding-bottom: 72px; }
.about-photo { display: block; width: 100%; height: 360px; object-fit: cover; border-radius: 0; } /* square corners, like the Services photos */
.about-promise {
  position: absolute; left: -32px; bottom: 0; width: min(340px, 85%);
  padding: 22px 24px; border-radius: var(--radius-card); background: var(--white);
  box-shadow: 0 18px 40px rgba(17, 17, 17, .12);
}
.about-promise-title { margin-bottom: 12px; font-size: 19px; line-height: 1.2; }
.about-promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; line-height: 1.35; }
.about-promise-list li { position: relative; padding-left: 22px; }
.about-promise-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.contact-list { display: flex; flex-direction: column; gap: 10px; font-size: 17px; font-weight: 700; }
.contact-list a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--soft-dark); padding: 40px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; }
.footer-name { font-family: var(--font-brand); font-weight: 600; font-size: 25px; letter-spacing: .18em; color: var(--cream); }
.footer-sub { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.footer-nav a { color: var(--cream); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* ---------- Quote request popup ---------- */
.quote-modal {
  width: min(980px, 94vw); max-height: 92vh;
  padding: 0; border: 0; border-radius: 22px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.quote-modal::backdrop { background: rgba(17, 17, 17, .7); }
/* A flex column so only the body scrolls and the close button stays in view */
.quote-modal[open] { display: flex; flex-direction: column; }

.quote-modal-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 28px; background: var(--black); color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.quote-modal-title { font-weight: 900; font-size: 26px; line-height: 1; }
.quote-modal-close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: var(--cream); font-size: 16px; cursor: pointer;
}
.quote-modal-close:hover { background: rgba(255, 255, 255, .24); }

.quote-modal-body { overflow-y: auto; padding: 28px; }
.quote-modal-body[hidden] { display: none; }
.quote-disclaimer { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted-dark); }

/* The quote pop-up, one step at a time (js/quote-form.js): progress up top,
   the estimate and Back / Next along the bottom */
.quote-wizard { height: min(740px, 92vh); }
/* Room for the scrollbar kept even when there's nothing to scroll, so the cards don't
   narrow and reflow when one appears (e.g. when a "what's included" bubble opens) */
.quote-wizard .quote-modal-body { scrollbar-gutter: stable; }
.qw-progress { flex: none; padding: 14px 28px 0; }
.qw-progress-text { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.qw-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qw-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width .25s ease; }
.quote-wizard .quote-modal-body { flex: 1; padding-top: 22px; }
.qw-est.est-app { display: block; }
.qw-est .est-receipt { display: none; }
.qw-est .est-step[hidden], .qw-details[hidden] { display: none; }
.qw-step-error { margin-top: 18px; }
.qw-details { display: flex; flex-direction: column; gap: 24px; }
.qw-review { padding: 18px 20px; border-radius: 16px; background: var(--cream); }
.qw-review .kicker { margin-bottom: 10px; }
.qw-review-list { margin: 0; }
.qw-review-row { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.qw-review-row:first-child { border-top: 0; }
.qw-review-row dt { flex: none; width: 92px; color: var(--muted); font-weight: 700; }
.qw-review-row dd { flex: 1; margin: 0; font-weight: 600; }
.qw-edit {
  flex: none; padding: 0; border: 0; background: none; color: var(--gold-dark);
  font: inherit; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.qw-breakdown { flex: none; max-height: 40vh; overflow-y: auto; padding: 16px 28px; border-top: 1px solid var(--line-dark); background: var(--black); color: var(--cream); }
.qw-breakdown[hidden] { display: none; }
.qw-breakdown .est-lines { margin: 0; }
.qw-foot {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: var(--black); color: var(--cream);
}
.qw-back {
  flex: none; min-height: 44px; padding: 0 18px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: none; color: var(--cream); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.qw-back[hidden] { display: none; }
.qw-back:hover { border-color: var(--cream); }
.qw-total {
  flex: 1; min-width: 0; padding: 6px 4px; border: 0; background: none; color: var(--cream);
  font: inherit; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qw-total b { color: var(--gold); font-weight: 800; }
.qw-total::after { content: " ▴"; color: var(--gold); }
.qw-total[aria-expanded="true"]::after { content: " ▾"; }
.qw-next { flex: none; min-height: 44px; padding: 0 26px; }
.qw-next[hidden] { display: none; }
.quote-wizard.is-done .qw-progress, .quote-wizard.is-done .qw-foot, .quote-wizard.is-done .qw-breakdown { display: none; }

.quote-contact { display: flex; flex-direction: column; gap: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.req { color: var(--gold-dark); }
.field-hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.field input, .field textarea, .field select, .est-select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #cfcabd; border-radius: 10px; background: var(--white);
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
}
/* Dropdowns: the browser's own, with our arrow. Where the browser allows it
   (appearance: base-select), the open list is styled to match too. */
.est-select, .field select {
  max-width: 280px; cursor: pointer; padding-right: 42px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151412' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  font-weight: 600;
}
@supports (appearance: base-select) {
  .est-select, .field select { appearance: base-select; }
  .est-select::picker-icon, .field select::picker-icon { display: none; } /* our arrow is the background */
  .est-select::picker(select), .field select::picker(select) {
    appearance: base-select; border: 0; border-radius: 16px; padding: 6px; margin-top: 6px;
    background: var(--white); box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  }
  .est-select option, .field select option { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
  .est-select option::checkmark, .field select option::checkmark { display: none; }
  .est-select option:hover, .field select option:hover { background: #f6f3ec; }
  .est-select option:checked, .field select option:checked { background: var(--black); color: var(--gold); font-weight: 800; }
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus, .est-select:focus { border-color: var(--ink); outline: 3px solid var(--gold-focus); outline-offset: 0; }

/* Address suggestions (js/address-autocomplete.js) */
.ac-host { position: relative; }
.ac-box {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14); overflow: hidden;
}
.ac-box[hidden] { display: none; }
.ac-list { list-style: none; margin: 0; padding: 4px 0; max-height: 210px; overflow-y: auto; }
.ac-option { display: flex; flex-direction: column; gap: 1px; padding: 9px 14px; cursor: pointer; text-align: left; }
.ac-option:hover, .ac-option[aria-selected="true"] { background: #fbf3d9; }
.ac-main { font-size: 15px; font-weight: 700; color: var(--ink); }
.ac-sub { font-size: 13px; color: var(--muted); }
.ac-credit { margin: 0; padding: 6px 14px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); text-align: right; }

/* Preferred day: calendar date picker (js/date-picker.js) */
.date-field { position: relative; }
.date-trigger {
  width: 100%; min-height: 48px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid #cfcabd; border-radius: 10px; background: var(--white);
  font-family: var(--font-body); font-size: 16px; color: #8f8a7e; text-align: left; cursor: pointer;
}
.date-trigger:hover { border-color: var(--ink); }
.date-trigger[aria-expanded="true"] { border-color: var(--ink); outline: 3px solid var(--gold-focus); outline-offset: 0; }
.date-trigger.has-value { color: var(--ink); font-weight: 600; }
.date-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-icon { flex: none; color: var(--gold-dark); }

.cal {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; /* right-aligned so it stays inside the popup */
  width: 320px; max-width: calc(100vw - 32px); padding: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, .18);
}
.cal[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { font-family: var(--font-display); font-weight: 800; font-size: 17px; text-transform: uppercase; }
.cal-nav {
  width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.cal-nav:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-weekdays span { padding: 6px 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 999px; background: none;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.cal-day:hover:not(:disabled) { background: var(--line-soft); }
.cal-day:disabled { color: #c3beb2; cursor: not-allowed; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-day.is-selected { background: var(--black); color: var(--gold); font-weight: 800; }
.cal-day:focus-visible { outline: 3px solid var(--gold-focus); outline-offset: 1px; }

.cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.cal-link {
  padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--gold-dark);
}
.cal-link:hover { color: var(--ink); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  padding: 12px 14px; border-radius: 10px;
  background: #fbeaea; color: #8a1c1c; font-size: 14px; font-weight: 700;
}
.form-error[hidden] { display: none; }
.quote-contact .est-fine { color: var(--muted); }

.quote-done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 28px 52px; text-align: center; }
.quote-done[hidden] { display: none; }
.quote-done-icon {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: var(--gold); color: var(--black); font-size: 26px; font-weight: 900;
}
.quote-done h3 { font-weight: 900; font-size: 28px; }
.quote-done p { max-width: 46ch; color: var(--muted); }

/* ---------- Sign-in popup (reuses the quote popup's frame) ---------- */
.signin-modal { width: min(460px, 94vw); }
.signin-body { display: flex; flex-direction: column; gap: 16px; }
.signin-intro { color: var(--muted); }
.signin-fine { font-size: 14px; color: var(--muted); text-align: center; }
.signin-link { color: var(--gold-dark); font-weight: 800; text-underline-offset: 3px; }
.signin-link:hover { color: var(--ink); }

/* ---------- Privacy and Terms pages (privacy.html, terms.html) ---------- */
.legal-page { padding: var(--section-space) 0 calc(var(--section-space) * 1.5); }
.legal {
  max-width: 760px; margin: 0 auto; padding: 48px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.legal h1 { font-weight: 900; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; margin: 10px 0 8px; }
.legal-date { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--gold-dark); font-weight: 700; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
/* A blank the owner still has to fill in; none may be left when this goes live */
.legal-todo { background: #fff2b3; color: var(--ink); padding: 1px 5px; border-radius: 4px; font-weight: 700; }
@media (max-width: 640px) { .legal { padding: 28px 20px; } }

/* ---------- My Account page (account.html) ---------- */
.account-page { padding: var(--section-space) 0 calc(var(--section-space) * 1.5); min-height: 60vh; }
.account-card {
  max-width: 640px; margin: 0 auto; padding: 40px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.account-card[hidden] { display: none; }
.account-title { font-weight: 900; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.account-text, .account-status { color: var(--muted); }
.account-text strong { color: var(--ink); }
.account-empty {
  align-self: stretch; padding: 22px; border: 1.5px dashed var(--line); border-radius: 12px;
  color: var(--muted); text-align: center;
}
.account-signout { background: none; border: 1.5px solid var(--ink); color: var(--ink); }
.account-signout:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 38px; padding: 8px 18px; font-size: 14px; }

/* ----- Customer portal (signed in) ----- */
.portal { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.portal[hidden] { display: none; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.portal-head > div { display: flex; flex-direction: column; gap: 10px; }
.portal-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.portal-tab {
  min-height: 48px; padding: 0 22px; margin-bottom: -2px;
  border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--muted);
}
.portal-tab:hover { color: var(--ink); }
.portal-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); font-weight: 800; }

.portal-panel { display: flex; flex-direction: column; gap: 22px; }
.portal-panel[hidden] { display: none; }
.portal-loading { color: var(--muted); }
.portal-loading[hidden] { display: none; }

.portal-card {
  padding: 32px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-card);
}
.portal-card[hidden] { display: none; }
.portal-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.portal-card-title { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.1; }
.portal-form { display: flex; flex-direction: column; gap: 26px; }
.portal-form > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.portal-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.portal-card.quote-done { padding: 40px 28px; }
.cal-left { left: 0; right: auto; }

/* Preferred day + time on one row */
.when-row { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 26px 24px; align-items: start; }

/* Arrival window: one pill per window (js/window-picker.js) */
.window-field { display: flex; flex-direction: column; gap: 8px; }
.window-pills .pill { padding: 0 16px; }

/* Cleanings list */
.cleaning-group { display: flex; flex-direction: column; gap: 10px; }
.cleaning-group + .cleaning-group { margin-top: 14px; }
.cleaning-group-title { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.cleaning {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.cleaning-next { padding: 26px 28px; border: 0; background: var(--black); color: var(--cream); border-radius: var(--radius-card); }
.cleaning-past { background: none; }
.cleaning-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cleaning-when { font-weight: 800; font-size: 17px; }
.cleaning-next .cleaning-when { font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.cleaning-what { color: var(--muted); }
.cleaning-next .cleaning-what { color: var(--cream); font-weight: 700; }
.cleaning-where, .cleaning-notes { color: var(--muted); font-size: 14px; }
.cleaning-next .cleaning-where, .cleaning-next .cleaning-notes { color: var(--muted-dark); }
.cleaning-notes { font-style: italic; }
.cleaning-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.badge-confirmed { background: #e3f1e5; color: #1f6a2f; }
.badge-requested { background: #fbf3d9; color: var(--gold-dark); }
.badge-awaiting { background: #fde7c7; color: #8a4b0e; }
.badge-paid { background: #e3f1e5; color: #1f6a2f; }

/* Make Payment (Square) — big on the next-cleaning card */
.pay-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pay-btn { min-height: 46px; padding: 12px 22px; font-size: 15px; white-space: nowrap; }
.pay-wrap-big .pay-btn { min-height: 60px; padding: 16px 30px; font-size: 18px; font-weight: 800; box-shadow: 0 8px 24px rgba(212, 169, 30, .35); }
.pay-note { max-width: 240px; font-size: 12px; color: var(--muted); text-align: right; }
.cleaning-next .pay-note { color: var(--muted-dark); }
.pay-error { max-width: 260px; font-size: 13px; font-weight: 700; color: #9a2a2a; text-align: right; }
.cleaning-next .pay-error { color: #f2a7a7; }

/* Pay now / Pay after the cleaning: native radio buttons in pill-shaped choices */
.pay-choice { display: flex; flex-direction: column; gap: 8px; min-width: 260px; margin: 0; padding: 0; border: 0; text-align: left; }
.pay-choice-legend { margin-bottom: 4px; font-size: 13px; font-weight: 800; }
.pay-option { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); cursor: pointer; }
.pay-option:hover { border-color: var(--ink); }
.pay-option:has(input:checked) { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); background: #faf7ef; }
.pay-option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--black); }
.pay-option input:focus-visible { outline: 3px solid var(--gold-focus); outline-offset: 2px; }
.pay-option-text { display: flex; flex-direction: column; line-height: 1.3; }
.pay-option-text strong { font-size: 15px; }
.pay-option-text small { font-size: 12px; color: var(--muted); }
.cleaning-next .pay-choice-legend { color: var(--cream); }
.bill-pay { min-height: 44px; padding: 10px 22px; }
/* Before/after photos the owner shared on a cleaning */
.cleaning-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cleaning-photo { position: relative; display: block; width: 104px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.cleaning-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line-soft); }
.cleaning-photo span { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(17, 17, 17, .78); color: var(--white); font-size: 11px; font-weight: 800; }
.pay-error[hidden] { display: none; }

/* The Terms box above every booking button (js/account.js termsBox) */
.terms-agree { display: flex; flex-direction: column; gap: 8px; max-width: 360px; text-align: left; }
.terms-summary { font-size: 13px; line-height: 1.5; color: var(--muted); }
.terms-summary strong { color: var(--ink); }
.terms-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.terms-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.terms-check input:focus-visible { outline: 3px solid var(--gold-focus); outline-offset: 2px; }
.terms-check a, .terms-fine a { color: var(--gold-dark); font-weight: 800; text-underline-offset: 3px; }
.terms-agree .pay-error { max-width: none; text-align: left; }
.terms-fine { font-size: 13px; color: var(--muted); }
.cleaning-next .terms-summary { color: var(--muted-dark); }
.cleaning-next .terms-summary strong, .cleaning-next .terms-check { color: var(--cream); }
.cleaning-next .terms-check a { color: var(--gold); }
.cleaning-next .terms-check input { accent-color: var(--gold); }
.invoice-sheet .terms-agree { margin-top: 20px; max-width: 460px; }
.invoice-sheet .terms-fine { margin-top: 16px; }

/* The Terms popup: terms.html's text in the quote popup's frame */
.terms-modal { width: min(760px, 94vw); }
.terms-modal-body { overflow-y: auto; flex: 1 1 auto; }
.terms-modal-body .legal { border: 0; border-radius: 0; padding: 28px 32px; max-width: none; }
.terms-modal-body .legal > .kicker, .terms-modal-body .legal > h1 { display: none; } /* the popup's title says it */
.terms-modal-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-top: 1px solid var(--line); }
.terms-modal-foot a { color: var(--gold-dark); font-weight: 700; font-size: 14px; }

/* Messages after returning from Square */
.portal-banner { padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.portal-banner[hidden] { display: none; }
.portal-banner-wait { background: #fbf3d9; color: var(--gold-dark); }
.portal-banner-ok { background: #e3f1e5; color: #1f6a2f; }

/* Owner's price on a cleaning (line items on the next-cleaning card, total elsewhere) */
.cleaning-price { margin-top: 8px; }
.cleaning-items { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; max-width: 420px; }
.cleaning-item { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.cleaning-item dd { margin: 0; white-space: nowrap; }
.cleaning-total { font-weight: 800; }
.cleaning-next .cleaning-items { color: var(--muted-dark); }
.cleaning-next .cleaning-total { color: var(--gold); font-size: 18px; }
.badge-done { background: var(--line-soft); color: var(--muted); }
.cleaning-invoice-link { font-size: 14px; font-weight: 700; color: var(--gold-dark); }

/* Invoices tab: the list, and one invoice laid out to print (js/account.js) */
.invoice-row { color: var(--ink); text-decoration: none; }
.invoice-row:hover { border-color: var(--ink); color: var(--ink); }
.invoice-row-note { font-size: 14px; font-weight: 700; }
.invoice-void { opacity: .6; }
.badge-inv-due, .badge-inv-partpaid { background: #fde7c7; color: #8a4b0e; }
.badge-inv-paid { background: #e3f1e5; color: #1f6a2f; }
.badge-inv-void, .badge-inv-partrefunded, .badge-inv-refunded { background: var(--line-soft); color: var(--muted); }
.invoice-wrap { display: flex; flex-direction: column; gap: 14px; }
.invoice-back { align-self: flex-start; font-weight: 700; color: var(--gold-dark); }
.invoice-sheet { display: flex; flex-direction: column; gap: 24px; }
.invoice-sheet.invoice-void { opacity: 1; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.invoice-biz { font-family: var(--font-display); font-size: 20px; font-weight: 900; }
.invoice-contact { font-size: 14px; color: var(--muted); }
.invoice-id { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.invoice-void-note { padding: 12px 16px; border-radius: 12px; background: var(--line-soft); font-weight: 700; }
.invoice-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.invoice-meta dt { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.invoice-meta dd { margin: 4px 0 0; white-space: pre-line; }
.invoice-items { max-width: none; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.invoice-items .cleaning-item { font-size: 15px; }
.invoice-strong { font-weight: 800; }
.invoice-balance { padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; }
.invoice-actions { align-items: center; }
.invoice-actions .pay-btn { min-height: 52px; font-size: 16px; }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .portal-head, .portal-tabs, .portal-banner, .invoice-back, .invoice-actions, .pay-error, .terms-agree, .terms-fine, dialog { display: none !important; }
  .account-page, .portal { padding: 0; margin: 0; }
  .invoice-sheet { border: 0; padding: 0; }
  .badge { border: 1px solid currentColor; }
}
.cleaning-cancel {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 800; color: #9a2a2a;
  text-decoration: underline; text-underline-offset: 3px;
}
.cleaning-cancel:hover { color: #6e1717; }
.cleaning-next .cleaning-cancel { color: #f2a7a7; }
.cleaning-next .cleaning-cancel:hover { color: #ffd0d0; }
.cleaning-locked { max-width: 240px; font-size: 13px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.cleaning-next .cleaning-locked { color: var(--muted-dark); }

/* My Info */
.info-list { display: flex; flex-direction: column; margin: 0; }
.info-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.info-list dt { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.info-list dd { margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; overflow-wrap: anywhere; }
.info-note { font-size: 13px; font-weight: 500; color: var(--muted); }
.info-saved { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #e3f1e5; color: #1f6a2f; font-size: 14px; font-weight: 700; }
.info-saved[hidden] { display: none; }
.field-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Small laptops: the full nav only just fits, so the links step back down */
@media (max-width: 1180px) and (min-width: 1001px) {
  .site-nav { font-size: 15px; }
  .header-inner { gap: 16px; }
}

/* Small laptops and small tablets: the combined card is too narrow for two columns */
@media (max-width: 1240px) and (min-width: 1001px), (max-width: 780px) {
}

/* =========================================================
   Tablet (1000px and below)
   ========================================================= */
@media (max-width: 1000px) {
  :root { --gutter: 32px; --header-h: 76px; }

  /* Mobile menu */
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(17, 17, 17, .12);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .nav-cta { display: inline-flex; margin-top: 14px; border-bottom: 0; }
  /* No hover notes in the phone menu */
  .site-nav > .nav-peek { display: none; position: static; }
  .header-inner { position: static; }

  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 10px; }

  /* One column: headline, photo, promise, "Build the clean…" */
  .hero-inner { grid-template-columns: 1fr; row-gap: 32px; padding-right: var(--gutter); padding-bottom: 48px; }
  .hero-copy { padding: 56px 0 0; }
  .hero-media, .hero-promise, .hero-next { padding-top: 0; }
  .hero-media { min-height: 0; }
  .hero-media img { position: static; display: block; aspect-ratio: 16 / 10; height: auto; }

  .section-head-split { flex-direction: column; align-items: flex-start; gap: 12px; }
  .estimator { grid-template-columns: 1fr; }

  .svc-cards { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "contact"; row-gap: 36px; }
  .about-contact { margin-top: 0; }
  .section-about { background: linear-gradient(160deg, var(--white) 0%, var(--white) 62%, #f7f0dc 62%, #f7f0dc 100%); }
  .about-visual { padding-bottom: 0; }
  .about-photo { height: 320px; }
  .about-promise { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 20px 0; }

}

/* =========================================================
   Phone (680px and below)
   ========================================================= */
@media (max-width: 680px) {
  :root { --gutter: 16px; --section-space: 44px; --topbar-h: 68px; }

  .topbar-contact { gap: 14px; font-size: 12px; }
  /* No room left in the top bar on phones, so Sign in moves into the menu */
  .topbar-signin { display: none; }
  .site-nav .nav-signin { display: block; }
  .brand-sub { display: none; }

  .hero-copy { padding-top: 40px; gap: 20px; }
  .hero-lead, .hero-next { font-size: 17px; }
  .hero-promise-list { columns: 1; }

  .est-controls, .est-summary { padding: 24px 20px; border-radius: 18px; }
  .pill { padding: 0 16px; font-size: 14px; }

  .svc-card { grid-template-columns: 1fr; }
  .svc-card-photo { min-height: 0; height: 180px; }


  .about-photo { height: 240px; }
  .about-promise { margin: -48px 12px 0; padding: 20px; }
  .footer-top { flex-direction: column; }

  /* Popup fills the phone screen */
  .quote-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .quote-modal-head { padding: 14px 16px; }
  .quote-modal-title { font-size: 22px; }
  .quote-modal-body { padding: 16px; }
  .quote-wizard { height: 100dvh; }
  .qw-progress { padding: 12px 16px 0; }
  .qw-foot { gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .qw-breakdown { padding: 14px 16px; }
  .qw-next { padding: 0 20px; }
  .qw-review-row { flex-wrap: wrap; }
  .qw-review-row dt { width: 100%; }
  .field-grid { grid-template-columns: 1fr; }
  .account-card { padding: 28px 20px; }
  .portal-card { padding: 24px 18px; }
  .when-row { grid-template-columns: 1fr; }
  .portal-tab { flex: 1; padding: 0 8px; font-size: 15px; }
  .cleaning { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
  .cleaning-next { padding: 22px 20px; }
  .cleaning-side { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; }
  .invoice-meta { grid-template-columns: 1fr; }
  .invoice-id { align-items: flex-start; text-align: left; }
  .invoice-actions .btn { flex: 1 1 100%; }
  /* On phones the payment button spans the card */
  .pay-wrap { flex-basis: 100%; align-items: stretch; }
  .pay-wrap .pay-btn { width: 100%; white-space: normal; }
  .pay-note, .pay-error { max-width: none; text-align: left; }
  .pay-choice { min-width: 0; }
  .cleaning-locked { max-width: none; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .field-grid.field-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The sign-in popup is small, so it stays a card instead of filling the screen */
  .quote-modal.signin-modal { width: calc(100vw - 32px); max-height: calc(100dvh - 32px); border-radius: 18px; }
}

/* =========================================================
   Quote form look (Stephen, 2026-10-22): every control is rounded, white, with
   a soft shadow and no lined or gold border.
   Applies to the price calculator, the "Request a Cleaning" pop-up and the
   account's Schedule tab. Keyboard focus shows a thin dark ring instead.
   ========================================================= */
:root {
  --soft-shadow: 0 4px 16px rgba(0, 0, 0, .10);
  --soft-shadow-hover: 0 6px 20px rgba(0, 0, 0, .16);
  --pop-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

/* Boxes and buttons */
:is(.est-app, #quote-form, #schedule-form) :is(.pill, .stepper-btn, .est-select, .date-trigger,
    .field input, .field textarea, .field select) {
  border: 0; background-color: var(--white); box-shadow: var(--soft-shadow);
}
:is(.est-app, #quote-form, #schedule-form) :is(.est-select, .date-trigger, .field input, .field textarea, .field select) {
  border-radius: 16px;
}
:is(.est-app, #quote-form, #schedule-form) :is(.pill, .stepper-btn, .date-trigger, .est-select, .field select):hover { border: 0; box-shadow: var(--soft-shadow-hover); }
:is(.est-app, #quote-form, #schedule-form) .pill[aria-pressed="true"] { background: var(--black); box-shadow: var(--soft-shadow); }
:is(.est-app, #quote-form, #schedule-form) :is(.pill, .stepper-btn, .est-select, .date-trigger,
    .field input, .field textarea, .field select):focus { outline: none; border: 0; }
:is(.est-app, #quote-form, #schedule-form) :is(.pill, .stepper-btn, .est-select, .field select, .date-trigger):focus-visible,
:is(.est-app, #quote-form, #schedule-form) :is(.field input, .field textarea):focus {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
:is(.est-app, #quote-form, #schedule-form) .date-trigger[aria-expanded="true"] { outline: 2px solid var(--ink); outline-offset: 2px; border: 0; }

/* Pop-ups that open from those boxes */
:is(.est-app, #quote-form, #schedule-form) :is(.cal, .ac-box) {
  border: 0; border-radius: 16px; background: var(--white); box-shadow: var(--pop-shadow);
}
:is(.est-app, #quote-form, #schedule-form) .cal-nav { border: 0; background: #f6f3ec; }
:is(.est-app, #quote-form, #schedule-form) .cal-nav:hover:not(:disabled) { background: #fbf3d9; }
:is(.est-app, #quote-form, #schedule-form) .ac-credit { border-top: 0; }

:is(.est-app, #quote-form, #schedule-form) .cal-day.is-today:not(.is-selected) { box-shadow: none; background: #fbf3d9; }
:is(.est-app, #quote-form, #schedule-form) .cal-day:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Extras chips; counted ones (windows, fans) get a − n + counter once picked (js/estimator.js) */
.extra-chip { display: inline-flex; align-items: center; border-radius: 999px; }
.extra-chip.is-on { background: var(--black); box-shadow: var(--soft-shadow); }
.extra-chip.is-on .pill { box-shadow: none; }
.chip-step { display: inline-flex; align-items: center; gap: 2px; padding: 0 8px 0 2px; }
.chip-step[hidden] { display: none; }
.chip-step-btn {
  width: 32px; height: 32px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--white); font-size: 18px; font-weight: 700; line-height: 1;
}
.chip-step-btn:hover { background: rgba(255, 255, 255, .24); }
.chip-step-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip-step-count { min-width: 26px; text-align: center; font-weight: 800; color: var(--gold); }

/* "Not a robot" check (js/turnstile.js): takes no space unless Cloudflare needs a click */
.turnstile-box:empty, .turnstile-box[hidden] { display: none; }
.turnstile-box { margin: 4px 0 12px; }
