/**
 * Public booking page, mirroring the design prototype.
 *
 * The custom properties below are the Central Connect AI design tokens the
 * prototype uses (copied values, single deliberate theme: navy on white).
 * They are declared locally so the page stands on any theme with no SDK
 * installed; when the suite SDK is present its identical values win nothing
 * and lose nothing.
 *
 * Type scale: the prototype draws the page inside a reduced phone mock, so
 * its pixel sizes are not taken literally. Text maps onto the real SDK
 * scale the rest of the suite uses — p1 16, p2 14, p3 12, h5 18, h4 24.
 */

/* Standalone document: the module serves the page without the site theme. */
body.bc-standalone {
  margin: 0;
  background: #f6f6f6;
}

body.bc-standalone .bc-public {
  min-height: 100vh;
  background: transparent;
}

.bc-public {
  --bk-brand: #07153a;
  --bk-brand-10: rgb(7, 21, 58, 0.1);
  --bk-ink: #07153a;
  --bk-n0: #fff;
  --bk-n50: #f6f6f6;
  --bk-n75: #f2f2f2;
  --bk-n100: #dbdbdb;
  --bk-n200: #c4c4c4;
  --bk-n400: #969696;
  --bk-n600: #696969;
  --bk-n800: #3b3b3b;
  --bk-red-50: #fbe9eb;
  --bk-red-600: #b21f2e;
  --bk-green-50: #e9fcf6;
  --bk-green-700: #168d69;
  --bk-cyan-500: #16bbe9;
  --bk-radius-sm: 6px;
  --bk-radius-md: 8px;
  --bk-radius-lg: 12px;
  --bk-radius-card: 16px;
  --bk-radius-pill: 9999px;
  --bk-radius-button: 40px;
  --bk-font: "Inter", system-ui, -apple-system, "Segoe UI", roboto, sans-serif;
  /* SDK type scale. */
  --bk-fs-h4: 24px;
  --bk-fs-h5: 18px;
  --bk-fs-p1: 16px;
  --bk-fs-p2: 14px;
  --bk-fs-p3: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  /* Slim vertical padding: centring provides the air, so the card fits the
     frame without scrolling whenever it can. */
  padding: 16px;
  color: var(--bk-ink);
  background: var(--bk-n50);
  font-family: var(--bk-font);
  font-size: var(--bk-fs-p1);
  line-height: 1.5;
}

.bc-public *,
.bc-public *::before,
.bc-public *::after {
  box-sizing: inherit;
}

.bk-card {
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  background: var(--bk-card-bg, var(--bk-n0));
  box-shadow: 0 18px 40px rgb(7, 21, 58, 0.14);
}

/* ---- Hero ---- */

.bk-hero {
  padding: 28px 24px 32px;
  color: var(--bk-hero-text, var(--bk-n0));
  background: var(--bk-hero-bg, var(--bk-brand));
}

.bk-hero--appointment {
  padding-bottom: 24px;
}

.bk-brand {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  opacity: 0.82;
  font-size: var(--bk-fs-p3);
  gap: 10px;
}

.bk-brand span {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--bk-radius-sm);
  background: var(--bk-cyan-500);
}

.bk-hero__title {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-size: var(--bk-fs-h4);
  font-weight: 700;
  line-height: 1.2;
}

.bk-hero__sub {
  margin: 0;
  opacity: 0.8;
  font-size: var(--bk-fs-p2);
  line-height: 1.5;
}

.bk-hero__desc {
  margin: 12px 0 0;
  opacity: 0.8;
  font-size: var(--bk-fs-p2);
  line-height: 1.5;
}

.bk-hero__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bk-hero__lines span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bk-hero__lines svg {
  flex: none;
  width: 14px;
  height: 14px;
}

/* ---- Body ---- */

.bk-body {
  padding: 24px 24px 30px;
}

/* A small pastel pill under the hour list, not a bar above it. */
.bk-tz {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 18px auto 0;
  padding: 3px 12px;
  color: var(--bk-n600);
  border-radius: var(--bk-radius-pill);
  background: #e7fafe;
  font-size: 11px;
  line-height: 1.3;
  gap: 5px;
}

.bk-tz__label {
  flex: none;
  white-space: nowrap;
  color: var(--bk-n600);
  font-weight: 600;
}

/* Stripped of its native chrome the select reads like part of the pill:
   same size as the label, no white box, no extra height. Scoped over the
   generic .bk-body select skin, which would win by source order. */
.bc-public .bk-tz select {
  min-width: 0;
  max-width: 220px;
  height: auto;
  padding: 0;
  cursor: pointer;
  color: var(--bk-n600);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}

/* ---- Step heading ---- */

.bk-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.bk-back {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  color: var(--bk-ink);
  border: 1px solid var(--bk-n100);
  border-radius: 50%;
  background: var(--bk-n0);
}

.bk-back:hover {
  background: var(--bk-n50);
}

.bk-crumb {
  letter-spacing: -0.015em;
  font-size: var(--bk-fs-h5);
  font-weight: 700;
  line-height: 1.2;
}

.bk-crumb small {
  display: block;
  margin-top: 3px;
  color: var(--bk-n400);
  font-size: var(--bk-fs-p3);
  font-weight: 600;
}

/* ---- Step 1: types ---- */

.bk-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bk-type {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
  text-align: left;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--bk-n100);
  border-radius: 14px;
  background: var(--bk-n0);
  gap: 13px;
}

.bk-type:hover,
.bk-type:focus-visible {
  border-color: var(--bk-brand);
  outline: none;
  box-shadow: 0 6px 20px rgb(15, 23, 42, 0.08);
}

.bk-type__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--bk-brand);
  border-radius: 50%;
  background: var(--bk-brand-10);
}

.bk-type__ico svg {
  width: 17px;
  height: 17px;
}

.bk-type__main {
  flex: 1;
  min-width: 0;
}

.bk-type__t {
  display: block;
  letter-spacing: -0.01em;
  font-size: var(--bk-fs-p1);
  font-weight: 650;
}

.bk-type__m {
  display: block;
  margin-top: 3px;
  color: var(--bk-n400);
  font-size: var(--bk-fs-p3);
}

.bk-type__d {
  display: block;
  margin-top: 6px;
  color: var(--bk-n600);
  font-size: var(--bk-fs-p2);
  line-height: 1.5;
}

.bk-type > svg {
  flex: none;
  color: var(--bk-n200);
}

/* ---- Step 2: calendar ---- */

.bk-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bk-cal__mon {
  letter-spacing: -0.01em;
  font-size: var(--bk-fs-p1);
  font-weight: 650;
}

.bk-cal__nav {
  display: flex;
  gap: 6px;
}

.bk-cal__nav a,
.bk-cal__nav span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  text-decoration: none;
  color: var(--bk-ink);
  border: 1px solid var(--bk-n100);
  border-radius: 50%;
  background: var(--bk-n0);
}

.bk-cal__nav span {
  opacity: 0.4;
}

.bk-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.bk-dow span {
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-n400);
  font-size: var(--bk-fs-p3);
  font-weight: 700;
}

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

.bk-d {
  position: relative;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--bk-n200);
  border-radius: 50%;
  font-size: var(--bk-fs-p2);
  aspect-ratio: 1;
}

.bk-d--on {
  color: var(--bk-brand);
  background: var(--bk-brand-10);
  font-weight: 650;
}

.bk-d--on:hover,
.bk-d--on:focus-visible {
  color: var(--bk-n0);
  outline: none;
  background: var(--bk-brand);
}

.bk-d--today::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

/* ---- Step 3: times ---- */

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

.bk-slot {
  padding: 11px 6px;
  text-align: center;
  text-decoration: none;
  color: var(--bk-brand);
  border: 1px solid var(--bk-brand);
  border-radius: var(--bk-radius-pill);
  background: var(--bk-n0);
  font-size: var(--bk-fs-p2);
  font-weight: 650;
}

.bk-slot:hover,
.bk-slot:focus-visible {
  outline: none;
  background: var(--bk-brand-10);
}

.bk-empty {
  padding: 30px 12px;
  text-align: center;
  color: var(--bk-n400);
  font-size: var(--bk-fs-p2);
}

/* ---- Step 4: the details form (Drupal form markup) ---- */

.bk-body .form-item {
  margin: 0 0 16px;
}

.bk-body .form-item label {
  display: block;
  margin-bottom: 6px;
  color: var(--bk-label, var(--bk-brand));
  font-size: var(--bk-fs-p2);
  font-weight: 600;
}

.bk-body label.form-required::after {
  content: " *";
  color: var(--bk-red-600);
}

.bk-body input[type="text"],
.bk-body input[type="email"],
.bk-body input[type="tel"],
.bk-body select,
.bk-body textarea {
  width: 100%;
  padding: 11px 14px;
  color: var(--bk-input-text, var(--bk-ink));
  border: 1px solid var(--bk-field-border, var(--bk-n100));
  border-radius: var(--bk-radius-md);
  background: var(--bk-field-bg, var(--bk-n0));
  font-family: inherit;
  font-size: var(--bk-fs-p1);
}

.bk-body input::placeholder {
  color: var(--bk-ph, var(--bk-n400));
}

.bk-body input[type="text"]:focus,
.bk-body input[type="email"]:focus,
.bk-body input[type="tel"]:focus,
.bk-body select:focus,
.bk-body textarea:focus {
  border-color: var(--bk-ink);
  outline: none;
  box-shadow: 0 0 0 3px var(--bk-brand-10);
}

.bk-body .form-item--error-message {
  margin-top: 5px;
  color: var(--bk-red-600);
  font-size: var(--bk-fs-p3);
}

.bk-body input.error,
.bk-body select.error {
  border-color: var(--bk-red-600);
  box-shadow: 0 0 0 3px var(--bk-red-50);
}

.bk-body .form-radios .form-item,
.bk-body .form-checkboxes .form-item,
.bk-body .form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bk-body .bk-consent {
  display: flex;
  align-items: flex-start;
  padding: 11px 12px;
  color: var(--bk-legal-color, var(--bk-n800));
  border-radius: var(--bk-radius-md);
  background: var(--bk-legal-bg, var(--bk-n0));
  gap: 10px;
}

/* The box sits visibly to the left of its sentence, whatever the theme. */
.bk-body .bk-consent input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--bk-brand);
}

.bk-body .bk-consent label {
  color: var(--bk-legal-color, var(--bk-n800));
}

.bk-legal a {
  color: var(--bk-legal-link, #0a566b);
}

.bk-body .form-radios .form-item label,
.bk-body .form-checkboxes .form-item label,
.bk-body .form-type-checkbox label {
  margin: 0;
  color: var(--bk-n800);
  font-size: var(--bk-fs-p2);
  font-weight: 400;
}

.bk-body input[type="radio"],
.bk-body input[type="checkbox"] {
  accent-color: var(--bk-brand);
  width: 16px;
  height: 16px;
  margin: 0;
}

.bk-body .form-actions {
  margin: 6px 0 0;
}

.bk-body .form-submit {
  width: 100%;
  padding: 15px;
  cursor: pointer;
  color: var(--bk-cta-text, var(--bk-n0));
  border: 0;
  border-radius: var(--bk-radius-button);
  background: var(--bk-cta-bg, var(--bk-brand));
  font-family: inherit;
  font-size: var(--bk-fs-p1);
  font-weight: 650;
}

.bk-body .form-submit:hover {
  opacity: 0.92;
}

.bk-body .form-submit.button--danger {
  color: var(--bk-red-600);
  border: 1px solid var(--bk-red-600);
  background: var(--bk-n0);
}

.bk-body .form-submit.button--danger:hover {
  opacity: 1;
  background: var(--bk-red-50);
}

.bk-legal {
  margin: 14px 0 0;
  text-align: center;
  color: var(--bk-legal-foot, var(--bk-n400));
  font-size: var(--bk-fs-p3);
  line-height: 1.5;
}

/* ---- Receipt: confirmation and management ---- */

/* The receipt sits straight on the neutral background, centred: no card. */
.bc-public--plain {
  align-items: center;
  min-height: 70vh;
}

.bc-public--plain .bk-card {
  overflow: visible;
  max-width: 440px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bk-receipt {
  padding: 30px 8px;
  text-align: center;
}

.bk-paused,
.bk-types__empty {
  margin: 0;
  padding: 36px 8px;
  text-align: center;
  color: var(--bk-n600);
  font-size: var(--bk-fs-p1);
}

.bk-receipt__mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  color: var(--bk-green-700);
  border-radius: 50%;
  background: var(--bk-green-50);
}

.bk-receipt__t {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-size: var(--bk-fs-h4);
  font-weight: 700;
}

.bk-receipt__p {
  margin: 0 0 24px;
  color: var(--bk-n600);
  font-size: var(--bk-fs-p1);
  line-height: 1.55;
}

.bk-receipt__reminders {
  margin: 16px 0 0;
  font-size: var(--bk-fs-p2);
}

.bk-receipt__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 18px;
  font-size: var(--bk-fs-p2);
  font-weight: 600;
}

.bk-receipt__actions a {
  text-decoration: underline;
  color: var(--bk-brand);
}

.bk-receipt__actions .bk-receipt__cancel {
  color: var(--bk-red-600);
}

/* The honeypot: a field no person sees or reaches; a bot fills it. */
.bk-trap {
  position: absolute;
  top: -9999px;
  left: -9999px;
  overflow: hidden;
  height: 0;
}

/* Add to calendar: a quiet label and a row of pills, one per destination. */
.bk-receipt__calendar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bk-n75);
}

.bk-receipt__calendar-label {
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-n600);
  font-size: var(--bk-fs-p3);
  font-weight: 600;
}

.bk-receipt__calendar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.bk-cal-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
  text-decoration: none;
  color: var(--bk-brand);
  border: 1px solid var(--bk-n100);
  border-radius: var(--bk-radius-pill);
  background: var(--bk-n0);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  gap: 7px;
}

.bk-cal-btn svg {
  flex: none;
  color: var(--bk-n600);
}

.bk-cal-btn:hover,
.bk-cal-btn:focus-visible {
  border-color: var(--bk-brand);
  outline: none;
  background: var(--bk-brand-10);
}

.bk-cal-btn:hover svg,
.bk-cal-btn:focus-visible svg {
  color: var(--bk-brand);
}

.bk-cal-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--bk-brand-10);
}

.bk-sum__link {
  text-decoration: underline;
  color: var(--bk-brand);
}

.bk-receipt__again {
  margin: 22px 0 0;
  font-size: var(--bk-fs-p2);
}

.bk-receipt__again a {
  text-decoration: underline;
  color: var(--bk-n600);
}

.bk-sum {
  display: flex;
  align-items: flex-start;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid var(--bk-n100);
  border-radius: var(--bk-radius-lg);
  background: var(--bk-n50);
  gap: 12px;
}

.bk-sum__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--bk-brand);
  border-radius: 50%;
  background: var(--bk-brand-10);
}

.bk-sum__t {
  display: block;
  font-size: var(--bk-fs-p2);
  font-weight: 650;
}

.bk-sum__d {
  display: block;
  margin-top: 3px;
  color: var(--bk-n600);
  font-size: var(--bk-fs-p2);
  line-height: 1.55;
}

/* ---- Management screen ---- */

.bk-status {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  color: var(--bk-n600);
  border-radius: var(--bk-radius-pill);
  background: var(--bk-n75);
  font-size: var(--bk-fs-p3);
  font-weight: 650;
}

.bk-status--booked {
  color: var(--bk-green-700);
  background: var(--bk-green-50);
}

.bk-status--cancelled {
  color: var(--bk-red-600);
  background: var(--bk-red-50);
}

.bk-manage__note {
  margin-top: 16px;
}

.bk-manage__reschedule {
  margin: 18px 0 0;
}

.bk-cta-secondary {
  display: inline-block;
  padding: 11px 24px;
  text-decoration: none;
  color: var(--bk-brand);
  border: 1px solid var(--bk-brand);
  border-radius: var(--bk-radius-button);
  font-size: var(--bk-fs-p2);
  font-weight: 650;
}

.bk-cta-secondary:hover {
  background: var(--bk-brand-10);
}

.bk-manage form {
  margin-top: 12px;
}

.bk-manage .bk-cancel-warning {
  margin: 14px 0 10px;
  color: var(--bk-n400);
  font-size: var(--bk-fs-p3);
}

/* ---- Small screens ---- */

@media (max-width: 30rem) {
  .bc-public {
    padding: 12px 8px 32px;
  }

  .bk-hero {
    padding: 22px 18px 26px;
  }

  .bk-body {
    padding: 18px 18px 24px;
  }
}
