:root {
  color-scheme: light;
  --bg: #eef3f4;
  --card: #ffffff;
  --text: #182426;
  --muted: #718083;
  --accent: #1f6f78;
  --accent-soft: #dcebed;
  --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, #e6f0f1 0%, var(--bg) 320px);
  color: var(--text);
}
.shell {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.8);
  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: white;
  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: #fff;
  outline: none;
}
input: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: white; 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: #f5f8f8;
  color: var(--text);
  border: 1px solid var(--border);
  text-align: left;
}
.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #114a50;
}
.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;
}
.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; }
}
