/* ==========================================================================
   Funded Assets: booking calendar (inline card + full-screen popup)
   Uses the tokens defined in styles.css.
   ========================================================================== */

html.bk-lock, html.bk-lock body { overflow: hidden; }

/* ---------- calendar inside the page (hero card) ---------- */
.booking-card .form-card-body { padding-bottom: 6px; }
.bk-inline { min-height: 640px; background: var(--white); }
.bk-inline iframe, .bk-cal iframe { display: block; width: 100%; min-height: 640px; border: 0; }
.bk-inline noscript a, .bk-cal noscript a { color: var(--blue); }
.booking-sub { font-size: 15px; line-height: 1.55; color: var(--text-2); margin-top: -6px; }

/* ---------- full-screen popup ---------- */
.bk-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: grid; grid-template-rows: auto 1fr; opacity: 0; transition: opacity .25s var(--ease);
}
.bk-overlay[hidden] { display: none; }
.bk-overlay.bk-in { opacity: 1; }
.bk-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px max(var(--gutter), calc((100vw - 1200px) / 2)); border-bottom: 1px solid var(--line); background: rgba(247, 247, 247, .9);
}
.bk-logo img { width: 150px; height: auto; }
.bk-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s; }
.bk-close:hover { background: var(--paper-2); transform: rotate(90deg); }
.bk-stage { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: clamp(28px, 6vh, 64px) var(--gutter) 64px; }
.bk-step { width: 100%; max-width: 680px; margin: 0 auto; display: grid; gap: 24px; animation: bkIn .45s var(--ease) both; }
@keyframes bkIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bk-head { display: grid; gap: 14px; }
.bk-head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; outline: none; }
.bk-head h2 em { font-style: italic; letter-spacing: -0.01em; color: var(--blue); }
.bk-sub { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 58ch; }
.bk-cal { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .bk-overlay, .bk-step { transition: none; animation: none; } }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .bk-top { padding-top: 10px; padding-bottom: 10px; }
  .bk-logo img { width: 124px; }
  .bk-stage { padding-top: 20px; padding-bottom: 40px; }
  .bk-step { gap: 18px; }
  .bk-head { gap: 8px; }
  .bk-head h2 { font-size: 30px; }
  .bk-sub { font-size: 15px; line-height: 1.5; }
  .form-card-head { padding: 11px 16px; font-size: 10.5px; }
  .form-card-body { padding: 16px 16px 6px; gap: 10px; }
  .form-card-body h2 { font-size: 23px; }
  .booking-sub, .lp-form-sub { font-size: 14px; margin-top: -4px; }
}
@media (max-width: 400px) {
  .funnel-top .btn { white-space: nowrap; font-size: 11px; letter-spacing: .1em; padding: 0 14px; }
}
/* the calendar card is tall, so it scrolls with the page instead of sticking */
@media (min-width: 981px) { .lp-hero .form-card.booking-card { position: relative; top: auto; } }
