/* "Book a Call" popup (js/book-call.js). Self-contained so it works on every page. */
.bc-open { overflow: hidden; }
.bc-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 1.75rem 2rem; border: none; border-radius: 22px; background: #fff; color: #0b1b3f;
  box-shadow: 0 40px 100px -30px rgba(11, 27, 63, 0.55);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.5;
}
.bc-dialog[open] { animation: bc-in .25s cubic-bezier(.2, .7, .2, 1); }
.bc-dialog::backdrop { background: rgba(11, 27, 63, 0.55); backdrop-filter: blur(4px); }
@keyframes bc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.bc-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #e4e9f2; background: #fff; color: #475569; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.bc-close:hover { background: #f5f7fb; color: #0b1b3f; }

.bc-head { display: flex; gap: 1rem; align-items: flex-start; margin: 0 2.2rem 1.2rem 0; }
.bc-avatar {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c7d2fe;
}
.bc-avatar svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bc-head h2 { margin-top: .35rem; }
.bc-dialog h2 { margin: 0 0 .3rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: #0b1b3f; line-height: 1.2; }
.bc-sub { margin: 0; font-size: .92rem; color: #475569; }

.bc-form { display: flex; flex-direction: column; gap: .9rem; }
.bc-form[hidden] { display: none; }
.bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.bc-row-3 { grid-template-columns: 1.1fr 1fr 1.1fr; }
.bc-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 600; color: #0b1b3f; }
.bc-form label em { font-style: normal; font-weight: 400; color: #64748b; }
.bc-form input:not([type="radio"]), .bc-form select, .bc-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  font: inherit; font-size: .93rem; font-weight: 400; color: #0b1b3f; transition: border-color .2s, box-shadow .2s;
}
.bc-form textarea { resize: vertical; }
.bc-form input:focus, .bc-form select:focus, .bc-form textarea:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12); }

.bc-topics { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bc-topics legend { padding: 0; margin-bottom: .45rem; font-size: .82rem; font-weight: 600; color: #0b1b3f; }
.bc-topics label { display: block; }
.bc-topics input { position: absolute; opacity: 0; pointer-events: none; }
.bc-topics span {
  display: inline-block; padding: .5rem .85rem; border-radius: 999px; border: 1px solid #cbd5e1; cursor: pointer;
  font-size: .85rem; font-weight: 500; color: #475569; transition: all .15s;
}
.bc-topics span:hover { border-color: #1d4ed8; color: #1d4ed8; }
.bc-topics input:checked + span { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.bc-topics input:focus-visible + span { outline: 2px solid #1d4ed8; outline-offset: 2px; }

.bc-submit {
  width: 100%; margin-top: .3rem; border: none; cursor: pointer; padding: 1rem 1.4rem; border-radius: 10px;
  background: #1d4ed8; color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.6);
}
.bc-submit:hover { background: #1e40af; }
.bc-submit:disabled { opacity: .65; cursor: wait; }
.bc-msg { margin: 0; font-size: .88rem; text-align: center; }
.bc-msg:empty { display: none; }
.bc-msg.error { padding: .65rem .9rem; border-radius: 8px; background: #fff5f5; color: #dc2626; border: 1px solid #fecaca; }
.bc-alt { margin: 0; text-align: center; font-size: .85rem; color: #64748b; }
.bc-alt a { color: #1d4ed8; font-weight: 600; }

.bc-done { text-align: center; padding: 1.5rem 0 .5rem; }
.bc-done-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1rem;
  background: #dcfce7; color: #16a34a; font-size: 1.9rem; font-weight: 800;
}
.bc-done p { color: #475569; margin: 0 0 1.4rem; }
.bc-done .btn { padding: .75rem 1.4rem; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #0b1b3f; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 560px) {
  .bc-dialog { padding: 1.4rem 1.1rem; border-radius: 18px; }
  .bc-head { margin-right: 2rem; }
  .bc-avatar { width: 52px; height: 52px; }
  .bc-dialog h2 { font-size: 1.2rem; }
  .bc-row, .bc-row-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bc-dialog[open] { animation: none; } }
