/* Alturas call booking (assets/js/book.js): day → time → details → booked.
   Built on the site's tokens (--fg, --line, --surface…), so it fits the light Book a call card and the dark gift page. */
.bk { --bk-accent: var(--fg); --bk-on: var(--bg); color: var(--fg); min-height: 280px; }
.bk-loading { display: flex; justify-content: center; gap: 6px; padding: 120px 0; }
.bk-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); animation: bk-dot 1s ease-in-out infinite; }
.bk-loading i:nth-child(2) { animation-delay: .15s; } .bk-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes bk-dot { 50% { opacity: .25; translate: 0 -4px; } }
.bk-error { min-height: 0; font-size: 14.5px; font-weight: 600; color: #d4483f; }
.bk-error:empty { display: none; }
.bk-error a, .bk-hint a { color: inherit; text-decoration: underline; }

/* Step 1: calendar and times */
.bk-pick { display: grid; gap: 22px; }
@container (min-width: 620px) { .bk-pick { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.bk { container-type: inline-size; }
.bk-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-month b { font-size: 17px; letter-spacing: -.01em; }
.bk-nav { width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--fg); transition: background-color .2s; }
.bk-nav:hover:not(:disabled) { background: var(--surface-2); }
.bk-nav:disabled { opacity: .25; cursor: default; }
.bk-week, .bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.bk-week span { padding: 4px 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.bk-day { position: relative; aspect-ratio: 1; max-height: 46px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--fg-3);
  transition: background-color .2s, color .2s, transform .2s var(--ease); }
.bk-day.open { color: var(--fg); font-weight: 700; background: var(--surface-2); }
.bk-day.open::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .55; }
.bk-day.open:hover { transform: translateY(-1px); background: var(--line-2); }
.bk-day.on { background: var(--bk-accent); color: var(--bk-on); }
.bk-day.on::after { opacity: .8; }
.bk-day:disabled { cursor: default; }
.bk-day:focus-visible, .bk-slot:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.bk-times { display: grid; gap: 12px; align-content: start; }
.bk-day-title { font-size: 16px; font-weight: 700; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.bk-slot { height: 46px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--fg);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.bk-slot:hover { border-color: var(--fg); transform: translateY(-1px); }
.bk-slot:active { background: var(--bk-accent); color: var(--bk-on); }
.bk-hint { font-size: 14.5px; color: var(--fg-2); }
.bk-tz { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-3); }

/* Selects and fields (their own, so they look right on light and dark) */
.bk-select { position: relative; display: block; }
.bk-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; rotate: 45deg; pointer-events: none; opacity: .6; }
.bk select, .bk input, .bk textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--fg);
  font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.theme-light .bk select, .theme-light .bk input, .theme-light .bk textarea { background: #fff; }
.bk select { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.bk select option { color: #000e25; background: #fff; }
.bk textarea { resize: vertical; min-height: 92px; }
.bk input::placeholder, .bk textarea::placeholder { color: var(--fg-3); }
.bk :is(select, input, textarea):focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 4px var(--line); }
.bk-tz .bk-select select { padding: 9px 36px 9px 12px; font-size: 14px; border-radius: 10px; }

/* Step 2: details */
.bk-form { display: grid; gap: 16px; }
.bk-chosen { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.bk-cal-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--bk-accent); color: var(--bk-on); }
.bk-cal-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.bk-chosen div { flex: 1; display: grid; min-width: 0; }
.bk-chosen b { font-size: 16px; }
.bk-chosen small { font-size: 13px; color: var(--fg-3); }
.bk-change { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--fg); transition: border-color .2s; }
.bk-change:hover { border-color: var(--fg); }
.bk-row { display: grid; gap: 16px; }
@container (min-width: 460px) { .bk-row { grid-template-columns: 1fr 1fr; } }
.bk-field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bk-field > span:first-child, .bk-field legend { padding: 0; font-size: 14px; font-weight: 600; }
.bk-field em { font-style: normal; font-weight: 400; color: var(--fg-3); }
.bk-field legend { margin-bottom: 8px; }
.bk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-pill { position: relative; flex: 1 1 140px; }
.bk-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.bk-pill span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.bk-pill svg, .bk-where svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.bk-pill input:checked + span { background: var(--bk-accent); color: var(--bk-on); border-color: var(--bk-accent); }
.bk-pill input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.bk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-submit { width: 100%; }
.bk-submit.busy { opacity: .6; pointer-events: none; }

/* Step 3: booked (and the booking's own page) */
.bk-done { display: grid; justify-items: center; gap: 12px; padding: 18px 0 6px; text-align: center; }
.bk-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bk-accent); color: var(--bk-on);
  animation: bk-pop .6s var(--ease-out) both; }
.bk-check.off { background: var(--surface-2); color: var(--fg); }
.bk-check svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: bk-draw .5s .3s var(--ease-out) forwards; }
@keyframes bk-pop { from { scale: .4; opacity: 0; } }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
.bk-done h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -.02em; }
.bk-when { font-size: 17px; font-weight: 600; line-height: 1.45; }
.bk-when small, .bk-note { font-size: 14px; font-weight: 400; color: var(--fg-2); }
.bk-where { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: 14.5px; font-weight: 600; }
.bk-where a { text-decoration: underline; }
.bk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* The booking panel over the gift page */
.bk-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(0 6 18 / .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: bk-fade .3s ease both; }
.bk-modal[hidden] { display: none; }
.bk-sheet { position: relative; width: min(760px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgb(var(--navy-rgb) / .97);
  box-shadow: inset 0 1px 0 rgb(var(--cream-rgb) / .07), 0 40px 90px -30px rgb(0 0 0 / .9); animation: bk-rise .45s var(--ease-out) both; }
.bk-sheet h2 { margin: 0 44px 4px 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.bk-sheet > p { margin-bottom: 20px; color: var(--fg-2); }
.bk-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; color: var(--fg); transition: background-color .2s; }
.bk-close:hover { background: var(--surface-2); }
@keyframes bk-fade { from { opacity: 0; } }
@keyframes bk-rise { from { opacity: 0; translate: 0 18px; } }
@media (prefers-reduced-motion: reduce) { .bk-check, .bk-check svg, .bk-modal, .bk-sheet, .bk-loading i { animation: none; stroke-dashoffset: 0; } }
