/* ==================================================================
   Baodigital — Book a call
   Loaded only on book-a-call.php. Everything is namespaced .bk-
   so it can never collide with the site-wide rules.
   ================================================================== */

.bk-wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--gap); }

/* ---------------------------------------------------------- shell */

.bk-shell {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  box-shadow: 0 30px 70px -50px rgba(var(--ink-rgb), 0.55);
  animation: bkShellIn 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes bkShellIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .bk-shell { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- left rail */

.bk-rail {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--mist);
  background: linear-gradient(180deg, #fff 0%, #FBFBF9 100%);
}

@media (max-width: 991.98px) {
  .bk-rail { border-right: 0; border-bottom: 1px solid var(--mist); }
}

.bk-rail__studio {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.bk-rail h2 {
  font-size: 1.75rem;
  margin: 0.5rem 0 1.4rem;
}

.bk-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-70);
  margin-bottom: 0.85rem;
}

.bk-fact svg { flex: none; margin-top: 3px; color: var(--violet); }

.bk-rail__note {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--mist);
  font-size: 0.9rem;
  color: var(--ink-70);
}

/* --------------------------------------------------------- panels */

.bk-body { position: relative; }

.bk-panel { padding: 2.25rem 2rem; }

.bk-panel[hidden] { display: none; }

.bk-panel.is-entering {
  animation: bkPanelIn 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes bkPanelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.bk-panel__title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------- calendar + slots */

.bk-pick {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.bk-pick.is-single { grid-template-columns: 1fr; }

/* A calendar wider than about 400px turns the days into balloons, so the
   column is capped and centred while it is the only thing on the panel. */
.bk-cal { max-width: 400px; width: 100%; }
.bk-pick.is-single .bk-cal { margin-inline: auto; }

@media (max-width: 767.98px) {
  .bk-pick { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- month */

.bk-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.bk-month__label {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.bk-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bk-nav:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bk-nav:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------------------------------------------------------- grid */

.bk-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 2px;
}

.bk-grid__head {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  text-align: center;
  padding-bottom: 0.5rem;
}

.bk-day {
  aspect-ratio: 1;
  width: 100%;
  max-width: 44px;          /* keeps the circle a circle on a wide panel */
  justify-self: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.bk-day--empty { visibility: hidden; }

/* Open days read as type, not as a wall of filled circles. The ring only
   appears under the pointer, which is calmer and still obvious. */
.bk-day--open {
  background: transparent;
  color: var(--violet);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb), 0.18);
}
.bk-day--open:hover {
  background: rgba(var(--violet-rgb), 0.10);
  box-shadow: inset 0 0 0 1.5px rgba(var(--violet-rgb), 0.45);
}

.bk-day--closed { color: #C4C8D0; cursor: not-allowed; }

.bk-day--today::after {
  content: '';
  position: absolute;
  bottom: 14%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}

.bk-day--selected,
.bk-day--selected:hover {
  background: var(--violet);
  color: #fff;
  box-shadow: none;
}

.bk-day--selected::after { background: #fff; }

/* Staggered entrance whenever the month changes */
.bk-grid.is-animating .bk-day {
  animation: bkDayIn 0.34s ease both;
  animation-delay: calc(var(--i) * 9ms);
}

@keyframes bkDayIn {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------ timezone */

.bk-tz { margin-top: 1.5rem; }

.bk-tz label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: block;
  margin-bottom: 0.45rem;
}

.bk-tz select,
.bk-field input,
.bk-field textarea,
.bk-field select {
  width: 100%;
  border: 1.5px solid var(--mist);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bk-tz select:focus,
.bk-field input:focus,
.bk-field textarea:focus,
.bk-field select:focus {
  outline: 0;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(var(--violet-rgb), 0.12);
}

/* --------------------------------------------------------- slots */

.bk-slots__date {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.bk-slots__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.bk-slots__list::-webkit-scrollbar { width: 5px; }
.bk-slots__list::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 5px; }

.bk-slot-row { display: flex; gap: 0.5rem; }

.bk-slot {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(var(--violet-rgb), 0.35);
  border-radius: 10px;
  background: #fff;
  color: var(--violet);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, flex 0.28s ease;
  animation: bkSlotIn 0.3s ease both;
  animation-delay: calc(var(--i) * 30ms);
}

@keyframes bkSlotIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}

.bk-slot:hover { border-color: var(--violet); background: rgba(var(--violet-rgb), 0.06); }

/* The chosen slot. Both states are written out, because :hover on its own
   outranks a plain class and was washing the label out to white on white. */
.bk-slot--active,
.bk-slot--active:hover,
.bk-slot--active:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.bk-next {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  animation: bkNextIn 0.26s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  transition: transform 0.16s ease;
}

.bk-next:hover { transform: translateY(-2px); }

@keyframes bkNextIn {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: none; }
}

.bk-empty {
  border: 1px dashed var(--mist);
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink-70);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------- form */

.bk-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  background: rgba(var(--violet-rgb), 0.06);
  border: 1px solid rgba(var(--violet-rgb), 0.2);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.bk-summary strong { font-weight: 600; }

.bk-back {
  border: 0;
  background: none;
  color: var(--violet);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  margin-left: auto;
}

.bk-back:hover { color: var(--ink); }

.bk-field { margin-bottom: 1.15rem; }

.bk-field > label,
.bk-legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.bk-req { color: var(--violet); }

.bk-hint { font-size: 0.82rem; color: var(--ink-70); margin-top: 0.35rem; }

/* Choice chips replace plain radios and checkboxes */

.bk-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.bk-choice { position: relative; }

.bk-choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bk-choice span {
  display: block;
  border: 1.5px solid var(--mist);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.bk-choice span:hover { border-color: var(--ink); transform: translateY(-1px); }

.bk-choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.bk-choice input:focus-visible + span {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.bk-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-70);
  margin: 1.5rem 0;
}

.bk-consent input { margin-top: 3px; accent-color: var(--violet); }

.bk-errors {
  border: 1.5px solid #E24A4A;
  background: #FEF2F2;
  color: #9B1C1C;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.bk-errors p { margin: 0 0 0.3rem; font-weight: 600; }
.bk-errors span { display: block; }

/* ------------------------------------------------- confirmation */

.bk-done {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 22px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  box-shadow: 0 30px 70px -50px rgba(var(--ink-rgb), 0.55);
}

.bk-done__tick {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  animation: bkPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes bkPop {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: none; }
}

.bk-done__ref {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  background: var(--paper);
  border: 1px dashed var(--mist);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  display: inline-block;
  margin-top: 1.25rem;
}

/* -------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  .bk-panel.is-entering,
  .bk-shell,
  .bk-grid.is-animating .bk-day,
  .bk-slot,
  .bk-next,
  .bk-done__tick { animation: none !important; }
}
