/* =====================================================================
   Booking pages (/book/, /book/manage/) and the privacy notice.
   Loaded after main.css; uses its tokens, buttons (.btn) and form bits (.pform__*, .chip).
   ===================================================================== */

.bk { margin-inline: auto; max-width: var(--max); padding: 10rem 0 6rem; color: var(--ink); }
.bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.bk-noscript { padding: 2rem; font-size: 1rem; line-height: 1.6; }
.bk-noscript a { text-decoration: underline; }

/* ---- hero ---- */
.bk-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.bk-hero .kicker { color: var(--ink); }
.bk-hero__title { margin-top: 1.25rem; font-size: 3.6rem; line-height: 1.12; }
.bk-hero__title em { font-style: italic; }
.bk-hero__lede { font-size: 1.05rem; line-height: 1.65; color: rgba(27, 27, 27, .8); }
.bk-points { display: grid; gap: .7rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.bk-points li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: rgba(27, 27, 27, .85); }
.bk-points strong { font-weight: 500; color: var(--ink); }
.bk-ico { flex: none; width: 1.35rem; height: 1.35rem; padding: .3rem; box-sizing: content-box; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px rgba(27, 27, 27, .08); }

/* ---- the card ---- */
.bk-card {
  position: relative; overflow: hidden; border-radius: 1.75rem; background: #fff;
  box-shadow: 0 1px 0 rgba(27, 27, 27, .06), 0 40px 90px -50px rgba(27, 27, 27, .35);
}
.bk-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 50%, var(--violet));
}
.bk-step[hidden] { display: none !important; }

/* ---- picker ---- */
.bk-pick { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 30rem; }
.bk-pick[hidden] { display: none; }
.bk-cal { padding: 2.5rem 2.5rem 2rem; border-right: 1px solid rgba(27, 27, 27, .08); }
.bk-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.bk-cal__month { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; line-height: 1.2; }
.bk-cal__nav { display: flex; gap: .5rem; }
.bk-round {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(27, 27, 27, .18); border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s;
}
.bk-round svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-round:hover:not(:disabled) { border-color: var(--ink); background: var(--cream); }
.bk-round:disabled { opacity: .3; cursor: default; }
.bk-round .bk-ico { background: none; box-shadow: none; padding: 0; color: currentColor; }
.bk-cal__week, .bk-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.bk-cal__week { margin-bottom: .5rem; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: rgba(27, 27, 27, .5); }
.bk-day {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 3.4rem; margin-inline: auto;
  border: 0; border-radius: 50%; background: transparent; color: rgba(27, 27, 27, .3);
  font: inherit; font-size: .95rem; cursor: default; transition: background-color .2s, color .2s, box-shadow .2s;
}
.bk-day--pad { visibility: hidden; }
.bk-day--open { color: var(--ink); font-weight: 500; background: var(--cream); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(48, 100, 208, .22); }
.bk-day--open::after {
  content: ""; position: absolute; bottom: 17%; left: 50%; width: .3rem; height: .3rem; margin-left: -.15rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.bk-day--open:hover { background: #eef3ff; box-shadow: inset 0 0 0 1px var(--blue); }
.bk-day--today { box-shadow: inset 0 0 0 1px rgba(27, 27, 27, .35); }
.bk-day[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.bk-day[aria-pressed="true"]::after { background: var(--cyan); }
.bk-day:focus-visible, .bk-slot:focus-visible, .bk-round:focus-visible, .bk-link:focus-visible, .bk-action:focus-visible, .bk-tz select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.bk-tz {
  position: relative; display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem; padding: .2rem .25rem .2rem .7rem;
  border: 1px solid rgba(27, 27, 27, .14); border-radius: 999px; width: fit-content; max-width: 100%; background: #fff;
}
.bk-tz .bk-ico { width: 1.05rem; height: 1.05rem; padding: 0; box-shadow: none; }
.bk-tz select {
  min-width: 0; max-width: 22rem; padding: .45rem 1.9rem .45rem .15rem; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right .95rem center, right .65rem center; background-size: .3rem .3rem; background-repeat: no-repeat;
}

.bk-times { display: flex; flex-direction: column; min-width: 0; padding: 2.5rem 2.25rem 2rem; background: linear-gradient(180deg, #fbf9f4, #fff 60%); }
.bk-times__day { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; }
.bk-times__day small { display: block; margin-top: .3rem; font-family: var(--font-sans); font-size: .8rem; color: rgba(27, 27, 27, .6); }
.bk-times__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; align-content: start;
  max-height: 24rem; overflow-y: auto; padding: .15rem .25rem .25rem .15rem; overscroll-behavior: contain;
}
.bk-times__empty { grid-column: 1 / -1; margin: 0; font-size: .9rem; line-height: 1.6; color: rgba(27, 27, 27, .65); }
.bk-slot {
  display: flex; align-items: center; justify-content: center; height: 3rem; border: 1px solid rgba(27, 27, 27, .2); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.bk-slot:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.bk-slot[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ---- states ---- */
.bk-state { display: grid; justify-items: center; gap: 1rem; padding: 5rem 2rem; text-align: center; }
.bk-state[hidden] { display: none; }
.bk-state p { max-width: 36rem; margin: 0; font-size: 1rem; line-height: 1.65; color: rgba(27, 27, 27, .78); }
.bk-state a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.bk-state__title { margin: 0; font-size: 2.1rem; line-height: 1.2; }
.bk-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .75rem; }
.bk-spinner {
  display: inline-block; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid rgba(48, 100, 208, .18); border-top-color: var(--blue);
  animation: bk-spin .8s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

/* ---- details form ---- */
.bk-form { padding: 2.25rem 2.5rem 2.25rem; }
.bk-chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; padding: 1.25rem 1.5rem;
  border-radius: 1.1rem; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(48, 100, 208, .16);
}
.bk-chosen__label { margin: 0; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(27, 27, 27, .6); }
.bk-chosen__when { margin: .35rem 0 0; font-size: 1.6rem; line-height: 1.25; }
.bk-chosen__zone { margin: .25rem 0 0; font-size: .85rem; color: rgba(27, 27, 27, .65); }
.bk-link {
  flex: none; padding: .45rem .1rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: .88rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.bk-link:hover { color: var(--blue); }
.bk-form__fields { display: grid; gap: 1.1rem; }
.bk-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.bk-form .pform__status { flex: 1 1 16rem; margin: 0; }
.bk-submit { height: 2.75rem; padding-inline: 1.35rem .9rem; font-size: .95rem; }
.bk-submit[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---- done ---- */
.bk-done { display: grid; justify-items: center; gap: .6rem; padding: 4rem 2rem 3.5rem; text-align: center; outline: none; }
.bk-done__tick {
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem; margin-bottom: .75rem; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--violet));
  box-shadow: 0 18px 40px -18px rgba(48, 100, 208, .8);
}
.bk-tick { width: 2rem; height: 2rem; stroke-width: 2.2; }
.bk-done__title { margin: 0; font-size: 2.6rem; line-height: 1.15; }
.bk-done__when { margin: .5rem 0 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.bk-done__zone { margin: 0; font-size: .88rem; color: rgba(27, 27, 27, .65); }
.bk-done__meet { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; min-height: 2.75rem; font-size: .95rem; color: rgba(27, 27, 27, .75); }
.bk-done__meet .bk-spinner { width: 1.1rem; height: 1.1rem; }
.bk-done__note { max-width: 32rem; margin: .5rem 0 0; font-size: .92rem; line-height: 1.6; color: rgba(27, 27, 27, .75); }
.bk-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.bk-meet { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(48, 100, 208, .2); font-size: .92rem; color: var(--ink); word-break: break-all; }
.bk-meet svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--blue); }
a.bk-meet:hover { box-shadow: inset 0 0 0 1px var(--blue); }

/* ---- manage ---- */
.bk-summary { display: grid; justify-items: center; gap: .5rem; padding: 3.5rem 2rem 3rem; text-align: center; }
.bk-summary__status {
  margin: 0 0 .5rem; padding: .3rem .8rem; border-radius: 999px; background: #e6f6ee; color: #0a6b46;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.bk-summary__status.is-cancelled { background: #fbe9ea; color: #9d1720; }
.bk-summary__status.is-past { background: #eeeeea; color: #555; }
.bk-summary__when { margin: 0; font-size: 2.2rem; line-height: 1.2; }
.bk-summary__zone { margin: 0; font-size: .9rem; color: rgba(27, 27, 27, .65); }
.bk-summary__meet { margin-top: .75rem; }
.bk-summary__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.75rem; }
.bk-summary .pform__status { margin-top: .5rem; }
.bk-action {
  display: inline-flex; align-items: center; gap: .55rem; height: 2.75rem; padding: 0 1.1rem; border: 1px solid rgba(27, 27, 27, .2); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.bk-action .bk-ico { width: 1.05rem; height: 1.05rem; padding: 0; background: none; box-shadow: none; }
.bk-action:hover { border-color: var(--ink); }
.bk-action--danger { color: #9d1720; }
.bk-action--danger:hover { border-color: #9d1720; background: #fdf3f3; }
.bk-action:disabled { opacity: .45; pointer-events: none; }
.bk-btn--danger { --line: #9d1720; --btn-fill: #9d1720; color: #9d1720; }
.bk-steptop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.5rem 2.5rem; border-bottom: 1px solid rgba(27, 27, 27, .08); }
.bk-steptop__title { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.bk-confirm { display: grid; justify-items: center; gap: .6rem; padding: 3.5rem 2rem; text-align: center; }
.bk-confirm p { margin: 0; }
.bk-confirm__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.bk-cancel__reason { width: min(30rem, 100%); margin-top: 1rem; text-align: left; }

/* ---- privacy notice ---- */
.pv { margin-inline: auto; max-width: 46rem; padding: 10rem 1.5rem 6rem; color: var(--ink); }
.pv .kicker { color: var(--ink); }
.pv__title { margin: 1.25rem 0 0; font-size: 3.2rem; line-height: 1.15; }
.pv__title em { font-style: italic; }
.pv__updated { margin: 1rem 0 0; font-size: .85rem; color: rgba(27, 27, 27, .6); }
.pv__body { margin-top: 3rem; }
.pv__section { padding: 1.75rem 0; border-top: 1px solid rgba(27, 27, 27, .12); }
.pv__h { margin: 0 0 .9rem; font-size: 1.6rem; line-height: 1.25; }
.pv__section p { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.7; color: rgba(27, 27, 27, .85); }
.pv__section a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- responsive ---- */
@media (max-width: 1023px) {
  .bk { padding: 8rem 1.5rem 5rem; }
  .bk-hero { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .bk-hero__title { font-size: 3rem; }
  .bk-pick { grid-template-columns: 1fr; min-height: 0; }
  .bk-cal { border-right: 0; border-bottom: 1px solid rgba(27, 27, 27, .08); }
  .bk-times__list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
  .bk { padding: 7rem 1rem 4rem; }
  .bk-hero { margin-bottom: 2rem; }
  .bk-hero__title { font-size: 2.35rem; }
  .bk-card { border-radius: 1.25rem; }
  .bk-cal { padding: 1.75rem 1.1rem 1.5rem; }
  .bk-cal__month { font-size: 1.45rem; }
  .bk-cal__week, .bk-cal__grid { gap: .2rem; }
  .bk-day { font-size: .9rem; }
  .bk-tz select { max-width: 13rem; }
  .bk-times { padding: 1.75rem 1.1rem 1.5rem; }
  .bk-times__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-form { padding: 1.5rem 1.1rem; }
  .bk-form .pform__row { grid-template-columns: 1fr; }
  .bk-chosen { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
  .bk-chosen__when { font-size: 1.35rem; }
  .bk-state { padding: 3.5rem 1.25rem; }
  .bk-state__title { font-size: 1.7rem; }
  .bk-done__title { font-size: 2rem; }
  .bk-summary__when { font-size: 1.7rem; }
  .bk-steptop { padding: 1.25rem 1.1rem; }
  .bk-form__foot { flex-direction: column-reverse; align-items: stretch; }
  .bk-submit { width: 100%; }
  .pv { padding-top: 7rem; }
  .pv__title { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-spinner { animation-duration: 2.4s; }
  .bk-day, .bk-slot, .bk-round, .bk-action { transition: none; }
}
