:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-alt: #eef4f2;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.8);
  --text: #1f2b2a;
  --muted: #556566;
  --primary: #0f6a63;
  --primary-dark: #0a4c47;
  --accent: #dbede8;
  --border: #d2dddb;
  --card-shadow: 0 12px 30px rgba(19, 57, 53, 0.12);
  --card-shadow-hover: 0 16px 28px rgba(17, 62, 56, 0.14);
  --danger: #9d1d20;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 18px 35px rgba(14, 51, 47, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(167, 214, 202, 0.45), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(199, 223, 242, 0.45), transparent 38%),
    var(--bg);
  line-height: 1.55;
  padding-bottom: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  line-height: 1.18;
  margin: 0;
}

p {
  margin: 0 0 0.8rem;
}

a {
  color: var(--primary-dark);
}

.container {
  width: min(1100px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -45px;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.emergency-banner {
  background: #fee6e7;
  color: #4b1013;
  text-align: center;
  padding: 0.65rem 0.8rem;
  font-size: 0.98rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.thank-you-header {
  position: static;
}

.thank-you-home-link {
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-block h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.location {
  color: var(--muted);
  margin: 0.15rem 0 0;
}

.eyebrow {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  font-family: inherit;
}

.language-control {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
  padding: 0.42rem 0.6rem 0.5rem;
  border: 1px solid #bfd3cf;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.language-helper {
  margin: 0;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #406062;
  font-weight: 700;
  line-height: 1.2;
}

.language-control label {
  font-weight: 700;
  font-size: 0.74rem;
  color: #2a4a4a;
}

.language-control select {
  min-width: 152px;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
}

.hero {
  padding: 3.3rem 0 2.7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 1.3rem;
  align-items: stretch;
}

.hero h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  max-width: 18ch;
}

.hero-copy {
  max-width: 52ch;
  color: var(--muted);
  margin-top: 1rem;
}

.notice-card-alert {
  border-color: #d9c2c4 !important;
  background: rgba(255, 241, 242, 0.94) !important;
  box-shadow: 0 12px 28px rgba(90, 24, 36, 0.12) !important;
}

.notice-card-alert::before {
  background: none !important;
}

.notice-card-alert h3,
.notice-card-alert p {
  color: #4f1518;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 1.1rem;
}

.hero-actions .eyebrow {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  background: #fff;
}

.hero-panel {
  align-self: start;
  background:
    linear-gradient(145deg, rgba(232, 244, 240, 0.72), rgba(248, 252, 250, 0.62)),
    var(--surface-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.hero-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.45rem;
  align-items: baseline;
}

.contact-list dt {
  font-weight: 700;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
}

.contact-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.contact-panel-actions .btn {
  padding: 0.58rem 0.92rem;
}

.contact-panel-note {
  margin: 0.7rem 0 0;
  color: #365353;
  font-size: 0.94rem;
  line-height: 1.42;
}

.section {
  padding: 2.7rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(224, 237, 233, 0.7), rgba(246, 248, 247, 0.9));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 1.15rem;
}

#family-doctor-dundas,
#urgent-appointments-dundas,
#after-hours-dundas,
#family-health-team-dundas {
  scroll-margin-top: 132px;
}

.section-notice {
  margin: 0.5rem 0 0;
  color: #4f1518;
  font-weight: 700;
}

.hero-roster-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  padding: 0.42rem 0.78rem;
  border: 1px solid #d9c2c4;
  border-radius: 999px;
  background: rgba(255, 241, 242, 0.94);
  box-shadow: 0 8px 18px rgba(90, 24, 36, 0.1);
  line-height: 1.35;
}

.section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-card-grid {
  margin-bottom: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 249, 0.68)),
    var(--surface-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px) saturate(1.12);
  -webkit-backdrop-filter: blur(8px) saturate(1.12);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.team-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.team-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.team-profile {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.15rem;
  align-items: start;
}

.team-photo-wrap {
  margin: 0;
  width: 100%;
  max-width: 210px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 26px rgba(15, 53, 49, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.team-photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
}

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

.team-meta {
  margin: 0.55rem 0 0.45rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.team-credentials {
  color: #476163;
  font-weight: 600;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.map-frame-wrap {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  min-height: 360px;
  height: 100%;
  background: rgba(232, 244, 240, 0.74);
  backdrop-filter: blur(8px) saturate(1.12);
  -webkit-backdrop-filter: blur(8px) saturate(1.12);
}

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.notice-list {
  padding-left: 1.1rem;
  margin: 0;
}

.service-limits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.4rem;
  row-gap: 0.55rem;
}

.emergency-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.32rem;
}

.emergency-card p {
  margin-bottom: 0.45rem;
}

.emergency-card .emergency-list {
  margin-top: 0.08rem;
  gap: 0.14rem;
}

.emergency-card .emergency-list li {
  line-height: 1.34;
}

.seo-support-copy {
  margin: 1rem 0 0;
  color: #3f5c5e;
  font-weight: 600;
  max-width: 90ch;
}

.hours-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.55rem;
  align-items: start;
}

.hours-status-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 245, 0.74)),
    var(--surface-glass);
  box-shadow: 0 10px 20px rgba(19, 57, 53, 0.08);
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

#hours-heading {
  scroll-margin-top: 132px;
}

.hours-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.hours-status-detail {
  margin: 0;
  color: #274e50;
  font-size: 1.02rem;
  font-weight: 700;
}

.hours-status-guide {
  margin: 0.35rem 0 0;
  color: #3d5d5f;
  font-size: 0.94rem;
  font-weight: 600;
}

.hours-card {
  padding: 1.2rem 1.2rem 1.1rem;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    opacity 220ms ease;
}

.hours-card.is-primary {
  border-color: #8dbfba;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(234, 246, 243, 0.78)),
    var(--surface-glass);
  box-shadow: 0 16px 28px rgba(19, 57, 53, 0.13);
}

.hours-card.is-secondary {
  border-color: #c8d8d5;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(245, 250, 248, 0.64)),
    var(--surface-glass);
  opacity: 0.92;
}

.hours-card.is-secondary:hover,
.hours-card.is-secondary:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(19, 57, 53, 0.1);
  filter: none;
}

.live-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0.35rem 0 0.65rem;
}

.live-state-subtle {
  margin-top: 0.3rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bbd2ce;
  padding: 0.24rem 0.62rem;
  background: rgba(238, 247, 244, 0.95);
  color: #24484a;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

.live-badge.status-open {
  border-color: #7aaea8;
  background: rgba(219, 238, 233, 0.98);
  color: #114844;
}

.live-badge.status-closed {
  border-color: #c8d0cf;
  background: rgba(245, 248, 247, 0.98);
  color: #4d6364;
}

.live-badge.status-active {
  border-color: #8bbcb5;
  background: rgba(226, 241, 237, 0.98);
  color: #1f4f4b;
}

.live-badge.status-standby {
  border-color: #c5d8d4;
  background: rgba(245, 249, 248, 0.98);
  color: #496366;
}

.live-detail {
  margin: 0;
  color: #3a5658;
  font-size: 0.94rem;
  font-weight: 600;
}

.hours-list {
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.5rem;
}

.hours-list dt {
  font-weight: 700;
}

.hours-list dd {
  margin: 0;
  color: #4e5f61;
  font-weight: 600;
}

.hours-list .hours-closed-value {
  color: #4f1518;
  font-weight: 700;
}

.hours-note {
  color: #5d6f70;
  margin-top: 0.75rem;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card h3 {
  margin-bottom: 0.45rem;
}

.afterhours-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.55rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.afterhours-list li {
  line-height: 1.45;
}

.afterhours-list li.afterhours-subitem {
  list-style: none;
  margin-left: 1.25rem;
}

.hours-holiday-card {
  margin-top: 1rem;
}

.holiday-list {
  display: grid;
  gap: 0.35rem;
}

.hours-holiday-toggle {
  margin-top: 0.9rem;
}

.hours-holiday-toggle summary {
  cursor: pointer;
  font-weight: 700;
  color: #214d4f;
}

.hours-holiday-toggle .holiday-list {
  margin-top: 0.6rem;
}

.hours-holiday-toggle p {
  margin: 0.65rem 0 0;
}

.notice-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(246, 251, 249, 0.9), rgba(233, 244, 240, 0.66)),
    var(--surface-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
}

.notice-panel h3 {
  margin-bottom: 0.45rem;
}

.form-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(243, 250, 248, 0.66)),
    var(--surface-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(9px) saturate(1.1);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
}

.location-card .btn {
  min-width: 168px;
}

.location-actions {
  margin: 0.85rem 0 0.65rem;
}

.location-card {
  display: block;
  padding: 1.2rem 1.2rem 0.95rem;
}

.location-main {
  display: grid;
  gap: 0.1rem;
}

.location-address {
  margin-bottom: 0.35rem;
}

.location-link-row {
  margin: 0.1rem 0 0;
}

.parking-note {
  margin-top: 0.45rem;
  color: #405e5f;
}

.parking-list {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.5rem;
}

.location-attribution {
  margin: 0.6rem 0 0;
  color: #6c7b7d;
  font-size: 0.76rem;
  letter-spacing: 0.015em;
  text-align: right;
}

.fee-schedule-action {
  margin-top: 0.9rem;
}

.third-party-unified-card {
  max-width: 900px;
}

.fee-schedule-modal[hidden] {
  display: none !important;
}

.fee-schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 36, 36, 0.58);
}

.fee-schedule-dialog {
  width: min(1020px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 250, 248, 0.8)),
    var(--surface-glass);
  box-shadow: 0 20px 44px rgba(10, 39, 37, 0.32);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

.fee-schedule-dialog-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem 1.1rem 0.8rem;
  border-bottom: 1px solid #c8d9d5;
}

.fee-schedule-dialog-header .eyebrow {
  margin-bottom: 0.2rem;
}

.fee-schedule-dialog-header h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
}

.fee-schedule-close-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #b9d1cc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1e4a48;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.fee-schedule-close-icon:hover,
.fee-schedule-close-icon:focus-visible {
  background: #ffffff;
  border-color: #9dc2bc;
}

.fee-schedule-table-wrap {
  overflow: auto;
  padding: 0 1.1rem 1rem;
}

.fee-schedule-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.fee-schedule-table th,
.fee-schedule-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.58rem 0.45rem;
  border-bottom: 1px solid #d8e4e1;
}

.fee-schedule-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(239, 248, 245, 0.98);
  color: #264f50;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.fee-schedule-table td:last-child {
  width: 32%;
  white-space: nowrap;
  color: #203e40;
  font-weight: 700;
}

.fee-schedule-dialog-footer {
  padding: 0.8rem 1.1rem 1rem;
  border-top: 1px solid #d2dfdc;
  display: flex;
  justify-content: flex-end;
}

body.modal-open {
  overflow: hidden;
}

.info-card::before,
.form-card::before,
.team-card::before,
.notice-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.info-card,
.form-card,
.team-card,
.notice-panel,
.hero-panel,
.map-frame-wrap {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    filter 220ms ease;
}

.info-card:hover,
.form-card:hover,
.team-card:hover,
.notice-panel:hover,
.hero-panel:hover,
.map-frame-wrap:hover,
.info-card:focus-within,
.form-card:focus-within,
.team-card:focus-within,
.notice-panel:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: #b3ceca;
  filter: saturate(1.01);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.booking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.decision-grid .info-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.decision-grid .info-card p {
  margin: 0;
}

.resource-links {
  display: grid;
  gap: 0.45rem;
}

.third-party-fees {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.workshop-disclosure {
  margin-top: 0.55rem;
}

.workshop-disclosure summary {
  cursor: pointer;
  color: #214d4f;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.workshop-list {
  column-count: 2;
  column-gap: 1.25rem;
}

.workshop-list li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.fht-unified-card h3 + p {
  margin-top: 0.15rem;
}

.fht-unified-card h3:not(:first-child) {
  margin-top: 1.15rem;
}

.forms-lead {
  margin: 0 0 1rem;
  max-width: 76ch;
  color: #4f6365;
}

.forms-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #bfd8d4;
  background: rgba(237, 247, 244, 0.95);
  position: sticky;
  top: 78px;
  z-index: 30;
}

.forms-alert[hidden] {
  display: none !important;
}

.forms-alert-text {
  margin: 0;
  color: #24484a;
  font-weight: 700;
}

#forms-alert-action {
  white-space: nowrap;
}

.waitlist-targeted {
  border-color: #84bab3 !important;
  box-shadow: 0 0 0 3px rgba(131, 186, 178, 0.22), var(--card-shadow) !important;
}

.waitlist-pulse {
  animation: waitlist-pulse 1.1s ease;
}

@keyframes waitlist-pulse {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

.intake-disclosure {
  padding: 0.95rem 1rem;
}

.intake-disclosure[open] {
  border-color: #9ec4bf;
  box-shadow: var(--card-shadow-hover);
}

.intake-disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.8rem;
  align-items: center;
  gap: 0.15rem;
}

.intake-disclosure > summary::-webkit-details-marker {
  display: none;
}

.intake-summary-text h3 {
  margin: 0;
}

.intake-summary-text p {
  margin: 0.2rem 0 0;
  color: #556a6c;
  font-size: 0.96rem;
  font-weight: 600;
}

.intake-summary-cta {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: right;
}

.intake-disclosure[open] .intake-summary-cta {
  color: #335557;
}

.intake-body {
  border-top: 1px solid #c9d8d5;
  margin-top: 0.8rem;
  padding-top: 0.9rem;
}

.afterhours-list a[href^="tel:"] {
  white-space: nowrap;
}

.form-card h3 {
  font-size: 1.4rem;
}

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

.waitlist-closed-note p:last-child {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.72rem;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  border: 1px solid #c4d2cf;
  border-radius: 10px;
  padding: 0.64rem 0.7rem;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(17, 99, 92, 0.4);
  border-color: var(--primary);
}

.checkbox-row label {
  font-weight: 500;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.btn-submit {
  margin-top: 1rem;
  width: 100%;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.is-invalid {
  border-color: var(--danger);
  background: #fff5f5;
}

.site-footer {
  background: #173432;
  color: #e2efed;
  padding: 2.2rem 0;
}

.site-footer a {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.footer-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-panel-fht {
  border-left: 1px solid rgba(226, 239, 237, 0.2);
  padding-left: 1.2rem;
}

.footer-grid h2,
.footer-grid h3 {
  color: #fff;
}

.site-credit {
  border-top: 1px solid #2a4a46;
  background: #102826;
  color: #cfe3df;
}

.site-credit-inner {
  display: flex;
  justify-content: center;
  padding: 0.7rem 0;
}

.site-credit p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  font-family: "Funnel Display", "Source Sans 3", "Helvetica Neue", sans-serif;
  letter-spacing: 0.01em;
}

.site-credit a {
  color: #dff3ef;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  font-family: "Funnel Display", "Source Sans 3", "Helvetica Neue", sans-serif;
}

.seo-anchor-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(241, 248, 246, 0.75);
}

.seo-anchor-section .container {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.seo-anchor-section .eyebrow {
  margin-bottom: 0.45rem;
}

.seo-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.seo-anchor-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9d1cd;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  color: #174b48;
  font-weight: 600;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 700ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

.delay-0 {
  --delay: 0ms;
}

.delay-120 {
  --delay: 120ms;
}

.delay-180 {
  --delay: 180ms;
}

.delay-240 {
  --delay: 240ms;
}

.delay-300 {
  --delay: 300ms;
}

.center-card {
  max-width: 680px;
  margin: 2rem auto;
}

.thank-you-next {
  margin: 1rem 0;
  padding-top: 0.4rem;
}

.thank-you-next h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.after-hours-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.62rem 1rem calc(0.62rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #9fbfbc;
  background: rgba(15, 74, 69, 0.96);
  color: #ecf8f6;
}

.after-hours-strip p {
  margin: 0;
  font-weight: 700;
}

.after-hours-strip a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .form-grid,
  .card-grid,
  .two-column,
  .hours-layout,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .team-profile {
    grid-template-columns: 1fr;
  }

  .team-photo-wrap {
    max-width: 260px;
    margin-inline: auto;
  }

  .contact-panel-actions .btn {
    flex: 1 1 150px;
  }

  .location-attribution {
    text-align: left;
  }

  .workshop-list {
    column-count: 1;
  }

  .service-limits-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .fee-schedule-modal {
    padding: 0.6rem;
  }

  .fee-schedule-dialog {
    max-height: 92vh;
    border-radius: 14px;
  }

  .fee-schedule-dialog-header {
    padding: 0.85rem 0.9rem 0.72rem;
  }

  .fee-schedule-table-wrap {
    padding: 0 0.9rem 0.82rem;
  }

  .fee-schedule-table {
    min-width: 560px;
    font-size: 0.92rem;
  }

  .fee-schedule-dialog-footer {
    padding: 0.7rem 0.9rem 0.85rem;
  }

  #family-doctor-dundas,
  #urgent-appointments-dundas,
  #after-hours-dundas,
  #family-health-team-dundas {
    scroll-margin-top: 92px;
  }

  .footer-panel-fht {
    border-left: 0;
    border-top: 1px solid rgba(226, 239, 237, 0.2);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 114px;
  }

  .site-header:not(.thank-you-header) .header-row {
    position: relative;
    display: block;
    padding: 0.58rem 0 0.42rem;
    min-height: 84px;
  }

  .site-header:not(.thank-you-header) .brand-block {
    padding-right: 8.9rem;
  }

  .site-header:not(.thank-you-header) .brand-block .eyebrow {
    margin-bottom: 0.2rem;
  }

  .site-header:not(.thank-you-header) .brand-block h1 {
    line-height: 1.06;
    margin-bottom: 0.1rem;
  }

  .site-header:not(.thank-you-header) .language-control {
    position: absolute;
    top: 50%;
    right: 2.72rem;
    transform: translateY(-50%);
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0;
  }

  .site-header:not(.thank-you-header) .language-control label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-header:not(.thank-you-header) .language-control select {
    min-width: 0;
    width: auto;
    max-width: 108px;
    padding: 0.15rem 1.4rem 0.15rem 0.45rem;
    font-size: 0.9rem;
    line-height: 1.15;
    border-radius: 999px;
    border-color: #c2d5d2;
    background: rgba(255, 255, 255, 0.78);
  }

  .site-header:not(.thank-you-header) .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    border-color: #c2d5d2;
    background: rgba(255, 255, 255, 0.82);
  }

  .site-header:not(.thank-you-header) .menu-toggle::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    box-shadow:
      0 -5px 0 var(--primary-dark),
      0 5px 0 var(--primary-dark);
  }

  .site-header:not(.thank-you-header) .menu-toggle::after {
    content: none;
  }

  .site-header:not(.thank-you-header) .menu-toggle[aria-expanded="true"]::before {
    box-shadow: none;
    transform: rotate(45deg);
  }

  .site-header:not(.thank-you-header) .menu-toggle[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transform: rotate(-45deg);
  }

  .site-header:not(.thank-you-header) .main-nav {
    margin-left: 0;
  }

  .site-header:not(.thank-you-header) .main-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% - 0.12rem);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem;
    box-shadow: 0 14px 24px rgba(15, 52, 48, 0.12);
  }

  .site-header:not(.thank-you-header) .main-nav.open {
    display: flex;
  }

  .intake-disclosure > summary {
    grid-template-columns: 1fr;
  }

  .intake-summary-cta {
    text-align: left;
    margin-top: 0.35rem;
  }

  .forms-alert {
    flex-direction: column;
    align-items: flex-start;
    top: 70px;
  }

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

  .after-hours-strip {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.38rem 0.65rem calc(0.38rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.9rem;
  }

  .after-hours-strip p,
  .after-hours-strip a {
    white-space: nowrap;
  }

  .live-state,
  .hours-status-row {
    align-items: flex-start;
  }

  #hours-heading {
    scroll-margin-top: 92px;
  }
}
