/* ===== 1-888-Heat-Pumps qualifier · Habitat brand (Sep 2026) =====
   Tokens sampled from the Habitat Figma exports (habitat-assets/). */
:root {
  --ink: #321a1a; /* deep brown: logo outline, headlines, buttons */
  --ink-deep: #180c0c; /* button hover, dark footer bands */
  --mustard: #d6b834; /* bolt, highlighted words, progress */
  --mustard-deep: #b89b1f;
  --cream: #fffbf2; /* logo lettering, text on brown */
  --lav: #d6c5e9; /* hero backgrounds */
  --lav-deep: #c6afde; /* angular background shapes */
  --sand: #f2ebda; /* page background */
  --sand-deep: #eadec2; /* rules, tracks, alternating bands */
  --paper: #f9f3ef; /* card interiors */
  --white: #ffffff;
  --muted: #6f5c5c; /* brown at reduced strength: helper copy */
  --line: #e3d8c2;
  --danger: #b42318;
  --display: "Figtree", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Topic colour coding (carousel card = page theme) */
  --t-ducted: #d6c5e9;
  --t-ductless: #d6b834;
  --t-hpwh: #9ad5e6; /* from yard-sign thermometer icon; confirm with Habitat */
  --t-stoves: #a9603a; /* darkened from Copper #C97B4A for AA contrast with cream text */
  --sky: #9ad5e6;
  --copper: #a9603a;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 24px;
  --shadow: 0 12px 36px rgba(50, 26, 26, 0.08);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.hp-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

/* Header: logo + progress */
.hp-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 24px;
}
.hp-logo {
  height: 46px;
  width: auto;
  display: block;
  flex: none;
}
.hp-progress {
  flex: 1;
  height: 8px;
  background: var(--sand-deep);
  border-radius: 50px;
  overflow: hidden;
}
.hp-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--mustard);
  border-radius: 50px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hp-step-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Card / stage */
.hp-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 40px 34px;
  position: relative;
  overflow: hidden;
  transition: background 0.44s ease;
}
/* Intro + thank-you take the lavender hero treatment, with the angular
   deeper-lavender shape from the yard sign behind the copy. */
.hp-card.is-hero {
  background: var(--lav);
}
.hp-card.is-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lav-deep);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 74% 100%);
  pointer-events: none;
}
.hp-card.is-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lav-deep);
  clip-path: polygon(0 0, 22% 0, 4% 100%, 0 100%);
  opacity: 0.55;
  pointer-events: none;
}
.hp-card.is-hero .hp-stage {
  z-index: 1;
}
/* Stage = relatively-positioned wrapper whose height animates between steps,
   so cards of different heights never "snap". */
.hp-stage {
  position: relative;
  min-height: 340px;
  transition: height 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}
/* Steps stack absolutely; only transform + opacity animate (GPU-accelerated). */
.hp-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translate3d(28px, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition:
    opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-step.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .hp-stage,
  .hp-step,
  .hp-progress-bar,
  .hp-card {
    transition: none;
  }
}

/* Type */
.hp-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--sand-deep);
}
.hp-card.is-hero .hp-eyebrow {
  background: var(--cream);
}
.hp-q {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
/* Habitat's highlighted-word device: a mustard block behind one key word. */
.hp-hl {
  display: inline-block;
  background: var(--mustard);
  color: var(--ink);
  padding: 0 0.22em;
  margin: 0 -0.06em;
  border-radius: 6px;
  line-height: 1.02;
}
.hp-hl.is-cream {
  background: var(--cream);
}
/* Headings receive programmatic focus after a step change; no ring for that. */
.hp-q[tabindex]:focus {
  outline: none;
}
.hp-help {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

/* Option grid */
.hp-options {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.hp-options.cols-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .hp-options.cols-2 {
    grid-template-columns: 1fr;
  }
}
.hp-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 17px 18px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.08s ease;
}
.hp-opt:hover {
  border-color: var(--ink);
}
.hp-opt:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}
.hp-opt:active {
  transform: scale(0.99);
}
.hp-opt.is-selected {
  border-color: var(--ink);
  background: var(--lav);
}
.hp-opt .tick {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  position: relative;
  transition: all 0.15s;
}
.hp-opt.is-selected .tick {
  border-color: var(--ink);
  background: var(--ink);
}
.hp-opt.is-selected .tick:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--mustard);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hp-key {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--sand);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.hp-opt.is-selected .hp-key {
  background: var(--cream);
  color: var(--ink);
}

/* Inputs */
.hp-field {
  margin-bottom: 16px;
}
.hp-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.hp-field input {
  width: 100%;
  padding: 15px 16px;
  font-size: 16px;
  font-family: var(--sans);
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.hp-field input::placeholder {
  color: #a89494;
}
.hp-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(214, 184, 52, 0.35);
}
.hp-field.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* City / State / ZIP on one line */
.hp-field.row3 {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  gap: 14px;
}
/* Section divider inside a step (e.g. "Home address") */
.hp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hp-divider:after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--sand-deep);
}
@media (max-width: 520px) {
  .hp-field.row2 {
    grid-template-columns: 1fr;
  }
  .hp-field.row3 {
    grid-template-columns: 1fr 1fr;
  }
  .hp-field.row3 > div:first-child {
    grid-column: 1 / -1;
  }
}
.hp-err {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.hp-err.show {
  display: block;
}

/* Buttons */
.hp-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.hp-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  transition:
    background 0.15s ease,
    transform 0.08s ease;
}
.hp-btn:hover {
  background: var(--ink-deep);
}
.hp-btn:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}
.hp-btn:active {
  transform: translateY(1px);
}
.hp-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.hp-back {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
}
.hp-back:hover {
  color: var(--ink);
}
.hp-skip {
  margin-left: auto;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}
.hp-skip:hover {
  color: var(--ink);
}
.hp-back:focus-visible,
.hp-skip:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

/* Intro + thank you */
.hp-center {
  text-align: center;
}
.hp-center .hp-q {
  font-size: 40px;
  letter-spacing: -0.025em;
}
.hp-lead {
  font-size: 17px;
  color: var(--ink);
  max-width: 30em;
  margin: 0 auto 26px;
}
.hp-trust {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.8;
}
.hp-trust strong {
  color: var(--ink);
  font-weight: 700;
}
/* Thank-you badge: a bolt on mustard, echoing the logo. */
.hp-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--mustard);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  transform: rotate(-6deg);
}
.hp-badge svg {
  width: 42px;
  height: 42px;
  display: block;
}
.hp-foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.hp-foot a {
  color: var(--ink);
}
.spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(50, 26, 26, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

/* Address autocomplete (Google Places, custom-styled dropdown) */
.hp-ac-wrap {
  position: relative;
}
.hp-ac-list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(50, 26, 26, 0.16);
  max-height: 268px;
  overflow: auto;
  display: none;
}
.hp-ac-list.is-open {
  display: block;
}
.hp-ac-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.32;
}
.hp-ac-item:hover,
.hp-ac-item.is-active {
  background: var(--lav);
}
.hp-ac-pin {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ink);
  opacity: 0.85;
}
.hp-ac-main {
  font-weight: 600;
}
.hp-ac-sec {
  color: var(--muted);
  font-size: 13px;
}
.hp-ac-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 7px 8px 3px;
}
.hp-ac-foot img {
  height: 13px;
  width: auto;
  opacity: 0.85;
}

/* ===== Small screens ===== */
@media (max-width: 520px) {
  .hp-wrap {
    padding: 14px 12px 40px;
  }
  .hp-top {
    margin: 2px 0 18px;
    gap: 12px;
  }
  .hp-logo {
    height: 38px;
  }
  .hp-card {
    padding: 26px 20px 24px;
    border-radius: 18px;
  }
  .hp-card.is-hero:before {
    clip-path: polygon(64% 0, 100% 0, 100% 100%, 82% 100%);
  }
  .hp-stage {
    min-height: 260px;
  }
  .hp-q {
    font-size: 26px;
  }
  .hp-center .hp-q {
    font-size: 30px;
  }
  .hp-help,
  .hp-lead {
    font-size: 14px;
  }
  .hp-opt {
    padding: 15px 16px;
    font-size: 15px;
  }
  .hp-field.row2,
  .hp-field.row3 {
    gap: 10px;
  }
  /* Primary action on top, full width; Back/Skip drop below it */
  .hp-actions {
    flex-wrap: wrap;
    margin-top: 22px;
  }
  .hp-actions .hp-btn {
    flex: 1 1 100%;
    order: -1;
  }
  .hp-center .hp-btn {
    width: 100%;
  }
  .hp-skip {
    margin-left: auto;
  }
}

/* ===== Decision tree (two-card mock) ===== */
.hp-choose-title {
  text-align: left;
  font-size: 30px;
  margin-bottom: 18px;
}
.hp-tabs {
  display: none;
  gap: 8px;
  margin-bottom: 14px;
}
.hp-tab {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font: 700 13px/1 var(--sans);
  color: rgba(50, 26, 26, 0.85);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(50, 26, 26, 0.3);
  cursor: pointer;
}
.hp-tab.is-active {
  color: var(--ink);
  background: var(--cream);
  box-shadow: none;
}
.hp-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hp-path {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 26px;
  min-height: 340px;
}
.hp-path.is-explore {
  background: var(--cream);
  color: var(--ink);
}
.hp-path.is-book {
  background: var(--ink);
  color: var(--cream);
}
.hp-path-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
}
.hp-path-icon svg {
  width: 26px;
  height: 26px;
}
.is-explore .hp-path-icon {
  background: var(--lav);
  color: var(--ink);
}
.is-book .hp-path-icon {
  background: var(--mustard);
  color: var(--ink);
}
.hp-path-eyebrow {
  margin: 18px 0 6px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.is-book .hp-path-eyebrow {
  color: var(--mustard);
  opacity: 1;
}
.hp-path-title {
  margin: 0;
  font: 800 26px/1.15 var(--display);
  letter-spacing: -0.02em;
}
.hp-path-body {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}
.hp-path-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.hp-btn.is-bolt {
  background: var(--mustard);
  color: var(--ink);
}
.hp-btn.is-bolt:hover {
  background: var(--mustard-deep);
}
.hp-link {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: 600 14px var(--sans);
  color: inherit;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hp-mobile-only {
  display: none;
}
@media (max-width: 720px) {
  .hp-tabs {
    display: flex;
  }
  .hp-mobile-only {
    display: inline;
  }
  .hp-paths {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -40px;
    padding: 0 40px 4px;
    scrollbar-width: none;
  }
  .hp-paths::-webkit-scrollbar {
    display: none;
  }
  .hp-path {
    flex: 0 0 86%;
    scroll-snap-align: center;
    min-height: 0;
  }
  .hp-choose-title {
    font-size: 26px;
  }
}

/* ===== Topic carousel (colour = page theme) ===== */
.hp-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hp-topic {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 18px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid rgba(50, 26, 26, 0.14);
  box-shadow: 0 6px 18px rgba(50, 26, 26, 0.08);
  transition:
    transform 0.12s ease,
    border-color 0.12s ease;
}
.hp-topic:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.hp-topic:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.hp-topic-title {
  grid-column: 1;
  grid-row: 1;
  font: 800 18px/1.15 var(--display);
  letter-spacing: -0.01em;
}
.hp-topic-sub {
  grid-column: 1;
  grid-row: 2;
  font-size: 13px;
  opacity: 0.8;
}
.hp-topic-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 22px;
}
.hp-topic.t-ducted {
  background: var(--t-ducted);
}
.hp-topic.t-ductless {
  background: var(--t-ductless);
}
.hp-topic.t-hpwh {
  background: var(--t-hpwh);
}
.hp-topic.t-stoves {
  background: var(--t-stoves);
  color: var(--cream);
}
.hp-topic.t-stoves .hp-topic-sub {
  opacity: 1;
}
@media (max-width: 520px) {
  .hp-topics {
    grid-template-columns: 1fr;
  }
  .hp-paths {
    margin: 0 -20px;
    padding: 0 20px 4px;
  }
}

/* ===== Landing sections (below the form) ===== */
.lp-band {
  padding: 56px 18px;
}
.lp-inner {
  max-width: 680px; /* matches .hp-wrap so section edges line up with the form */
  margin: 0 auto;
}
.lp-h2 {
  font: 800 30px/1.1 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.lp-why {
  background: var(--sand);
}
.lp-tiles {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-tiles > div {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
}
.lp-tiles dt {
  font: 700 16px/1.3 var(--sans);
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-tiles dd {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}
.lp-tile-ico {
  display: flex;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background: var(--lav);
  align-items: center;
  justify-content: center;
  font: 800 14px var(--display);
}
.lp-how {
  background: var(--sand-deep);
}
.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: s;
}
.lp-steps li {
  background: var(--paper);
  border-radius: 18px;
  padding: 22px;
  counter-increment: s;
}
.lp-steps li::before {
  content: counter(s);
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mustard);
  align-items: center;
  justify-content: center;
  font: 800 14px var(--display);
  margin-bottom: 12px;
}
.lp-steps strong {
  display: block;
  font: 800 18px/1.2 var(--display);
  margin-bottom: 6px;
}
.lp-steps span {
  font-size: 15px;
  color: var(--muted);
}
.lp-trust {
  background: var(--lav);
}
.lp-trust-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}
.lp-award img {
  width: 160px;
  height: auto;
  display: block;
  border-radius: 12px;
}
.lp-rating {
  font-size: 20px;
  margin: 0 0 6px;
}
.lp-muted {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.lp-trust .lp-muted {
  color: var(--ink);
  opacity: 0.8;
}
.lp-faq {
  background: var(--paper);
}
.lp-faq details {
  border-top: 2px solid var(--sand-deep);
  padding: 14px 0;
}
.lp-faq summary {
  cursor: pointer;
  font: 700 17px var(--sans);
}
.lp-faq p {
  margin: 10px 0 0;
  color: var(--muted);
}
.lp-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 18px 40px;
}
.lp-on-dark {
  color: var(--cream);
}
.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.lp-bullets {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}
.lp-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
}
.lp-contact a {
  color: var(--cream);
  text-decoration: none;
}
.lp-contact a:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .lp-tiles {
    grid-template-columns: 1fr;
  }
  .lp-steps,
  .lp-trust-grid,
  .lp-footer-grid {
    grid-template-columns: 1fr;
  }
  .lp-h2 {
    font-size: 26px;
  }
}

/* Typography: balanced headings, orphan-free paragraphs */
.hp-q,
.lp-h2,
.hp-path-title {
  text-wrap: balance;
}
.hp-help,
.hp-lead,
.hp-path-body,
.lp-steps span {
  text-wrap: pretty;
}

/* Site visit scheduling */
.hp-date {display:block;width:100%;padding:14px;margin:10px 0 18px;border:1px solid #d8d1c6;border-radius:12px;background:#fff;font:inherit;color:#321a1a}
.hp-times {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:260px;overflow-y:auto;margin-bottom:18px}
.hp-time {padding:12px 6px;border:1px solid #d8d1c6;border-radius:10px;background:#fff;font:inherit;cursor:pointer;color:#321a1a}
.hp-time.is-selected {background:#321a1a;color:#fff;border-color:#321a1a}
.hp-time:focus-visible,.hp-date:focus-visible {outline:3px solid #e8bb45;outline-offset:2px}
@media(max-width:420px){.hp-times {grid-template-columns:repeat(2,minmax(0,1fr))}}

/* A focused booking flow once the visitor starts qualifying. */
body.is-qualifying {
  --ink: #242323;
  --muted: #646464;
  --line: #d9d9d6;
  background: #fafaf8;
}
.is-qualifying .hp-wrap {max-width: 640px; padding: 36px 24px 28px;}
.is-qualifying .hp-top {margin: 0 0 36px; gap: 24px;}
.is-qualifying .hp-logo {height: 40px;}
.is-qualifying .hp-progress {height: 3px; background: #e8e8e3;}
.is-qualifying .hp-step-count {font-weight: 500; color: #646464;}
.is-qualifying .hp-card,
.is-qualifying .hp-card.is-hero {padding: 0; background: transparent; border-radius: 0; box-shadow: none; overflow: visible;}
.is-qualifying .hp-card.is-hero::before,
.is-qualifying .hp-card.is-hero::after,
.is-qualifying .hp-eyebrow,
.is-qualifying .hp-badge {display: none;}
.is-qualifying .hp-stage {min-height: 0;}
.is-qualifying .hp-q {font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 8px; text-wrap: initial;}
.is-qualifying .hp-help {font-size: 15px; line-height: 1.5; margin: 0 0 28px;}
.is-qualifying .hp-field {margin-bottom: 18px;}
.is-qualifying .hp-field label {font-size: 13px; font-weight: 500; margin-bottom: 6px;}
.is-qualifying .hp-field input {border-width: 1px; border-radius: 6px; padding: 12px 14px; min-height: 46px;}
.is-qualifying .hp-field input::placeholder {color: #858582;}
.is-qualifying .hp-area-note {color: #646464; font-size: 12px; margin: 4px 0 24px;}
.is-qualifying .hp-actions {padding-top: 18px; border-top: 1px solid #e3e3de; margin-top: 24px;}
.is-qualifying .hp-btn {border-radius: 6px; padding: 12px 24px; font-size: 14px; font-weight: 600; box-shadow: none;}
.is-qualifying .hp-back {font-size: 14px; font-weight: 500;}
.is-qualifying .hp-opt {border-radius: 6px; border-width: 1px; background: #fff;}
.is-qualifying > .lp-band,
.is-qualifying > .lp-footer {display: none;}
.is-qualifying .hp-date,
.is-qualifying .hp-time {border-radius: 6px; border-color: #d9d9d6;}
@media (max-width: 600px) {
  .is-qualifying .hp-wrap {padding: 24px 20px;}
  .is-qualifying .hp-top {margin-bottom: 32px; gap: 16px;}
  .is-qualifying .hp-q {font-size: 26px;}
  .is-qualifying .hp-field.row3 {grid-template-columns: 1.5fr .7fr 1fr; gap: 10px;}
  .is-qualifying .hp-field.row3 > div:first-child {grid-column: auto;}
}
.hp-area-result {margin: 14px 0; padding: 12px 14px; border-left: 3px solid #a9603a; background: #f4ede7; color: #442b23; font-size: 14px; line-height: 1.5;}
#request-area-review {text-decoration: underline; text-underline-offset: 3px;}
#request-area-review[hidden], .hp-area-result[hidden] {display: none;}
