/* Booking page visual hardening and responsive layout — v9.
   This file has a unique URL so Cloudflare/browser caches cannot reuse an older
   stylesheet that predates the scheduler component. */

.booking-page {
  min-width: 0;
  padding-top: 82px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 229, 18, .13), transparent 26rem),
    linear-gradient(180deg, #f7f7f5 0, #ffffff 760px);
}

.scheduler-section {
  width: 100%;
  padding: clamp(30px, 5vw, 70px) 20px clamp(54px, 7vw, 88px);
}

.scheduler-shell {
  width: min(1180px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #e7e7e3;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .09);
}

.scheduler-brandbar {
  padding: 24px clamp(24px, 4vw, 40px);
  border-bottom: 1px solid #ededeb;
  background: #fff;
}

.scheduler-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  color: #111;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
}

.scheduler-brand > span:last-child { min-width: 0; }
.scheduler-brand small {
  display: block;
  margin-top: 5px;
  color: #707070;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.scheduler-monogram {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #ffe512;
  color: #111;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -.05em;
}

.scheduler-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 30px clamp(24px, 4vw, 40px);
  border-bottom: 1px solid #ededeb;
  background: linear-gradient(90deg, #fff 0%, #fffef5 100%);
}

.scheduler-avatar {
  width: 106px;
  height: 106px;
  flex: 0 0 auto;
  border: 4px solid #f0f0ed;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .12);
}

.scheduler-profile-copy {
  min-width: 0;
}

.scheduler-profile-copy h1 {
  margin: 0 0 4px;
  color: #111827;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.scheduler-profile-copy a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #657084;
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.scheduler-duration {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 0;
  color: #394150;
  font-size: .95rem;
  font-weight: 700;
}

.scheduler-duration span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: .78rem;
}

.scheduler-content {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(300px, .64fr);
  min-height: 610px;
}

.scheduler-calendar-column,
.scheduler-times-column {
  min-width: 0;
}

.scheduler-calendar-column {
  padding: clamp(34px, 5vw, 58px);
}

.scheduler-times-column {
  padding: clamp(34px, 4vw, 48px) clamp(26px, 3vw, 38px);
  border-left: 1px solid #ededeb;
  background: #fcfcfb;
}

.scheduler-heading { margin-bottom: 34px; }
.scheduler-kicker {
  margin: 0 0 6px;
  color: #8a8f98;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.scheduler-heading h2,
.scheduler-times-column h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.72rem, 3vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.scheduler-calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.scheduler-calendar-toolbar strong {
  color: #111827;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.scheduler-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111827;
  font-size: 2rem;
  line-height: 1;
  transition: background .18s ease, transform .18s ease;
}
.scheduler-arrow:hover:not(:disabled) { background: #f1f1ee; transform: scale(1.04); }
.scheduler-arrow:disabled { color: #c5c7cb; cursor: not-allowed; }

.scheduler-shell .calendar-weekdays,
.scheduler-shell .booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, .8vw, 9px);
  width: 100%;
  min-width: 0;
}

.scheduler-shell .calendar-weekdays {
  margin: 28px 0 12px;
  color: #657084;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.scheduler-shell .calendar-day {
  display: grid;
  width: min(100%, 50px);
  max-width: 50px;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111827;
  font-size: .96rem;
  font-weight: 750;
  line-height: 1;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.scheduler-shell .calendar-day:hover:not(:disabled) { background: #fff8bf; transform: scale(1.07); }
.scheduler-shell .calendar-day.today { box-shadow: inset 0 0 0 2px #ffe512; }
.scheduler-shell .calendar-day.selected {
  background: #ffe512;
  color: #111;
  box-shadow: 0 8px 20px rgba(210, 183, 0, .28);
}
.scheduler-shell .calendar-day.unavailable { background: transparent; color: #d2d5da; cursor: not-allowed; }
.scheduler-shell .calendar-day.outside { opacity: 0; pointer-events: none; }
.scheduler-shell .calendar-day small { display: none; }

.scheduler-timezone {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 28px 0 0;
  color: #657084;
  font-size: .84rem;
}

.scheduler-times-column .selected-date-label {
  display: block;
  margin-top: 8px;
  color: #657084;
  font-size: .88rem;
  text-align: left;
}

.scheduler-times-column .time-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 26px;
}
.scheduler-times-column .time-slots > p { margin: 0; }

.scheduler-times-column .time-slot {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1.5px solid #e6cf00;
  border-radius: 12px;
  background: #fff;
  color: #bda900;
  font-size: .98rem;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.scheduler-times-column .time-slot:hover:not(:disabled) {
  border-color: #ffe512;
  background: #fffdea;
  color: #111;
  transform: translateY(-1px);
}
.scheduler-times-column .time-slot.selected {
  border-color: #ffe512;
  background: #ffe512;
  color: #111;
  box-shadow: 0 8px 20px rgba(210, 183, 0, .18);
}
.scheduler-times-column .time-slot:disabled {
  border-color: #e5e5e2;
  background: #f5f5f3;
  color: #b9bdc4;
  cursor: not-allowed;
}
.scheduler-times-column .time-slot small { display: block; }

.scheduler-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #7a828f;
  font-size: .75rem;
}
.scheduler-legend span { display: inline-flex; align-items: center; gap: 7px; }
.scheduler-legend .legend-dot.selected { background: #ffe512; border-color: #ffe512; }

.booking-details-section {
  padding: 82px 0 96px;
  border-top: 1px solid #efefec;
  background: #fff;
}
.booking-details-section[hidden] { display: none !important; }
.booking-details-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: start;
}
.booking-details-intro { position: sticky; top: 120px; }
.booking-details-section .booking-form-panel { position: static; min-width: 0; }

@media (max-width: 980px) {
  .scheduler-content { grid-template-columns: 1fr; }
  .scheduler-times-column { border-top: 1px solid #ededeb; border-left: 0; }
  .scheduler-times-column .time-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-details-grid { grid-template-columns: 1fr; }
  .booking-details-intro { position: static; }
}

@media (max-width: 700px) {
  .booking-page { padding-top: 74px; }
  .scheduler-section { padding: 16px 0 48px; }
  .scheduler-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .scheduler-brandbar { padding: 18px 20px; }
  .scheduler-monogram { width: 46px; height: 46px; border-radius: 13px; }
  .scheduler-brand { font-size: .98rem; }
  .scheduler-profile { align-items: flex-start; gap: 17px; padding: 26px 20px; }
  .scheduler-avatar { width: 88px; height: 88px; border-width: 3px; }
  .scheduler-profile-copy h1 { font-size: 1.4rem; }
  .scheduler-profile-copy a { font-size: .89rem; }
  .scheduler-duration { margin-top: 13px; font-size: .9rem; }
  .scheduler-calendar-column { padding: 38px 20px 32px; }
  .scheduler-times-column { padding: 32px 20px 40px; }
  .scheduler-heading { margin-bottom: 26px; }
  .scheduler-heading h2 { font-size: 1.75rem; }
  .scheduler-shell .calendar-day { width: min(100%, 45px); font-size: .9rem; }
  .scheduler-timezone { margin-top: 22px; font-size: .79rem; }
  .scheduler-times-column .time-slots { grid-template-columns: 1fr; }
  .booking-details-section { padding: 62px 0 76px; }
  .booking-details-grid { width: min(100% - 28px, 1180px); }
}

@media (max-width: 390px) {
  .scheduler-brand small { letter-spacing: .07em; }
  .scheduler-profile { gap: 13px; }
  .scheduler-avatar { width: 74px; height: 74px; }
  .scheduler-profile-copy h1 { font-size: 1.22rem; }
  .scheduler-profile-copy a { font-size: .8rem; }
  .scheduler-duration { font-size: .83rem; }
  .scheduler-calendar-column,
  .scheduler-times-column { padding-right: 16px; padding-left: 16px; }
  .scheduler-shell .calendar-weekdays { font-size: .71rem; }
  .scheduler-shell .calendar-day { font-size: .84rem; }
}

/* V13 booking branding: supplied signature logo, no portrait */
.scheduler-brandbar {
  display: flex;
  justify-content: center;
  padding-block: 18px;
}
.scheduler-brand {
  width: min(330px, 100%);
  justify-content: center;
}
.scheduler-brand-logo {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: contain;
}
.scheduler-profile.scheduler-profile--logo {
  align-items: center;
  gap: clamp(22px, 4vw, 42px);
  padding-block: 30px;
  background: linear-gradient(135deg, #fff 0%, #fcfcf8 100%);
}
.scheduler-logo {
  display: block;
  width: min(310px, 42%);
  height: 178px;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid #ededeb;
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
}
.scheduler-profile-copy h1 { color: var(--ink); }

@media (max-width: 720px) {
  .scheduler-brand-logo { height: 82px; }
  .scheduler-profile.scheduler-profile--logo {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .scheduler-logo {
    width: 100%;
    height: 170px;
  }
}
@media (max-width: 430px) {
  .scheduler-brandbar { padding: 12px 18px; }
  .scheduler-brand-logo { height: 70px; }
  .scheduler-logo { height: 145px; border-radius: 17px; }
}
