/* Booking pages, /book and /book/manage (16/11/2026), laid out like Calendly (owner: "keep our colors,
   the layout should be like calendly") in the SPFP colours: navy text and buttons, beige for free dates and chosen
   options, fine gold rules, bronze labels, square corners. Only what spfp.css and pages-forms.css lack. */

/* Header only, so the booking card is the first thing on the page */
.hero.hero-bk .wrap { padding-top: 40px; padding-bottom: 36px; }
.sec.bk-sec { padding: 56px 0 110px; }
.bk { scroll-margin-top: 16px; }
.bk-nojs { max-width: 680px; margin: 0 auto; }
html:not(.js) .bk { display: none; }

.bk-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(4, 4, 74, .04), 0 24px 48px -32px rgba(4, 4, 74, .25); }
.bk .alert { margin-bottom: 20px; }
.bk-hint { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.bk-hint a, .bk-err a { color: inherit; font-weight: 600; }
.bk-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 1 The meetings: a list in two columns, as on Calendly */
.bk-list { max-width: 1000px; margin: 0 auto; padding: 50px 56px 36px; }
.bk-list-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); text-align: center; }
.bk-list-head .eyebrow { font-weight: 500; letter-spacing: .3em; }
.bk-list-h { margin-top: 14px; font: 300 40px/1.15 var(--head); }
.bk-list-h b { font-weight: 500; }
.bk-list-h:focus { outline: none; }
.bk-list-p { max-width: 460px; margin: 14px auto 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.bk-group { margin-top: 34px; }
.bk-group-t { margin: 0 0 6px; }
.bk-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 52px; }
.bk-type { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0; padding: 24px 0 28px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.bk-type-n { display: flex; align-items: center; gap: 14px; }
.bk-mark { flex: none; width: 12px; height: 12px; background: var(--gold); clip-path: polygon(100% 100%, 0 0, 100% 0); }
.bk-type-t { font: 500 19px/1.3 var(--head); color: var(--navy); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.bk-type.on .bk-type-t { text-decoration-color: var(--gold); }
.bk-arr { margin-left: auto; font: 300 26px/1 var(--head); font-style: normal; color: var(--gold); transition: transform .25s var(--ease); }
.bk-type-m { font: 500 14px/1.5 var(--text); color: var(--bronze); }
.bk-type-d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
@media (hover: hover) {
  .bk-type:hover .bk-type-t { text-decoration-color: var(--gold); }
  .bk-type:hover .bk-arr { transform: translateX(4px); }
}

/* 2 and 3: the meeting on the left, the calendar or the form on the right */
.bk-split { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); max-width: 1000px; min-height: 540px; margin: 0 auto; }
.bk-split.has-times { max-width: 1120px; }
.bk-info { padding: 28px 32px 36px; border-right: 1px solid var(--line); }
.bk-back { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 0 24px; padding: 0; border: 1px solid var(--line-gold); background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.bk-host { font: 500 14px/1.4 var(--head); color: var(--muted); }
.bk-title { margin-top: 6px; font: 500 27px/1.22 var(--head); }
.bk-title:focus { outline: none; }
.bk-was { margin-top: 18px; padding: 12px 16px; background: var(--beige); border-left: 2px solid var(--gold); font-size: 14.5px; line-height: 1.5; color: var(--navy); }
.bk-was .label { display: block; margin-bottom: 4px; }
.bk-facts { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.bk-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--muted-2); }
.bk-facts .bk-ico { flex: none; margin-top: -1px; color: var(--bronze); }
.bk-facts small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.bk-facts .bk-f-at { color: var(--navy); font-weight: 600; }
.bk-desc { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.bk-desc p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.bk-more { display: none; margin: 8px 0 0; padding: 4px 0; border: 0; background: none; font: 600 11.5px/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); cursor: pointer; }
.bk-main { min-width: 0; padding: 28px 36px 36px; }
.bk-h3 { margin-bottom: 24px; font: 500 20px/1.3 var(--head); color: var(--navy); }
.bk-h3:focus { outline: none; }

/* The calendar, and the times beside it once a date is chosen (the chosen time becomes Next) */
.bk-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 30px; align-items: start; }
.has-times .bk-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 232px); }
.bk-cal-col { width: 100%; max-width: 440px; }
.bk-month { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; }
.bk-month b { min-width: 150px; font: 500 16px/1.3 var(--head); color: var(--navy); text-align: center; }
.bk-nav { width: 40px; height: 40px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; background: var(--beige); color: var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.bk-nav:disabled { background: none; color: #B3B6C8; cursor: default; }
.bk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; text-align: center; }
.bk-cal small { padding: 4px 0 8px; font: 600 10.5px/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bk-date { position: relative; width: 100%; max-width: 48px; aspect-ratio: 1; justify-self: center; margin: 0; padding: 0; border: 0; background: none; color: #A3A7BD; font: 400 15px/1 var(--text); }
.bk-date.free { background: var(--beige); color: var(--navy); font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.bk-date.on { background: var(--navy); color: #fff; }
.bk-date.today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.bk-zone { margin-top: 26px; }
.bk-zone-t { display: block; margin-bottom: 8px; font: 600 11px/1.3 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.bk-zone-s { position: relative; width: 100%; max-width: 300px; }
.bk-zone-s .bk-ico { position: absolute; left: 12px; top: 13px; color: var(--bronze); pointer-events: none; }
.bk-zone select { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 0; background: #fff; font: 500 15px/1.3 var(--text); color: var(--navy); cursor: pointer; }
.bk-zone select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 161, 91, .18); }
.bk-time-col { min-width: 0; }
.bk-picked { display: flex; align-items: center; min-height: 40px; margin-bottom: 18px; font: 500 15px/1.35 var(--head); color: var(--navy); }
.bk-times { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow-y: auto; padding: 1px 8px 1px 1px; scrollbar-width: thin; }
.bk-time, .bk-slot { flex: none; height: 52px; }
.bk-time { width: 100%; margin: 0; padding: 0 8px; border: 1px solid var(--line-gold); background: #fff; color: var(--navy); font: 600 15px/1 var(--head); letter-spacing: .02em; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.bk-slot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.bk-slot-t { display: grid; place-items: center; background: var(--beige-2); color: var(--navy); font: 600 15px/1 var(--head); }
.bk-slot-go { margin: 0; padding: 0 6px; border: 0; border-bottom: 2px solid var(--gold); background: var(--navy); color: #fff; font: 600 13px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.bk-slot-go:disabled { opacity: .7; cursor: wait; }
@media (hover: hover) {
  .bk-back:hover, .bk-nav:not(:disabled):hover { background: var(--navy); border-color: var(--navy); color: #fff; }
  .bk-date.free:not(.on):hover { box-shadow: inset 0 0 0 1px var(--gold); }
  .bk-time:hover { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
  .bk-slot-go:hover { background: #0A0A6B; }
}

/* 3 Your details, with how to meet as a choice in the form (as on Calendly) */
.bk-form { display: flex; flex-direction: column; gap: 20px; max-width: 580px; }
.bk-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-err { font-size: 14px; line-height: 1.5; color: #B3261E; }
.bk-form .bk-err { margin-top: -10px; }
.bk-form .alert { margin: 0; }
.bk-form .bad { border-color: #B3261E; }
.bk-phone { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.bk-phone:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 161, 91, .18); }
.bk-phone > span { padding-left: 14px; font: 500 16px/1 var(--text); color: var(--navy); }
.field .bk-phone input, .field .bk-phone input:focus { min-height: 46px; border: 0; padding-left: 8px; box-shadow: none; }
.bk-how { min-width: 0; margin: 0; padding: 0; border: 0; }
.bk-how legend { margin-bottom: 10px; padding: 0; font: 600 11px/1.3 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.bk-how .req { color: var(--bronze); }
.bk-opts { display: grid; gap: 8px; }
.bk-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-opt { position: relative; display: block; cursor: pointer; }
.bk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bk-opt-box { position: relative; display: block; padding: 14px 16px 14px 46px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.bk-opt-box::before { content: ""; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border: 1px solid var(--gold); border-radius: 50%; background: #fff; transition: background .2s, border-color .2s, box-shadow .2s; }
.bk-opt input:checked + .bk-opt-box { border-color: var(--navy); background: var(--beige); box-shadow: inset 0 0 0 1px var(--navy); }
.bk-opt input:checked + .bk-opt-box::before { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 4px #fff; }
.bk-opt input:focus-visible + .bk-opt-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-opt-n { display: block; font: 500 15.5px/1.35 var(--head); color: var(--navy); }
.bk-opt-d { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.bk-how.bad .bk-opt-box { border-color: #B3261E; }
@media (hover: hover) { .bk-opt:hover input:not(:checked) + .bk-opt-box { border-color: var(--gold); } }
.bk-ts { min-height: 65px; }
.bk-ts-local { display: grid; place-items: center; padding: 0 16px; border: 1px dashed var(--line-gold); background: var(--mist); font-size: 13px; color: var(--muted); text-align: center; }
.bk .form-btn { display: block; width: 100%; padding: 0 20px; }
.bk .bk-go:disabled { opacity: .7; cursor: wait; }
.bk-link { display: inline-block; margin: 0; padding: 6px 0; border: 0; background: none; font: 600 12px/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); cursor: pointer; }
.bk-link:hover { color: var(--navy); }

/* 4 Booked, and the manage page's messages */
.bk-done { max-width: 640px; margin: 0 auto; padding: 52px 48px 48px; text-align: center; }
.bk-done-h { font: 400 32px/1.2 var(--head); }
.bk-done-h:focus { outline: none; }
.bk-done > p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.bk-done b { color: var(--navy); font-weight: 600; }
.bk-tick { width: 64px; height: 64px; margin: 0 auto 24px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; }
.bk-tick::before { content: ""; width: 24px; height: 12px; margin-top: -6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.bk-box { max-width: 460px; margin: 26px auto 6px; padding: 22px 24px; border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--beige); text-align: left; }
.bk-box-n { font: 500 19px/1.3 var(--head); color: var(--navy); }
.bk-box .bk-facts { margin-top: 14px; }
.bk-done .alert { margin: 24px 0 0; text-align: left; }
.bk-loading { padding: 40px 0; text-align: center; }

/* The manage page: the meeting on the left, move or cancel on the right */
.bk-manage .bk-lead { max-width: 520px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.bk-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 360px; margin-top: 30px; }
.bk-ask { font: 500 18px/1.4 var(--head); color: var(--navy); }
.bk-manage .alert { margin: 20px 0 0; }

/* Tablet: one column, the meeting on top, everything centred */
@media (max-width: 1000px) {
  .sec.bk-sec { padding: 40px 0 90px; }
  .bk-list { padding: 40px 32px 30px; }
  .bk-type { align-items: center; text-align: center; }
  .bk-type-n { justify-content: center; }
  .bk-arr { display: none; }
  .bk-split, .bk-split.has-times { grid-template-columns: minmax(0, 1fr); max-width: 720px; min-height: 0; }
  .bk-info { padding: 22px 28px 24px; border-right: 0; border-bottom: 1px solid var(--line); text-align: center; }
  .bk-back { margin: 0 0 12px; }
  .bk-facts { align-items: center; margin-top: 16px; gap: 10px; }
  .bk-facts li { display: block; text-align: center; }
  .bk-facts .bk-ico { display: inline-block; margin: 0 8px 0 0; vertical-align: -5px; }
  .bk-desc { margin-top: 18px; padding-top: 16px; }
  .bk-desc p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .bk-info.open .bk-desc p { display: block; }
  .bk-more { display: inline-block; }
  .bk-main { padding: 26px 28px 30px; }
  .bk-h3 { text-align: center; }
  .bk-cal-col { justify-self: center; }
  .bk-zone { text-align: center; }
  .bk-zone-s { margin: 0 auto; }
  .bk-zone select { text-align: center; text-align-last: center; }
  .bk-picked { justify-content: center; }
  .bk-form { max-width: none; }
  .bk-form .field > span, .bk-form .field > label, .bk-err, .bk-form .form-note, .bk-how legend { text-align: center; }
  .bk-how legend { width: 100%; }
  .bk-form input, .bk-form textarea { text-align: center; }
  .bk-phone { justify-content: center; }
  .field .bk-phone input { flex: none; width: 8.5em; text-align: left; }
  .bk-opt-box { padding: 14px 16px; text-align: center; }
  .bk-opt-box::before { position: static; display: inline-block; margin: 0 10px 0 0; vertical-align: -3px; }
  .bk-opt-n { display: inline; }
  .bk-manage { text-align: center; }
  .bk-manage .bk-lead { margin: 0 auto; }
  .bk-acts { align-items: center; margin-left: auto; margin-right: auto; }
  .bk .alert { text-align: center; border-left: 0; border-top: 2px solid var(--gold); }
  .bk .alert-err { border-top-color: #B3261E; }
  .bk-box { text-align: center; }
  .bk-box .bk-facts { align-items: center; }
}

/* Phone: the card nearly edge to edge, the times in one column under the calendar (as on Calendly's phone layout) */
@media (max-width: 700px) {
  .hero.hero-bk .wrap { padding-top: 28px; padding-bottom: 24px; }
  .sec.bk-sec { padding: 22px 0 64px; }
  .bk-sec .wrap { padding: 0 10px; }
  .bk-list { padding: 30px 18px 18px; }
  .bk-list-head { padding-bottom: 26px; }
  .bk-list-h { font-size: 32px; }
  .bk-group { margin-top: 26px; }
  .bk-types { grid-template-columns: minmax(0, 1fr); }
  .bk-type { padding: 22px 4px 24px; }
  .bk-info { padding: 16px 18px 20px; }
  .bk-title { font-size: 23px; }
  .bk-main { padding: 22px 16px 26px; }
  .has-times .bk-pick { grid-template-columns: minmax(0, 1fr); }
  .bk-time-col { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
  .bk-picked { min-height: 0; }
  .bk-times { max-height: none; overflow: visible; padding: 0; }
  .bk-month { gap: 10px; }
  .bk-cal { gap: 4px 2px; }
  .bk-date { font-size: 14px; }
  .bk-names { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bk-opts-2 { grid-template-columns: minmax(0, 1fr); }
  .bk-done { padding: 36px 20px 32px; }
  .bk-done-h { font-size: 27px; }
  .bk-box { padding: 18px 16px; }
}

/* The phone call bar keeps only Call here (Book a call would restart the booking) */
@media (max-width: 760px) {
  .callbar { grid-template-columns: minmax(0, 1fr); }
  .callbar a.on { display: none; }
}
