/* ============================================================
   REYNOLD MEDICAL CENTER — DESIGN SYSTEM
   ============================================================ */

:root {
  /* Colour */
  --color-primary: #0e5f8a;       /* healthcare blue */
  --color-primary-dark: #0a3d59;  /* deep navy */
  --color-accent: #1f9c8b;        /* medical teal/green */
  --color-accent-light: #e7f5f2;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7f9;       /* soft healthcare grey */
  --color-text: #1c2b36;          /* dark charcoal/navy */
  --color-text-muted: #56707d;
  --color-border: #e1e8ec;
  --color-danger: #c0392b;
  --color-danger-bg: #fdecea;
  --color-success: #1f9c5b;
  --color-success-bg: #e9f8ef;

  /* Type */
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing / shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 30px rgba(14, 61, 89, 0.08);
  --shadow-card: 0 4px 18px rgba(14, 61, 89, 0.06);
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; color: var(--color-primary-dark); }
h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; color: var(--color-text-muted); }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-soft { background: var(--color-bg-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--color-primary-dark); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #17786b; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

/* ---- Hoverable content blocks (mission/vision) ---- */
.fade-hover { transition: opacity .15s ease; border-radius: var(--radius-md); }
.fade-hover:hover { opacity: .78; }


/* ---- Utility bar + header ---- */
.utility-bar { background: var(--color-primary-dark); color: rgba(255,255,255,.9); font-size: .82rem; }
.utility-bar__inner { display: flex; align-items: center; gap: 28px; padding: 8px 24px; flex-wrap: wrap; }
.utility-bar__item { display: flex; align-items: center; gap: 6px; }
.utility-bar__item .icon { width: 14px; height: 14px; }
.utility-bar__item--support { margin-left: auto; }
.utility-bar__item--support a { text-decoration: underline; }
@media (max-width: 640px) { .utility-bar__item--support { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; gap: 32px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; padding: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.brand__text { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--color-primary-dark); line-height: 1.1; }
.brand__text span { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--color-accent); }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; font-weight: 600; font-size: .93rem; border-radius: 8px; color: var(--color-text); }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active { color: var(--color-primary); background: var(--color-bg-soft); }
.chev { width: 14px; height: 14px; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .15s ease; z-index: 50;
}
.dropdown--wide { min-width: 260px; columns: 1; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.dropdown li a:hover { background: var(--color-bg-soft); color: var(--color-primary); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-primary-dark); border-radius: 2px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-nav { border-bottom: 1px solid var(--color-border); background: #fff; }
.mobile-nav ul { padding: 10px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--color-border); }
.mobile-nav .btn { margin-top: 12px; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { background: var(--color-bg-soft); padding: 14px 0; font-size: .85rem; }
.breadcrumbs ol { display: flex; gap: 8px; flex-wrap: wrap; color: var(--color-text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--color-border); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ---- Hero ---- */
.hero { position: relative; padding: 90px 0 100px; background: linear-gradient(180deg, var(--color-bg-soft), #fff); overflow: hidden; }
.hero__desc { font-size: 1.1rem; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---- Full-bleed hero carousel ---- */
.hero--fullbleed {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 72vh, 760px);
  height: clamp(560px, 72vh, 760px);
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity .8s ease, visibility 0s linear .8s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity .8s ease;
}

.hero__slide > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
  transition: transform 7s ease;
}

.hero__slide.is-active > img {
  transform: scale(1.045);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(10,61,89,.96) 0%,
      rgba(10,61,89,.88) 30%,
      rgba(10,61,89,.58) 55%,
      rgba(10,61,89,.22) 78%,
      rgba(10,61,89,.08) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 96px 24px 140px;
  color: #fff;
}

.hero__content h1 {
  max-width: 680px;
  margin-bottom: 18px;
  color: #fff;
  text-wrap: balance;
}

.hero__content .hero__desc {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.hero__content .eyebrow {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}

.hero__actions {
  margin-top: 28px;
}

.hero__actions .btn {
  min-height: 52px;
}

.btn--outline-light {
  border-color: rgba(255,255,255,.9);
  color: #fff;
  background: rgba(255,255,255,.04);
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

.hero__dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.hero__dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  cursor: pointer;
  transition: width .2s ease, background .2s ease, opacity .2s ease;
}

.hero__dot:hover,
.hero__dot:focus-visible {
  background: rgba(255,255,255,.8);
  outline: none;
}

.hero__dot.is-active {
  width: 54px;
  background: #fff;
}

.hero__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(10,61,89,.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  background: rgba(10,61,89,.72);
  outline: none;
}

.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .hero--fullbleed {
    min-height: 620px;
    height: 620px;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(10,61,89,.28) 0%,
        rgba(10,61,89,.55) 38%,
        rgba(10,61,89,.93) 82%,
        rgba(10,61,89,.97) 100%);
  }

  .hero__content {
    max-width: 760px;
    padding: 110px 24px 120px;
  }

  .hero__arrow {
    width: 40px;
    height: 40px;
  }

  .hero__arrow--prev { left: 14px; }
  .hero__arrow--next { right: 14px; }
}

@media (max-width: 560px) {
  .hero--fullbleed {
    min-height: 650px;
    height: 650px;
  }

  .hero__slide > img {
    object-position: 58% center;
  }

  .hero__content {
    padding: 78px 24px 105px;
  }

  .hero__content h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__arrow {
    display: none;
  }

  .hero__dots {
    bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide > img,
  .hero__dot,
  .hero__arrow {
    transition: none !important;
  }
}

/* ---- Quick action cards ---- */
.quick-actions { margin-top: -56px; position: relative; z-index: 10; }
.quick-actions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card {
  background: #fff; border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border); transition: transform .15s ease, box-shadow .15s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.quick-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--color-accent-light); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.quick-card__icon svg { width: 22px; height: 22px; }
.quick-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.quick-card p { font-size: .92rem; margin-bottom: 14px; }
.quick-card a { font-weight: 700; color: var(--color-primary); font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 900px) { .quick-actions__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quick-actions__grid { grid-template-columns: 1fr; } }

/* ---- Welcome / two-col feature ---- */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.split--reverse { grid-template-columns: 1.05fr .95fr; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); width: 100%; height: 460px; object-fit: cover; box-shadow: var(--shadow-soft); }
.feature-list { margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--color-text); }
.feature-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-accent); margin-top: 2px; }
@media (max-width: 900px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } .split__media img { height: 300px; } }

/* ---- Cards grid (services/departments) ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 30px 26px; box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; opacity: .82; }
.service-card__icon { width: 50px; height: 50px; border-radius: 12px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { font-size: .93rem; margin-bottom: 16px; }
.service-card a { font-weight: 700; color: var(--color-primary); font-size: .88rem; }
@media (max-width: 980px) { .cards-grid, .cards-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-grid, .cards-grid--4 { grid-template-columns: 1fr; } }

/* ---- Steps / journey ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.step__num { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: var(--color-accent-light); -webkit-text-stroke: 1.5px var(--color-accent); }
.step h3 { margin-top: 10px; font-size: 1.05rem; }
.step p { font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- Stats ---- */
.stats { background: var(--color-primary-dark); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__value { font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem; color: #fff; }
.stat__label { color: rgba(255,255,255,.75); font-size: .9rem; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* ---- Why choose / values grid ---- */
.value-card { padding: 10px 4px; transition: opacity .15s ease; }
.value-card:hover { opacity: .8; }
.value-card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--color-accent-light); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.value-card__icon svg { width: 20px; height: 20px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { font-size: .9rem; margin: 0; }

/* ---- Testimonials ---- */
.testimonial-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); }
.testimonial-card__quote { font-style: italic; color: var(--color-text); margin-bottom: 16px; }
.testimonial-card__meta { font-size: .85rem; color: var(--color-text-muted); font-weight: 600; }
.empty-state { text-align: center; padding: 48px 24px; background: var(--color-bg-soft); border-radius: var(--radius-md); color: var(--color-text-muted); }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--color-primary), var(--color-accent)); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: 64px 32px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---- Emergency band ---- */
.emergency-band { background: var(--color-danger-bg); border: 1px solid #f3c9c3; border-radius: var(--radius-lg); padding: 40px; display: flex; align-items: center; gap: 28px; justify-content: space-between; flex-wrap: wrap; }
.emergency-band h2 { color: var(--color-danger); margin-bottom: 4px; }
.emergency-band__number { font-size: 2rem; font-weight: 800; color: var(--color-danger); font-family: var(--font-heading); }
.emergency-fab {
  position: fixed; bottom: 22px; right: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--color-danger); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(192,57,43,.4); z-index: 90;
}
.emergency-fab svg { width: 24px; height: 24px; }

/* ---- Quick Help chat widget ---- */
.chat-widget { position: fixed; bottom: 88px; right: 22px; z-index: 91; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-toggle {
  width: 54px; height: 54px; border-radius: 50%; background: var(--color-primary); color: #fff;
  border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 24px rgba(14,95,138,.4); transition: transform .15s ease, background .15s ease;
}
.chat-toggle:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.chat-toggle svg { width: 24px; height: 24px; }
.chat-panel {
  width: 320px; max-width: calc(100vw - 44px); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); border: 1px solid var(--color-border); overflow: hidden;
}
.chat-panel__header {
  background: var(--color-primary); color: #fff; padding: 16px 18px; display: flex;
  justify-content: space-between; align-items: flex-start;
}
.chat-panel__status { font-size: .78rem; color: rgba(255,255,255,.8); }
.chat-panel__close { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.chat-panel__body { padding: 16px; max-height: 60vh; overflow-y: auto; }
.chat-bubble { background: var(--color-bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .87rem; color: var(--color-text); margin-bottom: 14px; }
.chat-bubble--muted { font-size: .78rem; color: var(--color-text-muted); background: transparent; padding: 0; margin-top: 4px; margin-bottom: 0; }
.chat-bubble--muted a { color: var(--color-primary); font-weight: 600; }
.chat-options { display: flex; flex-direction: column; gap: 8px; }
.chat-option {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--color-border); font-size: .87rem; font-weight: 600; color: var(--color-text);
  transition: background .15s ease, border-color .15s ease;
}
.chat-option:hover { background: var(--color-bg-soft); border-color: var(--color-primary); }
.chat-option--accent:hover { border-color: var(--color-accent); }
.chat-option--danger { color: var(--color-danger); }
.chat-option--danger:hover { border-color: var(--color-danger); background: var(--color-danger-bg); }
@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 80px; }
  .emergency-fab { right: 14px; }
}

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--color-primary-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--color-primary); }
.faq-item p { margin-top: 12px; }

/* ---- Forms ---- */
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .9rem; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; background: #fbfdfe;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
.form-field .field-error { color: var(--color-danger); font-size: .8rem; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.form-fieldset { border: none; padding: 0; margin: 0 0 24px; }
.form-fieldset legend { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary-dark); margin-bottom: 12px; padding: 0; }
@media (max-width: 700px) { .form-grid, .form-grid--3 { grid-template-columns: 1fr; } }

/* ---- Alerts ---- */
.alerts-stack { position: fixed; top: 90px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.alert { padding: 14px 40px 14px 16px; border-radius: var(--radius-sm); position: relative; font-size: .9rem; box-shadow: var(--shadow-soft); }
.alert--success { background: var(--color-success-bg); color: #135c37; border: 1px solid #b7e6c9; }
.alert--error { background: var(--color-danger-bg); color: #7a241b; border: 1px solid #f3c9c3; }
.alert--info { background: var(--color-accent-light); color: #12594e; border: 1px solid #b8e3dc; }
.alert__close { position: absolute; right: 10px; top: 10px; background: none; border: none; font-size: 1rem; cursor: pointer; color: inherit; }

/* ---- Disclaimer box ---- */
.disclaimer-box { background: var(--color-bg-soft); border-left: 4px solid var(--color-primary); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .88rem; color: var(--color-text-muted); }

/* ---- Footer ---- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.85); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__about p { color: rgba(255,255,255,.65); margin: 14px 0; font-size: .9rem; }
.brand--footer .brand__text { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.7); }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.6); }
.footer__bottom-inner ul { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 620px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---- Doctors ---- */
.doctor-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: opacity .15s ease, transform .15s ease; }
.doctor-card:hover { opacity: .82; transform: translateY(-4px); }
.doctor-card__photo { height: 240px; background: var(--color-bg-soft); }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: 20px; }
.doctor-card__specialty { color: var(--color-accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.doctor-card__actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---- Table (admin-ish, reused for patient info) ---- */
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); font-size: .92rem; }
.info-table th { color: var(--color-primary-dark); font-family: var(--font-heading); }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 120px 24px; }
.error-page h1 { font-size: 5rem; color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
