:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #66726c;
  --paper: #efeee7;
  --card: #fffef9;
  --green: #155c45;
  --green-dark: #123c31;
  --green-soft: #e9f3ed;
  --lime: #d9f265;
  --line: #dde2db;
  --danger: #a03932;
  --shadow: 0 30px 90px rgba(28, 46, 38, 0.15);
}

* { box-sizing: border-box; }
html { min-width: 0; }
body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(217, 242, 101, 0.24), transparent 25rem),
    radial-gradient(circle at 92% 92%, rgba(21, 92, 69, 0.1), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.test-banner {
  padding: 10px 18px;
  text-align: center;
  background: #252a27;
  color: #f3f6e9;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.test-banner span {
  display: inline-flex;
  margin-right: 10px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell {
  min-height: calc(100vh - 39px);
  display: grid;
  place-items: center;
  padding: 54px 34px;
}

.scheduler-card {
  width: min(1380px, 100%);
  min-height: 720px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.meeting-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 40px 36px;
  background:
    linear-gradient(155deg, rgba(217, 242, 101, 0.08), transparent 40%),
    var(--green-dark);
  color: white;
}
.brand-row { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.66); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--lime); color: var(--green-dark); font-size: 17px; font-weight: 950; letter-spacing: -.06em; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.host-label { margin: 62px 0 14px; color: rgba(255,255,255,.62); font-size: 14px; }
.host-label strong { color: white; }
.meeting-panel h1 { margin: 0; font-family: Georgia, serif; font-size: 52px; line-height: .96; letter-spacing: -.045em; font-weight: 500; }
.meeting-copy { margin: 25px 0 34px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.65; }
.meeting-facts { margin: 0; border-top: 1px solid rgba(255,255,255,.14); }
.meeting-facts div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.meeting-facts dt { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.58); font-size: 12px; font-weight: 700; }
.meeting-facts dt svg { width: 17px; height: 17px; color: var(--lime); }
.meeting-facts dd { margin: 0 0 0 26px; color: white; font-size: 15px; font-weight: 750; }
.meeting-note { display: flex; align-items: center; gap: 9px; margin-top: 34px; color: rgba(255,255,255,.56); font-size: 11px; line-height: 1.4; }
.live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(217,242,101,.1); }

.booking-workspace { min-width: 0; background: var(--card); }
.access-gate { max-width: 520px; margin: 0 auto; padding: 105px 46px 60px; text-align: center; }
.access-gate h2 { margin: 0; font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.access-gate > p:not(.eyebrow) { margin: 18px auto 28px; color: var(--muted); line-height: 1.6; }
.access-gate form { display: grid; gap: 16px; text-align: left; }
.access-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-size: 28px; font-weight: 900; }
.fatal-error { margin: 0 42px; }
.workspace-header { min-height: 148px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 42px; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.workspace-header h2, .details-panel h2, .confirmation h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; line-height: 1.08; letter-spacing: -.035em; font-weight: 500; }
.progress { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.progress li { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 48px; color: #a1aaa4; }
.progress li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 39px; width: 26px; height: 1px; background: var(--line); }
.progress span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #edf0eb; font-size: 11px; font-weight: 900; }
.progress small { font-size: 10px; font-weight: 750; }
.progress li.active { color: var(--green); }
.progress li.active span { background: var(--green); color: white; }

.schedule-grid { min-height: 572px; display: grid; grid-template-columns: minmax(440px, 1fr) 310px; border-top: 1px solid var(--line); }
.calendar-panel { padding: 32px 42px 30px; }
.month-nav { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; margin-bottom: 28px; }
.month-nav h3 { margin: 0; text-align: center; font-size: 17px; font-weight: 850; text-transform: capitalize; }
.month-nav button, .back-link { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--green); cursor: pointer; }
.month-nav button { width: 42px; height: 42px; border-radius: 12px; }
.month-nav button:hover:not(:disabled), .month-nav button:focus-visible { background: var(--green-soft); }
.month-nav button:disabled { opacity: .25; cursor: default; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.weekdays { margin-bottom: 8px; }
.weekdays span { padding: 8px 0; text-align: center; color: #8a948e; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.calendar-day { position: relative; width: 100%; aspect-ratio: 1; min-height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #a4aaa6; font-size: 14px; font-weight: 650; cursor: default; }
.calendar-day.available { background: var(--green-soft); color: var(--green); cursor: pointer; font-weight: 850; }
.calendar-day.available::after { content: ""; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.calendar-day.available:hover, .calendar-day.available:focus-visible { background: #dcece2; outline: none; }
.calendar-day.selected { background: var(--green); color: white; box-shadow: 0 8px 20px rgba(21,92,69,.2); }
.calendar-day.selected::after { background: var(--lime); }
.calendar-day.today:not(.selected) { box-shadow: inset 0 0 0 1px var(--green); }
.calendar-day.blank { visibility: hidden; }
.calendar-skeleton { grid-column: 1 / -1; min-height: 290px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.calendar-legend { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.calendar-legend > span { display: flex; align-items: center; gap: 8px; }
.calendar-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--green-soft); box-shadow: inset 0 0 0 3px var(--green); }
.calendar-legend svg { width: 16px; height: 16px; color: var(--green); }

.times-panel { padding: 34px 30px; border-left: 1px solid var(--line); background: #fbfbf7; }
.times-kicker { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.times-panel h3 { min-height: 48px; margin: 0 0 24px; font-family: Georgia, serif; font-size: 21px; line-height: 1.25; font-weight: 500; text-transform: capitalize; }
.slots { display: grid; gap: 10px; }
.slots button { width: 100%; min-height: 54px; border: 1px solid var(--green); border-radius: 12px; background: white; color: var(--green); font-weight: 850; cursor: pointer; transition: .16s ease; }
.slots button:hover, .slots button:focus-visible { transform: translateY(-1px); background: var(--green); color: white; box-shadow: 0 8px 20px rgba(21,92,69,.14); outline: none; }
.slots-placeholder, .muted { padding: 20px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.slot-loading { height: 54px; border-radius: 12px; background: linear-gradient(90deg, #edf0eb, #f7f8f4, #edf0eb); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.details-panel, .confirmation { max-width: 690px; margin: 0 auto; padding: 52px 46px 60px; }
.back-link { gap: 4px; margin: -8px 0 36px -9px; padding: 8px; font-size: 13px; font-weight: 800; }
.back-link svg { width: 18px; height: 18px; }
.details-panel .eyebrow, .confirmation .eyebrow { margin-bottom: 8px; }
.selected-time { margin: 24px 0 28px; padding: 16px 18px; border-left: 4px solid var(--lime); border-radius: 4px 12px 12px 4px; background: var(--green-soft); color: var(--green); font-weight: 850; text-transform: capitalize; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 12px; font-weight: 850; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); outline: none; }
.field textarea { min-height: 108px; padding-top: 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,92,69,.12); }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.4; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 24px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent strong { color: var(--ink); }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--green); }
.primary { width: 100%; min-height: 54px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--green); color: white; font-weight: 850; cursor: pointer; }
.primary:hover { background: #0f4936; }
.primary:disabled { opacity: .55; cursor: wait; }
.error { color: var(--danger); font-size: 13px; line-height: 1.5; }

.confirmation { text-align: center; padding-top: 84px; }
.check { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-size: 34px; font-weight: 950; box-shadow: 0 14px 30px rgba(21,92,69,.12); }
.confirmation-time { margin: 24px 0 8px; color: var(--green); font-size: 18px; font-weight: 850; text-transform: capitalize; }
.confirmation-copy { margin: 0 auto; max-width: 450px; color: var(--muted); line-height: 1.6; }
.confirmation-details { max-width: 450px; margin: 18px auto 0; padding: 14px 16px; border-radius: 12px; background: var(--green-soft); text-align: left; }
.confirmation-details p { margin: 0; color: var(--green-dark); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.confirmation-details p + p { margin-top: 6px; }
.link-button { display: flex; align-items: center; justify-content: center; max-width: 320px; margin: 28px auto 18px; text-decoration: none; }
.booking-id { color: #99a19c; font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; }

@media (max-width: 1100px) {
  .scheduler-card { grid-template-columns: 300px minmax(0, 1fr); }
  .meeting-panel { padding: 38px 30px 32px; }
  .meeting-panel h1 { font-size: 46px; }
  .schedule-grid { grid-template-columns: 1fr; }
  .times-panel { border-top: 1px solid var(--line); border-left: 0; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .times-panel h3 { min-height: auto; }
}

@media (max-width: 780px) {
  .page-shell { padding: 22px 14px 40px; }
  .scheduler-card { grid-template-columns: 1fr; border-radius: 22px; }
  .meeting-panel { min-height: auto; }
  .host-label { margin-top: 36px; }
  .meeting-panel h1 { font-size: 44px; }
  .meeting-copy { max-width: 520px; }
  .meeting-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .meeting-facts div { padding: 15px 12px 15px 0; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 0; }
  .meeting-facts div:last-child { border-right: 0; }
  .meeting-facts dd { margin-left: 0; font-size: 13px; }
  .meeting-note { display: none; }
  .workspace-header { min-height: 125px; padding: 26px 24px; }
  .workspace-header h2 { font-size: 29px; }
  .progress small { display: none; }
  .progress li { min-width: 34px; }
  .progress li:not(:last-child)::after { left: 31px; width: 19px; }
  .calendar-panel { padding: 28px 24px 24px; }
  .times-panel { padding: 26px 24px 32px; }
  .details-panel, .confirmation { padding: 40px 24px 50px; }
  .access-gate { padding: 62px 24px 50px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .test-banner span { display: table; margin: 0 auto 4px; }
  .page-shell { padding: 12px 8px 30px; }
  .scheduler-card { border-radius: 17px; }
  .meeting-panel { padding: 28px 22px; }
  .brand-row { font-size: 10px; }
  .mark { width: 40px; height: 40px; }
  .host-label { margin-top: 28px; }
  .meeting-panel h1 { font-size: 39px; }
  .meeting-copy { margin: 18px 0 24px; font-size: 14px; }
  .meeting-facts { grid-template-columns: 1fr; }
  .meeting-facts div { grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .meeting-facts dd { text-align: right; }
  .workspace-header { align-items: flex-start; }
  .progress { gap: 2px; }
  .calendar-panel { padding: 24px 16px 20px; }
  .month-nav { margin-bottom: 14px; }
  .weekdays, .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 40px; font-size: 13px; }
  .calendar-day.available::after { bottom: 5px; }
  .calendar-legend { align-items: flex-start; flex-direction: column; gap: 10px; }
  .slots { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
