/* =========================================================
   Book-a-call drawer — styles
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bb-accent: #f4900c;
  --bb-accent-dark: #d97c04;
  --bb-accent-soft: rgba(244, 144, 12, .10);
  --bb-ink: #0b0b0c;
  --bb-muted: #6f6f73;
  --bb-line: #e7e5df;
  --bb-track: #ebe8e0;
  --bb-paper: #faf9f6;
  --bb-bg: #ffffff;
  --bb-err: #d93025;
  --bb-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bb-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bb-w: 560px;
  --bb-pad: 34px;
}

html.bb-lock, html.bb-lock body { overflow: hidden; }

/* ---------- Overlay ---------- */
.bb-overlay {
  position: fixed; inset: 0;
  background: rgba(18, 18, 20, .48);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
  z-index: 2147483000;
}
.bb-overlay.bb-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }

/* ---------- Panel ---------- */
.bb-panel, .bb-panel * { box-sizing: border-box; }
.bb-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(var(--bb-w), 100vw);
  height: 100vh; height: 100dvh;
  background: var(--bb-bg); color: var(--bb-ink);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .55s;
  z-index: 2147483001;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .12);
}
.bb-panel.bb-open {
  transform: translateX(0); visibility: visible;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
.bb-panel button { font: inherit; }
.bb-panel h2, .bb-panel p { margin: 0; }

/* ---------- Header ---------- */
.bb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--bb-pad);
  border-bottom: 1px solid var(--bb-line);
}
.bb-head-l { display: flex; align-items: center; gap: 14px; }
.bb-logo {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  letter-spacing: -.01em; line-height: 1;
}
.bb-amp {
  background: var(--bb-accent);
  padding: 2px 3px; margin: 0 2px; line-height: 1;
}
.bb-head-tag {
  font-family: 'Figtree'; font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--bb-muted);
}
.bb-close {
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; color: var(--bb-ink);
  cursor: pointer; transition: background .2s;
}
.bb-close:hover { background: var(--bb-paper); }
.bb-close svg { width: 18px; height: 18px; }

/* ---------- Progress ---------- */
.bb-prog { display: flex; gap: 6px; padding: 22px var(--bb-pad) 0; }
.bb-prog-bar { flex: 1; height: 3px; background: var(--bb-track); transition: background .35s ease; }
.bb-prog-bar.bb-done { background: var(--bb-ink); }
.bb-prog-bar.bb-current { background: var(--bb-accent); }

/* ---------- Body ---------- */
.bb-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 30px var(--bb-pad) 34px;
}
.bb-body::-webkit-scrollbar { width: 8px; }
.bb-body::-webkit-scrollbar-thumb { background: #c9c6be; }

.bb-step { display: none; }
.bb-step.bb-active { display: block; animation: bbIn .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes bbIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.bb-step-num {
  display: inline-block;
  background: var(--bb-accent); color: var(--bb-ink);
  font-family: 'Figtree'; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; padding: 5px 9px; margin-bottom: 22px;
}
.bb-step-h {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(27px, 4.6vw, 36px); line-height: 1.12;
  letter-spacing: -.035em; color: var(--bb-ink);
  margin-bottom: 14px !important;
}
.bb-hl {
  background: linear-gradient(transparent 56%, var(--bb-accent) 56%);
  padding: 0 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.bb-step-sub {
  font-size: 15.5px; line-height: 1.55; color: var(--bb-muted);
  margin-bottom: 34px !important;
}

/* ---------- Inputs ---------- */
.bb-field { display: block; }
.bb-label {
  display: block; margin-bottom: 10px;
  font-family: 'Figtree'; font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #4a4a4e;
}
.bb-input {
  display: block; width: 100%; margin: 0;
  padding: 10px 2px 12px;
  font-family: var(--font-head); font-size: 14px; font-weight: 400; color: var(--bb-ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--bb-ink);
  border-radius: 0; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background .2s;
}
.bb-input::placeholder { color: #aaa9ad; opacity: 1; }
.bb-input:focus, .bb-field:focus-within {	
	outline: none!important;
 }
.bb-input.bb-invalid { border-bottom-color: var(--bb-err); }
.bb-err { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--bb-err); }

/* ---------- Budget cards ---------- */
.bb-budget { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bb-bcard { position: relative; display: block; cursor: pointer; margin: 0; }
.bb-bcard.bb-full { grid-column: 1 / -1; }
.bb-bcard input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.bb-bcard-inner {
  display: block; height: 100%;
  padding: 20px 18px;
  background: #fff; border: 1px solid var(--bb-line);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.bb-bcard:hover .bb-bcard-inner { border-color: #bdbab2; }
.bb-bcard input:checked + .bb-bcard-inner {
  border-color: var(--bb-accent);
  box-shadow: inset 0 0 0 1px var(--bb-accent);
  background: var(--bb-accent-soft);
}
.bb-bcard input:focus-visible + .bb-bcard-inner { outline: 2px solid var(--bb-ink); outline-offset: 2px; }
.bb-bamount {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 19px; letter-spacing: -.025em; color: var(--bb-ink);
}
.bb-bmeta {
  display: block; margin-top: 6px;
  font-family: 'Figtree'; font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--bb-muted);
}

/* ---------- Summary ---------- */
.bb-summary {
  background: var(--bb-paper); border: 1px solid var(--bb-line);
  padding: 18px 20px; margin-bottom: 18px;
}
.bb-summary-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: 'Figtree'; font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--bb-muted);
}
.bb-summary-h::before { content: ""; width: 6px; height: 6px; background: var(--bb-accent); }
.bb-srow { display: grid; grid-template-columns: 105px 1fr; gap: 12px; align-items: baseline; padding: 6px 0; }
.bb-sk {
  font-family: 'Figtree'; font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bb-muted);
}
.bb-sv { font-size: 14px; font-weight: 500; color: var(--bb-ink); word-break: break-word; }

/* ---------- Calendly box ---------- */
.bb-cal {
  position: relative; height: 700px;
  border: 1px solid var(--bb-line); background: #fff; overflow: hidden;
}
.bb-cal iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.bb-cal-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 30px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--bb-muted);
}
.bb-cal-fallback-h {
  font-family: 'Figtree'; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--bb-ink);
}
.bb-cal-fallback a { color: var(--bb-ink); text-decoration: underline; }
.bb-spinner {
  width: 26px; height: 26px; margin-bottom: 6px;
  border: 3px solid var(--bb-track); border-top-color: var(--bb-accent);
  border-radius: 50%; animation: bbSpin .8s linear infinite;
}
@keyframes bbSpin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.bb-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 22px var(--bb-pad);
  border-top: 1px solid var(--bb-line); background: var(--bb-bg);
}
.bb-foot-right { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.bb-back {
  padding: 15px 22px; cursor: pointer;
  font-family: var(--font-head); font-size: 15px!important; font-weight: 500; color: var(--bb-ink);
  background: #fff; border: 1.5px solid var(--bb-ink); border-radius: 0;
  transition: background .2s, color .2s;
}
.bb-back:hover { background: var(--bb-ink); color: #fff; }
.bb-skip {
  padding: 8px 0; cursor: pointer; background: transparent; border: 0;
  font-family: 'Figtree' !important; font-size: 10px!important; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: #7d7462;
  transition: color .2s;
}
.bb-skip:hover { color: var(--bb-ink); }
.bb-next {
  padding: 17px 26px; cursor: pointer;
  font-family: var(--font-head); font-size: 14px!important; font-weight: 600; color: var(--bb-ink);
  background: var(--bb-accent); border: 0; border-radius: 0;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.bb-next:hover { background: var(--bb-accent-dark); }
.bb-next:active { transform: translateY(1px); }
.bb-panel :focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 2px; }

.bb-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  :root { --bb-pad: 20px; }
  .bb-head { padding-top: 18px; padding-bottom: 18px; }
  .bb-logo { font-size: 20px; }
  .bb-prog { padding-top: 18px; }
  .bb-body { padding-top: 24px; }
  .bb-step-num { margin-bottom: 18px; }
  .bb-step-sub { font-size: 14.5px; margin-bottom: 26px !important; }
  .bb-input { font-size: 10px; }
  .bb-cal { height: 620px; }
  .bb-foot { padding-top: 14px; padding-bottom: 14px; }
  .bb-foot-right { gap: 14px; }
  .bb-back { padding: 14px 16px; font-size: 14px; }
  .bb-next { padding: 15px 18px; font-size: 12px!important; }
  .bb-skip { font-size: 10px !important; letter-spacing: .12em; }
}
@media (max-width: 420px) {
  .bb-budget { grid-template-columns: 1fr; }
  .bb-bcard-inner { padding: 16px; }
  .bb-srow { grid-template-columns: 82px 1fr; }
  .bb-foot { flex-wrap: wrap; }
  .bb-foot-right { flex: 1; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-panel, .bb-overlay, .bb-step.bb-active, .bb-prog-bar { transition: none !important; animation: none !important; }
}