/* =========================================================================
   booking.css — "Book a Working Session" modal, ported from the live
   production TTM booking sheet (totaltalentmindset.com) onto Website v3
   tokens. Flow: pick a 30-minute ET slot -> name/company/email/note ->
   request submitted for approval (no instant confirmation).
   ========================================================================= */

.bk-sheet {
  position: fixed; inset: 0; z-index: 300;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 20px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  /* the entrance scale lives on .bk-inner, not the sheet: a transformed
     full-viewport layer shrinks its hit area mid-animation, letting
     edge clicks fall through to the page behind while it opens */
  transition: opacity .45s var(--ease), visibility .45s;
}
.bk-sheet.active { opacity: 1; visibility: visible; }

.bk-inner {
  transform: scale(.97) translateY(10px);
  transition: transform .5s var(--ease);
}
.bk-sheet.active .bk-inner { transform: none; }

.bk-inner {
  position: relative; margin: auto;
  background: var(--surface); border: 1px solid var(--hair-strong);
  border-radius: var(--radius-panel); box-shadow: var(--card-shadow);
  max-width: 560px; width: 100%;
  padding: 32px 32px 26px;
}

.bk-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: var(--bg); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.bk-close:hover { transform: rotate(90deg); border-color: var(--cyan); }

.bk-sheet .eyebrow { margin-bottom: 10px; }
.bk-sheet h2 { font-size: clamp(18px, 2.4vw, 30px); max-width: 20ch; margin: 0 0 6px; }
.bk-sheet .lede { color: var(--muted); font-weight: 300; font-size: clamp(13px, 1.2vw, 15px); margin: 4px 0 12px; max-width: 46ch; }

/* ---- assurance list (production .bk-assure) ---- */
.bk-assure { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 6px; }
.bk-assure li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 300; }
.bk-assure-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--grad); flex: none; }

/* ---- slot picker (production .bk-* geometry, Website v3 tokens) ---- */
.bk-booker { margin-top: 4px; }
.bk-step { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 10px 0 6px; }
.bk-step-tz { color: var(--faint); text-transform: none; letter-spacing: 0; font-weight: 400; }
.bk-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bk-day {
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--hair-strong); background: var(--surface-2);
  color: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease);
}
.bk-day:hover { border-color: var(--cyan); }
.bk-day.active { background: var(--grad); color: var(--on-grad); border-color: transparent; }

.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 8px; margin-bottom: 4px; }
.bk-slot {
  padding: 11px 8px; border-radius: 12px;
  border: 1px solid var(--hair-strong); background: var(--surface-2);
  color: var(--ink); font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.bk-slot:hover { border-color: var(--cyan); transform: translateY(-1px); }
.bk-slot.active { background: color-mix(in srgb, var(--green) 22%, var(--surface-2)); border-color: var(--green); }
.bk-none { color: var(--faint); font-size: 13.5px; padding: 8px 0; }

/* ---- request form ---- */
.bk-form { margin-top: 10px; }
.bk-chosen { font-size: 13px; font-weight: 600; color: var(--ink-green); margin: 0 0 8px; }
.bk-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-form label {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 4px; font-weight: 600;
}
.bk-form .field { margin-bottom: 10px; min-height: 0; }
.bk-form input, .bk-form textarea {
  width: 100%; font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--hair-strong); border-radius: 10px;
  padding: 10px 12px; min-height: 42px; transition: border-color .3s var(--ease);
}
.bk-form textarea { min-height: 76px; resize: vertical; }
.bk-form input:focus, .bk-form textarea:focus { outline: none; border-color: var(--cyan); }
.bk-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.bk-form-note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }

.bk-ok {
  display: none; margin-top: 14px; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--green) 50%, transparent);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border-radius: 12px; font-size: 14.5px; color: var(--ink);
}
.bk-ok.show { display: block; }
.bk-ok p { margin: 0 0 12px; }

.bk-empty { font-size: 13px; color: var(--faint); margin-top: 12px; }
.bk-empty a { color: var(--ink-cyan); }

/* ---- mobile ---- */
@media (max-width: 880px) {
  .bk-sheet { padding: 16px 12px; }
  .bk-inner { padding: 26px 18px 20px; border-radius: 14px; }
  .bk-slots { grid-template-columns: repeat(2, 1fr); }
  .bk-form .frow { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-sheet { transition: opacity .01s, visibility .01s; }
  .bk-inner { transition: none; transform: none; }
  .bk-close, .bk-day, .bk-slot { transition: none; }
  .bk-slot:hover, .bk-close:hover { transform: none; }
}
