/* The home page booking trial (home-trial.js), the owner's second pass: step 1
   compact enough to sit on the first screen, then the card growing across the
   hero (not over the page) for step 2, the issues and the survey, then the
   times and anything to add. Built on the live form's own classes (book.css)
   so it looks like the site. The grow is longer than the site's usual 300 ms
   by the owner's ask; none of it with reduced motion. */

/* Step 1, compact: the same fields, tighter. */
#book .book-head { margin-bottom: 10px; gap: 2px; }
#book .dots { margin-bottom: 14px; }
#ht-form .fstep { gap: 10px; }
#ht-form .form-row { gap: 4px; }
#ht-form .form-row input { min-height: 44px; padding: 9px 13px; }
#ht-form .two-col { gap: 10px; }
#ht-form .addr-fields { display: grid; gap: 8px; }
#ht-form .access-opt { min-height: 44px; }
#ht-form .fnav { margin-top: 2px; }
#book .form-foot { margin-top: 10px; }

/* The grow: from the card's place to the hero's width, then into the page's flow. */
.ht-stage { position: absolute; z-index: 5; margin: 0; overflow: hidden; }
.ht-stage.is-moving { transition: top .48s cubic-bezier(.2,.8,.2,1), left .48s cubic-bezier(.2,.8,.2,1), width .48s cubic-bezier(.2,.8,.2,1), height .48s cubic-bezier(.2,.8,.2,1); }
.ht-open > :not(.ht-stage) { display: none !important; }
.ht-open > .ht-stage { position: relative; grid-column: 1 / -1; overflow: visible; }
.ht-inner { opacity: 0; transition: opacity .24s ease-out; }
.ht-stage.is-shown .ht-inner { opacity: 1; }
.ht-stage.book-card { padding: clamp(16px, 2vw, 24px); }
.ht-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ht-top .dots { flex: 1; margin: 0; }
.ht-back { min-height: 44px; }
.ht-pane { animation: ht-in .3s cubic-bezier(.2,.8,.2,1) both; display: flex; flex-direction: column; align-items: flex-start; }
/* Steps 3, 4 and the end sit in the middle of the card. */
.ht-pane--c { align-items: center; text-align: center; }
.ht-pane--c .ht-sub { margin-left: auto; margin-right: auto; }
.ht-pane--c .ht-extras { text-align: left; }
@keyframes ht-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.ht-h { font-size: clamp(19px, 2vw, 24px); letter-spacing: -.015em; margin: 0 0 8px; text-wrap: balance; }
.ht-sub { color: var(--muted); margin: 0 0 12px; max-width: 62ch; font-size: 15px; }
.ht-label { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin: 12px 0 6px; }

/* Step 2: what they are dealing with beside their survey. */
.ht-skip { margin: 0 0 12px; display: flex; justify-content: flex-end; }
.ht-skip .btn { min-height: 44px; }
.ht-need { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(16px, 2.6vw, 32px); width: 100%; }
.ht-need-wide { width: 100%; }
.ht-need-q, .ht-need-pick { min-width: 0; }
.ht-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ht-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 10px 12px; min-height: 60px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(127,127,127,.06); color: inherit; font: inherit; cursor: pointer;
  transition: transform .15s ease-out, border-color .15s, background .15s, box-shadow .15s; }
.ht-tile:active { transform: scale(.98); }
.ht-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.ht-tile-ico { grid-row: 1 / 3; color: var(--accent); line-height: 0; }
.ht-tile b { font-size: 15px; line-height: 1.25; }
.ht-tile-say { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ht-opts { display: grid; gap: 8px; width: 100%; }
.ht-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ht-opts--adds { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 14px; }
.ht-opt { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; }
.ht-opt .bt-survey { min-width: 0; }
.ht-opt .bt-survey { width: 100%; min-height: 48px; gap: 4px; border-color: var(--line-strong); transition: border-color .15s, background .15s; }
.ht-opt .bt-survey[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); border-width: 1px; box-shadow: 0 0 0 1px var(--accent) inset; }
.ht-opt-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.ht-opt-top b { flex: 1; min-width: 0; }
.ht-opt-top .bt-price { white-space: nowrap; font-size: 14px; opacity: 1; }
.ht-opt-say { font-size: 13px; color: var(--muted); line-height: 1.35; opacity: 1 !important; }
.ht-rec { display: inline-flex; align-items: center; gap: 4px; font-size: 11px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--good, #52d39a); background: color-mix(in srgb, var(--good, #52d39a) 14%, transparent); border-radius: 999px; padding: 3px 8px; opacity: 1 !important; }
.ht-box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--on-accent, #06121f); }
.ht-add[aria-pressed="true"] .ht-box { background: var(--accent); border-color: var(--accent); }
.ht-info { margin: 0 0 6px !important; padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.08); font-size: 13.5px !important; line-height: 1.45; opacity: 1 !important; }
.ht-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.ht-total div { display: grid; }
.ht-total b { font-size: 24px; }
.ht-total div span { font-size: 13px; color: var(--muted); }
.ht-total .ht-sub { margin: 0; }
.ht-total .btn:disabled { opacity: .45; cursor: not-allowed; }
/* Numbered parts, each ticked once answered. */
.ht-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.ht-head .ht-h { margin: 0; font-size: clamp(17px, 1.6vw, 20px); }
.ht-need-pick .ht-head + .ht-opts { margin-bottom: 14px; }
.ht-need-wide { margin-top: 16px; }
.ht-num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--accent); color: var(--accent); transition: background .2s ease-out, color .2s ease-out; }
.ht-num.is-done { background: var(--accent); color: var(--on-accent, #06121f); }
.ht-opt-note { font-size: 12.5px; color: var(--muted); }
.ht-num.is-now { background: #fff; border-color: #fff; color: var(--brand-card, #17325a); }
/* 2 as one price grid: the size down the side, damp or damp and timber across, every price at once. */
.ht-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.ht-grid-col, .ht-grid-row { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; }
.ht-grid-col { justify-content: center; font-size: 13.5px; color: var(--muted); padding: 0 2px; }
.ht-grid-col b { font-weight: 600; }
.ht-grid-row .ht-grid-name { display: grid; min-width: 0; }
.ht-grid-row .ht-grid-name b { font-size: 14.5px; line-height: 1.25; }
.ht-grid .ht-rec--edge { top: -18px; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
.ht-cell { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 10px 6px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ht-cell b { font-size: 17px; }
.ht-cell small { font-size: 11.5px; color: var(--muted); }
.ht-cell:hover { border-color: var(--accent); }
.ht-cell[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--brand-card, #17325a); }
.ht-cell[aria-pressed="true"] small { color: inherit; }
.ht-cell .ht-rec--edge { left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
/* A small (i) that still has a 44px tap: in a column heading, beside a size, in an add-on's corner. */
.ht-grid .bt-info, .ht-add-row .bt-info { position: relative; flex: none; width: 26px; height: 26px; font-size: 12px; border-color: var(--line-strong); }
.ht-grid .bt-info::after, .ht-add-row .bt-info::after { content: ''; position: absolute; inset: -9px; }
.ht-add-row { position: relative; display: block; }
.ht-add-row .bt-info { position: absolute; top: 10px; right: 10px; }
.ht-add-row .bt-survey { padding-right: 46px; align-items: flex-start; }
.ht-add-row .bt-price { font-size: 13.5px; color: var(--muted); }
.ht-total-unsure { font-size: 17px !important; }
.ht-rec--inline { margin-left: 4px; padding: 2px 7px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good, #52d39a) 55%, transparent); justify-self: start; }
.ht-rec--inline[hidden] { display: none; }
/* Equal heights in a row; a tag on the box's edge takes no room, so nothing moves. */
.ht-opts { align-items: stretch; }
.ht-opt { align-items: stretch; }
.ht-opt .bt-survey { position: relative; height: 100%; justify-content: center; }
.ht-rec--edge { position: absolute; top: -9px; right: 10px; padding: 2px 7px; background: var(--card-2, var(--card, #10233f)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good, #52d39a) 55%, transparent); }
.ht-rec--edge[hidden] { display: none; }
/* The (i) note floats beside its button, or rises as a sheet on a phone. */
.ht-pop { position: fixed; z-index: 1200; width: min(320px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 14px; background: var(--card-2, #10233f); color: var(--text, #fff);
  border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); animation: ht-pop .18s ease-out both; }
.ht-pop b { display: block; margin-bottom: 4px; }
.ht-pop p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ht-pop .ht-pop-why { margin-top: 10px; color: inherit; }
.ht-pop.is-sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px)); animation-name: ht-sheet; }
@keyframes ht-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ht-sheet { from { transform: translateY(100%); } to { transform: none; } }
/* The total pinned to the bottom of the screen while they scroll: the hero clips
   rather than scrolls so it can stick, and the site's own phone bar steps aside. */
.ht-booking .hero { overflow: clip; }
.ht-stage.is-brand .ht-total, .ht-stage.is-brand .ht-rec--edge, .ht-pop.is-brand { background: var(--brand-card, #17325a); }
.ht-pop.is-brand { color: #fff; border-color: rgba(255,255,255,.3); }
.ht-pop.is-brand p { color: #cfdbee; }
.ht-booking .action-bar { display: none !important; }
.ht-pane--need .ht-total { position: sticky; bottom: 0; z-index: 3; background: var(--card-2, var(--card, #10233f)); margin-bottom: -4px; padding-bottom: 12px; }

/* Step 3 and 4, and the end. */
.ht-week { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.ht-week-label { min-width: 150px; }
.ht-arrow { min-width: 44px; font-size: 20px; line-height: 1; }
.ht-arrow:disabled, .ht-dayb:disabled { opacity: .35; cursor: default; }
.ht-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 560px; margin-bottom: 10px; }
.ht-dayb { display: grid; justify-items: center; gap: 2px; padding: 8px 0; min-width: 0; }
.ht-dayb span { font-size: 12px; opacity: .8; }
.ht-dayb b { font-size: 17px; }
.ht-days .bt-time[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #06121f); }
.ht-day { font-weight: 700; margin: 4px 0 8px; }
.ht-quick { margin: 0 0 12px; }
.ht-earliest { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: inherit; font: inherit; cursor: pointer; }
.ht-earliest span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.ht-tgroup { display: grid; justify-items: center; gap: 6px; margin-bottom: 10px; }
.ht-tlabel { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
.ht-when-big { font-size: 18px; font-weight: 600; margin: 0 0 8px; max-width: 46ch; }
.ht-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 2px 0 8px; }
.ht-later { width: 100%; max-width: 560px; margin: 8px 0 12px; text-align: left; }
.ht-later .ht-label { margin-top: 0; }
.ht-later .ht-extras { padding: 12px 0 4px; margin: 0; display: grid; gap: 8px; }
.ht-later .ht-extras textarea { width: 100%; box-sizing: border-box; }
.ht-later > .btn { width: 100%; margin-top: 8px; }
.ht-trialnote { font-size: 13px; }
.ht-small { font-size: 13.5px; margin: 4px 0 6px; }
/* Call us on every step: a chip with words, just the phone on a narrow screen. */
.ht-call { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; flex: none; }
.ht-call svg { color: var(--accent); }
#ht-form .fnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ht-pc-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
/* The promise beside the price. */
.ht-promise { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; font-size: 13.5px; color: var(--muted); }
.ht-promise li { display: inline-flex; align-items: center; gap: 6px; }
.ht-promise svg { color: var(--good, #52d39a); }
.ht-pay { margin: 4px 0 10px; }
.ht-paybtn { display: inline-grid; justify-items: center; gap: 2px; padding-top: 10px; padding-bottom: 10px; }
.ht-paybtn span { font-size: 12.5px; font-weight: 500; opacity: .85; }
.ht-times { min-height: 60px; margin-bottom: 6px; }
.ht-times .bt-row { justify-content: center; }
.ht-extras { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; margin-bottom: 16px; }
.ht-pane .check-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.ht-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; width: 100%; max-width: 520px; margin: 10px 0 14px; text-align: left; }
.ht-sum dt { color: var(--muted); }
.ht-sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ht-badge { position: fixed; z-index: 1100; right: max(10px, env(safe-area-inset-right, 0px)); bottom: max(10px, env(safe-area-inset-bottom, 0px)); opacity: .92;
  background: #f0b867; color: #1a1200; font: 600 11px/1 system-ui, sans-serif; padding: 7px 10px; border-radius: 999px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); }

@media (min-width: 1100px) { .ht-opts--adds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ht-need { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .ht-opts--2 { grid-template-columns: 1fr; }
  .ht-opts--adds { grid-template-columns: 1fr; row-gap: 8px; }
  .ht-head { flex-wrap: wrap; row-gap: 2px; }
  .ht-head .ht-opt-note { flex-basis: 100%; padding-left: 36px; }
  .ht-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, .85fr); gap: 6px; }
  .ht-grid-col { flex-direction: column; justify-content: flex-end; font-size: 12.5px; text-align: center; line-height: 1.2; }
  .ht-grid-row .ht-opt-say { font-size: 12px; }
  .ht-cell b { font-size: 15.5px; }
  .ht-tiles { gap: 8px; }
  /* On a phone the tiles keep just the picture and the name, two to a row. */
  .ht-tile { grid-template-columns: 1fr; row-gap: 6px; padding: 12px; min-height: 0; }
  .ht-tile-ico { grid-row: auto; }
  .ht-tile-say { display: none; }
  .ht-top .ht-call { padding: 0; }
  .ht-top .ht-call span { display: none; }
  .ht-promise { flex-direction: column; }
  /* One slim row: the total beside the button. */
  .ht-pane--need .ht-total { flex-wrap: nowrap; gap: 10px; }
  .ht-pane--need .ht-total b { font-size: 20px; }
  .ht-pane--need .ht-total .ht-total-unsure { font-size: 15.5px !important; line-height: 1.25; }
  .ht-pane--need .ht-total .ht-total-unsure + span { display: none; }
  .ht-pane--need .ht-total .btn { flex: 0 1 auto; max-width: 62%; min-height: 48px; padding: 10px 16px; font-size: 15px; white-space: nowrap; line-height: 1.2; text-align: center; }
}
.ht-booking .ht-badge { bottom: auto; top: 84px; }
@media (prefers-reduced-motion: reduce) {
  .ht-stage.is-moving, .ht-inner, .ht-tile { transition: none; }
  .ht-pane { animation: none; }
}
/* Live: a time being booked, and the deposit and page links as buttons. */
.ht-pane.is-busy { opacity: .55; pointer-events: none; transition: opacity .15s; }
a.ht-paybtn, .ht-acts a.btn { text-decoration: none; }
a.ht-paybtn b { font-size: 17px; }
/* Outline buttons read on either brand's card (ATi's light-on-navy card made them white on white). */
.ht-stage .btn--ghost { background: transparent; color: inherit; border: 1.5px solid var(--line-strong); box-shadow: none; }
.ht-stage .btn--ghost:hover { border-color: var(--accent); }
/* Done: one calm centred column (the owner's ask): the summary as a soft panel,
   the deposit full width, the page and calendar side by side, the extras beneath. */
.ht-done { width: 100%; max-width: 460px; margin: 0 auto; gap: 0; }
.ht-done .check-ring { margin-bottom: 12px; }
.ht-done .ht-h { margin-bottom: 4px; }
.ht-done .ht-when-big { margin: 0 0 16px; font-size: 17px; color: var(--muted); font-weight: 500; }
.ht-done .ht-sum { max-width: none; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: rgba(127,127,127,.08); gap: 8px 16px; }
.ht-done .ht-sum dt { text-align: left; }
.ht-done .ht-sum dd { text-align: right; }
.ht-done .ht-pay { width: 100%; margin: 0 0 10px; }
.ht-done a.ht-paybtn { display: grid; width: 100%; box-sizing: border-box; }
.ht-done .ht-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 0 0 10px; }
.ht-done .ht-acts .btn { width: 100%; min-width: 0; padding-left: 10px; padding-right: 10px; font-size: 15px; white-space: normal; line-height: 1.2; }
.ht-done .ht-acts .btn:only-child { grid-column: 1 / -1; }
.ht-done > .ht-sub { margin: 0 0 14px; font-size: 13.5px; }
.ht-done .ht-later { max-width: none; margin: 0 0 12px; }
@media (max-width: 360px) { .ht-done .ht-acts { grid-template-columns: 1fr; } }
.ht-senderr{margin:8px 0 0;color:#d97706;font-weight:600}

/* One look for every step (the owner, 26 Nov 2026). The progress: the step named above four
   even bars, the same on every step and every width. */
.ht-top .dots { flex-wrap: wrap; row-gap: 6px; }
.ht-top .dots span:not(.step-label) { flex: 1 1 0; min-width: 18px; }
.ht-top .dots .step-label { order: -1; flex-basis: 100%; margin: 0; text-align: center; }
/* Step 3's foot is step 2's bar: the same place, the same button size. */
.ht-pane--c .ht-bar { position: sticky; bottom: 0; z-index: 3; background: var(--card-2, var(--card, #10233f)); margin-bottom: -4px; padding-bottom: 12px; text-align: left; }
.ht-stage.is-brand .ht-bar { background: var(--brand-card, #17325a); }
.ht-bar .ht-callme { min-width: 0; }
.ht-finding { animation: ht-pulse 1.2s ease-in-out infinite; }
@keyframes ht-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .ht-finding { animation: none; } }
/* Done: anything to add as three tiles, the form's own tile look. */
.ht-addrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ht-addtile { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; text-align: center; row-gap: 6px; padding: 12px 8px; }
.ht-addtile svg { color: var(--accent); }
.ht-addtile span { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.ht-later .ht-pickfiles { width: 100%; box-sizing: border-box; justify-content: center; cursor: pointer; }
.ht-pane--c > .ht-small { margin-top: 4px; }
.ht-bar { flex-wrap: nowrap; }
