/* Brighter Being test site: the booking page (book.html, js/book.js). Uses the brand tokens from site.css. */

.bk { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 880px; margin: 36px auto 0; padding: clamp(22px, 4.5vw, 44px); }
.bk-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bk-body[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.bk-loading { text-align: center; }

.bk-eyebrow { font-family: var(--caps); font-size: 14px; letter-spacing: 2.5px; color: var(--gold-ink); margin-bottom: 6px; }
.bk-title { font-family: var(--caps); font-weight: 400; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: 1.5px; line-height: 1.25; }
.bk-title:focus { outline: 0; }
.bk-title:focus-visible { outline: 3px solid var(--brown); outline-offset: 4px; }
.bk-sub, .bk-msg { margin-top: 10px; max-width: var(--measure, 60ch); }
.bk-zone { margin-top: 10px; font-size: 15px; font-style: italic; }
.bk-err { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(160, 137, 77, .16); color: var(--brown); }
.bk-note { margin-top: 12px; min-height: 1.5em; font-size: 16px; color: var(--brown); }
.bk-note:empty { margin-top: 0; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.bk-ask { flex-basis: 100%; font-weight: 700; }

/* Text-only button for going back a step */
.bk-back { background: none; border: 0; padding: 10px 4px; font: inherit; font-size: 16px; color: var(--olive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk-back:hover { color: var(--brown); }

/* Step 1: who */
.bk-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 24px; }
.bk-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-height: 104px; padding: 20px 20px 18px; background: var(--cream); color: var(--ink, var(--olive)); border: 1.5px solid rgba(113, 113, 71, .4); border-radius: 18px; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.bk-choice:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.bk-choice[aria-pressed="true"] { border-color: var(--gold); background: rgba(160, 137, 77, .1); }
.bk-choice-name { font-family: var(--caps); font-size: 20px; letter-spacing: 1.5px; color: var(--olive); }
.bk-choice-line { font-size: 16px; line-height: 1.45; }

/* Step 2: month calendar and the chosen day's times */
.bk-pick { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); margin-top: 22px; align-items: start; }
.bk-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bk-month-name { font-family: var(--caps); font-size: 18px; letter-spacing: 1.5px; }
.bk-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(113, 113, 71, .4); background: var(--cream); color: var(--olive); font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.bk-nav:hover:not(:disabled) { border-color: var(--gold); }
.bk-nav:disabled { opacity: .35; cursor: default; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-wd { text-align: center; font-family: var(--caps); font-size: 13px; letter-spacing: 1px; color: var(--gold-ink); padding-bottom: 4px; }
.bk-day { display: flex; align-items: center; justify-content: center; min-height: 40px; aspect-ratio: 1 / 1; border-radius: 50%; font: inherit; font-size: 16px; }
.bk-off { color: var(--muted); }
.bk-open { border: 1.5px solid transparent; background: rgba(160, 158, 110, .22); color: var(--ink, var(--olive)); font-weight: 700; cursor: pointer; padding: 0; transition: background .2s, border-color .2s; }
.bk-open:hover { border-color: var(--gold); }
.bk-open[aria-pressed="true"] { background: var(--gold-btn); color: var(--cream); }
.bk-day-name { font-family: var(--caps); font-weight: 400; font-size: 18px; letter-spacing: 1.5px; margin-bottom: 12px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.bk-slot { width: 100%; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--olive); background: var(--cream); color: var(--ink, var(--olive)); font: inherit; font-size: 16px; cursor: pointer; transition: background .2s, color .2s; }
.bk-slot:hover { background: var(--olive); color: var(--cream); }

/* Step 3: details (the same look as the contact form, under its own class so site.js leaves it alone) */
.bk-summary { margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: var(--beige); }
.bk-when { font-weight: 700; }
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.bk-form label, .bk-keep label { display: block; font-family: var(--caps); letter-spacing: 1.5px; font-size: 15px; margin-bottom: 7px; }
.bk-form input, .bk-form select, .bk-form textarea, .bk-keep-url { width: 100%; background: var(--cream); border: 1.5px solid var(--olive); border-radius: 12px; color: var(--ink, var(--olive)); font: inherit; padding: 13px 16px; }
.bk-form select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus, .bk-keep-url:focus { border-color: var(--brown); outline: 3px solid var(--brown); outline-offset: 2px; }
.bk-form textarea { min-height: 110px; resize: vertical; }
.bk-form .full { grid-column: 1 / -1; }
.bk-form .bk-actions { margin-top: 4px; }
.bk-hint { font-size: 15px; font-style: italic; margin-top: 6px; }
/* The hidden box: people never see it, so only robots fill it in */
.bk-hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Step 4 and a booking's own page */
.bk-details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 22px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--beige); }
.bk-details dt { font-family: var(--caps); letter-spacing: 1.5px; font-size: 15px; color: var(--gold-ink); padding-top: 2px; }
.bk-details dd { margin: 0; overflow-wrap: anywhere; }
.bk-details a { font-weight: 700; }
.bk-keep { margin-top: 26px; }
.bk-keep-row { display: flex; gap: 10px; }
.bk-keep-url { flex: 1; min-width: 0; font-size: 15px; padding: 10px 14px; }
.bk-copied { display: block; min-height: 1.5em; font-size: 15px; margin-top: 6px; }

/* This page is the booking page, so the phone's "book a discovery call" bar has nowhere else to go */
.mobile-cta { display: none !important; }

@media (max-width: 760px) {
  .bk-pick { grid-template-columns: 1fr; }
  .bk-form { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .bk { padding: 22px 14px; border-radius: 18px; }
  .bk-grid { gap: 2px; }
  .bk-day { min-height: 38px; font-size: 15px; }
  .bk-details { grid-template-columns: 1fr; gap: 2px; padding: 16px; }
  .bk-details dd { margin-bottom: 8px; }
  .bk-keep-row { flex-direction: column; }
  .bk-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-choice, .bk-open, .bk-slot, .bk-body[aria-busy="true"] { transition: none; }
  .bk-choice:hover { transform: none; }
}
