/* The Allied Health Clinic: booking engine + contact buttons.
   Self-contained (every rule is under .bk or .ahc-contact) so it drops into the homepage drawer,
   /book and the /lp/* pages without touching the host page's styles.
   Palette: Modern Clinical. Midnight navy, clinical blue for every action, podiatry teal for the offer
   and done steps, warm linen, white. Inter for every control, Plus Jakarta Sans for prices and headings. */
.bk {
  --bk-ink: #0f172a;
  --bk-muted: #64748b;
  --bk-line: #e2e8f0;
  --bk-line-strong: #cbd5e1;
  --bk-linen: #f7f5f2;
  --bk-navy: #0b192c;
  --bk-blue: #1d4ed8;        /* clinical blue: the selected and primary colour */
  --bk-blue-deep: #1e40af;
  --bk-blue-tint: #eff6ff;
  --bk-teal: #0d9488;        /* podiatry teal: done steps and the offer */
  --bk-teal-ink: #0f766e;
  --bk-teal-tint: #f0fdfa;
  --bk-red: #b91c1c;
  color: var(--bk-ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk [hidden] { display: none !important; }

/* Progress: 1. Treatment, 2. Choose Slot, 3. Confirm */
.bk-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; }
.bk-progress li {
  display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0 0 10px;
  border-bottom: 2px solid var(--bk-line); color: var(--bk-muted);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
/* The tick only shows on a finished step: the label already carries its number. */
.bk-progress__n {
  display: none; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bk-teal); color: #fff; font-size: 11px; font-weight: 700;
}
.bk-progress__t { overflow: hidden; text-overflow: ellipsis; }
.bk-progress li.is-active { color: var(--bk-ink); border-color: var(--bk-blue); }
.bk-progress li.is-done { color: var(--bk-ink); border-color: var(--bk-teal); }
.bk-progress li.is-done .bk-progress__n { display: inline-grid; }

.bk-form { margin: 0; }
.bk-group { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.bk-legend { display: block; width: 100%; padding: 0; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bk-muted); }

/* Radio faces: town pills, treatment cards, day and time chips */
.bk-pill, .bk-card, .bk-chip { position: relative; display: block; margin: 0; cursor: pointer; }
.bk-pill input, .bk-card input, .bk-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bk-pills { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }  /* one equal column per launch town */
/* Ad pages: the town is fixed, so one quiet line names it */
.bk-locked { display: block; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--bk-linen); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--bk-navy); }
.bk-locked::before { content: ""; display: inline-block; vertical-align: 1px; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--bk-teal); }
.bk-locked__k { font-weight: 500; color: var(--bk-muted); margin-right: 4px; }
.bk-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bk-pill > span, .bk-chip > span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px;
  border: 1px solid var(--bk-line-strong); border-radius: 12px; background: #fff;
  font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.bk-chip > span { font-size: 14px; }
.bk-pill input:checked + span, .bk-chip input:checked + span {
  border-color: var(--bk-blue); background: var(--bk-blue); color: #fff; box-shadow: none;
}
.bk-chip input:disabled { cursor: not-allowed; }
.bk-chip input:disabled + span { opacity: 0.38; background: var(--bk-linen); }

.bk-cards { display: grid; gap: 8px; }
.bk-card__in {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 58px; padding: 9px 14px; border: 1px solid var(--bk-line-strong); border-radius: 12px; background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.bk-card__dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #94a3b8; display: grid; place-items: center; background: #fff; }
.bk-card__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bk-blue); transform: scale(0); transition: transform 0.15s ease; }
.bk-card__main { min-width: 0; }
.bk-card__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.bk-card__s { display: block; margin-top: 1px; font-size: 13px; color: var(--bk-muted); line-height: 1.3; }
.bk-card__p { text-align: right; white-space: nowrap; }
.bk-card__price { display: block; font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--bk-navy); }
.bk-card__was { margin-right: 5px; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--bk-muted); text-decoration-thickness: 1px; }
.bk-card__mins { display: block; font-size: 12px; color: var(--bk-muted); }
.bk-card input:checked + .bk-card__in { border-color: var(--bk-blue); background: var(--bk-blue-tint); box-shadow: inset 0 0 0 1px var(--bk-blue); }
.bk-card input:checked + .bk-card__in .bk-card__dot { border-color: var(--bk-blue); }
.bk-card input:checked + .bk-card__in .bk-card__dot::after { transform: scale(1); }
.bk-pill:hover > span, .bk-chip:hover > span, .bk-card:hover .bk-card__in { border-color: var(--bk-blue); }
.bk-pill input:focus-visible + span, .bk-chip input:focus-visible + span, .bk-card input:focus-visible + .bk-card__in {
  outline: 2px solid var(--bk-blue); outline-offset: 2px;
}

/* Offer callout */
.bk-callout {
  margin: 0 0 16px; padding: 12px 14px; border: 1px solid #ccfbf1; border-left: 3px solid var(--bk-teal); border-radius: 12px;
  background: var(--bk-teal-tint); font-size: 14px; line-height: 1.5; color: #134e4a;
}
.bk-callout strong { color: var(--bk-teal-ink); }

/* Buttons */
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 14px 18px;
  border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bk-btn:active { transform: scale(0.985); }
.bk-btn--primary { background: var(--bk-blue); color: #fff; }
.bk-btn--primary:hover { background: var(--bk-blue-deep); }
.bk-btn--primary:disabled { background: #93a5d6; cursor: progress; }
.bk-btn--ghost { width: auto; min-width: 96px; background: #fff; color: var(--bk-ink); border: 1px solid var(--bk-line-strong); }
.bk-btn--ghost:hover { border-color: var(--bk-ink); }
.bk-btn--wa { margin-top: 14px; background: #128c7e; color: #fff; }
.bk-btn--sms { margin-top: 14px; background: #fff; color: var(--bk-ink); border: 1px solid var(--bk-line-strong); text-decoration: none; }
.bk-btn--sms:hover { border-color: var(--bk-ink); }
.bk-btn:focus-visible, .bk-link:focus-visible { outline: 2px solid var(--bk-blue); outline-offset: 3px; }
.bk-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.bk-link { min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--bk-blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(29, 78, 216, 0.4); text-underline-offset: 4px; }
.bk-link--back { display: block; margin: 4px auto 0; }

/* Details step */
.bk-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 4px 6px 4px 14px;
  border-radius: 12px; background: var(--bk-linen); font-size: 14px; font-weight: 600;
}
.bk-summary__t { min-width: 0; }
.bk-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.bk-field { margin: 0 0 12px; min-width: 0; }
.bk-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--bk-ink); }
.bk-optional { font-weight: 500; color: var(--bk-muted); }
.bk-input {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border: 1px solid var(--bk-line-strong); border-radius: 12px;
  background: #fff; color: var(--bk-ink); font: inherit; font-size: 16px; line-height: 1.3; -webkit-appearance: none; appearance: none;
}
textarea.bk-input { min-height: 74px; resize: vertical; }
select.bk-input { background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.bk-check { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--bk-line); border-radius: 12px; background: var(--bk-linen); cursor: pointer; font-size: 14px; line-height: 1.4; color: var(--bk-ink); }
.bk-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bk-blue); cursor: pointer; }
.bk-input::placeholder { color: #94a3b8; }
.bk-input:focus { outline: none; border-color: var(--bk-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16); }
.bk-input[aria-invalid="true"] { border-color: var(--bk-red); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12); }
.bk-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: var(--bk-red); font-size: 14px; font-weight: 600; }
.bk-fine { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--bk-muted); text-align: center; }
.bk-fine a { color: inherit; text-decoration: underline; }
.bk-notice { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--bk-muted); }

/* Confirmation card */
.bk-done { text-align: center; outline: none; }
.bk-done__tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 50%; background: var(--bk-teal-tint); color: var(--bk-teal); border: 1px solid #ccfbf1; font-size: 28px; font-weight: 600; }
.bk-done__h { margin: 0 0 14px; font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--bk-ink); }
.bk-done__rows { margin: 0 0 14px; padding: 4px 14px; border: 1px solid var(--bk-line); border-radius: 14px; background: var(--bk-linen); text-align: left; }
.bk-done__rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--bk-line); font-size: 14px; }
.bk-done__rows > div:last-child { border-bottom: 0; }
.bk-done__rows dt { margin: 0; color: var(--bk-muted); font-weight: 600; white-space: nowrap; }
.bk-done__rows dd { margin: 0; font-weight: 600; text-align: right; }
.bk-done__next { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bk-muted); text-align: left; }

@media (max-width: 480px) {
  .bk-progress li { font-size: 12px; gap: 5px; }
  .bk-progress__n { width: 16px; height: 16px; font-size: 10px; }
  .bk-pill > span { font-size: 14px; padding: 6px 4px; }
  .bk-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-card__in { gap: 10px; padding: 9px 12px; }
  .bk-card__t { font-size: 14.5px; }
  .bk-btn { font-size: 15.5px; padding: 14px 12px; }
  .bk-row { grid-template-columns: 1fr; gap: 0; }
  .bk-locked { font-size: 14px; padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::after { transition: none !important; }
}

/* Call, Text and WhatsApp buttons: only rendered when build.py holds a real number. */
.ahc-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.ahc-contact--call, .ahc-contact--sms { background: transparent; color: #0b192c; border: 1px solid #0b192c; transition: background-color .3s, color .3s; }
.ahc-contact--call:hover, .ahc-contact--sms:hover { background: #0b192c; color: #fff; }
.ahc-contact--wa { background: #128c7e; color: #fff; border: 1px solid #128c7e; }
.ahc-contact--wa:hover { background: #0f766b; color: #fff; }

.bk-sms-alt {
  margin-top: 16px; padding: 14px; border-radius: 12px;
  background: #f8fafc; border: 1px dashed #cbd5e1;
}
.bk-sms-alt__h { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #0f172a; }
.bk-sms-alt__s { margin: 0 0 10px; font-size: 13px; color: #475569; line-height: 1.4; }
.bk-sms-alt__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.bk-sms-alt__in { flex: 1 1 180px; min-width: 0; min-height: 48px; font-size: 16px; }
.bk-sms-alt__btn { flex: 0 0 auto; min-height: 48px; padding: 0 16px; width: auto; }
.bk-sms-alt__ok {
  margin: 8px 0 0; padding: 10px 12px; border-radius: 8px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 14px; font-weight: 600;
}
@media (max-width: 520px) {
  .bk-sms-alt__row { flex-direction: column; }
  .bk-sms-alt__btn { width: 100%; }
}
.bk-backup { margin-top: 12px; }
.bk-chips--multi { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip--multi {
  position: relative; display: inline-flex; align-items: center; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff;
  font-size: 13px; color: #334155; transition: border-color .15s, background-color .15s, color .15s;
}
.bk-chip--multi input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-chip--multi:has(input:checked) {
  border-color: #0b192c; background: #0b192c; color: #fff;
}
