/* ====================================================================
   settr — Booking modal
   Tokens reused from hero.css/sections.css so the modal feels native:
   --bg, --fg, --muted, --line, --line-strong, --r-card, --r-btn,
   --font-display, --font-sans, --font-mono.
   ==================================================================== */

.bk-overlay{
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 16, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  animation: bk-fade .18s ease-out;
}
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }

.bk-panel{
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 64px);
  background: var(--bg, #FAFAF8);
  color: var(--fg, #1d1d1b);
  border-radius: var(--r-card, 14px);
  border: 1px solid var(--line, rgba(0,0,0,0.10));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: bk-rise .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes bk-rise {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---- Head -------------------------------------------------------- */
.bk-head{
  position: relative;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line, rgba(0,0,0,0.10));
  flex: 0 0 auto;
}
.bk-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #525252);
}
.bk-eyebrow .bar{
  width: 18px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.bk-title{
  margin: 8px 0 0;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 30ch;
}
.bk-close{
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line, rgba(0,0,0,0.12));
  border-radius: 999px;
  color: var(--muted, #525252);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.bk-close:hover{
  color: var(--fg);
  border-color: var(--fg);
  background: rgba(0,0,0,0.03);
}

/* ---- Body grid --------------------------------------------------- */
.bk-body{
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

/* Calendar / iframe column */
.bk-cal{
  position: relative;
  background: #ECEAE4;
  border-right: 1px solid var(--line, rgba(0,0,0,0.08));
  min-height: 480px;
  display: flex;
}
.bk-cal-host{
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
}
.bk-cal-host iframe{
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  background: #fff;
}
.bk-cal-fallback{
  margin: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  max-width: 320px;
}
.bk-cal-fallback .k{
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint, #a3a3a0);
}
.bk-cal-fallback p{
  margin: 0;
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
}
.bk-cal-fallback p.muted{
  color: var(--muted, #525252);
  font-size: 12.5px;
}
.bk-cal-fallback code{
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11.5px;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Form / success column */
.bk-side{
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

/* ---- Form -------------------------------------------------------- */
.bk-form{
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bk-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bk-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
}
.bk-field-wide{ grid-column: 1 / -1; }
.bk-field > span{
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #525252);
}
.bk-field .bk-opt{
  font-style: normal;
  margin-left: 8px;
  color: var(--faint, #a3a3a0);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}
.bk-field input,
.bk-field select,
.bk-field textarea{
  width: 100%;
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
  font-size: 14px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--line-strong, rgba(0,0,0,0.14));
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.bk-field textarea{
  resize: vertical;
  min-height: 84px;
}
.bk-field select{
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px)  50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus{
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* ---- Submit + footer -------------------------------------------- */
.bk-submit{
  align-self: flex-start;
  margin-top: 4px;
}
.bk-submit:disabled{
  opacity: 0.6;
  cursor: progress;
}
.bk-fineprint{
  margin: 0;
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint, #a3a3a0);
}
.bk-fineprint a{
  color: var(--muted, #525252);
  border-bottom: 1px solid var(--line-strong, rgba(0,0,0,0.16));
}
.bk-error{
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: #b3261e;
  background: rgba(179,38,30,0.06);
  border: 1px solid rgba(179,38,30,0.18);
  padding: 10px 12px;
  border-radius: 8px;
}

/* ---- Success ---------------------------------------------------- */
.bk-success{
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  height: 100%;
  justify-content: center;
}
.bk-success-mark{
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(53,122,74,0.10);
  color: var(--state-pos, #357A4A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bk-success h3{
  margin: 4px 0 0;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.bk-success p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #525252);
  max-width: 38ch;
}

/* ---- Responsive -------------------------------------------------- */

/* Medium laptops + tablets: drop to a single column. The calendar
   placeholder is too bulky next to the form at this width and once
   the iframe ships it works fine stacked above the form. */
@media (max-width: 1024px){
  .bk-overlay{ padding: 20px 16px; }
  .bk-panel{
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
  }
  .bk-head{ padding: 18px 22px 14px; }
  .bk-title{ font-size: clamp(18px, 2.2vw, 22px); max-width: 28ch; }
  .bk-close{ top: 14px; right: 14px; width: 30px; height: 30px; }
  .bk-body{
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .bk-cal{
    border-right: 0;
    border-bottom: 1px solid var(--line, rgba(0,0,0,0.08));
    min-height: 220px;
  }
  .bk-cal-fallback{ padding: 20px; gap: 6px; }
  .bk-cal-fallback p{ font-size: 13px; }
  .bk-cal-fallback p.muted{ font-size: 11.5px; }
  .bk-form{ padding: 18px 22px 22px; gap: 12px; }
  .bk-form-grid{ gap: 10px; }
  .bk-field input,
  .bk-field select,
  .bk-field textarea{ padding: 9px 11px; font-size: 13.5px; }
  .bk-field textarea{ min-height: 64px; }
}

/* Phones: full bleed, no rounded corners, hide the placeholder
   calendar column entirely so the form is the only thing visible. */
@media (max-width: 640px){
  .bk-overlay{ padding: 0; }
  .bk-panel{
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
  }
  .bk-head{ padding: 14px 18px 12px; }
  .bk-title{ font-size: 18px; max-width: 24ch; }
  .bk-close{ top: 10px; right: 10px; }
  .bk-cal{ display: none; }
  .bk-body{ grid-template-rows: minmax(0, 1fr); }
  .bk-form-grid{ grid-template-columns: 1fr; }
  .bk-field:not(.bk-field-wide){ grid-column: auto; }
  .bk-form{ padding: 16px 18px 22px; }
}

/* When Cal.com is embedded, keep the calendar column on phones. */
@media (max-width: 640px){
  .bk-cal--has-embed{ display: flex !important; min-height: 280px; }
}

/* ---- Forced light theming inside the panel ---------------------- */
/* Some pages set a dark scope; the modal must always look light. */
.bk-panel { color-scheme: light; }
