/* Book a demo: one button + popup shared by the venture pages (rta, Coral, Vapus, Eklavya).
   Colours follow each page through the --bd-accent / --bd-accent-text values set by book-demo.js
   (the pages' own CSS variables), and the popup follows the page's light/dark theme. */

.bd-btn {
  --bd-accent: #2563eb;
  --bd-accent-text: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--bd-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--bd-accent);
  font: 700 0.8rem/1 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.bd-btn:hover { background: var(--bd-accent); color: var(--bd-accent-text); transform: translateY(-1px); }
.bd-btn:focus-visible { outline: 2px solid var(--bd-accent); outline-offset: 3px; }
.bd-btn.bd-fixed { position: fixed; z-index: 100; }

.bd-overlay {
  --bd-bg: #ffffff;
  --bd-text: #0f172a;
  --bd-muted: #64748b;
  --bd-line: #dbe2ea;
  --bd-field: #f8fafc;
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.bd-overlay.bd-open { display: flex; }
html[data-theme="dark"] .bd-overlay, body.dark-mode .bd-overlay {
  --bd-bg: #111827; --bd-text: #f1f5f9; --bd-muted: #94a3b8; --bd-line: #2b3646; --bd-field: #0b1220;
}

.bd-card {
  position: relative; box-sizing: border-box;
  width: min(480px, 100%); max-height: calc(100vh - 2.5rem); overflow-y: auto;
  padding: 2.2rem 2rem 1.8rem;
  border-radius: 18px;
  background: var(--bd-bg); color: var(--bd-text);
  border: 1px solid var(--bd-line);
  border-top: 4px solid var(--bd-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  text-align: left;
}
.bd-card *, .bd-card *::before, .bd-card *::after { box-sizing: border-box; }
.bd-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: var(--bd-muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.bd-close:hover { color: var(--bd-text); background: var(--bd-field); }
.bd-card h2 { margin: 0 0 0.35rem; padding-right: 2rem; font-size: 1.6rem; font-weight: 800; line-height: 1.15; color: var(--bd-text); }
.bd-sub { margin: 0 0 1.3rem; font-size: 0.92rem; line-height: 1.5; color: var(--bd-muted); }

.bd-field { margin: 0 0 1rem; }
.bd-field label { display: block; margin: 0 0 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--bd-text); }
.bd-field label i { font-style: normal; font-weight: 400; color: var(--bd-muted); }
.bd-field input, .bd-field select {
  width: 100%; padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--bd-line); border-radius: 10px;
  background: var(--bd-field); color: var(--bd-text);
  font: 400 0.95rem 'Plus Jakarta Sans', system-ui, sans-serif;
  outline: none; transition: border-color 0.2s ease;
}
.bd-field select option { color: #0f172a; background: #fff; }
.bd-field input:focus, .bd-field select:focus { border-color: var(--bd-accent); }
.bd-field [aria-invalid="true"] { border-color: #ef4444; }
.bd-phone { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 0.6rem; }

.bd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bd-err { min-height: 1.2em; margin: 0 0 0.6rem; font-size: 0.85rem; line-height: 1.4; color: #ef4444; }
.bd-submit {
  width: 100%; padding: 0.9rem 1rem; border: 0; border-radius: 10px;
  background: var(--bd-accent); color: var(--bd-accent-text);
  font: 800 0.95rem 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.bd-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bd-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.bd-small { margin: 0.8rem 0 0; font-size: 0.78rem; text-align: center; color: var(--bd-muted); }
.bd-thanks { padding: 0.6rem 0 0.4rem; }
.bd-thanks[hidden], .bd-form-wrap[hidden] { display: none; }

@media (max-width: 520px) { .bd-phone { grid-template-columns: 1fr; } .bd-card { padding: 2rem 1.3rem 1.5rem; } }
