/* wp-content/themes/thrivin/assets/css/pulse-booking.css
 *
 * The post-Pulse booking modal. Ported from the approved prototype
 * (prototype-booking.html) with two additions the prototype did not need:
 * the timezone switcher (.bk__tzpick) and the inline error line (.bk__err),
 * which only exist once a real server can disagree with the browser.
 *
 * Every colour here is an existing theme token -- --paper, --ink, --accent,
 * --line, --muted, --surface, --recessed, --edge -- so the modal inherits
 * light/dark automatically and nothing needs restating per theme.
 */

.bkg{position:fixed; inset:0; z-index:120; display:flex; align-items:center; justify-content:center;
  padding:24px; background:rgba(12,13,14,.72); backdrop-filter:blur(6px);
  opacity:0; pointer-events:none; transition:opacity .35s var(--ease-soft)}
.bkg.is-open{opacity:1; pointer-events:auto}
.bk{position:relative; width:min(880px,100%); max-height:calc(100vh - 48px); overflow:auto;
  background:var(--paper); color:var(--ink); border-radius:14px; padding:44px 48px 40px;
  box-shadow:0 40px 120px rgba(0,0,0,.5); transform:translateY(14px) scale(.985);
  transition:transform .35s var(--ease)}
.bkg.is-open .bk{transform:none}
.bk__x{position:absolute; top:16px; right:16px; width:38px; height:38px; border:1px solid var(--line);
  border-radius:50%; background:var(--surface); color:var(--muted); font-size:17px; cursor:pointer;
  transition:color .2s,border-color .2s}
.bk__x:hover{color:var(--ink); border-color:var(--edge)}
.bk__l{font:600 11px/1 "IBM Plex Sans",sans-serif; letter-spacing:2px; color:var(--accent); margin:0 0 12px}
.bk__t{font-size:clamp(24px,2.4vw,31px); line-height:1.15; margin:0 0 10px; letter-spacing:-.01em}
.bk__d{color:var(--muted); font-size:15.5px; line-height:1.6; margin:0 0 24px; max-width:560px}
.bk__grid{display:grid; grid-template-columns:1.25fr 1fr; gap:34px; align-items:start}
.bk__cal{border:1px solid var(--line); border-radius:10px; padding:20px 22px; background:var(--surface)}
.bk__calhead{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px}
.bk__calhead div{font-weight:600; font-size:15.5px}
.bk__nav{width:32px; height:32px; border:1px solid var(--line); border-radius:8px; background:none;
  color:var(--ink); font-size:15px; cursor:pointer; transition:border-color .2s, background .2s}
.bk__nav:hover{border-color:var(--edge); background:var(--recessed)}
.bk__nav:disabled{opacity:.3; cursor:default; background:none}
.bk__dow,.bk__days{display:grid; grid-template-columns:repeat(7,1fr); gap:4px; text-align:center}
.bk__dow{font:600 10.5px/1 "IBM Plex Sans",sans-serif; letter-spacing:1px; color:var(--muted);
  margin-bottom:8px}
.bk__day{aspect-ratio:1; border:none; border-radius:8px; background:none; color:var(--ink);
  font-size:13.5px; cursor:pointer; transition:background .15s}
.bk__day:hover:not(:disabled){background:var(--recessed)}
.bk__day:disabled{color:var(--edge); cursor:default; background:none}
.bk__day.is-today{font-weight:700; color:var(--accent)}
.bk__day.is-sel{background:var(--accent); color:#fff; font-weight:600}
.bk__times{min-height:280px}
.bk__timeshead{font-weight:600; font-size:15px; margin-bottom:14px}
.bk__timeshead span{color:var(--muted); font-weight:400}
.bk__slots{display:grid; grid-template-columns:repeat(2,1fr); gap:8px; max-height:300px; overflow:auto}
.bk__slot{padding:11px 8px; border:1px solid var(--line); border-radius:8px; background:var(--surface);
  color:var(--ink); font-size:13.5px; font-family:inherit; cursor:pointer;
  transition:border-color .18s, background .18s}
.bk__slot:hover{border-color:var(--accent)}
.bk__slot.is-sel{background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600}
.bk__empty{color:var(--muted); font-size:14px; line-height:1.6}
.bk__foot{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-top:28px; padding-top:22px; border-top:1px solid var(--line)}
.bk__tz{color:var(--muted); font-size:13px}

/* Timezone switcher. The visitor's own zone is detected and preselected; the
   named options exist because a buyer often wants to reason in the zone of
   whoever else will be on the call. */
.bk__tzpick{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px}
.bk__tzpick select{font-family:inherit; font-size:13px; color:var(--ink); background:var(--surface);
  border:1px solid var(--line); border-radius:7px; padding:7px 10px; cursor:pointer}
.bk__tzpick select:focus{outline:none; border-color:var(--accent)}

/* Only appears when the server rejects a confirm -- a slot taken in the
   seconds since the grid was drawn, or a rate limit. */
.bk__err{margin:14px 0 0; color:var(--ember,#CF5F33); font-size:13.5px; line-height:1.5}
.bk__err[hidden]{display:none}

.bk__done{text-align:center; padding:12px 0 4px}
.bk__check{width:62px; height:62px; margin:0 auto 20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(95,165,68,.14); color:var(--growth,#5FA544)}
.bk__when{font-size:19px; font-weight:600; margin:0 0 14px}
.bk__done .bk__d{margin-inline:auto}

@media (max-width:820px){
  .bk{padding:36px 24px 30px}
  .bk__grid{grid-template-columns:1fr; gap:26px}
  .bk__times{min-height:0}
  .bk__slots{max-height:none}
  .bk__foot{flex-direction:column; align-items:stretch}
  .bk__foot .btn{width:100%; justify-content:center}
}
