/* ==========================================================================
   JoFit — booking page
   Loads AFTER css/styles.css. All new classes are prefixed .bk- so nothing
   in the main stylesheet is affected. A few existing booking classes
   (.book-grid, .book-form, .field, .form-submit) are intentionally
   overridden here.
   ========================================================================== */

/* ---------- layout ---------- */
.book-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
}
.book-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 4.5vw, 64px);
}
@media (max-width: 980px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* .lede only had styles inside .hero — the booking page needs its own */
.book-hero .lede {
  font-size: clamp(16.5px, 1.5vw, 18px);
  color: var(--paper-dim);
  line-height: 1.65;
  max-width: 44ch;
  margin: 0 0 24px;
}

/* ---------- credibility chips ---------- */
.bk-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.bk-creds li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper);
  background: rgba(59,130,255,0.10);
  border: 1px solid rgba(59,130,255,0.32);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
}
.bk-creds svg { width: 14px; height: 14px; flex: none; color: var(--blue-soft); }

/* ---------- coach card ---------- */
.bk-coach {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hair);
  margin-bottom: 26px;
}
.bk-coach img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  object-position: center 22%;
}
.bk-coach figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(6,14,28,0.92));
}
.bk-coach .bk-coach-name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
}
.bk-coach .bk-coach-role {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-soft);
}

/* ---------- what happens next (a real sequence, so numbered) ---------- */
.bk-next {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 22px clamp(20px, 2.4vw, 26px) 6px;
  margin-bottom: 26px;
}
.bk-next .bk-sub-h { margin-bottom: 18px; }

.bk-steps {
  list-style: none;
  counter-reset: bkstep;
  margin: 0;
  padding: 0;
}
.bk-steps li {
  counter-increment: bkstep;
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding-bottom: 22px;
}
/* the rail connecting one step to the next */
.bk-steps li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--hair);
}
.bk-steps li:last-child { padding-bottom: 20px; }
.bk-steps li:last-child::after { display: none; }

.bk-steps li::before {
  content: counter(bkstep);
  grid-column: 1;
  grid-row: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 1px solid rgba(59,130,255,0.4);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  color: var(--blue-soft);
  letter-spacing: 0.4px;
}
/* strong + span live in one wrapper so they can't fall into the number column */
.bk-step-body { grid-column: 2; grid-row: 1; padding-top: 3px; }
.bk-step-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  text-wrap: balance;
}
.bk-step-body span {
  display: block;
  font-size: 13.5px;
  color: var(--paper-dim);
  line-height: 1.6;
  max-width: 40ch;
}

.bk-sub-h {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 10px;
}

.direct-contact a.bk-wa { display: inline-flex; align-items: center; gap: 8px; }
.direct-contact a.bk-wa svg { width: 15px; height: 15px; color: var(--blue-soft); }

/* ---------- form shell ---------- */
.book-form {
  position: relative;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(59,130,255,0.10), transparent 70%),
    var(--panel);
  box-shadow: 0 32px 70px -40px rgba(0,0,0,0.75);
}
@media (min-width: 981px) {
  .book-form { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); }
}
.bk-form-head {
  padding: clamp(24px, 3.4vw, 34px) clamp(22px, 3.4vw, 36px) 20px;
  border-bottom: 1px solid var(--hair);
}
.bk-form-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
  margin: 0 0 8px;
}
.bk-form-head p {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
  line-height: 1.55;
}
.bk-form-body {
  padding: clamp(22px, 3.4vw, 34px) clamp(22px, 3.4vw, 36px) clamp(26px, 3.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---------- grouped sections ---------- */
.bk-group { border: none; margin: 0; padding: 0; min-width: 0; }
.bk-legend {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}
.bk-legend em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 15px;
  color: transparent;
  -webkit-text-stroke: 1px var(--blue-soft);
}
.bk-legend small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mute);
  margin-left: auto;
}
.bk-group + .bk-group { border-top: 1px solid var(--hair); padding-top: 30px; }

/* ---------- program picker ---------- */
.bk-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 460px) {
  .bk-choices { grid-template-columns: 1fr; }
}
.bk-choice { position: relative; display: block; cursor: pointer; }
.bk-choice input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  margin: 0;
}
.bk-choice-box {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  height: 100%;
  padding: 15px 15px 15px 14px;
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.bk-choice:hover .bk-choice-box { border-color: rgba(91,155,255,0.55); }
.bk-choice input:focus-visible + .bk-choice-box {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.bk-choice input:checked + .bk-choice-box {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(59,130,255,0.16), rgba(59,130,255,0.06));
}
.bk-choice-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(244,247,251,0.06);
  border: 1px solid var(--hair);
  color: var(--paper-dim);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.bk-choice-ico svg { width: 20px; height: 20px; }
.bk-choice input:checked + .bk-choice-box .bk-choice-ico {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ink);
}
.bk-choice-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  margin-bottom: 3px;
}
.bk-choice-meta {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--paper-dim);
}
.bk-choice-box::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.bk-choice input:checked + .bk-choice-box::after {
  border-color: var(--blue);
  background: var(--blue)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.3l2.4 2.4 4.6-5' stroke='%230A1628' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / 11px no-repeat;
}

/* ---------- pill group (time of day, experience) ---------- */
.bk-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.bk-pill { position: relative; }
.bk-pill input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.bk-pill span {
  display: inline-block;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.bk-pill:hover span { border-color: rgba(91,155,255,0.55); color: var(--paper); }
.bk-pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.bk-pill input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ink);
}

/* ---------- fields ---------- */
.book-form .field-row { gap: 14px; }
.book-form .field { gap: 7px; }
.book-form .field label {
  font-size: 11.5px;
  letter-spacing: 0.7px;
  color: var(--mute);
}
.book-form .field label .bk-opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--mute);
}
.book-form .field input,
.book-form .field select,
.book-form .field textarea {
  min-height: 48px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 15px;
  color-scheme: dark;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.book-form .field input:hover,
.book-form .field textarea:hover { border-color: rgba(244,247,251,0.24); }
.book-form .field input:focus,
.book-form .field select:focus,
.book-form .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,255,0.18);
}
.book-form .field textarea { min-height: 104px; line-height: 1.5; }
.bk-field-hint { font-size: 12.5px; color: var(--mute); line-height: 1.5; }

.field.bk-invalid input,
.field.bk-invalid textarea { border-color: var(--danger); }
.field.bk-invalid input:focus,
.field.bk-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(255,91,54,0.18); }
.bk-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #FF8A6B;
}
.bk-field-error svg { width: 13px; height: 13px; flex: none; }

/* honeypot */
.bk-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- submit ---------- */
.bk-submit-wrap { display: grid; gap: 12px; }
.book-form .form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  font-size: 15.5px;
}
.book-form .form-submit svg { width: 17px; height: 17px; }
.bk-submit-note {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.55;
}
.bk-assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bk-assure li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--paper-dim);
}
.bk-assure svg { width: 13px; height: 13px; color: var(--blue-soft); flex: none; }

/* ---------- messages ---------- */
.error-msg { margin-bottom: 4px; }
.error-msg a { text-decoration: underline; }

/* ---------- success state ---------- */
.bk-success { padding: clamp(28px, 4vw, 44px) clamp(22px, 3.4vw, 36px); text-align: center; }
.bk-success-mark {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(59,130,255,0.14);
  border: 1px solid var(--blue);
  color: var(--blue-soft);
}
.bk-success-mark svg { width: 28px; height: 28px; }
.bk-success h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: 0.4px;
  line-height: 1;
  margin: 0 0 12px;
}
.bk-success > p {
  margin: 0 auto 24px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper-dim);
}
.bk-recap {
  text-align: left;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 16px;
  display: grid;
  gap: 0;
}
.bk-recap div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}
.bk-recap div:first-child { padding-top: 0; }
.bk-recap div:last-child { border-bottom: none; padding-bottom: 0; }
.bk-recap dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mute);
}
.bk-recap dd { margin: 0; font-size: 14.5px; text-align: right; }
.bk-success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bk-btn-quiet {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bk-btn-quiet:hover { border-color: var(--blue-soft); background: rgba(59,130,255,0.08); }

/* ---------- mobile polish ---------- */
@media (max-width: 560px) {
  .bk-coach img { aspect-ratio: 4/3; }
  .book-form .field-row { grid-template-columns: 1fr; }
}