/* New Roots Coaching: "Book a call" popup. Shared by every page that loads js/book-call.js.
   Uses the site's tokens from style.css. Every rule is scoped under .bc. */

.bc {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: calc(100% - 32px);
  max-width: 34rem;
  max-height: calc(100svh - 32px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.bc::backdrop { background: rgba(58, 58, 58, 0.62); }
.bc-inner { position: relative; padding: 36px 30px 30px; }

.bc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 400 28px/1 var(--sans);
  cursor: pointer;
}
.bc-close:hover { background: var(--sand); }

.bc h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4.5vw, 2.1rem); line-height: 1.2; margin: 0 40px 0.4em 0; }
.bc p { margin: 0 0 1.2em; color: var(--ink-soft); }
.bc .bc-small { font-size: 0.88rem; line-height: 1.55; margin: 1rem 0 0; }

.bc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.bc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bc-field.full { grid-column: 1 / -1; }
.bc label { font-weight: 600; font-size: 0.9rem; }
.bc label .bc-opt { font-weight: 400; color: var(--ink-soft); }
.bc input,
.bc textarea {
  font: 400 1rem/1.4 var(--sans);
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #d9d3c4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.bc textarea { min-height: 8rem; resize: vertical; }
.bc input[aria-invalid="true"],
.bc textarea[aria-invalid="true"] { border-color: #b3261e; }
.bc-err { min-height: 0; font-size: 0.85rem; color: #b3261e; }
.bc-err:empty { display: none; }
.bc :focus-visible { outline: 3px solid #2f6fb8; outline-offset: 2px; }

/* the trap for bots: out of sight and out of the tab order */
.bc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.bc button.btn { font-family: var(--sans); font-size: 1rem; line-height: 1.3; min-height: 48px; padding: 0.7rem 1.8rem; cursor: pointer; }
.bc .btn:disabled { opacity: 0.55; cursor: progress; }
.bc .btn.green:disabled:hover { background: var(--green); color: #fff; }

.bc-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--sand); color: var(--ink); font-size: 0.95rem; }
.bc-status.bad { border: 2px solid #b3261e; background: #fff; }
.bc-status[hidden] { display: none; }

.bc-done { text-align: left; }
.bc-done[hidden], .bc-form[hidden] { display: none; }

html.bc-open { overflow: hidden; }

@media (max-width: 520px) {
  .bc-inner { padding: 32px 20px 24px; }
  .bc-grid { grid-template-columns: 1fr; }
  .bc-actions .btn { width: 100%; }
}
