/* ============================================================
   BOOKER — In-house Calendly clone (no external dep)
   + Exit-intent callback popup (shares modal styles)
   ============================================================ */

/* ─── Standalone booker page wrapper ────────────── */
.booker {
  max-width: 820px; margin: 0 auto; padding: 60px 28px;
  font-family: var(--font-sans);
}

.booker__head { text-align: center; margin-bottom: 36px; }
.booker__head .eyebrow {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  color: var(--c-brand); text-transform: uppercase; margin-bottom: 12px; display: inline-block;
}
.booker__head h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1.05; margin: 0 0 14px;
}
.booker__head em { color: var(--c-brand); font-variation-settings: "SOFT" 80, "opsz" 96; }
.booker__head p { color: var(--c-ink-soft); font-size: 1.05rem; line-height: 1.5; max-width: 56ch; margin: 0 auto; }

/* Trust strip below head */
.booker__trust {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 18px; padding: 10px 18px;
  background: rgba(46, 79, 62, 0.08); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.74rem;
  color: var(--c-brand); letter-spacing: 0.04em;
}
.booker__trust span { display: inline-flex; align-items: center; gap: 6px; }
.booker__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; animation: bk-pulse 1.6s infinite; }
@keyframes bk-pulse { 50% { opacity: 0.3; } }

/* ─── Card container ────────────────────────────── */
.booker__card {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 36px;
  box-shadow: var(--shadow-md);
}

/* ─── Section headings ──────────────────────────── */
.booker__step-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-muted);
  margin-bottom: 14px; font-weight: 600;
}

/* ─── Day picker ────────────────────────────────── */
.booker__days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .booker__days {
    overflow-x: auto;
    grid-template-columns: repeat(7, 90px);
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .booker__days::-webkit-scrollbar { display: none; }
}

.booker__day {
  background: var(--c-bg); border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm); padding: 12px 6px;
  text-align: center; cursor: pointer;
  transition: all 0.15s; min-width: 0;
}
.booker__day:hover { border-color: var(--c-ink); }
.booker__day.is-active {
  background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink);
}
.booker__day-dow {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: inherit; opacity: 0.7;
}
.booker__day-num {
  font-family: var(--font-serif); font-size: 1.6rem; font-style: italic;
  line-height: 1; margin: 4px 0;
}
.booker__day-month {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: lowercase; opacity: 0.7;
}

/* ─── Slots ─────────────────────────────────────── */
.booker__slots-wrap { display: none; }
.booker__slots-wrap.is-visible { display: block; animation: bk-fade 0.3s ease; }
@keyframes bk-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.booker__slots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 28px;
}
@media (max-width: 540px) { .booker__slots { grid-template-columns: repeat(3, 1fr); } }

.booker__slot {
  background: var(--c-bg); border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm); padding: 11px 14px;
  text-align: center; cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600;
  color: var(--c-ink);
}
.booker__slot:hover { border-color: var(--c-brand); color: var(--c-brand); }
.booker__slot.is-active {
  background: var(--c-brand); color: #fff; border-color: var(--c-brand);
}
.booker__slot.is-disabled {
  opacity: 0.35; cursor: not-allowed; pointer-events: none;
  text-decoration: line-through;
}

/* ─── Form ──────────────────────────────────────── */
.booker__form-wrap { display: none; }
.booker__form-wrap.is-visible { display: block; animation: bk-fade 0.3s ease; }

.booker__form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px;
}
@media (max-width: 540px) { .booker__form-row { grid-template-columns: 1fr; } }

.booker__field { display: flex; flex-direction: column; gap: 6px; }
.booker__field--full { grid-column: 1 / -1; }
.booker__field label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-muted); font-weight: 600;
}
.booker__field label small {
  text-transform: none; font-weight: 400; color: var(--c-muted);
  letter-spacing: 0.04em; margin-left: 6px;
}
.booker__field input, .booker__field select, .booker__field textarea {
  background: var(--c-bg); border: 1.5px solid var(--c-line); border-radius: var(--r-sm);
  padding: 11px 14px; font-family: inherit; font-size: 0.96rem;
  color: var(--c-ink); outline: none;
}
.booker__field input:focus, .booker__field select:focus, .booker__field textarea:focus {
  border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(26, 22, 20, 0.06);
}
.booker__field textarea { min-height: 70px; resize: vertical; }

.booker__cta {
  width: 100%; margin-top: 18px; padding: 16px;
  background: var(--c-ink); color: var(--c-bg);
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.96rem;
  letter-spacing: 0.02em;
  transition: all 0.15s;
}
.booker__cta:hover { background: var(--c-brand); }
.booker__cta:disabled { background: var(--c-line); color: var(--c-muted); cursor: not-allowed; }

.booker__legal {
  margin-top: 12px; text-align: center;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
  color: var(--c-muted); line-height: 1.55;
}

.booker__error {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(192, 57, 43, 0.08); border: 1px solid rgba(192, 57, 43, 0.28);
  border-radius: var(--r-sm); color: #C0392B; font-size: 0.88rem;
  display: none;
}
.booker__error.is-on { display: block; }

/* ─── Success state ────────────────────────────── */
.booker__success { display: none; text-align: center; padding: 40px 20px; }
.booker__success.is-visible { display: block; animation: bk-fade 0.4s ease; }
.booker__success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-brand); color: #fff;
  font-size: 2rem; margin-bottom: 22px;
  animation: bk-pop 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes bk-pop { from { transform: scale(0); } to { transform: scale(1); } }
.booker__success h3 {
  font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 12px;
}
.booker__success p { color: var(--c-ink-soft); margin-bottom: 8px; font-size: 1rem; }
.booker__success-ref {
  display: inline-block; margin-top: 10px;
  padding: 6px 14px; background: var(--c-bg-warm);
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--c-brand);
  border-radius: var(--r-pill); font-weight: 600;
}

/* ────────────────────────────────────────────────
   EXIT POPUP — overlay + simpler callback form
   ──────────────────────────────────────────────── */
.exit-popup {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 14, 6, 0.62); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: bk-fade 0.3s ease;
}
.exit-popup.is-open { display: flex; }

.exit-popup__sheet {
  background: #fff; border-radius: var(--r-lg);
  max-width: 520px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  animation: bk-popup 0.35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
@keyframes bk-popup { from { transform: scale(0.94) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.exit-popup__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-bg-warm); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.96rem; color: var(--c-ink-soft);
  transition: background 0.15s;
}
.exit-popup__close:hover { background: var(--c-line); }

.exit-popup__body { padding: 36px 32px 32px; }

.exit-popup__above {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-brand);
  margin-bottom: 10px;
}
.exit-popup__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15;
  margin: 0 0 10px;
}
.exit-popup__title em { color: var(--c-brand); font-variation-settings: "SOFT" 80, "opsz" 96; }
.exit-popup__sub {
  color: var(--c-ink-soft); font-size: 0.96rem; margin-bottom: 22px; line-height: 1.5;
}

.exit-popup__alt {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line-soft);
  text-align: center; font-size: 0.82rem; color: var(--c-muted);
}
.exit-popup__alt a {
  color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px;
  font-weight: 500;
}
