/* Instant quote. Page chrome uses shared-bundle utility classes.
   Card values copied from .rr-quiz-teaser__panel in shared-bundle.c1d5b4efa64b2f46.css
   (booking-page popup quiz card). Do not edit quiz CSS.
   Field/pill styles copied from css/booking-portal.css?v=20261107-portal-avail
   (pf-field, pf-pill, pf-size-note, pf-body-pick). */

#instant-quote,
.iq-card {
  --pf-radius: 1.5rem;
  --pf-radius-sm: 0.75rem;
  --pf-sel: hsl(var(--primary));
  color: hsl(var(--foreground));
  max-width: 100%;
  min-width: 0;
}

/* Quiz teaser panel: same border, radius, shadow, padding. Width is the page container. */
.iq-card {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 4vh, 36px) clamp(18px, 4vw, 28px) clamp(20px, 3vh, 28px);
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 24px 64px #00000047;
}

/* Dark: band uses the lighter grey (--card / --secondary); form uses the
   darker black (--background) so the card sits inset on the band. */
html[data-theme="dark"] .iq-form-band,
html:not([data-theme="light"]) .iq-form-band {
  background: hsl(var(--card));
}
html[data-theme="dark"] .iq-card,
html:not([data-theme="light"]) .iq-card {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  box-shadow: 0 24px 64px hsl(0 0% 0% / 0.45);
}

#instant-quote,
#iq-form,
.iq-panel,
.iq-tiles,
.iq-pills,
.iq-actions {
  min-width: 0;
  max-width: 100%;
}

.iq-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.25rem;
}

.iq-progress--single {
  list-style: none;
}

.iq-progress__pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--foreground));
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.iq-panel h2,
.iq-sec-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.iq-note,
.iq-hint,
.iq-caveat,
.pf-hint,
.pf-size-note {
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.iq-note { margin: 0 0 1rem; }
/* Sit the Book Now note a little below the button without growing the card. */
.iq-panel[data-step="result"] .iq-handoff-note {
  margin: 0.75rem 0 0;
}
.iq-soft { margin: 1.5rem 0 0; font-size: 0.95rem; }
#instant-quote a { color: hsl(var(--foreground)); }
#instant-quote a[href^="tel:"],
#instant-quote a[href^="sms:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
#instant-quote a[href^="tel:"]:hover,
#instant-quote a[href^="sms:"]:hover {
  color: hsl(var(--accent));
  filter: brightness(1.08);
}
#instant-quote a.iq-btn,
#instant-quote a.iq-btn-primary,
#instant-quote a.pf-btn {
  color: hsl(var(--primary-foreground));
}
html[data-theme="dark"] #instant-quote a:not(.iq-btn):not(.pf-btn):not([href^="tel:"]):not([href^="sms:"]) { color: #E9355C; }
html[data-theme="dark"] #instant-quote a[href^="tel:"],
html[data-theme="dark"] #instant-quote a[href^="sms:"] { color: #E9355C; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #instant-quote a:not(.iq-btn):not(.pf-btn):not([href^="tel:"]):not([href^="sms:"]) { color: #E9355C; }
  html:not([data-theme="light"]) #instant-quote a[href^="tel:"],
  html:not([data-theme="light"]) #instant-quote a[href^="sms:"] { color: #E9355C; }
}

/* Copied from booking-portal.css field/pill language, scoped to the quote card. */
#instant-quote .pf-field {
  display: block;
  margin-bottom: 0.875rem;
  min-width: 0;
  max-width: 100%;
}
#instant-quote .pf-field > span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
#instant-quote .pf-field input,
#instant-quote .iq-input,
#instant-quote .iq-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid hsl(var(--border));
  border-radius: var(--pf-radius-sm);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
  font-size: 1rem; /* 16px — avoids iOS zoom */
  line-height: 1.4;
  font-family: inherit;
}
#instant-quote .pf-field input:focus,
#instant-quote .iq-input:focus,
#instant-quote .iq-select:focus {
  outline: 2px solid hsl(var(--ring, 214 100% 50%));
  outline-offset: 1px;
}

#instant-quote .iq-field-error,
#instant-quote .iq-gate-error,
#instant-quote .pf-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 600;
  color: #B42318;
}
html[data-theme="dark"] #instant-quote .iq-field-error,
html[data-theme="dark"] #instant-quote .iq-gate-error,
html[data-theme="dark"] #instant-quote .pf-field-error {
  color: #F97066;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #instant-quote .iq-field-error,
  html:not([data-theme="light"]) #instant-quote .iq-gate-error,
  html:not([data-theme="light"]) #instant-quote .pf-field-error {
    color: #F97066;
  }
}

#instant-quote .pf-size-note {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
  margin: 0.5rem 0 0;
}
#instant-quote .pf-sublabel {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: hsl(var(--foreground));
  margin: 0 0 0.3rem;
}
#instant-quote .pf-body-pick { margin-top: 0.75rem; }
#instant-quote .pf-body-pick__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
#instant-quote .pf-body-back {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: hsl(var(--accent));
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
#instant-quote .pf-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-width: 0;
  max-width: 100%;
}
#instant-quote .pf-pills--wrap { flex-wrap: wrap; }
#instant-quote .pf-pill {
  position: relative;
  flex: 0 1 auto;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}
#instant-quote .pf-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#instant-quote .pf-pill > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  transition: background .15s, color .15s, border-color .15s;
}
#instant-quote .pf-pill input:checked + span {
  background: hsl(var(--accent) / 0.12);
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}
#instant-quote .pf-pill input:focus-visible + span {
  outline: 2px solid hsl(var(--ring, 214 100% 50%));
}

.iq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 0.6rem;
}
.iq-pills button {
  appearance: none;
  font: inherit;
  cursor: pointer;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
}
.iq-pills button[aria-pressed="true"] {
  background: hsl(var(--accent) / 0.12);
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

/* Category pills — copied from booking-portal.css .pf-cats */
#instant-quote .pf-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow: visible;
}
#instant-quote .pf-cats .pf-pill {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 0;
  max-width: 100%;
}
#instant-quote .pf-cats .pf-pill > span {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
@media (min-width: 720px) {
  #instant-quote .pf-cats { flex-wrap: nowrap; }
  #instant-quote .pf-cats .pf-pill { flex: 1 1 0; }
}

/* Service families accordion — copied from booking-portal.css .pf-family* */
#instant-quote .pf-families { margin: 0 0 0.25rem; }
#instant-quote .pf-family {
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: hsl(var(--background));
}
#instant-quote .pf-family__head {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  padding: 0.875rem 1rem;
  min-height: 44px;
  cursor: pointer;
  color: inherit;
  text-align: left;
  font: inherit;
}
#instant-quote .pf-family__title {
  font-weight: 700;
  font-size: 1rem;
  display: block;
  min-width: 0;
  flex: 1;
}
#instant-quote .pf-family__sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--accent));
  margin-top: 0.125rem;
}
#instant-quote .pf-family__chev {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
#instant-quote .pf-family.is-open .pf-family__chev { transform: rotate(90deg); }
/* Snappy slide open/close (grid 0fr→1fr). Toggle is-open in place — do not display:none. */
#instant-quote .pf-family__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms cubic-bezier(0.4, 0, 1, 1);
}
#instant-quote .pf-family.is-open .pf-family__body {
  grid-template-rows: 1fr;
  transition: grid-template-rows 260ms cubic-bezier(0.16, 1.15, 0.3, 1);
}
#instant-quote .pf-family__body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 0.75rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
#instant-quote .pf-family.is-open .pf-family__body-inner {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 0.75rem;
  pointer-events: auto;
}
#instant-quote .pf-family__note {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

/* Shampoo & Extraction — parent tile + sliding Spot / Full pills */
#instant-quote .iq-extract {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#instant-quote .iq-extract__parent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#instant-quote .iq-extract__chev {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
#instant-quote .iq-extract.is-open .iq-extract__chev { transform: rotate(90deg); }
#instant-quote .iq-extract__parent.is-selected .iq-extract__chev {
  color: hsl(var(--primary-foreground));
}
#instant-quote .iq-extract__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms cubic-bezier(0.4, 0, 1, 1);
}
#instant-quote .iq-extract.is-open .iq-extract__body {
  grid-template-rows: 1fr;
  transition: grid-template-rows 260ms cubic-bezier(0.16, 1.15, 0.3, 1);
}
#instant-quote .iq-extract__body-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
#instant-quote .iq-extract.is-open .iq-extract__body-inner {
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.5rem;
  pointer-events: auto;
}
#instant-quote .iq-extract__pills {
  margin: 0;
}

/* Service / add-on tiles — solid primary when chosen */
#instant-quote .pf-tiles,
.iq-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin: 0.5rem 0 0;
}
#instant-quote .pf-tile,
.iq-tile {
  appearance: none;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 0.875rem 1rem;
  min-height: 44px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  box-sizing: border-box;
  transition: background .15s, border-color .15s, color .15s;
}
#instant-quote .pf-tile:hover,
.iq-tile:hover { border-color: hsl(var(--accent)); }
#instant-quote .pf-tile.is-selected:not(.is-included),
#instant-quote .pf-tile[aria-pressed="true"]:not(.is-included),
.iq-tile[aria-pressed="true"] {
  background: var(--pf-sel);
  border-color: var(--pf-sel);
  color: hsl(var(--primary-foreground));
}
/* Included packages: dashed accent card — never solid selected red */
#instant-quote .pf-tile.is-included,
#instant-quote .pf-tile.is-included[aria-pressed="true"],
#instant-quote .pf-tile.is-included:disabled {
  background: hsl(var(--background));
  border-style: dashed;
  border-color: hsl(var(--accent));
  color: hsl(var(--foreground));
  cursor: default;
  opacity: 1;
}
#instant-quote .pf-tile.is-included .pf-tile__name { color: hsl(var(--foreground)); }
#instant-quote .pf-tile.is-included .pf-tile__price {
  color: hsl(var(--accent));
  font-weight: 700;
  opacity: 1;
}
#instant-quote .pf-tile__main { flex: 1; min-width: 0; }
#instant-quote .pf-tile__name,
.iq-tile-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}
#instant-quote .pf-tile__price,
.iq-tile-price {
  display: block;
  font-size: 0.75rem;
  opacity: .7;
  font-variant-numeric: tabular-nums;
  margin-top: 0.125rem;
}
#instant-quote .pf-tile.is-selected .pf-tile__price,
#instant-quote .pf-tile[aria-pressed="true"] .pf-tile__price,
.iq-tile[aria-pressed="true"] .iq-tile-price { opacity: .9; }
#instant-quote .pf-tile--check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin-top: 0.75rem;
}
#instant-quote .pf-tile--check input { margin-top: 0.35rem; }
#instant-quote .pf-headlight-upgrade { margin-top: 0.75rem; }

/* Condition step — booking chrome */
#instant-quote .iq-cond-block { margin: 1.15rem 0; }
#instant-quote .iq-cond-block > .pf-sublabel,
#instant-quote .iq-cond-block > h3.pf-sublabel {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}
#instant-quote .pf-hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.55rem;
}
#instant-quote .pf-inline-block { margin: 0.75rem 0 1rem; }
#instant-quote .pf-pet-card {
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 0.85rem 0.75rem 0.65rem;
  background: hsl(var(--background));
}
#instant-quote .pf-pet-levels {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.35rem;
}
#instant-quote .pf-pet-level {
  flex: 1 1 0;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 0.65rem 0.35rem;
  min-height: 44px;
  cursor: pointer;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-weight: 500;
  border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s, transform 120ms ease;
}
#instant-quote .pf-pet-level:active { transform: scale(0.98); }
#instant-quote .pf-pet-level[aria-pressed="true"] {
  background: hsl(var(--accent) / 0.12);
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
  font-weight: 700;
}
#instant-quote .pf-pet-level__name {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.2;
}
#instant-quote .pf-pet-level__price {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: .85;
  font-variant-numeric: tabular-nums;
}
#instant-quote .iq-cond-flags { margin: 0.75rem 0 1rem; }
#instant-quote .pf-photos {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#instant-quote .pf-photos::-webkit-scrollbar { display: none; }
#instant-quote .pf-photo {
  position: relative;
  flex: 0 0 auto;
  width: 5.25rem;
  height: 5.25rem;
  border: 1.5px dashed hsl(var(--border));
  border-radius: 1rem;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  background: hsl(var(--background));
  font-size: 0.625rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  padding: 0.375rem;
}
#instant-quote .pf-photo input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
#instant-quote .pf-photo.has-file {
  border-style: solid;
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
  overflow: hidden;
}
#instant-quote .pf-photo__heic {
  font-size: 0.62rem;
  line-height: 1.25;
  padding: 0.25rem;
  word-break: break-word;
  pointer-events: none;
}

.iq-family { margin: 1.1rem 0 0.4rem; font-size: 1.15rem; font-weight: 700; }

.iq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
/* Form actions match booking .pf-btn (0.75rem), not square site CTAs */
#instant-quote .pf-btn,
.iq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--pf-radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity .15s, transform .15s;
}
#instant-quote .pf-btn--primary,
.iq-btn-primary {
  background: var(--pf-sel);
  color: hsl(var(--primary-foreground));
  border: 1px solid var(--pf-sel);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  transform: translateY(0) scale(1);
}
/* Spring only when Continue / submit is clicked — not on remount after other clicks */
@keyframes iq-btn-spring-click {
  0% { transform: scale(1); }
  35% { transform: scale(0.94); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
#instant-quote .pf-btn--primary.is-spring {
  animation: iq-btn-spring-click 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
}
#instant-quote .pf-btn--primary:hover:not(:disabled):not(.is-spring),
.iq-btn-primary:hover:not(.is-spring) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
#instant-quote .pf-btn--ghost,
.iq-btn-secondary {
  background: none;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
#instant-quote .pf-btn--block {
  width: 100%;
  margin-top: 1rem;
}
#instant-quote a.pf-btn,
#instant-quote a.iq-btn-primary {
  color: hsl(var(--primary-foreground));
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  #instant-quote .pf-family__body,
  #instant-quote .pf-family__body-inner,
  #instant-quote .pf-family__chev,
  #instant-quote .pf-btn--primary,
  .iq-btn-primary {
    transition: none !important;
    animation: none !important;
  }
  #instant-quote .pf-family.is-open .pf-family__body-inner {
    opacity: 1;
    transform: none;
  }
  #instant-quote .pf-btn--primary:hover:not(:disabled),
  .iq-btn-primary:hover,
  #instant-quote .pf-btn--primary.is-spring {
    transform: none;
    filter: none;
    animation: none !important;
  }
}

.iq-check,
.iq-radio {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.55rem 0;
  line-height: 1.4;
}
.iq-check input,
.iq-radio input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
}
.iq-check, .iq-radio { min-height: 44px; }

.iq-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.iq-lines {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}
.iq-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid hsl(var(--border));
  min-width: 0;
}
.iq-total {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}
.iq-sticky {
  position: sticky;
  bottom: 0;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 0.75rem 0 0;
  margin-top: 1rem;
}
.iq-lead-id {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  word-break: break-all;
}
.iq-closer { font-weight: 700; margin: 1rem 0; }
.iq-status { margin: 0 0 0.75rem; font-weight: 650; }
.iq-area {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  border-radius: 20px;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0 1rem;
}
.iq-area h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }

@media (max-width: 374px) {
  .iq-progress__pill { font-size: 0.75rem; padding: 0.45rem 0.65rem; }
}
/* Trust strip — same rules as booking (home-scroll can't load here). */
.rr-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 80rem; margin: 0 auto; padding: 0 2rem; list-style: none; }
.rr-trust__item { display: flex; align-items: flex-start; gap: clamp(0.5rem, 1vw, 0.85rem); min-width: 0; padding: 1.15rem clamp(0.75rem, 1.4vw, 1.25rem); border-left: 1px solid hsl(var(--border)); }
.rr-trust__item:first-child { padding-left: 0; border-left: 0; }
.rr-trust__item > div { min-width: 0; overflow-wrap: break-word; }
.rr-trust__icon { flex-shrink: 0; width: clamp(18px, 1.6vw, 22px); height: clamp(18px, 1.6vw, 22px); margin-top: 0.1rem; color: hsl(var(--accent)); }
.rr-trust__title { margin: 0; font-size: clamp(0.8rem, 0.45rem + 0.65vw, 0.95rem); font-weight: 700; line-height: 1.3; color: hsl(var(--foreground)); }
.rr-trust__sub { margin: 0.3rem 0 0; font-size: clamp(0.5625rem, 0.3rem + 0.45vw, 0.6875rem); font-weight: 600; line-height: 1.5; letter-spacing: clamp(0.08em, 0.02em + 0.1vw, 0.12em); text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.rr-trust__title, .rr-trust__sub { text-wrap: balance; }
.rr-trust__title span { white-space: nowrap; }
.rr-trust__sub span { display: block; }
.rr-trust-wrap--band { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
@media (max-width: 859px) {
  .rr-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-trust__item, .rr-trust__item:first-child { padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-left: 1px solid hsl(var(--border)); }
  .rr-trust__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rr-trust__item:nth-child(n + 3) { border-top: 1px solid hsl(var(--border)); }
  .rr-trust__icon { width: 22px; height: 22px; }
  .rr-trust__title { font-size: 0.95rem; }
  .rr-trust__sub { font-size: 0.6875rem; letter-spacing: 0.12em; }
}
@media (max-width: 639px) {
  .rr-trust { padding: 0 1.25rem; }
  .rr-trust__item, .rr-trust__item:first-child { gap: 0.65rem; padding: 1.1rem 0.75rem 1.1rem 0.9rem; border-left: 1px solid hsl(var(--border)); }
  .rr-trust__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rr-trust__icon { width: 20px; height: 20px; }
  .rr-trust__title { font-size: 0.9rem; }
  .rr-trust__sub { font-size: 0.625rem; letter-spacing: 0.1em; }
}
.iq-below-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid hsl(var(--border));
}
/* BA strip: stack on mobile; 3 inline on desktop only. */
#quote-recent-work .iq-proof-grid,
#quote-recent-work .iq-proof-grid.is-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: none;
  align-items: start;
}
#quote-recent-work .iq-proof-grid .rr-proof-card__title {
  min-height: 0;
}
@media (min-width: 860px) {
  #quote-recent-work .iq-proof-grid,
  #quote-recent-work .iq-proof-grid.is-enhanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }
}

/* Quote page already has the form — no floating Book / Call / Text row on mobile. */
.rr-dock-site { display: none !important; }

/* How-the-quote-works: same hairline process grid as home, no icon tiles. */
.iq-how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
}
.iq-how__step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.75rem 1.5rem 1.85rem;
  background: hsl(var(--card));
}
.iq-how__step--final {
  box-shadow: inset 0 0 0 1px hsl(var(--accent));
}
.iq-how__num {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: hsl(var(--accent));
}
.iq-how__title {
  margin-top: 1.15rem;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  line-height: 1.02;
  color: hsl(var(--foreground));
}
.iq-how__body {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) {
  .iq-how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .iq-how__step {
    padding: 2rem 1.75rem 2.1rem;
  }
}

/* Photo hero — Odyssey driveway; left scrim holds type, photo opens on the right,
   and bottom fades seamlessly into .iq-form-band in both dark and light themes. */
.iq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
  min-height: clamp(11.5rem, 30vw, 20.5rem);
  --iq-seam: var(--card);
}
.iq-hero > picture,
.iq-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.iq-hero > picture img { object-fit: cover; }
.iq-hero > .bottom-0 { display: none; }
.iq-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 55%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to top,
    hsl(var(--iq-seam)) 0%,
    hsl(var(--iq-seam) / 0.88) 24%,
    hsl(var(--iq-seam) / 0.45) 58%,
    hsl(var(--iq-seam) / 0) 100%
  );
}
.iq-hero__copy {
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .iq-hero__copy {
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }
}
.iq-form-band > div {
  padding-top: 1.25rem;
}
@media (min-width: 640px) {
  .iq-form-band > div {
    padding-top: 2rem;
  }
}
.iq-hero__eyebrow {
  display: inline-block;
}
.iq-hero__copy h1 {
  margin-top: 0.65rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}
.iq-hero__lede {
  margin-top: 0.65rem;
}
.iq-hero__copy .rr-rating {
  margin-top: 0.85rem;
}
.iq-hero__copy h1,
.iq-hero__lede {
  text-shadow: 0 1px 2px hsl(var(--background) / 0.55);
}
/* Step 2: quiet hover/hold hint + quick-bullets popover (open family only) */
#instant-quote .iq-hold-hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--accent));
}
#instant-quote .iq-hold-hint--touch { display: none; }
@media (hover: none) {
  #instant-quote .iq-hold-hint--mouse { display: none; }
  #instant-quote .iq-hold-hint--touch { display: inline; }
}
.iq-tip-scrim {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.55);
}
.iq-tip {
  position: fixed;
  z-index: 9999;
  width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}
.iq-tip--sheet {
  pointer-events: auto;
  left: 50%;
  bottom: 1rem;
  top: auto;
  transform: translateX(-50%);
  width: min(26rem, calc(100vw - 1.5rem));
}
.iq-tip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.iq-tip__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.iq-tip__close {
  display: none;
  background: none;
  border: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
}
.iq-tip--sheet .iq-tip__close { display: inline-flex; }
.iq-tip__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

html[data-theme="light"] .iq-hero {
  --iq-seam: var(--background);
  color: hsl(var(--foreground));
}
html[data-theme="light"] .iq-hero .hero-scrim {
  background-image: linear-gradient(
    to right,
    hsl(var(--background) / 0.82) 0%,
    hsl(var(--background) / 0.72) 38%,
    hsl(var(--background) / 0.40) 62%,
    hsl(var(--background) / 0) 100%
  );
}
@media (max-width: 767px) {
  html[data-theme="light"] .iq-hero .hero-scrim {
    background-image: linear-gradient(
      to right,
      hsl(var(--background) / 0.80) 0%,
      hsl(var(--background) / 0.68) 65%,
      hsl(var(--background) / 0.30) 100%
    );
  }
}
html[data-theme="light"] .iq-hero__copy h1,
html[data-theme="light"] .iq-hero__lede {
  text-shadow: 0 1px 2px hsl(var(--background) / 0.75);
}
