/* Booking block — Figma 275-15432 ("BOOKING").
   Blue gradient closing band with decorative rays, centered badge/heading/text
   and a white booking card (details left, calendar embed/mock right) that sits
   flush on the bottom edge of the section. */

.sun-booking {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(180deg, var(--sun-accent) 0%, var(--sun-secondary) 100%);
}

/* Decorative ray lines (Figma 275-15511) — inline rays-anim.svg; SMIL unfolds
   them clockwise about their convergence point when scrolled into view (block.js). */
.sun-booking__rays {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.sun-booking__rays svg {
  display: block;
  width: 100%;
  height: 100%;                                   /* preserveAspectRatio=xMidYMax slice ≈ cover/bottom */
}

.sun-booking__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  position: relative; /* above the rays */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---- Header: badge / heading / text ---- */
.sun-booking__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 48px;
  max-width: 691px;
  text-align: center;
}

.sun-booking__badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--sun-primary);
  color: var(--sun-base);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  line-height: 16px;
}

.sun-booking__heading {
  margin: 0;
  color: var(--sun-base);
  font-size: var(--wp--preset--font-size--display-lg);
  font-weight: 500;
  line-height: 1.1667;
  letter-spacing: -0.01em;
}

.sun-booking__text {
  margin: 0;
  max-width: 448px;
  color: #e7e9ec; /* Figma PRIMARY/Darkblue/Light — no theme token */
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 500;
  line-height: 1.3334;
}

/* ---- Card ---- */
.sun-booking__card {
  box-sizing: border-box;
  width: min(800px, 100%);
  display: grid;
  grid-template-columns: 400px 1fr;
  background: var(--sun-base);
  border: 0.7px solid #dcdee2; /* Figma Darkblue/Light hover — no theme token */
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

/* Left pane — host details + expectations */
.sun-booking__details {
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.sun-booking__avatar {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.sun-booking__avatar--placeholder {
  background: linear-gradient(135deg, var(--sun-muted), var(--sun-surface));
}

.sun-booking__name {
  margin: 0;
  color: var(--sun-bluegrey);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.5;
}

.sun-booking__title {
  margin: 0;
  color: var(--sun-secondary);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.sun-booking__meta {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sun-booking__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sun-bluegrey);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.5;
}
.sun-booking__meta-item > .sun-icon { font-size: 20px; }

.sun-booking__expect { margin-top: 24px; }
.sun-booking__expect-heading {
  margin: 0 0 8px;
  color: var(--sun-secondary);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 500;
  line-height: 1.3334;
}
.sun-booking__expect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sun-booking__expect-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sun-bluegrey);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.5;
}
.sun-booking__check {
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun-accent);
  color: var(--sun-base);
}
.sun-booking__check-icon { font-size: 16px; }

/* Calendly-style footer row of the left pane (mock only) */
.sun-booking__details-foot {
  display: flex;
  justify-content: space-between;
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.5;
  color: var(--sun-secondary);
}
.sun-booking__foot-link--accent { color: var(--sun-accent); }

/* Right pane — embed or static calendar mock */
.sun-booking__widget {
  box-sizing: border-box;
  border-left: 0.7px solid #e7e9ec; /* Figma Darkblue/Light — no theme token */
  padding: 28px;
  display: flex;
  container-type: inline-size;
  min-width: 0;
}

.sun-booking__embed { flex: 1; min-width: 0; }
.sun-booking__embed iframe { width: 100%; border: 0; }

/* Real Calendly inline widget fills the card's right side. min-width:0 (not
   Calendly's suggested 320px) so a narrow card never forces page overflow —
   the Calendly iframe reflows down to phone widths on its own.
   Height kept compact: Calendly scrolls internally once you pick a day (the
   time-slot list), so a taller box only to avoid the month-view scrollbar would
   trade that away for dead whitespace — not worth it. */
.sun-booking__calendly { width: 100%; min-width: 0; height: 700px; }
@media (max-width: 720px) { .sun-booking__calendly { height: 640px; } }

.sun-booking__mock {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.sun-booking__mock-title {
  margin: 0 0 22px;
  color: var(--sun-secondary);
  font-size: 20px;
  line-height: 1.5;
}

.sun-booking__mock-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sun-booking__mock-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--sun-secondary);
}
.sun-booking__mock-nav--active { background: #edf0fb; color: var(--sun-accent); } /* Figma Blue/Light */
.sun-booking__mock-nav-icon { font-size: 14px; }
.sun-booking__mock-nav-icon--prev { transform: rotate(180deg); }
.sun-booking__mock-month-label {
  color: var(--sun-secondary);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.5;
}

.sun-booking__mock-grid {
  /* 7 day columns + 6×6px gaps must fit the widget pane (100cqw = its content box). */
  --bk-cell: min(44px, calc((100cqw - 36px) / 7));
  display: flex;
  gap: 6px;
}
.sun-booking__mock-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sun-booking__mock-dow {
  margin-bottom: 8px;
  width: var(--bk-cell);
  color: var(--sun-secondary);
  font-size: var(--wp--preset--font-size--xs);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.sun-booking__mock-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bk-cell);
  height: var(--bk-cell);
  border-radius: 50%;
  color: var(--sun-bluegrey);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.5;
}
.sun-booking__mock-day--avail { background: #edf0fb; color: var(--sun-accent); } /* Figma Blue/Light */
.sun-booking__mock-day--dot::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--sun-bluegrey);
}

.sun-booking__mock-tz { margin-top: 22px; }
.sun-booking__mock-tz-label {
  margin: 0 0 6px;
  color: var(--sun-secondary);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.5;
}
.sun-booking__mock-tz-value {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sun-secondary);
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.5;
}
.sun-booking__mock-tz-value > .sun-icon:first-child { font-size: 14px; }
.sun-booking__mock-caret { font-size: 8px; }

.sun-booking__mock-trouble {
  box-sizing: border-box;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--sun-secondary);
  border-radius: var(--sun-radius-button);
  color: var(--sun-secondary);
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.5;
}
.sun-booking__mock-trouble .sun-icon { font-size: 16px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .sun-booking { padding-top: 64px; }
  .sun-booking__card { grid-template-columns: 1fr; }
  .sun-booking__widget { border-left: 0; border-top: 0.7px solid #e7e9ec; }
}

@media (max-width: 640px) {
  .sun-booking { padding-top: 48px; }
  .sun-booking__head { padding-bottom: 32px; }
  .sun-booking__details,
  .sun-booking__widget { padding: 20px; }
  .sun-booking__title { font-size: var(--wp--preset--font-size--xl); }
  .sun-booking__mock-grid { --bk-cell: min(44px, calc((100cqw - 24px) / 7)); gap: 4px; }
}
