:root {
  color-scheme: light;
  --bg: #eef3f4;
  --card: #ffffff;
  --text: #182426;
  --muted: #718083;
  --accent: #1f6f78;
  --accent-soft: #dcebed;
  --accent-contrast: #ffffff;
  --border: #dce5e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 320px);
  color: var(--text);
}
.shell {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(33,67,72,.08);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 14px;
}
.hero { padding: 26px 24px; }
.brand {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 12px;
}
h1 { margin: 16px 0 6px; font-size: clamp(28px, 7vw, 42px); line-height: 1.04; }
h2 { margin: 0 0 12px; font-size: 19px; }
p { line-height: 1.5; }
.hint, .muted, footer { color: var(--muted); }
.row { display: flex; gap: 10px; }
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  background: var(--card);
  color: var(--text);
  outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 96px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  background: var(--card);
  color: var(--text);
  outline: none;
}
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button.primary { color: var(--accent-contrast); background: var(--accent); }
button.secondary { color: var(--accent); background: var(--accent-soft); }
button.successAction { background: #18794e; }
button.dangerAction { color: #a43131; background: #fbe8e8; }
button:disabled { opacity: .45; cursor: not-allowed; }
.hidden { display: none !important; }
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.stepNo {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}
.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  text-align: left;
}
.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.choice small { display: block; color: var(--muted); margin-top: 3px; }
.staff-card {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  padding: 10px 13px;
}
.staff-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 48px;
  object-fit: cover;
  background: var(--accent-soft);
}
.staff-photo-fallback {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--accent);
}
.staff-copy { min-width: 0; }
.staff-copy strong,
.staff-copy small {
  overflow-wrap: anywhere;
}
.step > div:last-child {
  min-width: 0;
}
.bookingCalendar {
  width: 100%;
  max-width: 420px;
}
.calendarHeader {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.calendarTitle {
  min-width: 0;
  text-align: center;
  font-weight: 800;
  text-transform: capitalize;
}
.calendarNav {
  width: 40px;
  height: 40px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
.calendarNav:disabled {
  opacity: .35;
  cursor: default;
}
.calendarWeekdays,
.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendarWeekdays {
  margin-bottom: 6px;
}
.calendarWeekday {
  min-width: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.calendarDay {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  aspect-ratio: 1 / 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 750;
  line-height: 1;
}
.calendarDay.workday {
  background: var(--bg);
}
.calendarDay.today {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.calendarDay.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}
.calendarDay.outside {
  opacity: .30;
}
.calendarDay:disabled {
  cursor: default;
  color: var(--muted);
  background: transparent;
  opacity: .45;
}
.calendarDay.workday:not(:disabled)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
  opacity: .75;
}
.calendarMonthHint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 520px) {
  .bookingCalendar {
    max-width: none;
  }
  .calendarHeader {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
    margin-bottom: 8px;
  }
  .calendarNav {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 22px;
  }
  .calendarWeekdays,
  .calendarGrid {
    gap: 4px;
  }
  .calendarWeekday {
    font-size: 11px;
  }
  .calendarDay {
    min-height: 36px;
    border-radius: 9px;
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .calendarWeekdays,
  .calendarGrid {
    gap: 3px;
  }
  .calendarDay {
    min-height: 34px;
    border-radius: 8px;
    font-size: 12px;
  }
}
.form { display: grid; gap: 8px; }
.form h2 { margin-bottom: 4px; }
#message.success { border-color: #b8d9c6; background: #f5fff9; }
#message.error { border-color: #e5bbbb; background: #fff7f7; }
.confirmation h2 { margin-top: 14px; }
.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 850;
}
.status.pending { color: #765713; background: #fff3cd; }
.status.confirmed { color: #11623e; background: #dff5e9; }
.status.cancelled,
.status.expired,
.status.closed { color: #8b2c2c; background: #fae2e2; }
.appointmentDetails {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.appointmentDetails div {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.appointmentDetails dt { color: var(--muted); }
.appointmentDetails dd { margin: 0; font-weight: 750; }
.confirmationActions { display: flex; flex-wrap: wrap; gap: 10px; }
.linkBox { margin-top: 24px; display: grid; gap: 8px; }
.linkBox .hint { margin: 0; font-size: 13px; }
footer { text-align: center; padding: 20px 0 0; font-size: 13px; }
footer strong { margin-left: 5px; color: var(--accent); }
@media (max-width: 560px) {
  .shell { width: min(100% - 16px, 760px); padding-top: 12px; }
  .card { border-radius: 18px; padding: 18px; }
  .row { flex-direction: column; }
}

/* v0.34.23 cancellation reason */
.cancelReasonBox {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 111, 120, 0.16);
}
.cancelReasonBox textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 86px;
  margin-top: 7px;
  margin-bottom: 6px;
  padding: 12px;
  border: 1px solid rgba(31, 111, 120, 0.28);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: inherit;
}
.cancelReasonBox .dangerAction {
  width: 100%;
  margin-top: 8px;
}

.serviceCatalog {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.serviceFolder {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.serviceFolderTitle {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.serviceFolderTitle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.serviceFolderChevron {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}
.serviceFolderChoices {
  min-width: 0;
}

@media (max-width: 520px) {
  .serviceCatalog { gap: 12px; }
  .serviceFolderChoices .choice { width: 100%; }
}


.serviceFolderChoices[hidden] {
  display: none !important;
}

.serviceSelectionSummary {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-weight: 700;
}
