/*
  inline-calendar.css: the shared inline calendar's look (Jose, 2026-11-17: the exploratory chat's calendar on the
  page; src/rebrand/site/inline-calendar.ts). Every rule sits under .bkc, the block's own class, so it reaches nothing
  else on the page and nothing of the site chrome. Linked by the pages that carry the block (INLINE_CALENDAR_PATHS in
  src/rebrand/site/booking.ts), after their own stylesheets. Its colors are the brand's (the home's BRIEF.md tokens),
  each written with the token's value as its fallback, so the block draws the same on any page.

  Without JavaScript the frame stays hidden: the book button to /apply shows in its place, and the line under the frame
  links the booking page too. js/inline-calendar.js shows the frame (is-on), loads Cal.com when the block comes near the
  screen, and hides the waiting line once Cal.com draws into the slot (is-drawn). The frame keeps the calendar's room
  from the start, so the page does not jump when it arrives.
*/

.bkc {
  scroll-margin-top: 24px;
}

.bkc-frame {
  display: none;
  position: relative;
  min-height: 620px;
  border: 1px solid var(--border, #E4E2DC);
  border-radius: var(--radius, 8px);
  background: var(--white, #FFFFFF);
  overflow: hidden;
}

.bkc.is-on .bkc-frame {
  display: block;
}

.bkc-cal {
  position: relative;
  min-height: 620px;
}

/* The waiting line, centred in the frame under the slot, with a quiet spinner (still when motion is reduced) */
.bkc-wait {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  color: var(--text-muted, #565E70);
  font-size: 16px;
  line-height: 1.4;
}

.bkc-wait::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid var(--border, #E4E2DC);
  border-top-color: var(--orange, #FF6B2C);
  border-radius: 50%;
  animation: bkc-spin 0.9s linear infinite;
}

@keyframes bkc-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bkc-wait::before {
    animation: none;
  }
}

.bkc.is-drawn .bkc-wait {
  display: none;
}

/* Without JavaScript: the book button to /apply, the brand's orange main button */
.bkc-noscript {
  margin: 0;
}

.bkc a.bkc-btn.cta-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius, 8px);
  background: var(--orange, #FF6B2C);
  color: var(--midnight, #0B1020);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.bkc a.bkc-btn.cta-call:hover {
  background: #F25A1A;
  color: var(--midnight, #0B1020);
}

/* The line under the frame: the booking page, for a browser that keeps Cal.com's frame out */
.bkc-alt {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted, #565E70);
}

.bkc-alt a {
  color: var(--midnight, #0B1020);
  text-decoration: underline;
  text-decoration-color: var(--blue, #2D5BFF);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.bkc-alt a:hover {
  color: var(--blue, #2D5BFF);
}

/* Cal.com could not load the event: the line under the frame is the way to book, a step larger */
.bkc.is-failed .bkc-alt {
  font-size: 17px;
  color: var(--midnight, #0B1020);
}

@media (max-width: 760px) {
  .bkc-frame,
  .bkc-cal {
    min-height: 540px;
  }
}
