:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue: #1674d1;
  --blue-deep: #0e5faa;
  --green: #087f5b;
  --green-dark: #056046;
  --green-soft: #eaf6f1;
  --red: #c92a3a;
  --red-soft: #fff0f2;
  --ink: #17272f;
  --muted: #607078;
  --line: #d8e3df;
  --surface: #ffffff;
  --surface-muted: #f4f8f6;
  --shadow: 0 24px 70px rgba(20, 57, 48, 0.11);
  color: var(--ink);
  background: #f4f8f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 2%, rgba(22, 116, 209, 0.09), transparent 28rem),
    radial-gradient(circle at 92% 15%, rgba(8, 127, 91, 0.10), transparent 30rem),
    linear-gradient(180deg, #fbfdfc 0%, #f2f7f5 100%);
}

body::before {
  position: fixed;
  z-index: -1;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(8, 127, 91, 0.10);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(8, 127, 91, 0.025),
    0 0 0 90px rgba(22, 116, 209, 0.018);
  content: "";
}

a {
  color: var(--blue-deep);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--green-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(22, 116, 209, 0.34);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--blue) 0 38%, var(--green) 38% 100%);
}

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 24px;
}

.clinic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
  padding: 0 8px;
}

.clinic-brand {
  display: inline-flex;
  flex: 0 1 320px;
}

.clinic-brand img {
  display: block;
  width: min(100%, 310px);
  max-height: 94px;
  object-fit: contain;
  object-position: left center;
}

.clinic-contact {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px 12px;
  max-width: 530px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.clinic-contact .clinic-name {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.clinic-contact a {
  font-weight: 700;
  white-space: nowrap;
}

.content-card,
.confirm-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 127, 91, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.content-card {
  padding: clamp(26px, 5vw, 58px);
}

.content-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 190px;
  height: 7px;
  border-radius: 0 0 0 8px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
}

.confirm-card {
  padding: clamp(22px, 4vw, 40px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.08rem;
}

p,
li {
  line-height: 1.65;
}

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-intro {
  margin-bottom: 32px;
}

.page-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.booking-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.booking-intro h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.policy-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 36px;
  padding: 20px 22px;
  border: 1px solid rgba(201, 42, 58, 0.18);
  border-radius: 14px;
  background: var(--red-soft);
  color: #7d1d2a;
}

.policy-alert-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.policy-alert strong,
.policy-alert span {
  display: block;
}

.policy-alert strong {
  margin-bottom: 3px;
  font-size: 1.04rem;
}

.policy-alert div > span {
  line-height: 1.5;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.policy-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.policy-number {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.policy-item h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.policy-item p {
  margin-bottom: 0;
  color: #53636a;
  font-size: 0.94rem;
}

.policy-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, #eef7ff, #eaf7f1);
}

.policy-resource h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.text-link {
  flex: none;
  font-weight: 800;
}

.important-notes {
  padding-top: 4px;
}

.important-notes > h2 {
  margin-bottom: 22px;
}

.numbered-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: notes;
  list-style: none;
}

.numbered-list li {
  position: relative;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  counter-increment: notes;
}

.numbered-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  content: counter(notes);
  font-size: 0.82rem;
  font-weight: 850;
}

.fine-print {
  margin: 18px 0 0;
  color: #45545a;
  font-size: 0.9rem;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 38px -58px -58px;
  padding: 28px 58px;
  background: var(--ink);
  color: #fff;
}

.primary-action strong,
.primary-action span {
  display: block;
}

.primary-action div > span {
  margin-top: 3px;
  color: #b9c7cb;
  font-size: 0.9rem;
}

.button,
button.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 19px;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(8, 127, 91, 0.20);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button.secondary {
  border-color: var(--line);
  background: #f5f8f7;
  box-shadow: none;
  color: #345048;
}

.button.secondary:hover {
  border-color: #b9cdc5;
  background: #eaf2ef;
}

.button.compact {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.button-arrow > span:last-child {
  font-size: 1.15em;
  transition: transform 0.16s ease;
}

.button-arrow:hover > span:last-child {
  transform: translateX(3px);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.booking-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 4px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7b898e;
  font-size: 0.78rem;
}

.progress-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #c7d4d0;
  border-radius: 50%;
  background: white;
}

.progress-step.is-active {
  color: var(--ink);
}

.progress-step.is-active > span {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.progress-line {
  height: 1px;
  background: var(--line);
}

.questionnaire-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
}

.question {
  margin: 0 0 22px;
}

.question-copy {
  margin-bottom: 18px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.question-copy > h1 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.question-copy > p:last-child {
  margin-bottom: 0;
}

.question-copy img {
  display: block;
  max-width: min(100%, 760px);
  height: auto;
  margin: 22px auto;
  border-radius: 12px;
}

.visit-intro {
  color: var(--muted);
}

.visit-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.visit-type-grid article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.visit-type-grid p {
  margin: 8px 0 0;
  color: #526269;
  font-size: 0.86rem;
  line-height: 1.55;
}

.visit-label {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-note {
  margin: 18px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #edf6ff;
  color: #244b6c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.choice {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 13px;
  margin: 10px 0;
  padding: 13px 15px;
  border: 1px solid #cbd9d4;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.choice:hover {
  border-color: #83b9a7;
  box-shadow: 0 6px 18px rgba(24, 74, 61, 0.07);
  transform: translateY(-1px);
}

.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-mark,
.tick-box {
  display: inline-grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid #81938c;
  border-radius: 6px;
  color: transparent;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.choice-input:checked + .choice-mark,
.tick-choice input:checked + .tick-box {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.choice-input:focus-visible + .choice-mark,
.tick-choice input:focus-visible + .tick-box {
  outline: 3px solid rgba(22, 116, 209, 0.25);
  outline-offset: 3px;
}

.choice:has(.choice-input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.08);
}

.choice-label {
  min-width: 0;
  color: var(--ink);
}

.doctor-choice {
  min-height: 82px;
}

.doctor-choice-photo {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border: 2px solid white;
  border-radius: 14px;
  background: linear-gradient(145deg, #edf8f4, #eef5fb);
  box-shadow: 0 4px 12px rgba(24, 74, 61, 0.12);
  object-fit: cover;
  object-position: center top;
}

.patient-identity-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 18px;
  margin-top: 16px;
}

.patient-identity-fields--name {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.patient-identity-fields label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

.patient-verification-option {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.patient-verification-option h3 {
  margin: 0;
  font-size: 1.05rem;
}

.patient-verification-option h3 span {
  margin-right: 8px;
  color: var(--green-dark);
}

.verification-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 -6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.verification-divider::before,
.verification-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.identity-help {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.identity-form-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.patient-lookup-result {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #9fcfbe;
  border-radius: 15px;
  background: linear-gradient(135deg, #edf8f3, #f8fcfa);
}

.patient-lookup-result h3 {
  margin-top: 0;
  color: var(--green-dark);
}

.patient-lookup-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
}

.patient-lookup-result dl div {
  padding: 12px 14px;
  border: 1px solid #cfe2db;
  border-radius: 10px;
  background: white;
}

.patient-lookup-result dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.patient-lookup-result dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.patient-record-warning {
  margin: 18px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--red);
  border-radius: 7px;
  background: var(--red-soft);
}

.identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verified-patient-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.verified-patient-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.booking-form input[readonly] {
  border-color: #a9cec1;
  background: #eef7f3;
  color: #174c3d;
  cursor: not-allowed;
}

.family-doctor-choice--yes .choice-label strong {
  color: var(--green);
}

.family-doctor-choice--no .choice-label strong {
  color: var(--red);
}

.family-doctor-choice--no:hover {
  border-color: #dc8792;
}

.family-doctor-choice--no .choice-input:checked + .choice-mark {
  border-color: var(--red);
  background: var(--red);
}

.family-doctor-choice--no:has(.choice-input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 0 3px rgba(201, 42, 58, 0.08);
}

.form-control,
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b8c9c2;
  border-radius: 9px;
  padding: 11px 13px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #8da79d;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(22, 116, 209, 0.11);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.inline-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--red-soft);
  color: #891e2d;
  font-weight: 700;
}

#availability-panel {
  margin-top: 42px;
  scroll-margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > small {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.45;
  text-align: right;
}

.loading {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f0f7f4;
  color: var(--green-dark);
  font-weight: 750;
  text-align: center;
}

.loading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42%;
  height: 3px;
  background: var(--green);
  content: "";
  animation: loading 1.3s ease-in-out infinite alternate;
}

@keyframes loading {
  to {
    left: 58%;
  }
}

.slot-day {
  margin-top: 26px;
}

.slot-day h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.slot-day h3 time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.slot-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #cad9d3;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.slot-button time {
  color: var(--green-dark);
  font-weight: 850;
  white-space: nowrap;
}

.slot-button > span:not(.slot-arrow) {
  overflow: hidden;
  color: #4f6067;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-arrow {
  color: var(--blue);
  font-weight: 850;
}

.slot-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.notice {
  padding: 15px 17px;
  border-radius: 10px;
  background: #eef5f2;
  line-height: 1.55;
}

.notice.success {
  border-left: 5px solid var(--green);
}

.retained-patient-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.session-clear-form {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
}

.notice.error {
  border-left: 5px solid var(--red);
  background: var(--red-soft);
}

.validation-summary {
  margin: 0 0 26px;
}

.validation-summary ul {
  margin: 9px 0 0;
  padding-left: 22px;
}

.confirm-heading {
  align-items: center;
}

.selection-badge {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 850;
}

.appointment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.appointment-summary > div {
  min-width: 0;
  padding: 15px 17px;
  background: var(--surface-muted);
}

.appointment-summary dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.appointment-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.42;
}

.form-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}

.form-section-heading h3 {
  margin-bottom: 0;
  color: var(--ink);
}

.form-section-heading span {
  color: var(--muted);
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 16px;
}

.booking-form label,
.booking-form fieldset {
  display: block;
  margin: 15px 0;
}

.booking-form label > span:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.booking-form small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.booking-form .pharmacy-choice {
  margin-top: 26px;
  padding: 19px 21px 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
}

.pharmacy-choice legend {
  max-width: calc(100% - 20px);
  padding: 0 7px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.4;
}

.pharmacy-explanation {
  margin: 2px 0 13px;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.6;
}

.pharmacy-explanation a {
  color: var(--blue-deep);
  font-style: italic;
  font-weight: 850;
}

.pharmacy-explanation em {
  color: var(--green-dark);
  font-weight: 800;
}

.pharmacy-options {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.booking-form fieldset .tick-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.tick-choice input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}

.pharmacy-fax-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  align-items: end;
  gap: 18px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.booking-form fieldset .pharmacy-fax-copy {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.booking-submit {
  display: flex !important;
  width: 100%;
  min-height: 52px !important;
  margin-top: 22px;
  font-size: 0.96rem;
}

.form-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
}

.booking-form.is-submitting {
  opacity: 0.72;
  pointer-events: none;
}

.message-panel,
.action-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.message-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
}

.message-panel.is-error .message-icon {
  background: var(--red-soft);
  color: var(--red);
}

.message-panel h1,
.action-panel h1 {
  margin-right: auto;
  margin-left: auto;
}

.message-panel .notice {
  margin-top: 22px;
  text-align: left;
}

.message-panel .confirmation-highlight {
  color: var(--red);
}

.message-actions {
  justify-content: center;
  margin-top: 26px;
}

@media (max-width: 680px) {
  .retained-patient-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .retained-patient-notice .session-clear-form,
  .retained-patient-notice .button {
    width: 100%;
  }

  .doctor-choice {
    min-height: 70px;
  }

  .doctor-choice-photo {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
}

.appointment-date {
  display: grid;
  gap: 6px;
  margin: 25px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.appointment-date span {
  color: var(--muted);
  font-size: 0.86rem;
}

.action-prompt {
  font-size: 1.05rem;
}

.action-panel .toolbar {
  justify-content: center;
  margin-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px 0;
  color: #6b7a80;
  font-size: 0.78rem;
}

.site-footer a {
  font-weight: 700;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 28px, 760px);
  }

  .clinic-header {
    gap: 20px;
  }

  .clinic-brand {
    flex-basis: 255px;
  }

  .clinic-contact {
    display: block;
    font-size: 0.82rem;
    text-align: right;
  }

  .clinic-contact > * {
    display: block;
    margin: 2px 0;
  }

  .policy-item {
    padding: 22px;
  }

  .primary-action {
    margin: 34px -40px -40px;
    padding: 25px 40px;
  }

  .content-card {
    padding: 40px;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }

  .visit-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .patient-identity-fields,
  .patient-lookup-result dl {
    grid-template-columns: 1fr;
  }

  body::before {
    display: none;
  }

  .site-accent {
    height: 4px;
  }

  .page-shell {
    width: min(100% - 20px, 600px);
    padding-top: 18px;
  }

  .clinic-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    padding: 0 5px;
  }

  .clinic-brand {
    flex-basis: auto;
    width: 245px;
  }

  .clinic-contact {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
    text-align: left;
  }

  .clinic-contact .clinic-name {
    display: none;
  }

  .clinic-contact > span:not(.clinic-name) {
    min-width: 0;
  }

  .content-card {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .confirm-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .page-intro {
    margin-bottom: 24px;
  }

  .page-intro p {
    font-size: 0.96rem;
  }

  .booking-intro {
    display: block;
  }

  .booking-intro .toolbar {
    margin-top: 20px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-item {
    grid-template-columns: 34px 1fr;
    padding: 20px 16px;
  }

  .policy-resource,
  .primary-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-resource {
    padding: 20px;
  }

  .numbered-list li {
    padding: 16px 16px 16px 52px;
  }

  .numbered-list li::before {
    top: 16px;
    left: 14px;
  }

  .primary-action {
    margin: 30px -20px -26px;
    padding: 25px 20px;
  }

  .primary-action .button {
    width: 100%;
  }

  .booking-progress {
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 7px;
  }

  .progress-step {
    display: block;
  }

  .progress-step > span {
    margin: 0 auto;
  }

  .progress-step strong {
    display: none;
  }

  .questionnaire-card {
    padding: 20px 14px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > small {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .slot-button {
    grid-template-columns: auto 1fr auto;
    padding: 13px 11px;
  }

  .appointment-summary,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pharmacy-fax-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .clinic-contact {
    grid-template-columns: 1fr;
  }

  .clinic-contact a {
    margin-top: 2px;
  }

  .toolbar .button {
    flex: 1;
  }

  .slot-button > span:not(.slot-arrow) {
    white-space: normal;
  }
}

/* Dermatology section */
.derm-site {
  --derm-plum: #72506f;
  --derm-rose: #b76e79;
  --derm-blush: #fbf3f4;
  background:
    radial-gradient(circle at 8% 3%, rgba(22, 116, 209, 0.08), transparent 27rem),
    radial-gradient(circle at 92% 12%, rgba(183, 110, 121, 0.14), transparent 31rem),
    linear-gradient(180deg, #fffdfd 0%, #f5f8f7 100%);
}

.derm-site .site-accent {
  background: linear-gradient(90deg, var(--blue) 0 34%, var(--green) 34% 70%, var(--derm-rose) 70% 100%);
}

.derm-site .content-card::before {
  background: linear-gradient(90deg, var(--blue), var(--green), var(--derm-rose));
}

.derm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(38px, 6vw, 66px);
  border-bottom: 1px solid var(--line);
}

.derm-hero > div > p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 28px;
}

.derm-policy-card {
  padding: 26px;
  border: 1px solid rgba(183, 110, 121, 0.25);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--derm-blush));
  box-shadow: 0 18px 48px rgba(74, 46, 64, 0.09);
}

.derm-policy-card h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.derm-policy-card p {
  margin-bottom: 12px;
  color: #594f57;
  font-size: 0.94rem;
}

.derm-policy-card p:last-child {
  margin-bottom: 0;
}

.derm-services,
.derm-doctors {
  padding-top: clamp(42px, 6vw, 70px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(155deg, #fff, #f8fbfa);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 133, 96, 0.45);
  box-shadow: 0 16px 38px rgba(20, 61, 53, 0.11);
}

.service-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.service-category {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-detail-page .back-link {
  display: inline-flex;
  margin-bottom: 28px;
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.service-detail-summary {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-detail-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 61, 53, 0.14);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  margin-top: clamp(48px, 7vw, 82px);
}

.service-detail-content,
.service-facts {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.service-detail-content p:last-child,
.service-facts li:last-child {
  margin-bottom: 0;
}

.service-facts {
  background: linear-gradient(145deg, var(--green-soft), #f7fbff);
}

.service-facts ul {
  margin: 18px 0 0;
  padding-left: 21px;
}

.service-facts li {
  margin-bottom: 12px;
}

.service-doctors {
  padding-top: clamp(48px, 7vw, 82px);
}

.service-detail-cta {
  margin-top: clamp(48px, 7vw, 82px);
}

.doctor-grid {
  display: grid;
  gap: 16px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.doctor-card:hover,
.doctor-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 133, 96, 0.45);
  box-shadow: 0 16px 38px rgba(20, 61, 53, 0.1);
}

.doctor-photo {
  width: 112px;
  height: 124px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 16px;
  background: linear-gradient(145deg, #f3faf7, #eef6ff);
}

.doctor-card h3 {
  margin-bottom: 3px;
  font-size: 1.18rem;
}

.doctor-credentials {
  margin-bottom: 8px;
  color: var(--derm-plum);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doctor-card div > p:last-child {
  margin: 0;
  color: var(--muted);
}

.doctor-profile-link {
  display: inline-block;
  margin-top: 13px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.doctor-profile-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  padding: 22px 0 clamp(42px, 6vw, 68px);
  border-bottom: 1px solid var(--line);
}

.doctor-profile-photo-wrap {
  display: grid;
  min-height: 390px;
  place-items: end center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #edf8f4, #eef6ff 72%, #fbf0f2);
}

.doctor-profile-photo {
  display: block;
  width: min(100%, 390px);
  max-height: 420px;
  object-fit: contain;
  object-position: center bottom;
}

.doctor-profile-hero .doctor-credentials {
  margin-bottom: 18px;
}

.profile-summary {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-breadcrumb a {
  color: var(--green);
}

.doctor-profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(42px, 6vw, 68px);
}

.doctor-profile-content p {
  color: var(--muted);
}

.profile-services {
  align-self: start;
  padding: 26px;
  border-radius: 18px;
  background: #f2f8f6;
}

.profile-services h2 {
  font-size: 1.3rem;
}

.profile-services h3 {
  margin-top: 24px;
  font-size: 1rem;
}

.profile-services ul {
  margin: 0;
  padding-left: 1.2rem;
}

.profile-services li {
  margin-bottom: 8px;
}

.profile-limitations {
  color: var(--muted);
}

.embedded-doctor-profile {
  margin: 24px 0 30px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.embedded-doctor-profile .doctor-profile-hero {
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(24px, 4vw, 46px);
  padding: 0 0 30px;
}

.embedded-doctor-profile .doctor-profile-photo-wrap {
  min-height: 255px;
  border-radius: 18px;
}

.embedded-doctor-profile .doctor-profile-photo {
  max-height: 275px;
}

.embedded-doctor-profile .doctor-profile-content {
  gap: clamp(24px, 4vw, 44px);
  padding-top: 30px;
}

.embedded-doctor-profile .profile-services {
  padding: 22px;
}

.appointment-picker {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.appointment-picker h3,
.appointment-picker p {
  margin: 0;
}

.appointment-picker p {
  color: var(--muted);
}

.appointment-picker .form-control {
  margin-top: 6px;
  background: #fff;
}

.referral-doctor-warning,
.service-fee-warning {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: var(--red-soft);
  color: #9d182c;
  font-weight: 800;
  line-height: 1.55;
}

.service-information-visual {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 20px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.service-information-visual img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.service-information-visual figcaption {
  color: var(--muted);
  line-height: 1.5;
}

.health-card-guide {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.health-card-guide img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.health-card-guide figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.new-patient-message {
  max-width: 760px;
  padding: clamp(8px, 2vw, 18px);
}

.new-patient-message h1 {
  margin-bottom: 18px;
}

.new-patient-message .button {
  margin: 12px 0 22px;
}

.waitlist-alternatives {
  color: var(--muted);
  font-size: 0.92rem;
}

.waitlist-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.waitlist-intro > div {
  max-width: 720px;
}

.waitlist-notice {
  display: flex;
  gap: 16px;
  margin: 8px 0 28px;
  padding: 17px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 8px 14px 14px 8px;
  background: #eef7ff;
}

.waitlist-notice strong {
  flex: none;
}

.waitlist-form {
  max-width: 850px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f6faf8;
}

.waitlist-form .full-width {
  grid-column: 1 / -1;
}

.health-status-choice {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.health-status-choice legend {
  padding: 0 8px;
  font-weight: 800;
}

.health-status-choice > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

.waitlist-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.waitlist-page .tick-choice {
  display: inline-flex;
  gap: 10px;
}

.waitlist-consent {
  display: flex;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 0;
  line-height: 1.5;
}

.condition-details {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.condition-details[hidden] {
  display: none;
}

.condition-details textarea {
  min-height: 110px;
  resize: vertical;
}

.condition-details small {
  color: var(--muted);
}

.waitlist-submit-row {
  display: block;
  margin-top: 24px;
}

.waitlist-success {
  max-width: 780px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #a9d7c7;
  border-left: 6px solid var(--green);
  background:
    linear-gradient(135deg, #e5f5ee 0%, #f2faf6 58%, #eaf7f2 100%);
  color: #175f4b;
  box-shadow: 0 16px 34px rgba(8, 127, 91, 0.10);
}

.waitlist-success h2 {
  color: var(--green-dark);
}

.waitlist-success p {
  color: #245f50;
}

.waitlist-success strong {
  color: var(--green-dark);
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.derm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(42px, 6vw, 70px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 18px;
  background: linear-gradient(120deg, #edf7f3, #eef6ff 58%, #fbf0f2);
}

.derm-cta h2 {
  margin: 0;
}

.specialist-fee-note {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  margin: -8px 0 28px;
  padding: 15px 18px;
  border-left: 4px solid var(--derm-rose);
  border-radius: 8px 12px 12px 8px;
  background: var(--derm-blush);
  color: #66404b;
}

.specialist-fee-note strong {
  flex: none;
}

.family-fee-note {
  display: block;
  border: 1px solid rgba(201, 42, 58, 0.28);
  border-left: 6px solid var(--red);
  background: linear-gradient(110deg, var(--red-soft), #fff7f8);
  color: #7d1d2a;
  box-shadow: 0 10px 26px rgba(201, 42, 58, 0.09);
}

.family-fee-note p {
  margin: 0;
  line-height: 1.55;
}

.family-fee-note strong {
  color: var(--red);
}

.compact-fee-note {
  margin: 16px 0;
}

.choice-label small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.referral-guidance {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(22, 116, 209, 0.18);
  border-radius: 14px;
  background: #eef7ff;
}

.referral-guidance h2 {
  font-size: 1.3rem;
}

.referral-guidance p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .derm-hero {
    grid-template-columns: 1fr;
  }

  .service-detail-hero,
  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .doctor-profile-hero,
  .doctor-profile-content {
    grid-template-columns: 1fr;
  }

  .doctor-profile-photo-wrap {
    min-height: 320px;
  }

  .embedded-doctor-profile .doctor-profile-hero,
  .embedded-doctor-profile .doctor-profile-content {
    grid-template-columns: 1fr;
  }

  .embedded-doctor-profile .doctor-profile-photo-wrap {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .doctor-photo {
    width: 82px;
    height: 98px;
    border-radius: 13px;
  }

  .health-card-guide {
    grid-template-columns: 1fr;
  }

  .service-information-visual {
    grid-template-columns: 1fr;
  }

  .embedded-doctor-profile {
    padding: 16px;
  }

  .embedded-doctor-profile .doctor-profile-photo-wrap {
    min-height: 230px;
  }

  .appointment-picker {
    padding: 17px;
  }

  .waitlist-intro,
  .waitlist-notice {
    flex-direction: column;
  }

  .waitlist-form {
    padding: 20px;
  }

  .derm-cta,
  .specialist-fee-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .derm-cta .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
