/* CH Group: book.css (Book a call layout only; tokens and shared components live in site.css) */

.bk { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.bk__head { max-width: 40rem; }
.bk__head .lede { margin-top: var(--sc-4); color: var(--sc-ink-soft); }
.bk__grid { margin-top: clamp(1.75rem, 3.5vw, 3rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.bk__main { min-width: 0; }
@media (min-width: 960px) {
  .bk__grid { grid-template-columns: minmax(0, 1fr) 21rem; column-gap: clamp(2.5rem, 5vw, 5rem); }
  .bk-side { position: sticky; top: calc(var(--hd-h) + 24px); }
}

/* -------------------------------------------------------- audience toggle --
   A real radio group; the inputs are visually hidden, the labels are the control. */
.bk-aud { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--sc-r-md); background: var(--white); }
.bk-aud__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bk-aud__opt {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--sc-r-sm);
  font: 600 15px/1.2 var(--sc-font-text); color: var(--sc-ink); cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .bk-aud__opt:hover { background: var(--porcelain); } }
.bk-aud__input:checked + .bk-aud__opt { background: var(--green-900); color: var(--porcelain); }
.bk-aud__input:focus-visible + .bk-aud__opt { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
@media (max-width: 480px) { .bk-aud { width: 100%; } .bk-aud__opt { flex: 1 1 100%; } }

/* ---------------------------------------------------------- On the call --
   Both lists are in the DOM; CSS shows the one for the checked radio, so the
   switch works even before book.js runs. */
.bk-call { margin-top: clamp(1.5rem, 3vw, 2rem); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); padding-top: var(--sc-4); border-top: 1px solid var(--line); }
.bk-call__title { margin-bottom: var(--sc-3); }
.bk-call__list { display: none; }
.bk__main:has(#aud-business:checked) .bk-call__list[data-for="business"],
.bk__main:has(#aud-installer:checked) .bk-call__list[data-for="installer"] { display: block; }
.bk-call .checks { gap: 8px; }
/* engines without :has() (older browsers): show the business list */
@supports not selector(:has(*)) { .bk-call__list[data-for="business"] { display: block; } }

/* --------------------------------------------------------------- side column */
.bk-side { display: grid; gap: 0; }
.bk-side__block { padding: clamp(1.25rem, 2.4vw, 1.75rem) 0; border-top: 1px solid var(--line); }
.bk-side__block:first-child { border-top: 0; padding-top: 0; }
.bk-side__h { font: 500 1.35rem/1.2 var(--sc-font-display); letter-spacing: -0.01em; margin-bottom: var(--sc-4); }
.bk-side__founders { gap: 20px; }
.bk-side__now { margin-top: var(--sc-4); }
.bk-side__now a { color: var(--sc-ink); text-underline-offset: 0.25em; white-space: nowrap; }
.bk-side__ready .btn { white-space: normal; text-align: left; justify-content: flex-start; min-height: 44px; }
.bk-addr { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-style: normal; color: var(--sc-ink-soft); line-height: 1.55; }
.bk-addr .ico { width: 18px; height: 18px; margin-top: 3px; }

/* ----------------------------------------------- callback form (key only) -- */
.bk-form { margin-top: var(--sc-4); display: grid; gap: 14px; }
.bk-form__row { display: grid; gap: 6px; }
.bk-form__row label { font: 600 14px/1.3 var(--sc-font-text); color: var(--sc-ink); }
.bk-form input[type="text"], .bk-form input[type="tel"], .bk-form input[type="email"], .bk-form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--sc-r-sm);
  background: var(--white); color: var(--sc-ink); font: 400 16px/1.4 var(--sc-font-text);
}
.bk-form textarea { resize: vertical; min-height: 88px; }
.bk-form input:focus-visible, .bk-form textarea:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; }
.bk-form__send {
  min-height: 48px; padding: 0 22px; border: 1px solid var(--green-900); border-radius: var(--sc-r-sm);
  background: none; color: var(--green-900); font: 600 15px/1.1 var(--sc-font-text);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.bk-form__send:disabled { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .bk-form__send:hover:not(:disabled) { background: var(--green-900); color: var(--porcelain); } }
.bk-form__status { min-height: 1.4em; color: var(--sc-ink-soft); }

/* ------------------------------------------------------------- calendar --
   Calendly's date-and-time view (time zone label, six slots) needs more than the
   shared 720px; the iframe's own top padding is pulled up so no dead band shows. */
@media (min-width: 900px) { .bk__cal { height: auto; min-height: 820px; } }
@media (min-width: 900px) { .bk__cal .cal__widget { top: -56px; } }
