:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #1a1730;
  background: #fff;
  font-synthesis: none;
  --booking-accent: #623ce7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--booking-accent);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.shell {
  max-width: 1060px;
  margin: 28px auto;
  border: 1px solid #eceaf3;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 540px;
}
.summary {
  background: #fff;
  padding: 28px;
  border-right: 1px solid #eceaf3;
}
.brand {
  font-size: 13px;
  color: #77718e;
  font-weight: 600;
  margin: 0 0 30px;
}
.mark {
  color: var(--booking-accent);
  font-size: 30px;
  margin-bottom: 24px;
}
.summary h1 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 0 0 16px;
}
.summary p {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meta {
  border-top: 1px solid #e9e5f2;
  margin-top: 25px;
  padding-top: 12px;
  color: #55526b;
}
.content {
  padding: 28px;
  min-width: 0;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 20px;
}
h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.muted {
  color: #77718e;
  font-size: 13px;
  line-height: 1.6;
}
.fields {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dedbe8;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px;
  background: #fff;
  color: #1a1730;
}
.field textarea {
  min-height: 85px;
  resize: vertical;
}
/* Radios and checkboxes keep their native size instead of the text-input
   box (100% width, 42px height) — BUG010. */
.field input[type="checkbox"],
.field input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: var(--booking-accent);
  cursor: pointer;
}
.choices {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: #1a1730;
  line-height: 1.4;
  cursor: pointer;
}
/* Single checkbox (e.g. consent): box first, question beside it. */
.field.check {
  font-weight: 600;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.row > .field {
  flex: 1;
  min-width: 140px;
}
.slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  max-height: 370px;
  overflow: auto;
  padding: 3px;
}
.slot {
  background: #fff;
  border: 1px solid #dcd6f0;
  border-radius: 8px;
  padding: 12px 6px;
  color: #1a1730;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}
.slot:hover {
  border-color: var(--booking-accent);
  background: #f7f4ff;
}
.slot small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #77718e;
}
.primary,
.secondary {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}
.primary {
  background: var(--booking-accent);
  color: white;
}
.secondary {
  border: 1px solid #dedbe8;
  background: #fff;
  color: #55526b;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.meeting-location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 14px;
  margin-top: 20px;
  border-block: 1px solid #eceaf3;
  color: #55526b;
  font-size: 14px;
  line-height: 1.5;
}
.meet-label { display: flex; align-items: center; gap: 8px; }
.meet-label img, .meeting-location img { flex: none; }
.actions button { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.actions button svg { flex-shrink:0; }
.actions .cancel-action { color:#9a2435; border-color:#eed9dd; }
.actions .cancel-action:hover { background:#fff3f4; }
.calendar-help { max-width:58ch; margin-top:14px; font-size:12px; }
.error {
  padding: 12px;
  border: 1px solid #f5b7bb;
  background: #fff3f4;
  color: #9a2435;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
}
.notice {
  padding: 14px;
  background: #f5f2ff;
  border-radius: 9px;
  line-height: 1.6;
  font-size: 14px;
  margin: 16px 0;
}
.success {
  color: var(--booking-accent);
  font-size: 34px;
  margin-bottom: 18px;
}
.loading {
  padding: 30px;
  color: #77718e;
}
.footer {
  font-size: 11px;
  color: #8c89a0;
  text-align: center;
  margin: 18px;
}
.link {
  font-size: 13px;
  color: var(--booking-accent);
  overflow-wrap: anywhere;
}
.policy {
  font-size: 12px;
  color: #77718e;
  line-height: 1.6;
  margin-top: 20px;
}
.full {
  grid-column: 1/-1;
}
.status {
  text-transform: capitalize;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f0ebff;
  color: var(--booking-accent);
  font-size: 12px;
}
.service-option {
  padding: 18px;
  border: 1px solid #dedbe8;
  border-radius: 10px;
  background: white;
  text-align: left;
  margin: 6px;
  display: block;
  width: calc(100% - 12px);
  color: #1a1730;
}
.schedule-layout { display:grid; grid-template-columns:minmax(230px,1fr) 200px; gap:28px; }
.calendar-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:24px; }
.calendar-heading h2 { margin:0; font-size:17px; letter-spacing:-.3px; }
.month-actions { display:flex; gap:4px; }
.month-actions button { padding:0; width:32px; min-height:32px; font-size:24px; border:0; }
.month-actions button:disabled, .calendar-day:disabled { cursor:default; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.weekday { text-align:center; color:#77718e; font-size:11px; padding-bottom:12px; }
.calendar-day { border:0; border-radius:7px; aspect-ratio:1; background:#f5f4f8; color:#1a1730; font-size:13px; font-weight:600; min-width:0; padding:4px; }
.calendar-day:hover:not(:disabled) { background:#ede7ff; }
.calendar-day.selected, .calendar-day.selected:hover { background:var(--booking-accent); color:#fff; }
.calendar-day:disabled { background:transparent; color:#b5b1c1; opacity:1; }
.calendar-day[aria-current="date"] { text-decoration:underline; text-underline-offset:5px; }
.timezone-note { display:flex; align-items:center; gap:6px; color:#77718e; font-size:12px; line-height:1.7; margin:24px 0 0; }
.timezone-note svg { width:14px; height:14px; flex-shrink:0; }
.times-panel { border-left:1px solid #eceaf3; padding-left:22px; }
.times-panel h3 { font-size:14px; line-height:32px; margin-bottom:24px; }
.duration-options { display:flex; gap:5px; margin-top:18px; flex-wrap:wrap; }
.duration-options button { border:1px solid #dedbe8; border-radius:6px; padding:8px 12px; font-size:12px; background:white; color:#55526b; }
.duration-options button[aria-pressed="true"] { color:var(--booking-accent); border-color:var(--booking-accent); background:#f7f4ff; }
@media (max-width: 900px) {
  .shell { grid-template-columns:220px 1fr; }
  .summary,.content { padding:22px; }
  .schedule-layout { grid-template-columns:minmax(205px,1fr) 175px; gap:18px; }
  .slot { font-size:13px; padding:12px 4px; }
  .times-panel { padding-left:16px; }
}
/* Beside the summary column the calendar gets too narrow for a time column
   wide enough for start–end ranges; stack the times under it instead. */
@media (min-width: 721px) and (max-width: 820px) {
  .schedule-layout { grid-template-columns:1fr; gap:24px; }
  .times-panel { padding:22px 0 0; border-left:0; border-top:1px solid #eceaf3; }
  .times-panel h3 { margin-bottom:12px; }
  .slots { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:250px; }
}
@media (max-width: 720px) {
  .shell { margin:0; border:0; border-radius:0; grid-template-columns:1fr; min-height:0; }
  .summary { border-right:0; border-bottom:1px solid #eceaf3; }
  .brand { margin-bottom:12px; }
  .mark { display:none; }
  .summary h1 { font-size:22px; }
  .summary p { margin:7px 0; }
  .meta { margin-top:15px; padding-top:6px; display:flex; gap:15px; flex-wrap:wrap; }
  .content { padding:24px 20px; }
}
@media (max-width: 420px) {
  .schedule-layout { grid-template-columns:1fr; gap:24px; }
  .times-panel { padding:22px 0 0; border-left:0; border-top:1px solid #eceaf3; }
  .times-panel h3 { margin-bottom:12px; }
  .slots { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:250px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior:auto !important; }
}

/* "Choose another time": quiet back link centred under the submit button */
.back-link { display:flex; align-items:center; justify-content:center; gap:6px; margin:14px auto 0; padding:8px 12px; background:none; border:0; border-radius:8px; color:#625c77; font:inherit; font-size:14px; font-weight:500; cursor:pointer; }
.back-link:hover { color:var(--booking-accent); background:#f5f2ff; }
.back-link:focus-visible { outline:2px solid var(--booking-accent); outline-offset:2px; }
.back-link svg { width:16px; height:16px; }
