/* =====================================================================
   IsKeenLab — the booking page
   ---------------------------------------------------------------------
   Sits on top of forms.css, which already carries the brand tokens, the
   top bar and the field styles. Only what the calendar needs is here.

   The month grid is the widest thing on the public site, so it is sized
   from the viewport rather than from a fixed column width — a 7-column
   grid at a fixed size is exactly what breaks a 375px phone.
   ===================================================================== */

.bk {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.bk__eyebrow {
  font-family: Jost, system-ui, sans-serif;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate, #7A8A8E); margin: 0 0 .4rem;
}
.bk__title {
  font-family: Jost, system-ui, sans-serif; font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15;
  margin: 0 0 .6rem; color: var(--ink, #14262A);
}
.bk__lede { margin: 0 0 1.6rem; color: var(--slate, #7A8A8E); max-width: 34rem; }

.bk__panel {
  background: #fff;
  border: 1px solid var(--line-soft, #E7E2DC);
  border-radius: 12px;
  padding: 1.3rem 1.2rem 1.5rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}
.bk__panel.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bk__panel { opacity: 1; transform: none; transition: none; }
}

.bk__h {
  font-family: Jost, system-ui, sans-serif; font-weight: 500;
  font-size: 1.15rem; margin: 0 0 .25rem; color: var(--ink, #14262A);
}
.bk__h:focus { outline: none; }           /* focused by script, not by a click */
.bk__h:focus-visible { outline: 2px solid var(--teal, #2F6F7B); outline-offset: 3px; }
.bk__sub { margin: 0 0 1rem; color: var(--slate, #7A8A8E); font-size: .92rem; }
.bk__note { margin: .8rem 0 0; color: var(--slate, #7A8A8E); font-size: .92rem; }
.bk__fine { margin: 1.2rem 0 0; color: var(--slate, #7A8A8E); font-size: .8rem; max-width: 34rem; }

/* ---- month ---------------------------------------------------------- */
.bk__month {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin: 0 0 .7rem;
}
.bk__month strong {
  font-family: Jost, system-ui, sans-serif; font-weight: 500; font-size: 1rem;
}
.bk__nav {
  border: 1px solid var(--line-soft, #E7E2DC); background: #fff;
  border-radius: 8px; width: 2.2rem; height: 2.2rem; cursor: pointer;
  color: var(--ink, #14262A); font-size: 1rem; line-height: 1;
}
.bk__nav:hover:not(:disabled) { border-color: var(--teal, #2F6F7B); }
.bk__nav:disabled { opacity: .35; cursor: default; }

.bk__dows, .bk__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.bk__dows {
  margin-bottom: 4px;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate, #7A8A8E); text-align: center;
}

.bk__cell { aspect-ratio: 1 / 1; }
.bk__day {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  border: 1px solid var(--line-soft, #E7E2DC); border-radius: 8px;
  background: #fff; cursor: pointer; padding: 0;
  font: inherit; color: var(--ink, #14262A);
  transition: border-color .15s ease, background .15s ease;
}
.bk__day:hover { border-color: var(--teal, #2F6F7B); background: var(--mist, #F2F6F6); }
.bk__day:focus-visible { outline: 2px solid var(--teal, #2F6F7B); outline-offset: 2px; }
.bk__num { font-size: .95rem; line-height: 1; }
.bk__free {
  font-size: .62rem; line-height: 1; color: var(--teal, #2F6F7B);
  background: var(--mist, #F2F6F6); border-radius: 999px; padding: 1px 5px;
}
.bk__day.is-off {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent;
  color: #C6CFD1; cursor: default;
}

/* ---- times ---------------------------------------------------------- */
.bk__times {
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  margin: 0 0 1rem;
}
.bk__time {
  border: 1px solid var(--line-soft, #E7E2DC); border-radius: 8px;
  background: #fff; padding: .6rem .4rem; cursor: pointer;
  font: inherit; font-size: .9rem; color: var(--ink, #14262A);
}
.bk__time:hover { border-color: var(--teal, #2F6F7B); background: var(--mist, #F2F6F6); }
.bk__time:focus-visible { outline: 2px solid var(--teal, #2F6F7B); outline-offset: 2px; }

.bk__back {
  border: 0; background: none; padding: .3rem 0; cursor: pointer;
  color: var(--slate, #7A8A8E); font: inherit; font-size: .9rem;
}
.bk__back:hover { color: var(--teal, #2F6F7B); }

/* ---- the form -------------------------------------------------------- */
.bk__form { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.bk__f { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; }
.bk__f--wide { grid-column: 1 / -1; }
.bk__f > span, .bk__f legend { color: var(--slate, #7A8A8E); }
.bk__f small { font-weight: 400; }
.bk__f input, .bk__f select, .bk__f textarea {
  font: inherit; font-size: .95rem; color: var(--ink, #14262A);
  border: 1px solid var(--line-soft, #E7E2DC); border-radius: 8px;
  padding: .55rem .6rem; background: #fff; width: 100%;
}
.bk__f input:focus, .bk__f select:focus, .bk__f textarea:focus {
  outline: 2px solid var(--teal, #2F6F7B); outline-offset: 1px; border-color: transparent;
}
.bk__seen { border: 1px solid var(--line-soft, #E7E2DC); border-radius: 8px; padding: .7rem .8rem; }
.bk__seen legend { padding: 0 .3rem; font-size: .84rem; }
.bk__seen label { display: flex; align-items: center; gap: .45rem; margin: .3rem 0; cursor: pointer; }
.bk__seen input { width: auto; accent-color: var(--teal, #2F6F7B); }
.bk__hint { margin: .5rem 0 0; font-size: .8rem; color: var(--slate, #7A8A8E); }

/* The honeypot. Off-screen rather than display:none, because some bots
   skip hidden fields but fill positioned ones — and a real person using
   a screen reader never reaches it, as it is aria-hidden and untabbable. */
.bk__hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.bk__act { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bk__submit {
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink, #14262A); color: #fff;
  font: inherit; font-size: .95rem; padding: .7rem 1.4rem;
}
.bk__submit:hover:not(:disabled) { background: var(--teal, #2F6F7B); }
.bk__submit:disabled { opacity: .55; cursor: default; }
.bk__err:empty { display: none; }
.bk__err {
  grid-column: 1 / -1; margin: 0;
  color: #9B3B2F; background: #FDF1EE;
  border-left: 3px solid #9B3B2F; border-radius: 4px;
  padding: .5rem .7rem; font-size: .88rem;
}

/* ---- narrow screens --------------------------------------------------
   The grid is already fluid, but at phone width the per-day count badge
   is more noise than help and the cells get tight. */
@media (max-width: 460px) {
  .bk { padding: 1.2rem .75rem 3rem; }
  .bk__panel { padding: 1rem .8rem 1.2rem; }
  .bk__dows, .bk__grid { gap: 3px; }
  .bk__free { display: none; }
  .bk__num { font-size: .88rem; }
  .bk__times { grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); }
}
