/* ============================================================
   Broker Genius — book-demo.css
   BookDemo component — shared by book-demo.html and the
   embedded demo section on all other pages.
   ============================================================ */

.bdemo {
  border-bottom: 2px solid var(--ink);
  padding: 80px 28px;
  background: var(--paper);
  color: var(--ink);
}

.bdemo__head { text-align: center; max-width: 760px; margin: 0 auto; }
.bdemo__title {
  font-size: 50px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-stretch: 92%;
  margin-top: 16px;
  text-wrap: balance;
}
.bdemo__blurb { font-size: 16.5px; line-height: 1.6; color: var(--muted); margin-top: 18px; text-wrap: pretty; }

.bdemo__panel {
  margin-top: 44px;
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 rgba(16, 22, 42, 0.10);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
}

/* --- Left: meeting info --- */
.bdemo__info { border-right: 2px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.bdemo__info-brand { font: 600 10px var(--font-mono); letter-spacing: 0.14em; color: var(--sand); }
.bdemo__info-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.bdemo__info-body { font-size: 14px; line-height: 1.6; color: var(--muted); }
.bdemo__info-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font: 500 12px var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.03em;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* --- Middle: calendar --- */
.bdemo__cal { border-right: 2px solid var(--ink); }

.bdemo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 2px solid var(--ink);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.12em;
}
.bdemo__bar--dark { background: var(--ink); color: #fff; }
.bdemo__bar--dark .hint { color: var(--accent); }
.bdemo__bar .tag { color: var(--sand); }

.bdemo__daynames { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 20px 6px; }
.bdemo__dayname { font: 600 9.5px var(--font-mono); letter-spacing: 0.1em; color: var(--sand); text-align: center; }

.bdemo__cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 6px 20px 20px; }

.bd-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 600 14px var(--font-sans);
  cursor: pointer;
  padding: 0;
}
.bd-cell--blank { border-color: transparent; background: transparent; cursor: default; }
.bd-cell--off { border-color: var(--line-soft); color: var(--sand-2); cursor: not-allowed; }
.bd-cell--selected { border-color: var(--ink); background: var(--accent); color: var(--ink); }

/* --- Right: time slots --- */
.bdemo__slots-col { display: flex; flex-direction: column; }
.bdemo__slots { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; overflow: auto; max-height: 430px; }

.bd-slot {
  display: block;
  padding: 12px 15px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font: 600 14px var(--font-mono);
  cursor: pointer;
  text-align: center;
}
.bd-slot--selected { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--accent); }

.bdemo__confirm-wrap { margin-top: auto; padding: 16px 20px; border-top: 2px solid var(--ink); }
.bdemo__confirm {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  padding: 14px 20px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.bdemo__confirm:hover { color: var(--ink); background: var(--accent-deep); box-shadow: 1px 1px 0 var(--ink); }

/* --- Responsive --- */
@media (max-width: 1080px) {
  .bdemo__panel { grid-template-columns: 1fr; }
  .bdemo__info,
  .bdemo__cal { border-right: 0; border-bottom: 2px solid var(--ink); }
}

@media (max-width: 720px) {
  .bdemo__title { font-size: 38px; }
}

/* ============================================================
   Real booking
   ============================================================
   The mock calendar is gone: the booking page hosts the cal.com
   embed, and the shared widget links to it. Both panels drop
   from three columns to two.
   ============================================================ */
/* Every panel gives its whole width to the embed: cal.com renders its own
   details column, which is where the timezone selector sits. */
.bdemo__panel--solo { grid-template-columns: minmax(0, 1fr); }

/* ---- Booking page: the cal.com embed ---- */
.bdemo__embed { display: flex; flex-direction: column; min-width: 0; }
.bdemo__cal-embed {
  width: 100%;
  min-height: 700px;
  overflow: auto;
  background: var(--card);
}
.bdemo__noscript { padding: 20px; font-size: 15px; color: var(--muted); }

/* Placeholder shown until the embed loads. */
.bdemo__cal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 260px;
  font: 500 13px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}
.bdemo__cal-embed:not([data-cal-pending]) .bdemo__cal-loading { display: none; }

@media (max-width: 1080px) {
  .bdemo__panel { grid-template-columns: 1fr; }
  .bdemo__info,
  .bdemo__cal { border-right: 0; border-bottom: 2px solid var(--ink); }
}

@media (max-width: 720px) {
  .bdemo__title { font-size: 38px; }
}

/* ============================================================
   Real booking
   ============================================================
   The mock calendar is gone: the booking page hosts the cal.com
   embed, and the shared widget links to it. Both panels drop
   from three columns to two.
   ============================================================ */
/* Every panel gives its whole width to the embed: cal.com renders its own
   details column, which is where the timezone selector sits. */
.bdemo__panel--solo { grid-template-columns: minmax(0, 1fr); }

/* ---- Booking page: the cal.com embed ---- */
.bdemo__embed { display: flex; flex-direction: column; min-width: 0; }
.bdemo__cal-embed {
  width: 100%;
  min-height: 700px;
  overflow: auto;
  background: var(--card);
}
.bdemo__noscript { padding: 20px; font-size: 15px; color: var(--muted); }

/* ---- Shared widget: the link through to it ---- */

@media (max-width: 1080px) {
  .bdemo__cal-embed { min-height: 900px; }
}
