/* ============================================
   Barons Court Pharmacy — Design System
   ============================================ */

:root {
  /* Brand greens remapped to NHS blue */
  --nhs-blue: #005eb8;
  --nhs-blue-dark: #003d7a;
  --nhs-blue-light: #e8f0fa;
  --teal-900: #002f5c;
  --teal-800: #003d7a;
  --teal-700: #005eb8;
  --teal-600: #0072ce;
  --teal-500: #2680c8;
  --teal-400: #5ba3d9;
  --teal-300: #9fc8ea;
  --teal-200: #c5daf0;
  --teal-100: #d6e8f6;
  --teal-50: #e8f0fa;
  --teal-050: #f3f7fc;
  --ink-900: #10222b;
  --ink-700: #33474f;
  --ink-500: #5b6f77;
  --ink-300: #9fb0b6;
  --line: #e3e9f0;
  --bg: #f5f8fc;
  --white: #ffffff;
  --amber-50: #fff8ec;
  --amber-600: #b45309;
  --amber-line: #f3dfb8;
  --red-50: #fdf1f1;
  --red-600: #b42318;
  --red-line: #f2cfcc;
  --green-600: #005eb8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 43, 0.06);
  --shadow-md: 0 6px 24px rgba(16, 34, 43, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 34, 43, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --header-h: 73px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-700);
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 94, 184, 0.35);
}

.btn-primary:hover {
  background: var(--teal-800);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal-800);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-500);
}

.btn-ghost:hover {
  color: var(--ink-900);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--teal-900);
  color: #cfeae9;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
}

.announce strong {
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  overflow-x: clip;
}

.site-header .container {
  width: min(1280px, 96%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 0;
  min-width: 0;
}

@media (min-width: 981px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    column-gap: 12px;
    row-gap: 0;
  }

  .logo {
    flex: 0 0 auto;
  }

  .main-nav {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: 0;
    padding-right: 0;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  .nav-services-trigger {
    font-size: 0.76rem;
    padding: 5px 9px;
  }

  .header-end {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    flex-shrink: 0;
    padding-left: 10px;
    border-left: 1px solid var(--line);
    min-width: 0;
  }

  .header-cta {
    gap: 6px;
  }

  .header-cta .btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    min-height: 34px;
    line-height: 1.2;
  }

  .header-cta .btn-header-nhs {
    font-size: 0.68rem;
    padding: 6px 10px;
    max-width: none;
    white-space: nowrap;
    min-height: 34px;
  }

  .nav-nhs-services-trigger {
    padding: 6px 10px;
    font-size: 0.7rem;
    min-height: 34px;
  }

  .header-contact-link {
    font-size: 0.7rem;
    padding-left: 8px;
  }

  .site-header .container {
    width: min(1440px, 98%);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
  justify-content: flex-start;
  margin-left: 2px;
  padding-right: 4px;
  overflow: visible;
  flex-wrap: nowrap;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.main-nav a:hover {
  color: var(--teal-700);
  border-color: var(--teal-200);
  background: var(--teal-50);
}

.main-nav a.active {
  color: var(--teal-700);
  border-color: var(--teal-400);
  background: var(--teal-50);
}

/* Services dropdown */
.nav-services {
  position: relative;
  flex-shrink: 0;
}

.nav-services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.84rem;
  white-space: nowrap;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav-services-trigger:hover,
.nav-services.is-open .nav-services-trigger {
  color: var(--teal-700);
  border-color: var(--teal-200);
  background: var(--teal-50);
}

.nav-services-trigger.active {
  color: var(--teal-700);
  border-color: var(--teal-400);
  background: var(--teal-50);
}

.nav-services-chevron {
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.15s;
}

.nav-services.is-open .nav-services-chevron {
  transform: rotate(180deg);
}

.nav-services-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  min-width: min(22rem, calc(100vw - 2rem));
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 8px 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

/* Invisible bridge so the menu stays open while moving the cursor down */
.nav-services-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-services-mega {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.4fr);
  min-height: 280px;
}

.nav-services-mega-label,
.nav-services-sidebar .nav-services-mega-label {
  margin: 0;
  padding: 14px 14px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.nav-services-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--line);
  padding-bottom: 10px;
}

.nav-services-cat-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: calc(100% - 16px);
  margin: 0 8px 6px;
  padding: 10px 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.nav-services-cat-tile:hover,
.nav-services-cat-tile.active {
  background: #fff;
  border-color: var(--teal-200);
  box-shadow: var(--shadow-sm);
}

.nav-services-cat-tile.active {
  border-color: var(--teal-400);
}

.nav-services-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.nav-services-cat-icon-all {
  background: var(--teal-100);
  color: var(--teal-800);
}

.nav-services-cat-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-services-cat-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nav-services-cat-copy strong {
  font-size: 0.88rem;
  color: var(--ink-900);
  line-height: 1.25;
}

.nav-services-cat-copy > span:not(.nav-services-cat-count) {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink-600);
}

.nav-services-cat-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-top: 2px;
}

.nav-services-main {
  padding: 14px 14px 16px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.nav-services-pane-head h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--ink-900);
}

.nav-services-pane-head p {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-600);
}

.nav-services-quick {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-services-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-services-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-800);
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.nav-services-card:hover {
  border-color: var(--teal-400);
  background: var(--teal-50);
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}

.nav-services-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef4fb;
  display: grid;
  place-items: center;
}

.nav-services-card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-services-card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nav-services-card-copy strong {
  font-size: 0.92rem;
  color: var(--ink-900);
}

.nav-services-card-copy > span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-600);
}

.nav-services-card-go {
  font-size: 1.1rem;
  color: var(--teal-600);
  font-weight: 700;
}

.nav-services-group + .nav-services-group {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.nav-services-group-label {
  margin: 0;
  padding: 8px 16px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.nav-services-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--ink-800);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: background 0.12s, color 0.12s;
}

.nav-services-link:hover {
  background: var(--teal-50);
  color: var(--teal-800);
  border-color: transparent;
}

.nav-services-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef4fb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-services-link-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.nav-services-ext {
  font-size: 0.78rem;
  color: var(--ink-400);
}

.nav-mobile-divider {
  display: none;
}

.nav-mobile-cta {
  display: none;
}

.hide-desktop {
  display: none !important;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.header-cta:empty {
  display: none;
}

.header-cta .btn {
  padding: 9px 14px;
  font-size: 0.78rem;
  white-space: nowrap;
  line-height: 1.25;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header-cta .btn-header-nhs {
  font-size: 0.78rem;
  padding: 9px 14px;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  min-height: 42px;
}

.header-contact-link {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  margin-left: 0;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.header-account-link {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 12px;
}

.header-contact-link:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.header-account-link:hover {
  text-decoration: underline;
}

.header-contact-link.active,
.header-account-link.active {
  color: var(--teal-800);
}

.header-end .nav-nhs-services {
  position: relative;
  flex-shrink: 0;
}

.header-end .nav-nhs-services .nav-services-panel {
  left: auto;
  right: 0;
}

.nav-nhs-services-trigger {
  background: var(--nhs-blue-light);
  border-color: rgba(0, 94, 184, 0.35);
  color: var(--nhs-blue);
  padding: 9px 14px;
  font-size: 0.78rem;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.nav-nhs-services-trigger:hover,
.nav-nhs-services.is-open .nav-nhs-services-trigger {
  color: var(--nhs-blue-dark);
  border-color: var(--nhs-blue);
  background: #dceaf8;
}

@media (min-width: 981px) {
  .nav-nhs-services-mobile {
    display: none !important;
  }

  .nav-services-group-nhs-mobile {
    display: none;
  }

  .header-end {
    gap: 6px;
  }

  /* Compact header CTAs stay visible on one line with the logo */
  .header-cta .btn.hide-mobile {
    display: inline-flex !important;
  }
}

@media (max-width: 980px) {
  .header-end {
    display: none;
  }
}

.nav-mobile-contact {
  display: none;
}

@media (min-width: 981px) {
  .logo {
    font-size: 1.4rem;
  }

  .logo-mark {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .logo small {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .main-nav a.nav-highlight {
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal-50) 0%, #ffffff 55%, var(--teal-50) 100%);
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  max-width: 760px;
}

@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(200px, 280px);
    max-width: 1080px;
    gap: 40px;
    align-items: center;
  }
}

.hero-photo {
  margin: 0;
  max-width: 280px;
  width: 100%;
  justify-self: start;
}

.hero-photo img {
  width: 100%;
  height: auto;
  max-height: 340px;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 16px 32px rgba(11, 59, 46, 0.12);
}

.page-photo-wrap {
  margin-top: 22px;
}

.page-photo {
  margin: 0;
}

.page-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 14px 30px rgba(11, 59, 46, 0.1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal-700);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-500);
  max-width: 48ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-700);
  font-weight: 500;
}

.hero-points li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 800;
  margin-right: 8px;
}

/* Hero card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-800));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-card-head strong {
  display: block;
  font-size: 0.98rem;
}

.hero-card-head span {
  font-size: 0.82rem;
  color: var(--ink-500);
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.pharmacist-trust-section {
  padding-top: 0;
}

.hero-card-bottom {
  max-width: 640px;
  margin: 0 auto;
}

.mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
}

.trust-item .mini-icon {
  background: var(--teal-100);
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-500);
  font-size: 1.05rem;
}

/* ---------- Steps (How it works) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--ink-500);
  font-size: 0.94rem;
}

/* ---------- Treatment cards ---------- */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.treat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.treat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.treat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.treat-icon .catalog-icon-img {
  width: 28px;
  height: 28px;
}

.treat-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.treat-card p {
  color: var(--ink-500);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 18px;
}

.treat-card .card-link {
  font-weight: 700;
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Guarantee band ---------- */
.band {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  color: #fff;
  border-radius: 22px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.band p {
  color: #bfe0de;
  font-size: 1rem;
  max-width: 52ch;
}

.band .btn-primary {
  background: #fff;
  color: var(--teal-900);
  box-shadow: none;
}

.band .btn-primary:hover {
  background: var(--teal-50);
}

.band-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.band-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #dff0ef;
}

.band-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #b9c6cb;
  padding: 64px 0 32px;
  margin-top: 84px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer .logo small {
  color: var(--teal-500);
}

.footer-grid p {
  font-size: 0.88rem;
  max-width: 34ch;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: #b9c6cb;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #84969d;
}

/* ============================================
   CONSULTATION PAGE
   ============================================ */

.consult-hero {
  background: linear-gradient(160deg, var(--teal-50), #fff);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
  text-align: center;
}

.consult-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.consult-hero p {
  color: var(--ink-500);
  max-width: 56ch;
  margin: 0 auto;
}

.consult-hero .login-hint {
  margin-top: 14px;
  font-size: 0.9rem;
}

/* Progress stepper */
.stepper-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-300);
  white-space: nowrap;
}

.stepper li .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--ink-300);
  transition: all 0.2s;
  flex-shrink: 0;
}

.stepper li.current {
  color: var(--teal-800);
}

.stepper li.current .dot {
  border-color: var(--teal-700);
  background: var(--teal-700);
  color: #fff;
}

.stepper li.done {
  color: var(--teal-700);
}

.stepper li.done .dot {
  border-color: var(--teal-500);
  background: var(--teal-100);
  color: var(--teal-800);
}

.stepper .bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  min-width: 12px;
}

.stepper li.done + .bar {
  background: var(--teal-500);
}

.progress-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin-top: 14px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
  border-radius: 4px;
  transition: width 0.35s ease;
}

/* Layout */
.consult-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 44px 0 90px;
  align-items: start;
}

/* Question panel */
.q-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.q-section-label {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.question {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.question:first-of-type {
  padding-top: 0;
}

.question:last-of-type {
  border-bottom: none;
  padding-bottom: 8px;
}

.q-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.45;
}

.q-hint {
  font-size: 0.88rem;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.q-list {
  margin: 10px 0 16px 4px;
  padding-left: 18px;
  color: var(--ink-700);
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
}

/* Yes / No segmented control */
.yn {
  display: inline-flex;
  gap: 10px;
  margin-top: 10px;
}

.yn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yn label {
  min-width: 108px;
  text-align: center;
  padding: 11px 30px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s ease;
  user-select: none;
}

.yn label:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
}

.yn input:checked + label {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 94, 184, 0.3);
}

.yn input:focus-visible + label {
  outline: 3px solid var(--teal-100);
}

/* Inline notices */
.notice {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
}

.notice.show {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notice .n-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-info {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-900);
}

.notice-warn {
  background: var(--amber-50);
  border: 1px solid var(--amber-line);
  color: var(--amber-600);
}

.notice-stop {
  background: var(--red-50);
  border: 1px solid var(--red-line);
  color: var(--red-600);
}

.q-error {
  display: none;
  margin-top: 10px;
  color: var(--red-600);
  font-size: 0.85rem;
  font-weight: 600;
}

.question.invalid .q-error {
  display: block;
}

.question.invalid .yn label {
  border-color: var(--red-line);
}

/* Panel nav */
.panel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* Sidebar */
.consult-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 170px;
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.aside-card h3 {
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.aside-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--ink-500);
}

.aside-card ul li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.aside-card ul li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 800;
}

.aside-card p {
  font-size: 0.86rem;
  color: var(--ink-500);
}

.aside-card .phone {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-800);
  margin: 8px 0 2px;
}

.pharmacist {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pharmacist strong {
  display: block;
  font-size: 0.92rem;
}

.pharmacist span {
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* Result screens */
.result-screen {
  text-align: center;
  padding: 30px 10px;
}

.result-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
}

.result-icon.ok {
  background: var(--teal-100);
  color: var(--teal-800);
}

.result-icon.limited {
  background: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid var(--amber-line);
}

.result-icon.stop {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid var(--red-line);
}

.result-screen h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.result-screen > p {
  color: var(--ink-500);
  max-width: 52ch;
  margin: 0 auto 28px;
}

.result-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.result-summary {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  max-width: 480px;
  margin: 0 auto 30px;
}

.result-summary h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.result-order-ref {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 24px;
  margin-bottom: 18px;
  background: #fff;
  border: 2px dashed var(--teal-500);
  border-radius: 12px;
}

.result-order-ref-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}

.result-order-ref strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.checkout-copy-ref {
  margin-top: 4px;
  font-size: 0.85rem;
}

.result-summary ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

/* Step visibility */
.q-step {
  display: none;
}

.q-step.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sub-question {
  display: none;
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.sub-question.show {
  display: block;
  animation: fadeUp 0.25s ease;
}

/* ============================================
   TREATMENTS CATALOG
   ============================================ */

.catalog-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.catalog-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
}

.chip.active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalog-search input {
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  width: 260px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}

.catalog-search input:focus {
  border-color: var(--teal-500);
  background: var(--white);
}

.result-count {
  font-size: 0.8rem;
  color: var(--ink-500);
  white-space: nowrap;
}

.catalog-main {
  padding: 48px 0 90px;
  display: grid;
  gap: 28px;
}

.catalog-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-condition-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.catalog-condition-tile:hover {
  border-color: var(--teal-400);
  background: var(--teal-50);
}

.catalog-condition-tile-active {
  border-color: var(--teal-600) !important;
  background: var(--teal-50) !important;
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.12);
}

.catalog-condition-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.catalog-condition-icon .catalog-icon-img,
.catalog-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.catalog-unlisted-card .catalog-condition-icon {
  background: #f0f4f8;
}

.catalog-condition-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.catalog-condition-group {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.catalog-condition-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
}

.catalog-condition-count {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.catalog-condition-chevron {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--teal-600);
  flex-shrink: 0;
}

.catalog-pick-prompt {
  text-align: center;
  color: var(--ink-500);
  font-size: 0.95rem;
  padding: 8px 0 4px;
}

.catalog-condition-detail {
  margin-top: 4px;
}

.catalog-unlisted-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--teal-50) 0%, #fff 100%);
  border: 2px dashed var(--teal-400);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.catalog-unlisted-card:hover {
  border-color: var(--teal-600);
  background: var(--teal-50);
  color: inherit;
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.consult-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 8px;
  text-align: left;
}

.consult-path-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.consult-path-card:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.consult-path-card-nhs:hover {
  border-color: var(--nhs-blue);
}

.consult-path-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.consult-path-card h3 {
  font-size: 1.08rem;
  margin: 0;
  color: var(--ink-900);
}

.consult-path-card p {
  font-size: 0.92rem;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.consult-path-btn {
  align-self: flex-start;
  margin-top: 4px;
  pointer-events: none;
}

.condition-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 34px;
  scroll-margin-top: 150px;
}

.condition-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.condition-head > div {
  flex: 1;
}

.condition-head .treat-icon {
  margin-bottom: 0;
}

.condition-group {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 4px;
}

.condition-head h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.condition-head p {
  color: var(--ink-500);
  font-size: 0.94rem;
  max-width: 62ch;
}

.condition-cta {
  padding: 11px 22px;
  font-size: 0.9rem;
  white-space: nowrap;
  align-self: center;
}

.med-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.med-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.med-card:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--white);
}

.med-photo {
  height: 150px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.med-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.med-photo.ph {
  font-size: 2.4rem;
  background: var(--teal-50);
  border-color: var(--teal-100);
}

.med-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.med-card h3 {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.med-generic {
  font-size: 0.8rem;
  color: var(--teal-700);
  font-weight: 600;
  margin-bottom: 10px;
}

.med-desc {
  font-size: 0.86rem;
  color: var(--ink-500);
  flex: 1;
  margin-bottom: 16px;
}

.med-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.med-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-900);
}

.med-price small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
}

.med-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-500);
}

/* Category grid (home page) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.cat-card:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--teal-800);
}

.cat-card .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cat-card small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-500);
}

.cat-all {
  justify-content: center;
  background: var(--teal-700);
  color: #fff;
  border-color: var(--teal-700);
}

.cat-all:hover {
  background: var(--teal-800);
  color: #fff;
}

/* Home page: condition cards with full medication range */
.home-cond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-cond {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.home-cond:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-cond-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-cond-head .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.home-cond-head h3 {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.home-cond-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal-700);
}

.med-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

/* Home page medication photo grid */
.home-med-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.home-med-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.home-med-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.home-med-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.home-med-photo.ph {
  font-size: 1.5rem;
  background: var(--teal-50);
  border-color: var(--teal-100);
}

.home-med-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.med-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.home-cond:hover .med-chip {
  border-color: var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-800);
}

.home-cond-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-700);
}

.home-cond-footer {
  text-align: center;
  margin-top: 32px;
}

/* Premium clinic tiles (homepage) */
.section-head-clinic {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow-clinic {
  margin-bottom: 12px;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.clinic-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.clinic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal-600);
}

.clinic-card.accent-nhs::before {
  background: var(--nhs-blue, #005eb8);
}

.clinic-card.accent-slate::before {
  background: #475569;
}

.clinic-card.accent-rose::before {
  background: #be5a7a;
}

.clinic-card.accent-gold::before {
  background: #b8860b;
}

.clinic-card:hover {
  border-color: var(--teal-300, #9fc8ea);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.clinic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clinic-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.clinic-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.clinic-card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.clinic-card.accent-slate .clinic-card-icon {
  background: #f1f5f9;
}

.clinic-card.accent-rose .clinic-card-icon {
  background: #fdf2f6;
}

.clinic-card.accent-gold .clinic-card-icon {
  background: #fdf8ee;
}

.clinic-card.accent-nhs .clinic-card-icon {
  background: #e8f0fa;
}

.clinic-card-nhs {
  display: inline-grid;
  place-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.clinic-card-nhs .nhs-logo {
  height: 26px;
}

.clinic-card-visual-nhs {
  background: #fff;
}

.clinic-card-visual-nhs .nhs-logo {
  height: 42px;
}

.clinic-card-visual {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f4f8f9 0%, #ffffff 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.clinic-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px 12px;
  box-sizing: border-box;
  background: #fff;
}

.clinic-card-visual.clinic-card-visual-photo img {
  object-fit: cover;
  padding: 0;
}

.clinic-card-visual-hub {
  height: 200px;
}

.clinic-card-visual-hub img {
  object-fit: cover;
  object-position: center center;
}

.clinic-card-visual-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 0;
  height: 156px;
  background: #f4f8f9;
}

.clinic-card-visual-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
}

.clinic-card.accent-slate .clinic-card-visual-hub img {
  object-position: center 35%;
}

.clinic-card.accent-rose .clinic-card-visual-hub img {
  object-position: center 40%;
}

.clinic-card.accent-gold .clinic-card-visual-hub img {
  object-position: center top;
}

.clinic-card.accent-teal .clinic-card-visual-collage img:nth-child(1) {
  object-position: center 30%;
}

.clinic-card-visual.ph {
  font-size: 2rem;
  background: linear-gradient(145deg, var(--teal-50), #fff);
}

.clinic-card-visual-label {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.clinic-card-visual-label span {
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 16px;
  line-height: 1.3;
}

.clinic-card-visual-nhs {
  background: linear-gradient(145deg, #e8f0fa, #fff);
}

.clinic-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.clinic-card-copy {
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.55;
  flex: 1;
}

.clinic-card-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-700);
  margin-top: auto;
}

.clinic-card.accent-nhs .clinic-card-cta {
  color: var(--nhs-blue, #005eb8);
}

.clinic-card-featured:nth-child(1) {
  grid-column: span 1;
}

.more-services-featured {
  margin-bottom: 20px;
}

.travel-featured-tile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 28px 28px 30px;
  background: linear-gradient(135deg, #e8f7f6 0%, #fff 55%);
  border: 1px solid var(--teal-200);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.travel-featured-tile:hover {
  border-color: var(--teal-500);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.14);
  transform: translateY(-2px);
}

.travel-featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.travel-featured-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.travel-featured-copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.travel-featured-desc {
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 14px;
}

.travel-featured-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.travel-featured-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.4;
}

.travel-featured-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-700);
  font-weight: 800;
}

.travel-featured-cta {
  margin-top: auto;
  pointer-events: none;
}

.travel-featured-visual {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-600), var(--teal-800));
}

.travel-featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.travel-featured-visual-fallback {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(160deg, var(--teal-600), var(--teal-900));
}

.travel-featured-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.more-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

.more-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.15s;
}

.more-service-chip:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-800);
}

.more-service-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.more-service-icon .catalog-icon-img {
  width: 18px;
  height: 18px;
}

/* ============================================
   CHECKOUT & ORDER PICKER
   ============================================ */

.result-with-order {
  text-align: left;
  max-width: none;
}

.result-with-order > .result-icon,
.result-with-order > h2,
.result-with-order > p {
  text-align: center;
}

.result-with-order > p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.result-with-order .result-summary {
  margin-left: auto;
  margin-right: auto;
}

.order-picker {
  margin: 28px 0;
  text-align: left;
}

.order-picker-head h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.order-picker-head p {
  font-size: 0.92rem;
  color: var(--ink-500);
  text-align: left;
  max-width: none;
  margin-bottom: 18px;
}

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

.order-med-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-med-card .med-photo {
  height: 120px;
  margin-bottom: 4px;
}

.order-med-card h4 {
  font-size: 0.98rem;
}

.order-med-price {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: auto;
}

.order-med-price small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
}

.order-med-btn {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.9rem;
  margin-top: 8px;
}

.checkout-layout {
  padding: 36px 0 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.checkout-form {
  padding: 32px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
}

.form-field input {
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}

.form-field select {
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  color: var(--ink-900);
  outline: none;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.form-field input:focus {
  border-color: var(--teal-500);
  background: var(--white);
}

.form-field select:focus {
  border-color: var(--teal-500);
  background-color: var(--white);
}

.address-finder {
  display: flex;
  gap: 10px;
}

.address-finder input {
  flex: 1;
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.address-finder input:focus {
  border-color: var(--teal-500);
  background: var(--white);
}

.address-finder .btn {
  padding: 12px 18px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.address-finder-status {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 4px;
}

.address-finder-status.is-ok {
  color: var(--green-600);
}

.address-finder-status.is-error {
  color: var(--red-600);
}

.address-finder-status.is-loading {
  color: var(--teal-700);
}

.address-select {
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  outline: none;
  width: 100%;
  cursor: pointer;
}

.address-select:focus {
  border-color: var(--teal-500);
}

.address-manual-toggle-wrap {
  margin: -4px 0 14px;
}

.address-manual-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-700);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.address-manual-toggle:hover {
  color: var(--teal-800);
}

.supply-options {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.supply-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.supply-opt:has(input:checked) {
  border-color: var(--teal-700);
  background: var(--teal-50);
}

.supply-opt input {
  accent-color: var(--teal-700);
  width: 18px;
  height: 18px;
}

.supply-opt strong {
  display: block;
  font-size: 0.95rem;
}

.supply-opt small {
  color: var(--ink-500);
  font-size: 0.8rem;
}

.checkout-note {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 20px;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.checkout-step {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.checkout-step.is-active {
  color: var(--teal-700, #005eb8);
  border-color: var(--teal-500, #2680c8);
  background: #ecfdf5;
}

.checkout-step.is-done {
  color: var(--ink-700);
}

.checkout-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.checkout-payment-actions .checkout-submit {
  flex: 1 1 220px;
}

.stripe-card-element {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line, #d4d4d8);
  border-radius: 10px;
  background: #fff;
}

.stripe-card-element.StripeElement--focus {
  border-color: var(--teal-500, #2680c8);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.checkout-stripe-loading {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-500, #71717a);
}

#stripePaymentElement {
  min-height: 180px;
  padding: 8px 4px;
  border: none;
  background: transparent;
}

.stripe-payment-request-row {
  margin: 0 0 16px;
}

.stripe-wallet-section {
  margin: 4px 0 18px;
  padding: 14px 14px 10px;
  border: 1px solid var(--line, #d4d4d8);
  border-radius: 12px;
  background: #fafafa;
}

.stripe-wallet-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
}

.stripe-express-checkout {
  min-height: 48px;
}

.stripe-payment-request-fallback {
  min-height: 44px;
}

.checkout-stripe-wallet-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--ink-500, #71717a);
}

.checkout-stripe-or {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-500, #71717a);
}

.checkout-stripe-error {
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.checkout-stripe-secure {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-500, #71717a);
}

.checkout-submit {
  width: 100%;
}

.checkout-summary h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.checkout-summary .med-photo {
  height: 140px;
  margin-bottom: 12px;
}

.checkout-summary h4 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.summary-lines {
  list-style: none;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.summary-lines li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.summary-total strong {
  font-size: 1.25rem;
}

.summary-trust {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--teal-800);
}

.checkout-done,
.checkout-gate {
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE — tablet and below
   ============================================ */
@media (max-width: 980px) {
  :root {
    --header-h: 63px;
  }

  .hero-grid,
  .band {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .treat-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .home-cond-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .condition-head {
    flex-wrap: wrap;
  }

  .condition-cta {
    align-self: flex-start;
    width: 100%;
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .consult-layout {
    grid-template-columns: 1fr;
  }

  .consult-aside {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .address-finder {
    flex-direction: column;
  }

  .address-finder .btn {
    width: 100%;
  }

  .q-panel {
    padding: 26px 22px;
  }

  /* --- Compact header + hamburger dropdown nav --- */
  .hide-mobile {
    display: none !important;
  }

  .hide-desktop {
    display: block !important;
  }

  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
  }

  .site-header {
    overflow: visible;
  }

  .header-inner {
    position: relative;
    padding: 9px 0;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 1.2rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-mobile-contact {
    display: block;
    padding: 12px max(4%, 16px) 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-500);
    text-align: right;
    border-top: 1px solid var(--line);
  }

  .nav-mobile-contact:hover,
  .nav-mobile-contact.active {
    color: var(--teal-700);
  }

  .logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
  }

  .logo small {
    font-size: 0.7rem;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    order: 3;
    z-index: 61;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    z-index: 60;
  }

  .main-nav.open {
    display: flex;
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav > a {
    padding: 14px max(4%, 16px);
    font-size: 1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid var(--bg);
  }

  .main-nav > a:last-of-type {
    border-bottom: none;
  }

  .main-nav > a.nav-highlight {
    color: var(--ink-700);
    font-weight: 500;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--bg);
    padding-bottom: 14px;
    margin-bottom: 0;
  }

  .main-nav > a.nav-highlight:hover {
    color: var(--teal-700);
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--bg);
  }

  .main-nav > a.nav-highlight.active {
    color: var(--teal-700);
  }

  .nav-services {
    width: 100%;
  }

  .nav-services-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px max(4%, 16px);
    font-size: 1rem;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--bg);
    background: transparent;
  }

  .nav-services-panel {
    position: static;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg, #f8fafc);
    overflow: visible;
    z-index: auto;
    left: auto;
    right: auto;
    top: auto;
  }

  .nav-services-panel[hidden] {
    display: none !important;
  }

  .nav-services.is-open {
    position: relative;
    z-index: 2;
  }

  .nav-services-group-nhs-mobile {
    border-top: 1px solid var(--line, #e2e8f0);
    margin-top: 4px;
    padding-top: 4px;
  }

  .nav-services-group-label {
    padding-left: max(4%, 16px);
    padding-right: max(4%, 16px);
  }

  .nav-services-link {
    padding-left: max(4%, 16px);
    padding-right: max(4%, 16px);
  }

  .q-step.active .q-section-label,
  .q-step.active .question,
  .symptom-details,
  .symptom-age-gate,
  .symptom-questions-section,
  .symptom-q {
    scroll-margin-top: 0;
  }

  .catalog-unlisted-card {
    scroll-margin-top: 5.75rem;
  }

  .nav-mobile-divider {
    display: none;
  }

  .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px max(4%, 16px) 16px;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }

  .nav-mobile-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    padding: 11px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
    border-bottom: none;
  }

  .nav-mobile-cta .btn-nhs {
    background: var(--nhs-blue);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 94, 184, 0.2);
  }

  .nav-mobile-cta .btn-primary {
    background: var(--teal-700);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 94, 184, 0.2);
  }

  .nav-mobile-cta .btn-secondary {
    color: var(--teal-800);
    background: var(--white);
    border: 1.5px solid var(--teal-600);
    box-shadow: none;
  }

  .nav-mobile-cta .btn-secondary:hover {
    border-color: var(--teal-700);
    color: var(--teal-700);
    background: var(--white);
  }

  /* --- Consultation stepper: dots only, current label shown --- */
  .stepper li span.step-name {
    display: none;
  }

  .stepper li.current span.step-name {
    display: inline;
  }

  /* --- Catalog filter bar: horizontally scrollable chips --- */
  .catalog-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-search input {
    flex: 1;
    width: auto;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
}

/* ============================================
   RESPONSIVE — phones (primary target)
   ============================================ */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    overflow-x: clip;
  }

  .container {
    width: 94%;
    max-width: 100%;
  }

  .announce {
    font-size: 0.72rem;
    padding: 7px 12px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }

  .announce .hide-mobile {
    display: none;
  }

  .btn {
    padding: 14px 22px;
  }

  /* --- Hero --- */
  .hero {
    padding: 40px 0 44px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
    gap: 8px;
  }

  .hero-card {
    padding: 20px;
  }

  /* --- Sections --- */
  .section {
    padding: 52px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .trust-strip {
    padding: 14px 0;
  }

  .trust-items {
    gap: 12px;
  }

  .trust-item {
    font-size: 0.78rem;
    justify-content: flex-start;
  }

  .trust-item .mini-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .step-card {
    padding: 24px 20px;
  }

  .cat-grid {
    gap: 10px;
  }

  .cat-card {
    padding: 14px;
    gap: 10px;
    font-size: 0.86rem;
    border-radius: var(--radius-sm);
  }

  .cat-card .cat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .cat-card small {
    font-size: 0.7rem;
  }

  .home-cond-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .clinic-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .clinic-card {
    padding: 18px 16px;
  }

  .clinic-card-visual {
    height: 100px;
  }

  .clinic-card-visual-hub {
    height: 160px;
  }

  .home-cond {
    padding: 18px 16px;
  }

  .home-med-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .home-med-name {
    font-size: 0.64rem;
  }

  .band {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .band .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding: 44px 0 24px;
    margin-top: 52px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  /* --- Treatments catalog --- */
  .catalog-main {
    padding: 24px 0 60px;
    gap: 16px;
  }

  .catalog-condition-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-condition-tile {
    padding: 14px 16px;
  }

  .consult-path-grid {
    grid-template-columns: 1fr;
  }

  .condition-section {
    padding: 20px 16px;
    border-radius: 14px;
    scroll-margin-top: 190px;
  }

  .condition-head {
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .condition-head h2 {
    font-size: 1.2rem;
  }

  .condition-head .treat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    border-radius: 11px;
  }

  .med-card {
    padding: 18px 16px;
  }

  .med-btn {
    padding: 11px 24px;
  }

  /* --- Consultation --- */
  .consult-hero {
    padding: 28px 0 24px;
  }

  .consult-layout {
    padding: 20px 0 60px;
    gap: 20px;
  }

  .q-panel {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .stepper-wrap {
    padding: 10px 0;
  }

  .stepper li .dot {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }

  .stepper li {
    font-size: 0.78rem;
  }

  .question {
    padding: 20px 0;
  }

  .q-text {
    font-size: 0.98rem;
  }

  /* Full-width, thumb-friendly Yes/No buttons */
  .yn {
    display: flex;
    width: 100%;
    gap: 10px;
  }

  .yn label {
    flex: 1;
    min-width: 0;
    padding: 14px 10px;
    font-size: 1rem;
  }

  .sub-question {
    padding: 16px 14px;
  }

  /* Sticky action bar so Continue is always in reach */
  .panel-nav {
    position: sticky;
    bottom: 0;
    background: var(--white);
    margin: 26px -16px -22px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    gap: 10px;
  }

  .panel-nav .btn-primary {
    flex: 1;
  }

  .result-screen {
    padding: 16px 0;
  }

  .result-icon {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
  }

  .result-screen h2 {
    font-size: 1.3rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
  }

  .result-summary {
    padding: 16px 18px;
  }

  .aside-card {
    padding: 18px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1.08rem;
  }

  .logo small {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .home-promo-card {
    flex-basis: 92vw;
    max-width: 92vw;
  }
}

/* ============================================
   NHS Repeat Prescriptions
   ============================================ */

.announce-nhs {
  background: var(--nhs-blue-dark);
  color: #cce0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 4px;
}

.announce-nhs strong {
  color: #fff;
}

.announce-nhs::before {
  content: "";
  display: inline-block;
  width: 52px;
  height: 21px;
  margin-right: 8px;
  flex-shrink: 0;
  background: #fff url("../img/nhs-logo.svg") center / contain no-repeat;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nhs-logo {
  display: inline-block;
  width: auto;
  height: 30px;
  vertical-align: middle;
  flex-shrink: 0;
}

.nhs-logo-sm {
  height: 22px;
}

.nhs-logo-md {
  height: 28px;
}

.nhs-logo-lg {
  height: 36px;
}

.nhs-logo-hero {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}

.nhs-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.nhs-badge-row .nhs-badge {
  margin-bottom: 0;
}

.nhs-badge .nhs-logo {
  height: 18px;
  background: #fff;
  border-radius: 2px;
}

.nav-highlight {
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav a.nav-highlight.active {
  color: var(--teal-700);
  border-color: var(--teal-400);
  background: var(--teal-50);
}

.btn-nhs {
  background: var(--nhs-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 94, 184, 0.35);
}

.btn-nhs:hover {
  background: var(--nhs-blue-dark);
  transform: translateY(-1px);
  color: #fff;
}

.btn-nhs-stacked {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
  padding: 11px 26px;
}

.btn-nhs-stacked-main {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-nhs-stacked-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.92;
}

.btn-nhs-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-nhs-block {
  width: 100%;
  margin-top: 8px;
}

.nhs-logo-mark {
  display: inline-grid;
  place-items: center;
  line-height: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.nhs-logo-mark .nhs-logo,
.nhs-logo-mark img {
  height: 28px;
  width: auto;
  display: block;
}

.nhs-logo-mark-lg .nhs-logo,
.nhs-logo-mark-lg img {
  height: 36px;
}

/* Homepage dual promos */
.home-promos {
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.home-promos-scroll-wrap {
  position: relative;
}

.home-promos-scroll-arrow {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32%;
  max-width: 7.5rem;
  min-width: 4.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(
    to right,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 0.55) 35%,
    rgba(248, 250, 252, 0.92) 100%
  );
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-promos-scroll-arrow:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: -3px;
}

.home-promos-scroll-arrow-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
  color: var(--teal-700);
  opacity: 0.55;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 12px rgba(0, 94, 184, 0.14);
  animation: home-promo-scroll-pulse 1.75s ease-in-out infinite;
}

@keyframes home-promo-scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(0);
  }

  50% {
    opacity: 0.95;
    transform: translateX(7px);
  }
}

.home-promos-scroll-wrap.is-scrolled .home-promos-scroll-arrow {
  opacity: 0;
  visibility: hidden;
}

.home-promos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.home-promos-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.home-promos-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.home-promo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
  color: inherit;
  transition: background 0.2s;
  border-right: 1px solid var(--line);
}

.home-promo-card:last-child {
  border-right: none;
}

.home-promo-card:hover {
  background: var(--teal-50);
}

.home-promo-nhs {
  background: linear-gradient(135deg, #e8f0fa 0%, #f8fbff 100%);
}

.home-promo-nhs-featured {
  gap: 14px;
  padding: 34px 36px;
  border-left: 4px solid var(--nhs-blue);
  box-shadow: inset 0 0 0 1px rgba(0, 94, 184, 0.08);
}

.home-promo-nhs-featured .home-promo-nhs-logo {
  height: 38px;
}

.home-promo-nhs-featured .home-promo-badge-tag {
  font-size: 0.76rem;
  padding: 6px 12px;
}

.home-promo-nhs-featured h2,
.home-promo-nhs-featured .home-promo-title-stacked {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}

.home-promo-nhs-featured .home-promo-title-sub {
  font-size: 1.05rem;
}

.home-promo-nhs-featured p {
  font-size: 1rem;
}

.home-promo-nhs-featured .home-promo-cta {
  font-size: 1.05rem;
  font-weight: 700;
}

.home-promo-nhs:hover {
  background: linear-gradient(135deg, #dce8f5 0%, #f0f6fc 100%);
}

.home-promo-private {
  background: linear-gradient(135deg, var(--teal-50) 0%, #fff 100%);
}

.home-promo-repeats {
  background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
}

.home-promo-repeats:hover {
  background: linear-gradient(135deg, #e8edf2 0%, #fafbfc 100%);
}

.home-promo-order {
  background: linear-gradient(135deg, #e8f4f8 0%, #fff 100%);
}

.home-promo-order:hover {
  background: linear-gradient(135deg, #dceef5 0%, #f5fbfd 100%);
}

.home-promo-badge-order {
  background: var(--teal-700);
}

.home-promo-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--nhs-blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.home-promo-badge-nhs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
}

.home-promo-nhs-logo {
  display: block;
  width: auto;
  height: 30px;
}

.home-promo-badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nhs-blue);
  background: var(--nhs-blue-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.home-promo-badge-private {
  background: var(--teal-700);
}

.home-promo-cta-repeats {
  color: #3d5a80;
}

.home-promo-cta-order {
  color: var(--teal-700);
}

.home-promo-card h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
  color: var(--ink-900);
}

.home-promo-title-stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-promo-title-sub {
  font-size: 0.92em;
  font-weight: 700;
  color: var(--nhs-blue);
  line-height: 1.3;
}

.home-promo-card p {
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.home-promo-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nhs-blue);
  margin-top: 4px;
}

.home-promo-cta-private {
  color: var(--teal-700);
}

/* Thin homepage banner — weight loss injections */
.home-weight-banner {
  display: block;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--teal-800) 0%, var(--teal-700) 55%, #003d7a 100%);
  color: #fff;
  transition: filter 0.2s;
}

.home-weight-banner:hover {
  filter: brightness(1.06);
  color: #fff;
}

.home-weight-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  padding: 11px 16px;
  flex-wrap: wrap;
  text-align: center;
}

.home-weight-banner-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 3px 10px;
  border-radius: 999px;
}

.home-weight-banner-text {
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.home-weight-banner-text strong {
  color: #fff;
  font-weight: 700;
}

.home-weight-banner-cta {
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #fff;
}

/* Homepage — fit above the fold on desktop without changing card layout */
@media (min-width: 981px) {
  body.page-home .home-weight-banner-inner {
    padding: 11px 0;
  }

  body.page-home .home-promo-card {
    padding: 22px 24px;
  }

  body.page-home .hero {
    padding: 32px 0 28px;
  }

  body.page-home .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 0.74rem;
    padding: 5px 12px;
  }

  body.page-home .hero h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: 12px;
  }

  body.page-home .hero-sub {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  body.page-home .hero-actions {
    margin-bottom: 16px;
  }

  body.page-home .hero-points {
    gap: 8px 18px;
    font-size: 0.86rem;
  }

  body.page-home .trust-strip {
    padding: 10px 0;
  }
}

@media (max-width: 1320px) and (min-width: 981px) {
  .site-header .container {
    width: min(1440px, 99%);
  }

  .header-inner {
    gap: 8px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a,
  .nav-services-trigger {
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .header-end {
    gap: 5px;
    padding-left: 8px;
  }

  .header-cta {
    gap: 5px;
  }

  .header-cta .btn,
  .header-cta .btn-header-nhs,
  .nav-nhs-services-trigger {
    padding: 5px 8px;
    font-size: 0.66rem;
    min-height: 32px;
  }

  .header-contact-link {
    font-size: 0.66rem;
    padding-left: 8px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }
}

.service-group {
  margin-bottom: 36px;
}

.service-group:last-child {
  margin-bottom: 0;
}

.service-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.service-group-label-nhs {
  color: var(--nhs-blue);
  border-bottom-color: var(--nhs-blue-light, #e8f0fa);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-group-label-nhs .nhs-logo {
  height: 24px;
}

.service-group-label-private {
  color: var(--teal-700);
  border-bottom-color: var(--teal-100);
}

.clinic-grid-nhs {
  grid-template-columns: repeat(2, 1fr);
}

.clinic-grid-private {
  grid-template-columns: repeat(2, 1fr);
}

.catalog-hub-banner {
  margin-bottom: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--teal-50) 0%, #fff 100%);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
}

.catalog-hub-back {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-700);
}

.catalog-hub-back:hover {
  color: var(--teal-800);
}

.catalog-hub-banner h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.catalog-hub-banner p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.55;
}

.chip-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.service-tab-private.service-tab-featured {
  background: var(--teal-50);
  border-bottom-color: var(--teal-600);
}

.service-tab-private.service-tab-featured:hover {
  background: var(--teal-100);
}

.service-tabs-balanced {
  border-radius: 0;
}

.hero-actions-balanced .btn {
  flex: 1;
  min-width: 0;
}

/* Other condition — same-day page */
.other-condition-card {
  margin-top: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f8faf9 0%, var(--teal-50) 100%);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal-600);
}

.other-condition-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-800);
  background: var(--teal-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.other-condition-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.other-condition-card p {
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.55;
  margin-bottom: 10px;
}

.other-condition-note {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.symptom-private-note {
  font-size: 0.88rem;
  color: var(--ink-700);
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  line-height: 1.5;
}

/* Homepage service chooser */
.same-day-promo {
  background: linear-gradient(135deg, var(--nhs-blue) 0%, #003087 100%);
  color: #fff;
  padding: 28px 0;
}

.same-day-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.same-day-promo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.same-day-promo-copy h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-bottom: 6px;
  color: #fff;
}

.same-day-promo-copy p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0;
}

.service-chooser {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0;
  position: relative;
  z-index: 10;
}

.service-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1160px;
  margin: 0 auto;
  width: min(1160px, 92%);
}

.service-tabs-three {
  grid-template-columns: repeat(3, 1fr);
}

.service-tabs-three .service-tab {
  border-right: 1px solid var(--line);
}

.service-tabs-three .service-tab:last-child {
  border-right: none;
}

.service-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  color: var(--ink-700);
}

.service-tab:first-child {
  border-right: 1px solid var(--line);
}

.service-tab:hover {
  background: var(--teal-50);
  color: var(--ink-900);
}

.service-tab-active {
  border-bottom-color: var(--teal-700);
  background: var(--teal-50);
}

.service-tab-nhs {
  border-bottom-color: transparent;
}

.service-tab-nhs:hover,
.service-tab-nhs.service-tab-featured {
  background: var(--nhs-blue-light);
  border-bottom-color: var(--nhs-blue);
}

.service-tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-tab-icon-teal {
  background: var(--teal-100);
}

.service-tab-icon-nhs {
  background: var(--nhs-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.service-tab-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.service-tab-text span {
  font-size: 0.88rem;
  color: var(--ink-500);
}

.service-tab-arrow {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--ink-300);
  flex-shrink: 0;
}

.service-tab:hover .service-tab-arrow {
  color: var(--teal-700);
}

.service-tab-nhs:hover .service-tab-arrow {
  color: var(--nhs-blue);
}

/* NHS repeat page */
#nhs-app {
  scroll-margin-top: 5.5rem;
}

.nhs-hero {
  background: linear-gradient(160deg, var(--nhs-blue-light) 0%, #ffffff 50%, var(--nhs-blue-light) 100%);
  padding: 64px 0 56px;
}

.nhs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.nhs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nhs-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.nhs-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.nhs-hero h1 em {
  font-style: normal;
  color: var(--nhs-blue);
}

.nhs-hero-sub {
  font-size: 1.08rem;
  color: var(--ink-700);
  max-width: 54ch;
  margin-bottom: 28px;
}

.nhs-hero-lead strong {
  color: var(--ink-900);
}

.nhs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.nhs-hero-note {
  font-size: 0.88rem;
  color: var(--ink-500);
  max-width: 48ch;
}

.nhs-login-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.nhs-login-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.nhs-login-panel-head h2 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.nhs-login-panel-head p {
  font-size: 0.9rem;
  color: var(--ink-500);
}

.nhs-login-steps {
  margin: 0 0 20px 1.1rem;
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.nhs-login-steps li {
  padding-left: 4px;
}

.nhs-app-downloads {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.nhs-app-downloads p {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 12px;
}

.nhs-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.nhs-store-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  min-width: 140px;
  transition: opacity 0.2s;
}

.nhs-store-btn:hover {
  opacity: 0.88;
  color: #fff;
}

.nhs-store-btn .store-label {
  font-size: 0.65rem;
  opacity: 0.85;
}

.nhs-store-btn strong {
  font-size: 0.95rem;
}

.trust-strip-nhs {
  background: var(--nhs-blue-dark);
}

.trust-strip-nhs .trust-item {
  color: #cce0f5;
}

.step-card-nhs .step-num-nhs {
  background: var(--nhs-blue);
}

.nhs-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nhs-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.nhs-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.nhs-info-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.nhs-info-card p {
  font-size: 0.95rem;
  color: var(--ink-700);
  margin-bottom: 16px;
}

.nhs-repeat-hub {
  padding-top: 36px;
  padding-bottom: 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.section-head-nhs-hub {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-head-nhs-hub h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-top: 12px;
}

.nhs-repeat-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.nhs-repeat-choice-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 100%;
}

.nhs-repeat-choice-card:hover {
  border-color: var(--nhs-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.nhs-repeat-choice-logo {
  display: block;
  width: auto;
  height: 30px;
}

.nhs-repeat-choice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nhs-blue-dark);
  background: var(--nhs-blue-light);
  padding: 6px 10px;
  border-radius: 999px;
}

.nhs-repeat-choice-badge-teal {
  color: var(--teal-800);
  background: var(--teal-50);
}

.nhs-repeat-choice-card h2 {
  font-size: 1.2rem;
  line-height: 1.25;
  min-height: 2.5em;
}

.nhs-repeat-choice-card p {
  flex: 1;
  font-size: 0.94rem;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0;
}

.nhs-repeat-choice-cta {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nhs-blue);
}

.nhs-repeat-choice-cta-teal {
  color: var(--teal-700);
}

.band-nhs {
  background: linear-gradient(135deg, var(--nhs-blue), var(--nhs-blue-dark));
  color: #fff;
}

.band-nhs h2 {
  color: #fff;
  font-weight: 800;
}

.band-nhs p {
  color: #f4f9ff;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
}

.band-nhs p strong,
.band-nhs .content-note strong {
  color: #fff;
  font-weight: 700;
}

.band-nhs .content-note {
  color: #e8f2fc;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.band-nhs .band-list li {
  color: #e8f0fa;
}

.band-nhs .band-list li::before {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
  .service-tabs,
  .service-tabs-three {
    grid-template-columns: 1fr;
  }

  .service-tab:first-child,
  .service-tabs-three .service-tab {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .service-tabs-three .service-tab:last-child {
    border-bottom: none;
  }

  .home-promos-grid,
  .home-promos-grid-three,
  .home-promos-grid-four {
    grid-template-columns: 1fr;
  }

  .home-promo-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 22px 20px;
  }

  .home-promo-card:last-child {
    border-bottom: none;
  }

  .home-weight-banner-inner {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  .home-weight-banner-text {
    font-size: 0.84rem;
  }

  .clinic-grid-nhs,
  .clinic-grid-private {
    grid-template-columns: 1fr;
  }

  .travel-featured-tile {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .travel-featured-visual {
    min-height: 180px;
    order: -1;
  }

  .nhs-hero-grid {
    grid-template-columns: 1fr;
  }

  .nhs-repeat-choices {
    grid-template-columns: 1fr;
  }

  .nhs-info-grid {
    grid-template-columns: 1fr;
  }

  .band-nhs {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .service-tab {
    padding: 18px 16px;
    gap: 12px;
    border-radius: 0;
  }

  .service-tabs-balanced {
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: none;
  }

  .service-chooser .container {
    width: 100%;
    padding: 0;
  }

  .service-tabs-balanced .service-tab {
    margin: 0;
    border-left: none;
    border-right: none;
  }

  .service-tabs-balanced .service-tab-featured {
    border-left: 4px solid var(--nhs-blue);
  }

  .service-tabs-balanced .service-tab-private.service-tab-featured {
    border-left-color: var(--teal-600);
  }

  .home-promo-card h2 {
    font-size: 1.15rem;
  }

  .home-promo-card p {
    font-size: 0.88rem;
  }

  .home-promo-card .home-promo-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .home-weight-banner-inner {
    padding: 8px 12px;
    gap: 6px;
    text-align: left;
    align-items: flex-start;
  }

  .home-weight-banner-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  .home-weight-banner-text {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .home-weight-banner-cta {
    font-size: 0.78rem;
  }

  .home-promos {
    border-bottom: none;
  }

  .home-promos-scroll-arrow {
    display: flex;
  }

  .home-promos-scroll-arrow-icon {
    width: 3rem;
    height: 3rem;
    font-size: 2.15rem;
  }

  .home-promos .container.home-promos-grid,
  .home-promos .container.home-promos-grid-three,
  .home-promos .container.home-promos-grid-four {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .home-promos-grid,
  .home-promos-grid-three,
  .home-promos-grid-four {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }

  .home-promos-grid::-webkit-scrollbar,
  .home-promos-grid-three::-webkit-scrollbar,
  .home-promos-grid-four::-webkit-scrollbar {
    display: none;
  }

  .home-promo-card {
    flex: 0 0 88vw;
    max-width: 88vw;
    scroll-snap-align: center;
    border-right: none;
    border-bottom: none;
    padding: 16px 14px;
    gap: 8px;
    min-height: 0;
  }

  .home-promo-card:first-child {
    margin-left: 6vw;
  }

  .home-promo-card:last-child {
    margin-right: 6vw;
  }

  .home-promo-card h2,
  .home-promo-title-stacked {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .home-promo-card p {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .home-promo-nhs-logo {
    height: 24px;
  }

  .home-promo-cta {
    font-size: 0.88rem;
    margin-top: 4px;
  }

  .home-promos-scroll-hint {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-500);
    padding: 8px 12px 12px;
    margin: 0;
  }

  body.page-home .hero,
  body.page-home .trust-strip {
    display: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .home-promos-scroll-arrow-icon {
      animation: none;
      opacity: 0.7;
    }
  }

  .hero-actions-balanced {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions-balanced .btn {
    width: 100%;
  }

  .service-group-label {
    font-size: 0.72rem;
  }

  .clinic-card {
    border-radius: 14px;
  }

  .clinic-card-visual {
    height: 88px;
  }

  .clinic-card-visual-hub {
    height: 148px;
  }

  .other-condition-card {
    padding: 18px 16px;
    margin-top: 18px;
  }

  .other-condition-card .btn {
    width: 100%;
    margin-top: 8px;
  }

  .nhs-hero-compact {
    padding: 36px 0 32px;
  }

  .nhs-hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .nhs-hero-actions {
    flex-direction: column;
  }

  .nhs-hero-actions .btn {
    width: 100%;
  }

  .trust-strip-nhs .trust-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .content-page {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .yn-opt {
    min-width: calc(50% - 5px);
  }

  .symptom-checker-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .symptom-step {
    text-align: center;
  }

  .booking-modal-panel {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 12px;
    padding: 20px 16px;
  }

  .band-booking {
    padding: 24px 18px !important;
  }

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

  .service-tab-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .service-tab-text strong {
    font-size: 0.95rem;
  }

  .nhs-hero-actions {
    flex-direction: column;
  }

  .nhs-hero-actions .btn {
    width: 100%;
  }

  .header-cta .btn-nhs {
    display: none;
  }
}

/* Content pages */
.page-hero {
  background: linear-gradient(160deg, var(--teal-50) 0%, #fff 100%);
  padding: 48px 0 40px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--ink-700);
  max-width: 60ch;
}

.content-page {
  padding: 40px 0 80px;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.content-block p,
.content-list,
.content-steps {
  color: var(--ink-700);
  font-size: 0.98rem;
}

.contact-opening-hours {
  margin-top: 1.1rem;
}

.content-list,
.content-steps {
  margin: 12px 0 20px 1.2rem;
  display: grid;
  gap: 10px;
}

.content-note {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.92rem;
  color: var(--ink-700);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.band-inline {
  margin-top: 20px;
}

.section-cta {
  text-align: center;
  margin-top: 28px;
}

.pharmacist-avatar {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  font-size: 0.85rem;
  font-weight: 800;
}

.footer-regulatory {
  background: var(--teal-900);
  color: #cfeae9;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 36px;
}

.footer-regulatory h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.footer-regulatory .footer-address {
  margin-bottom: 14px;
  line-height: 1.7;
}

.footer-reg-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-reg-list a {
  color: #fff;
  text-decoration: underline;
}

.footer-emergency {
  font-size: 0.88rem;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #dff0ef;
}

.footer-bottom a {
  color: #bfe0de;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .trust-cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nhs-conditions-grid {
    grid-template-columns: 1fr;
  }

  .band-booking {
    grid-template-columns: 1fr;
  }
}

/* Same-day NHS pharmacist care */
.nhs-hero-compact {
  padding: 48px 0 40px;
}

.nhs-hero-points {
  margin: 16px 0 20px;
}

.section-head-left {
  text-align: left;
  max-width: none;
  margin-bottom: 20px;
}

.nhs-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.nhs-condition-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}

.nhs-condition-card .nhs-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 18px;
}

.nhs-condition-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.nhs-condition-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.nhs-condition-ages {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nhs-blue, #005eb8);
  margin-bottom: 6px;
}

.nhs-condition-card p:last-child {
  font-size: 0.88rem;
  color: var(--ink-700);
  line-height: 1.5;
}

.nhs-info-card-hero {
  margin: 0;
}

.band-booking {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.band-booking .slot-grid-label {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
}

.band-booking .slot-grid-label strong {
  color: #fff;
  font-weight: 800;
}

.band-booking .btn-nhs {
  background: #fff;
  color: var(--nhs-blue-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-weight: 700;
}

.band-booking .btn-nhs:hover {
  background: #f0f7ff;
  color: var(--nhs-blue-dark);
}

.slot-grid-label {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #e8f0fa;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.slot-btn small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.85;
}

.slot-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.steps-grid-compact {
  grid-template-columns: repeat(3, 1fr);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-900);
}

.faq-item p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.content-block-muted {
  background: var(--teal-50);
  border-radius: var(--radius);
  padding: 20px 24px;
}

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

  .steps-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* Symptom checker — same-day pharmacist */
.symptom-checker-panel {
  max-width: 720px;
}

.condition-picker-intro {
  font-size: 0.92rem;
  color: var(--ink-600);
  margin-bottom: 18px;
  line-height: 1.5;
}

.condition-picker-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 18px 0 10px;
}

.condition-picker-group-nhs {
  color: var(--nhs-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.condition-picker-group-nhs .nhs-logo {
  height: 20px;
}

.condition-pick-nhs {
  border-color: rgba(0, 94, 184, 0.28);
  padding-right: 56px;
}

.condition-pick-nhs .condition-pick-nhs-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  line-height: 0;
}

.condition-pick-nhs .condition-pick-nhs-mark .nhs-logo {
  height: 16px;
}

.condition-picker-group-private {
  color: var(--teal-700);
  margin-top: 22px;
}

.condition-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.condition-picker-grid-single {
  grid-template-columns: 1fr;
}

.condition-pick {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
}

.condition-pick:hover {
  border-color: var(--teal-300, #9fc8ea);
  background: var(--teal-50);
}

.condition-pick-nhs:hover {
  border-color: #90b8e0;
  background: #f0f6fc;
}

.condition-pick-private {
  border-style: dashed;
  border-color: var(--teal-300);
}

.condition-pick-link {
  color: inherit;
  text-decoration: none;
}

.condition-pick-link:hover {
  color: inherit;
}

.condition-pick-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-700);
}

.condition-pick-active {
  border-color: var(--nhs-blue) !important;
  background: #e8f0fa !important;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.12);
}

.condition-pick-private.condition-pick-active {
  border-color: var(--teal-600) !important;
  background: var(--teal-50) !important;
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.12);
  border-style: solid;
}

.condition-pick-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.condition-pick-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.condition-pick-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
}

.condition-pick-age {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nhs-blue);
}

.condition-pick-private .condition-pick-age {
  color: var(--teal-700);
}

.condition-pick-summary {
  font-size: 0.78rem;
  color: var(--ink-600);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.condition-pick-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nhs-blue);
  color: #fff;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}

.condition-pick-private .condition-pick-check {
  background: var(--teal-700);
}

.condition-pick-active .condition-pick-check {
  opacity: 1;
  transform: scale(1);
}

.condition-pick-error {
  font-size: 0.88rem;
  color: #c62828;
  margin-top: 12px;
  padding: 10px 12px;
  background: #ffebee;
  border-radius: var(--radius-sm);
}

.symptom-details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.symptom-age-gate {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.symptom-age-gate.symptom-age-gate-complete {
  gap: 8px;
  padding-bottom: 4px;
}

.symptom-age-gate.symptom-age-gate-complete .symptom-age-field span {
  color: var(--ink-600);
  font-size: 0.88rem;
}

.symptom-age-eligible {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fff8e6;
  border: 1px solid #ffd54f;
  color: var(--ink-800);
  line-height: 1.5;
  font-size: 0.92rem;
}

.symptom-age-eligible > strong:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.symptom-age-eligible p {
  margin: 0;
}

.symptom-age-eligible p strong {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
}

.symptom-age-field {
  margin-bottom: 0;
}

.symptom-age-input-invalid {
  border-color: #c62828 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15) !important;
}

.symptom-age-error {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #ffebee;
  border: 2px solid #ef9a9a;
  color: #b71c1c;
}

.symptom-age-error-title {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.symptom-age-error-text {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-900);
}

.symptom-age-error-hint {
  margin: 0;
  font-size: 0.86rem;
  color: #c62828;
}

.symptom-questions-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.symptom-selected-banner {
  font-size: 0.88rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  line-height: 1.45;
}

.symptom-selected-nhs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #e8f0fa;
  border: 1px solid #b3cce8;
  color: var(--ink-800);
}

.symptom-selected-nhs .nhs-logo {
  height: 20px;
}

.symptom-selected-private {
  background: #fff8e6;
  border: 1px solid #ffe082;
  color: var(--ink-800);
}

.yn-opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.yn-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
  flex: 1;
  min-width: 100px;
  justify-content: center;
}

.yn-opt:has(input:checked) {
  border-color: var(--nhs-blue);
  background: #e8f0fa;
  color: var(--nhs-blue);
}

.yn-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.symptom-checker-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.symptom-step {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--ink-600);
}

.symptom-step.active {
  background: var(--nhs-blue);
  color: #fff;
}

.symptom-checker-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.symptom-checker-form legend {
  font-size: 1rem;
  margin-bottom: 12px;
}

.symptom-q {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  border: none;
}

.symptom-q legend {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.symptom-checker-note {
  font-size: 0.82rem;
  color: var(--ink-600);
  margin: 16px 0;
}

.symptom-result {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
}

.symptom-result-ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.symptom-result-stop {
  background: #fff3e0;
  border: 1px solid #ffcc80;
}

.symptom-result h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.symptom-result p {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.symptom-next-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.symptom-next-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 94, 184, 0.28);
  background: #fff;
  color: var(--ink-800);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.symptom-next-choice strong {
  font-size: 0.95rem;
  color: var(--nhs-blue);
}

.symptom-next-choice span {
  font-size: 0.8rem;
  color: var(--ink-600);
  line-height: 1.35;
}

.symptom-next-choice:hover,
.symptom-next-choice-active {
  border-color: var(--nhs-blue);
  box-shadow: 0 0 0 2px rgba(0, 94, 184, 0.15);
  background: #f3f8fc;
}

.symptom-walk-in-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(0, 94, 184, 0.2);
}

.symptom-walk-in-panel h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--ink-900);
}

.symptom-walk-in-panel > p {
  margin-bottom: 10px;
}

.symptom-walk-in-details {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.symptom-walk-in-details a {
  color: var(--nhs-blue);
  font-weight: 600;
}

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

.booking-locked .band-booking {
  opacity: 1;
}

.booking-locked .slot-grid,
.booking-locked #sameDaySlotsNote {
  opacity: 0.92;
}

.booking-unlocked .band-booking {
  opacity: 1;
}

.slot-locked-msg {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  padding: 14px 16px;
}

/* Condition picker — mobile list rows (must come after base grid styles) */
@media (max-width: 640px) {
  .symptom-checker-panel {
    max-width: none;
  }

  .condition-picker-intro {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .condition-picker-group-label {
    font-size: 0.68rem;
    margin: 16px 0 8px;
  }

  .condition-picker-grid,
  .condition-picker-grid-single {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .condition-pick {
    flex-direction: row;
    align-items: center;
    padding: 12px 40px 12px 12px;
    border-radius: 10px;
    gap: 12px;
  }

  .condition-pick-icon {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
    display: grid;
    place-items: center;
    background: var(--teal-50);
    border-radius: 10px;
    flex-shrink: 0;
  }

  .condition-pick-nhs .condition-pick-icon {
    background: #e8f0fa;
  }

  .condition-pick-private .condition-pick-icon {
    background: var(--teal-50);
  }

  .condition-pick-body {
    flex: 1;
    min-width: 0;
    gap: 1px;
  }

  .condition-pick-name {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .condition-pick-age {
    font-size: 0.72rem;
  }

  .condition-pick-summary {
    font-size: 0.75rem;
    margin-top: 2px;
    -webkit-line-clamp: 1;
    display: -webkit-box;
  }

  .condition-pick-check {
    top: 50%;
    right: 12px;
    transform: translateY(-50%) scale(0.6);
  }

  .condition-pick-active .condition-pick-check {
    transform: translateY(-50%) scale(1);
  }

  .condition-picker-field legend {
    font-size: 1.05rem;
  }
}

/* Appointment booking modal */
.booking-modal-open {
  overflow: hidden;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.booking-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.booking-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-500);
}

.booking-modal-panel h3 {
  margin-bottom: 8px;
}

.booking-modal-slot {
  font-size: 0.92rem;
  color: var(--nhs-blue);
  font-weight: 600;
  margin-bottom: 16px;
}

.booking-form .form-field {
  margin-bottom: 12px;
}

.booking-form-note {
  font-size: 0.82rem;
  color: var(--ink-600);
  margin: 8px 0 16px;
}

.booking-form-status {
  margin-top: 12px;
  font-size: 0.9rem;
}

.booking-form-status-ok {
  color: #2e7d32;
}

.booking-form-status-error {
  color: #c62828;
}

.travel-booking-group-note {
  margin-bottom: 12px;
}

.travel-traveller-block {
  margin: 0 0 4px;
  min-width: 0;
}

.travel-traveller-block + .travel-traveller-block {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.travel-traveller-block h4,
.travel-booking-contact h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
}

.booking-form .travel-traveller-block .form-field,
.booking-form .travel-booking-contact .form-field {
  min-width: 0;
  width: 100%;
}

.booking-form .travel-traveller-block .form-field input,
.booking-form .travel-booking-contact .form-field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.travel-booking-contact {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* NHS login in-site window */
.nhs-login-modal-open {
  overflow: hidden;
}

.nhs-login-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.nhs-login-modal[hidden] {
  display: none;
}

.nhs-login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.nhs-login-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
}

.nhs-login-modal-close {
  position: absolute;
  top: -42px;
  right: 0;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
}

.nhs-login-window {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.nhs-login-window-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}

.nhs-login-window-dots {
  display: inline-flex;
  gap: 5px;
}

.nhs-login-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.nhs-login-window-url {
  flex: 1;
  font-size: 0.78rem;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nhs-login-fullscreen-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nhs-blue);
  text-decoration: none;
  white-space: nowrap;
}

.nhs-login-fullscreen-link:hover {
  text-decoration: underline;
}

.nhs-login-window-lock {
  margin-right: 4px;
}

.nhs-login-iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  background: #f0f4f5;
}

.nhs-login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f4f5;
}

.nhs-login-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nhs-login-page-back {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nhs-blue);
  text-decoration: none;
}

.nhs-login-page-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
}

.nhs-login-embed {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  background: #f0f4f5;
}

@media (max-width: 640px) {
  .nhs-login-modal {
    padding: 0;
  }

  .nhs-login-modal-panel {
    width: 100%;
    height: 100vh;
    max-height: none;
  }

  .nhs-login-modal-close {
    top: 8px;
    right: 8px;
    z-index: 2;
  }

  .nhs-login-window {
    border-radius: 0;
    height: 100%;
  }
}

.booking-confirmed {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
}

.booking-confirmed h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.booking-confirmed p {
  font-size: 0.88rem;
  margin: 0;
  opacity: 0.95;
}

.booking-calendar-panel {
  margin-top: 4px;
}

.booking-calendar-success {
  text-align: center;
  margin-bottom: 18px;
}

.booking-calendar-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 52px;
}

.booking-calendar-success h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.booking-calendar-success p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.5;
}

.booking-calendar-prompt {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.booking-calendar-done {
  margin-top: 14px;
}

.calendar-add-grid {
  display: grid;
  gap: 10px;
}

.calendar-add-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-900);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.calendar-add-btn:hover {
  border-color: var(--nhs-blue);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.calendar-add-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg);
}

.calendar-add-apple .calendar-add-icon {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.calendar-add-google .calendar-add-icon {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.calendar-add-outlook .calendar-add-icon {
  background: linear-gradient(135deg, #0078d4, #00bcf2);
}

.calendar-add-other .calendar-add-icon {
  background: linear-gradient(135deg, #64748b, #475569);
}

.booking-confirmed .calendar-add-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.booking-confirmed .calendar-add-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.booking-confirmed .booking-calendar-prompt {
  color: rgba(255, 255, 255, 0.95);
  margin-top: 14px;
}

/* ============================================
   Medication ordering (dm+d)
   ============================================ */

.med-order-hero {
  padding-bottom: 32px;
}

.med-order-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.med-order-steps {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.med-order-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
}

.med-order-steps li span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-700);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.med-order-steps li.active {
  border-color: var(--nhs-blue);
  background: var(--nhs-blue-light);
  color: var(--nhs-blue-dark);
}

.med-order-steps li.active span {
  background: var(--nhs-blue);
  color: #fff;
}

.med-order-steps li.done {
  color: var(--teal-700);
}

.med-order-steps li.done span {
  background: var(--teal-600);
  color: #fff;
}

.med-order-panel h2 {
  margin-bottom: 8px;
}

.med-order-lead {
  color: var(--ink-500);
  margin-bottom: 20px;
}

.dmd-search-field input {
  width: 100%;
  font-size: 1rem;
}

.dmd-search-hint {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 8px 0 0;
}

.dmd-search-results {
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  max-height: 420px;
  overflow-y: auto;
}

.dmd-results-count {
  padding: 10px 16px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}

.dmd-result-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--bg);
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.dmd-result-item:last-child {
  border-bottom: none;
}

.dmd-result-item:hover {
  background: var(--nhs-blue-light);
}

.dmd-result-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.dmd-result-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-500);
}

.dmd-snomed {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem !important;
  margin-top: 4px;
}

.dmd-no-results {
  padding: 16px;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.dmd-picker {
  margin-top: 14px;
  border: 1px solid var(--line, #dbe4e0);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.dmd-picker-drug {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--teal-050, #f3f7fc);
  border-bottom: 1px solid var(--line, #dbe4e0);
}

.dmd-picker-drug-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dmd-picker-drug-info strong {
  font-size: 1.02rem;
}

.dmd-picker-step-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

.dmd-picker-change {
  border: 1px solid var(--line, #dbe4e0);
  background: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--teal-700, #005eb8);
}

.dmd-picker-change:hover {
  border-color: var(--teal-700, #005eb8);
}

.dmd-picker-section {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dmd-form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dmd-form-chip {
  border: 1.5px solid var(--line, #dbe4e0);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-700, #1f2937);
  transition: border-color 0.15s, background 0.15s;
}

.dmd-form-chip:hover {
  border-color: var(--teal-700, #005eb8);
}

.dmd-form-chip.selected {
  border-color: var(--teal-700, #005eb8);
  background: var(--teal-050, #f3f7fc);
  color: var(--teal-700, #005eb8);
}

.dmd-strength-field {
  margin: 0;
}

.dmd-strength-field select {
  width: 100%;
  max-width: 420px;
}

.dmd-picker-actions {
  padding: 0 16px 16px;
}

.med-basket-title {
  font-size: 1rem;
  margin: 24px 0 12px;
}

.med-basket {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  min-height: 60px;
}

.med-basket-empty {
  padding: 20px;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.med-basket-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-wrap: wrap;
}

.med-basket-supply {
  flex: 0 0 auto;
  min-width: 7.5rem;
}

.med-basket-item:first-child {
  border-radius: 12px 12px 0 0;
}

.med-basket-item:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

.med-basket-info {
  flex: 1;
  min-width: 0;
}

.med-basket-info strong {
  display: block;
  font-size: 0.92rem;
}

.med-basket-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 2px;
}

.med-basket-meta code {
  font-size: 0.75rem;
}

.med-dosage-note {
  color: var(--nhs-blue, #005eb8);
  font-style: italic;
}

.med-qty-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
}

.med-qty-input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.med-remove-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-500);
}

.med-remove-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.med-order-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.med-method-options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.med-method-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.med-method-card:has(input:checked) {
  border-color: var(--nhs-blue);
  background: var(--nhs-blue-light);
}

.med-method-card input {
  margin-top: 4px;
  flex-shrink: 0;
}

.med-method-card strong {
  display: block;
  margin-bottom: 4px;
}

.med-method-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-500);
}

.prescription-upload-panel {
  margin-bottom: 8px;
}

.prescription-preview {
  margin-top: 12px;
}

.prescription-preview-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.prescription-preview-file {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  margin: 0;
}

.prescription-preview-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--ink-500);
}

.med-fulfilment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.med-fulfilment-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

.med-fulfilment-option:has(input:checked) {
  border-color: var(--nhs-blue, #005eb8);
  background: var(--nhs-blue-light, #e8f0fa);
}

.med-fulfilment-option input[type="radio"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  flex: 0 0 18px;
}

.med-fulfilment-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.med-fulfilment-copy strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900, #1a1a1a);
}

.med-fulfilment-copy span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-500, #5c6670);
}

.med-supply-section {
  margin-bottom: 28px;
}

.med-supply-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.med-supply-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.med-supply-info {
  flex: 1 1 200px;
  min-width: 0;
}

.med-supply-info strong {
  display: block;
  margin-bottom: 4px;
}

.med-supply-select-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 140px;
}

.med-supply-select-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500, #5c6670);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.med-supply-select {
  width: 100%;
  min-width: 140px;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-900, #1a1a1a);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23005eb8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.med-supply-select:focus {
  outline: none;
  border-color: var(--nhs-blue, #005eb8);
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.12);
}

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

.med-supply-section {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.med-order-disclaimer {
  font-size: 0.84rem;
  color: var(--ink-500);
  margin: 16px 0;
  line-height: 1.5;
}

.med-order-gp-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.06);
  color: var(--ink-600);
  font-size: 0.86rem;
  line-height: 1.5;
}

.med-order-aside {
  position: sticky;
  top: 100px;
}

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

.med-aside-list {
  margin: 12px 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.med-aside-note {
  font-size: 0.85rem;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.med-success-panel {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.med-order-complete {
  grid-column: 1 / -1;
}

.med-complete-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.med-complete-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 72px;
}

.med-complete-eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
}

.med-complete-card h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.med-complete-lead {
  margin: 0 0 24px;
  color: var(--ink-600);
  font-size: 1.05rem;
  line-height: 1.55;
}

.med-complete-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 28px;
  margin-bottom: 24px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.med-complete-ref-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}

.med-complete-ref strong {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

.med-complete-summary {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.med-complete-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}

.med-complete-summary li:last-child {
  border-bottom: none;
}

.med-complete-summary span {
  color: var(--ink-500);
}

.med-complete-summary strong {
  color: var(--ink-900);
  text-align: right;
}

.med-complete-next {
  text-align: left;
  margin-bottom: 20px;
  padding: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}

.med-complete-next h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.med-complete-next ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.6;
}

.med-complete-email-note {
  margin: 0 0 24px;
  font-size: 0.88rem;
  color: var(--ink-500);
}

.med-order-layout.is-complete .med-order-aside,
.med-order-layout.is-complete .med-order-steps,
.med-order-layout.is-complete .med-order-panel {
  display: none !important;
}

.med-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Pharmacist queue */

.pharmacist-queue-page {
  background: var(--bg);
  min-height: 100vh;
}

.pharmacist-header {
  margin-bottom: 24px;
}

.pharmacist-main {
  padding-bottom: 48px;
}

.pharmacist-login-panel {
  max-width: 420px;
  margin: 40px auto;
}

.pharmacist-login-note {
  font-size: 0.84rem;
  color: var(--ink-500);
  margin-top: 16px;
}

.pharmacist-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pharmacist-queue-head h1 {
  margin-bottom: 6px;
}

.queue-counts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.queue-count-pill {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.queue-count-pill strong {
  color: var(--ink-900);
  margin-left: 4px;
}

.queue-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.queue-filter {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.queue-filter.active {
  background: var(--nhs-blue);
  border-color: var(--nhs-blue);
  color: #fff;
}

.pharmacist-queue-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.queue-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
}

.queue-order-item {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}

.queue-order-item:hover,
.queue-order-item.selected {
  border-color: var(--nhs-blue);
  background: var(--nhs-blue-light);
}

.queue-order-id {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-500);
}

.queue-order-patient {
  display: block;
  font-weight: 600;
  margin: 4px 0;
}

.queue-order-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.queue-status {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.queue-status-pending_review {
  background: #fef3c7;
  color: #92400e;
}

.queue-status-approved {
  background: #d1fae5;
  color: #065f46;
}

.queue-status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.queue-status-needs_info {
  background: #e0e7ff;
  color: #3730a3;
}

.queue-detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.queue-detail-submitted {
  color: var(--ink-500);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.queue-detail-list {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.queue-detail-list li {
  padding: 4px 0;
}

.queue-med-list {
  margin: 0 0 20px;
  padding-left: 18px;
}

.queue-med-list li {
  margin-bottom: 8px;
}

.queue-rx-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.queue-rx-none,
.queue-rx-file {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.9rem;
}

.queue-spine-verified {
  padding: 12px;
  background: #d1fae5;
  border-radius: 8px;
  color: #065f46;
  font-weight: 500;
}

.queue-review-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.queue-spine-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.queue-spine-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

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

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.queue-empty,
.queue-error {
  padding: 24px;
  text-align: center;
  color: var(--ink-500);
}

@media (max-width: 980px) {
  .med-order-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .med-order-aside {
    position: static;
    order: -1;
  }

  .pharmacist-queue-layout {
    grid-template-columns: 1fr;
  }

  .queue-orders-list {
    max-height: none;
  }
}

/* Medication order — phone */
@media (max-width: 640px) {
  .page-med-order {
    overflow-x: clip;
  }

  .page-med-order .announce-nhs {
    font-size: 0.68rem;
    padding: 6px 12px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .page-med-order .med-order-hero {
    padding: 16px 0 12px;
  }

  .page-med-order .med-order-hero h1 {
    font-size: clamp(1.3rem, 5.8vw, 1.65rem);
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .page-med-order .med-order-hero .nhs-hero-sub {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .page-med-order .med-order-hero .nhs-badge {
    font-size: 0.65rem;
    padding: 4px 9px;
    margin-bottom: 8px;
  }

  .page-med-order .trust-strip-nhs {
    display: none;
  }

  #medOrderApp.section {
    padding: 12px 0 24px;
  }

  #medOrderApp .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  #medOrderApp .med-order-layout {
    gap: 12px;
    min-width: 0;
  }

  #medOrderApp .med-order-aside {
    order: 99;
  }

  #medOrderApp .med-order-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    overflow: visible;
  }

  #medOrderApp .med-order-steps li {
    flex: none;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    padding: 8px 4px;
    font-size: 0.65rem;
    line-height: 1.2;
    border-radius: 10px;
  }

  #medOrderApp .med-order-steps li span {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  #medOrderApp .med-order-panel.q-panel {
    padding: 16px 14px;
    border-radius: 14px;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    min-width: 0;
    overflow-x: hidden;
  }

  #medOrderApp .med-order-panel h2 {
    font-size: 1.1rem;
    line-height: 1.25;
  }

  #medOrderApp .med-order-lead {
    font-size: 0.84rem;
    margin-bottom: 14px;
    line-height: 1.45;
  }

  #medOrderApp .q-section-label {
    font-size: 0.65rem;
    padding: 4px 9px;
    margin-bottom: 12px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  #medOrderApp .form-row.two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #medOrderApp .form-field {
    min-width: 0;
  }

  #medOrderApp .form-field input,
  #medOrderApp .form-field select,
  #medOrderApp .form-field textarea {
    width: 100%;
    max-width: 100%;
  }

  #medOrderApp .dmd-search-field input {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
    width: 100%;
  }

  #medOrderApp .dmd-search-hint {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  #medOrderApp .dmd-search-results {
    max-height: min(38vh, 240px);
    border-radius: 12px;
    margin-bottom: 14px;
  }

  #medOrderApp .dmd-result-item {
    padding: 14px 12px;
    min-height: 44px;
  }

  #medOrderApp .dmd-result-item strong,
  #medOrderApp .dmd-result-item span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #medOrderApp .dmd-picker {
    border-radius: 12px;
    margin-bottom: 14px;
  }

  #medOrderApp .dmd-picker-drug {
    padding: 12px;
    flex-wrap: wrap;
  }

  #medOrderApp .dmd-picker-drug-info strong {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  #medOrderApp .dmd-picker-change {
    min-height: 40px;
    padding: 6px 16px;
  }

  #medOrderApp .dmd-picker-section {
    padding: 12px;
  }

  #medOrderApp .dmd-form-chip {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  #medOrderApp .dmd-strength-field select {
    max-width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  #medOrderApp .dmd-picker-actions {
    padding: 0 12px 12px;
  }

  #medOrderApp .dmd-picker-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-photo {
    max-width: 220px;
    justify-self: center;
  }

  .hero-photo img {
    min-height: 0;
    height: auto;
    max-height: 260px;
  }

  .page-photo-wrap {
    margin-top: 16px;
  }

  .page-photo img {
    border-radius: 12px;
    max-height: 220px;
  }

  #medOrderApp .med-basket-item {
    align-items: stretch;
    gap: 10px;
  }

  #medOrderApp .med-basket-supply {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
  }

  #medOrderApp .med-basket-supply .med-supply-select {
    flex: 1;
    max-width: 11rem;
    min-height: 44px;
  }

  #medOrderApp .med-basket {
    min-width: 0;
  }

  #medOrderApp .med-basket-item {
    padding: 12px;
    gap: 8px;
    align-items: flex-start;
  }

  #medOrderApp .med-basket-info {
    min-width: 0;
  }

  #medOrderApp .med-basket-info strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #medOrderApp .med-remove-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
  }

  #medOrderApp .med-method-options {
    min-width: 0;
  }

  #medOrderApp .med-method-card {
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
    min-width: 0;
    align-items: flex-start;
  }

  #medOrderApp .med-method-card > div {
    min-width: 0;
  }

  #medOrderApp .med-method-card strong,
  #medOrderApp .med-method-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #medOrderApp .med-method-card input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
  }

  #medOrderApp input[type="file"] {
    max-width: 100%;
    font-size: 0.85rem;
  }

  #medOrderApp .med-fulfilment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    min-width: 0;
  }

  #medOrderApp .med-fulfilment-option {
    width: auto;
    max-width: none;
    padding: 10px 12px;
    min-height: 0;
    gap: 8px;
  }

  #medOrderApp .med-fulfilment-copy {
    min-width: 0;
  }

  #medOrderApp .med-fulfilment-copy strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  #medOrderApp .med-fulfilment-copy span {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  #medOrderApp .med-order-form .med-fulfilment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
  }

  #medOrderApp .med-supply-section {
    margin-bottom: 20px;
  }

  #medOrderApp .med-supply-item {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    min-width: 0;
  }

  #medOrderApp .med-supply-info strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #medOrderApp .med-supply-select-field {
    width: 100%;
    min-width: 0;
  }

  #medOrderApp .med-supply-select {
    min-height: 48px;
    font-size: 16px;
    width: 100%;
  }

  #medOrderApp .med-order-form {
    min-width: 0;
  }

  #medOrderApp .med-order-form input:not([type="radio"]):not([type="checkbox"]),
  #medOrderApp .med-order-form select,
  #medOrderApp .med-order-form textarea,
  #medOrderApp .address-finder input,
  #medOrderApp .address-select {
    font-size: 16px;
    min-height: 48px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
  }

  #medOrderApp .med-method-card input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    max-width: none;
  }

  #medOrderApp .address-finder {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  #medOrderApp .address-finder .btn {
    width: 100%;
    min-height: 48px;
  }

  #medOrderApp .address-manual-toggle {
    font-size: 0.88rem;
  }

  #medOrderApp .med-order-disclaimer {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  #medOrderApp .med-aside-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  #medOrderApp .med-aside-card h3 {
    font-size: 0.9rem;
  }

  #medOrderApp .med-aside-card p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  #medOrderApp .med-aside-list {
    font-size: 0.82rem;
    margin: 8px 0;
    padding-left: 16px;
  }

  #medOrderApp .med-order-panel:not([hidden]) {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  #medOrderApp .med-order-panel:not([hidden]) .med-order-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    margin: 0;
    padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.1);
    gap: 8px;
    flex-wrap: nowrap;
  }

  #medOrderApp .med-order-panel:not([hidden]) .med-order-nav .btn {
    min-height: 48px;
    margin: 0;
    border-radius: 12px;
    font-size: 0.9rem;
    padding-left: 14px;
    padding-right: 14px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  #medOrderApp .med-order-panel:not([hidden]) .med-order-nav .btn-secondary {
    flex: 0 1 36%;
    min-width: 0;
  }

  #medOrderApp .med-order-panel:not([hidden]) .med-order-nav .btn-primary,
  #medOrderApp .med-order-panel:not([hidden]) .med-order-nav .btn-nhs {
    flex: 1 1 60%;
    min-width: 0;
  }

  #medOrderApp .med-order-panel[data-med-step="1"]:not([hidden]) .med-order-nav .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  #medOrderApp .med-order-panel[data-med-step="1"]:not([hidden]) .med-order-nav .btn-secondary {
    flex: 0 1 42%;
  }

  #medOrderApp .med-order-panel[data-med-step="1"]:not([hidden]) .med-order-nav .btn-primary {
    flex: 1 1 58%;
  }

  #medOrderApp .med-order-layout.is-complete .med-order-panel {
    padding-bottom: 0;
  }

  #medOrderApp .med-complete-card {
    padding: 24px 16px;
    border-radius: 14px;
    border-left: none;
    border-right: none;
  }

  #medOrderApp .med-complete-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 1.5rem;
  }

  #medOrderApp .med-complete-card h2 {
    font-size: 1.25rem;
  }

  #medOrderApp .med-complete-lead {
    font-size: 0.9rem;
  }

  #medOrderApp .med-complete-summary li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }

  #medOrderApp .med-complete-summary strong {
    text-align: left;
    overflow-wrap: anywhere;
  }

  #medOrderApp .med-success-actions {
    flex-direction: column;
    width: 100%;
  }

  #medOrderApp .med-success-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .page-med-order .section-alt {
    padding: 32px 0;
  }

  .page-med-order .steps-grid {
    gap: 10px;
  }
}

@media (max-width: 380px) {
  #medOrderApp .med-order-steps li {
    font-size: 0.6rem;
    padding: 7px 3px;
  }

  #medOrderApp .med-order-panel:not([hidden]) .med-order-nav .btn {
    font-size: 0.82rem;
    padding-left: 10px;
    padding-right: 10px;
  }

  #medOrderApp .med-order-panel:not([hidden]) .med-order-nav .btn-secondary {
    flex: 0 1 32%;
  }
}

/* ============================================
   Pharmacist dashboard (unified inbox)
   ============================================ */

.pharmacist-dash-page {
  background: linear-gradient(180deg, #eef6f6 0%, var(--bg) 220px);
  min-height: 100vh;
}

.pharmacist-dash-main {
  padding-bottom: 48px;
}

.pharmacist-dash-header-actions {
  border-left: none;
  padding-left: 0;
}

.pharmacist-dash-live {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 6px 10px;
  border-radius: 999px;
}

.pharmacist-dash-role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--nhs-blue, #005eb8);
  padding: 6px 10px;
  border-radius: 999px;
}

.pharmacist-dash-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.pharmacist-dash-action-count {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.pharmacist-dash-action-count--compact {
  flex: 0 0 auto;
  width: 108px;
  padding: 10px 12px;
  gap: 2px;
}

.pharmacist-dash-action-count--compact .dash-action-count-num {
  font-size: 1.35rem;
}

.pharmacist-dash-action-count--compact .dash-action-count-label {
  font-size: 0.68rem;
  line-height: 1.2;
}

.dash-action-count-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-900);
}

.dash-action-count-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-500);
}

.pharmacist-dash-search {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.pharmacist-dash-dob-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pharmacist-dash-dob-label {
  margin: 0;
  padding-left: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.pharmacist-dash-dob-search {
  width: auto;
  min-width: 0;
  max-width: none;
}

.pharmacist-dash-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 16rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.pharmacist-dash-search input[type="date"] {
  flex: 0 0 auto;
  width: 11rem;
  min-width: 11rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.pharmacist-dash-search .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.pharmacist-dash-view-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.pharmacist-dash-view-tab {
  border: none;
  background: transparent;
  color: var(--ink-600);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pharmacist-dash-view-tab:hover {
  color: var(--ink-900);
  background: var(--teal-50);
}

.pharmacist-dash-view-tab.active {
  background: var(--teal-700);
  color: #fff;
}

.dash-archived-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(340px, 1.5fr) auto;
  align-items: end;
  gap: 14px;
}

.dash-archived-intro {
  min-width: 0;
}

.dash-archived-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
}

.dash-archived-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-600);
}

.dash-archived-toolbar .pharmacist-dash-search:not(.pharmacist-dash-dob-search) {
  width: 100%;
  min-width: 340px;
}

.dash-archived-shell .pharmacist-dash-detail {
  min-width: 0;
  width: 100%;
}

.dash-signups-shell {
  margin-top: 8px;
}

/* Same 3-column tracks as inbox (sidebar + list + detail) */
.pharmacist-dash-shell.dash-signups-shell {
  grid-template-columns: 200px 280px minmax(0, 1.4fr);
}

.dash-signups-shell .pharmacist-dash-detail {
  min-width: 0;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.dash-signups-shell .pharmacist-dash-detail-panel,
.dash-signups-shell .dash-signup-detail {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 24px 28px;
}

.dash-signup-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

.dash-signup-badge-pending {
  background: #fef3c7;
  color: #92400e;
}
.dash-signup-badge-reject {
  background: #fee2e2;
  color: #991b1b;
}
.dash-signup-badge-ok {
  background: #d1fae5;
  color: #065f46;
}
.dash-signup-actions {
  margin-top: 1rem;
}
.dash-photo-id-gate {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-left: 3px solid #005eb8;
}
.dash-photo-id-gate h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.dash-signup-detail h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.dash-signup-detail h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
}

.dash-signup-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 0.95rem;
}

.dash-signup-dl dt {
  margin: 0;
  color: var(--ink-600);
  font-weight: 600;
}

.dash-signup-dl dd {
  margin: 0;
  color: var(--ink-900);
  word-break: break-word;
}

.dash-signup-photo-wrap {
  border: 1px solid var(--teal-200, #c5daf0);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  background: #f8fafc;
  max-width: 100%;
}

.dash-signup-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #0f172a08;
}

.dash-archived-shell .pharmacist-dash-detail-panel {
  max-width: none;
  padding: 22px 24px 28px;
}

.dash-archived-count {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-600);
}

@media (max-width: 900px) {
  .dash-archived-toolbar {
    grid-template-columns: 1fr;
  }

  .dash-archived-toolbar .pharmacist-dash-search:not(.pharmacist-dash-dob-search) {
    min-width: 0;
  }

  .dash-archived-shell {
    grid-template-columns: 1fr;
  }

  .pharmacist-dash-shell.dash-signups-shell {
    grid-template-columns: 1fr;
  }
}

.dash-analytics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-analytics-head h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.dash-analytics-updated {
  font-size: 0.78rem;
  color: var(--ink-500);
  white-space: nowrap;
}

.dash-analytics-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 20px;
}

.dash-stat-highlight .dash-stat-num {
  color: var(--teal-700);
}

.dash-stat-warn .dash-stat-num {
  color: #c62828;
}

.dash-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dash-analytics-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.dash-analytics-card h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.dash-analytics-empty {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.dash-analytics-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 10px;
  align-items: center;
}

.dash-analytics-bar-label {
  font-size: 0.82rem;
  color: var(--ink-700);
  line-height: 1.3;
}

.dash-analytics-bar-track {
  display: block;
  height: 8px;
  background: var(--teal-50);
  border-radius: 999px;
  overflow: hidden;
}

.dash-analytics-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
  border-radius: 999px;
  min-width: 4px;
}

.dash-analytics-bar-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-900);
  min-width: 1.5rem;
  text-align: right;
}

.dash-analytics-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: dash-rank;
}

.dash-analytics-rank li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.dash-analytics-rank li:last-child {
  border-bottom: none;
}

.dash-analytics-rank li::before {
  counter-increment: dash-rank;
  content: counter(dash-rank);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 4px;
  flex-shrink: 0;
}

.dash-analytics-rank li span {
  flex: 1;
  color: var(--ink-800);
}

.dash-analytics-note {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .dash-analytics-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dash-analytics-stats,
  .dash-analytics-grid {
    grid-template-columns: 1fr;
  }

  .dash-analytics-head {
    flex-direction: column;
  }

  .dash-analytics-bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Pharmacist dashboard — appointments calendar */
.dash-calendar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-calendar-head h2 {
  margin-bottom: 6px;
}

.dash-calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-calendar-nav strong {
  min-width: 9rem;
  text-align: center;
  font-size: 1.05rem;
}

.dash-calendar-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dash-calendar-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.dash-calendar-stat-today {
  border-color: var(--teal-300);
  background: linear-gradient(180deg, var(--teal-50), #fff);
}

.dash-calendar-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-900);
}

.dash-calendar-stat-label {
  font-size: 0.8rem;
  color: var(--ink-500);
  font-weight: 600;
}

.dash-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--ink-600);
}

.dash-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dash-cal-status-pending,
.dash-cal-legend-dot.dash-cal-status-pending {
  background: #f59e0b;
}

.dash-cal-status-confirmed,
.dash-cal-legend-dot.dash-cal-status-confirmed {
  background: #059669;
}

.dash-cal-status-needs-info,
.dash-cal-legend-dot.dash-cal-status-needs-info {
  background: #2563eb;
}

.dash-cal-status-rejected,
.dash-cal-legend-dot.dash-cal-status-rejected {
  background: #94a3b8;
}

.dash-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.dash-calendar-grid-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.dash-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.dash-calendar-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 4px 0;
}

.dash-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.dash-calendar-cell {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.dash-calendar-cell:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-sm);
}

.dash-calendar-cell-empty {
  border: none;
  background: transparent;
  cursor: default;
  min-height: 0;
  padding: 0;
}

.dash-calendar-cell-today {
  border-color: var(--teal-500);
  background: var(--teal-50);
}

.dash-calendar-cell-selected {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18);
}

.dash-calendar-cell-has-appts {
  background: linear-gradient(180deg, #f8fffe 0%, #fff 100%);
}

.dash-calendar-cell-num {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-800);
}

.dash-calendar-cell-count {
  align-self: flex-end;
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--teal-800);
  background: var(--teal-100);
  border-radius: 999px;
  padding: 2px 7px;
}

.dash-calendar-cell-preview {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.dash-calendar-preview-chip {
  display: block;
  font-size: 0.62rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink-700);
  border-left: 3px solid #f59e0b;
  padding-left: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-calendar-preview-chip.dash-cal-status-confirmed {
  border-left-color: #059669;
}

.dash-calendar-preview-chip.dash-cal-status-needs-info {
  border-left-color: #2563eb;
}

.dash-calendar-preview-chip.dash-cal-status-rejected {
  border-left-color: #94a3b8;
  opacity: 0.75;
}

.dash-calendar-preview-more {
  font-size: 0.62rem;
  color: var(--ink-500);
  font-weight: 600;
}

.dash-calendar-day-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  min-height: 420px;
}

.dash-calendar-day-head h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.dash-calendar-day-count {
  color: var(--ink-600);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.dash-calendar-day-empty {
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dash-calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-calendar-appt {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  border-left-width: 4px;
  border-left-color: #f59e0b;
}

.dash-calendar-appt.dash-cal-status-confirmed {
  border-left-color: #059669;
}

.dash-calendar-appt.dash-cal-status-needs-info {
  border-left-color: #2563eb;
}

.dash-calendar-appt.dash-cal-status-rejected {
  border-left-color: #94a3b8;
  opacity: 0.8;
}

.dash-calendar-appt-past {
  background: var(--ink-50, #f8fafc);
}

.dash-calendar-appt-time {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-calendar-appt-clock {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
}

.dash-calendar-appt-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-500);
}

.dash-calendar-appt-patient {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.dash-calendar-appt-condition {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin-bottom: 4px;
}

.dash-calendar-appt-meta,
.dash-calendar-appt-ref {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 4px;
}

.dash-calendar-open-btn {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.dash-calendar-today-note {
  margin-top: 14px;
}

.dash-calendar-unscheduled {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.dash-calendar-unscheduled h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.dash-calendar-unscheduled-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dash-calendar-unscheduled-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink-50, #f8fafc);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .dash-calendar-layout {
    grid-template-columns: 1fr;
  }

  .dash-calendar-day-panel {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .dash-calendar-stats {
    grid-template-columns: 1fr;
  }

  .dash-calendar-cell {
    min-height: 72px;
    padding: 6px;
  }

  .dash-calendar-cell-preview {
    display: none;
  }

  .dash-calendar-appt {
    grid-template-columns: 1fr;
  }
}

.pharmacist-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.dash-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.dash-stat-num {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.1;
}

.dash-stat-label {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 500;
}

.dash-stat-muted .dash-stat-num {
  color: var(--ink-700);
}

.pharmacist-dash-shell {
  display: grid;
  grid-template-columns: 200px 280px minmax(0, 1.4fr);
  gap: 16px;
  align-items: start;
  min-height: 68vh;
}

/* Must beat .pharmacist-dash-shell — archived only has list + detail */
.pharmacist-dash-shell.dash-archived-shell {
  grid-template-columns: 280px minmax(0, 1.4fr);
}

.pharmacist-dash-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: var(--shadow-sm);
}

.pharmacist-dash-sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 10px;
  padding: 0 6px;
}

.pharmacist-dash-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pharmacist-dash-status-filters {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dash-filter-btn {
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
}

.dash-filter-btn:hover {
  background: var(--bg);
}

.dash-filter-btn.active {
  background: var(--teal-50);
  color: var(--teal-800);
  font-weight: 600;
}

.dash-filter-btn-sub {
  font-size: 0.8rem;
}

.pharmacist-dash-inbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 72vh;
  overflow-y: auto;
  min-width: 0;
  width: 100%;
}

.pharmacist-dash-inbox .dash-inbox-item {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.pharmacist-dash-inbox-empty {
  padding: 24px;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.dash-inbox-item {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-inbox-item:hover,
.dash-inbox-item.selected {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.dash-inbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dash-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.dash-type-medication {
  background: var(--nhs-blue-light);
  color: var(--nhs-blue-dark);
}

.dash-type-appointment {
  background: #e8f5e9;
  color: #1b5e20;
}

.dash-type-consultation {
  background: var(--teal-50);
  color: var(--teal-800);
}

.dash-type-repeat {
  background: #fff3e0;
  color: #e65100;
}

.dash-inbox-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-900);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-demo-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  background: var(--ink-100);
  border-radius: 4px;
  vertical-align: middle;
}

.dash-inbox-ref {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-700);
  margin-bottom: 2px;
}

.dash-inbox-patient {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-inbox-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-500);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.dash-status-pending,
.dash-status-pending_review {
  background: #fff8e1;
  color: #f57f17;
}

.dash-status-confirmed,
.dash-status-approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.dash-status-needs_info {
  background: #e3f2fd;
  color: #1565c0;
}

.dash-status-rejected {
  background: #ffebee;
  color: #c62828;
}

.pharmacist-dash-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 72vh;
  overflow: hidden;
}

.pharmacist-dash-detail-empty {
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding: 32px;
  color: var(--ink-500);
  text-align: center;
}

.pharmacist-dash-detail-panel {
  padding: 22px 24px 28px;
  max-height: 72vh;
  overflow-y: auto;
}

.dash-transcript {
  margin: 22px 0 8px;
  padding: 16px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dash-transcript h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.dash-transcript-meta {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--ink-500);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dash-transcript-copy {
  padding: 4px 10px;
  font-size: 0.75rem;
  min-height: 0;
}

.dash-transcript-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dash-transcript-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dash-transcript-num {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ink-400);
  font-size: 0.82rem;
  padding-top: 2px;
}

.dash-transcript-q {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--ink-800);
  line-height: 1.4;
}

.dash-transcript-a {
  margin: 0;
  font-size: 0.88rem;
  color: var(--teal-800, #005eb8);
}

.dash-transcript-empty {
  color: var(--ink-500);
}

.dash-ref-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 12px;
}

.dash-ref-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-800);
}

.dash-ref-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.1rem;
  color: var(--ink-900);
}

.dash-ref-copy {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.booking-ref {
  margin-top: 10px;
  font-size: 0.92rem;
}

.booking-ref strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dash-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dash-detail-head h2 {
  font-size: 1.15rem;
  margin: 8px 0 4px;
}

.dash-detail-sub {
  font-size: 0.86rem;
  color: var(--ink-500);
  margin: 0;
}

.dash-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.dash-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
}

.dash-thread-empty {
  font-size: 0.86rem;
  color: var(--ink-500);
  margin-bottom: 12px;
}

.dash-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
}

.dash-msg-system {
  align-self: center;
  background: var(--bg);
  color: var(--ink-500);
  font-size: 0.78rem;
  border-radius: 999px;
  max-width: 100%;
}

.dash-msg-pharmacist {
  align-self: flex-end;
  background: var(--teal-600);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.dash-msg-patient {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.dash-msg-who {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 4px;
}

.dash-msg-text {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.dash-msg-time {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 6px;
}

.dash-compose {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dash-notes {
  margin: 18px 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dash-notes h3 {
  margin: 0 0 6px;
}

.dash-notes-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.dash-notes textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.dash-notes-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.dash-notes-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
}

.dash-compose-recipient {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.dash-compose-recipient a {
  font-weight: 600;
}

.dash-compose-note {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .pharmacist-dash-shell {
    grid-template-columns: 1fr;
  }

  .pharmacist-dash-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .pharmacist-dash-sidebar-label {
    width: 100%;
  }

  .pharmacist-dash-filters {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }

  .pharmacist-dash-status-filters {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--line);
    padding-left: 8px;
  }

  .dash-filter-btn {
    padding: 8px 12px;
  }

  .pharmacist-dash-inbox,
  .pharmacist-dash-detail {
    max-height: none;
    min-height: auto;
  }

  .pharmacist-dash-detail-panel {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .pharmacist-dash-toolbar {
    grid-template-columns: 1fr;
  }

  .pharmacist-dash-action-count--compact {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .pharmacist-dash-search,
  .pharmacist-dash-dob-search {
    width: 100%;
  }

  .pharmacist-dash-search input[type="date"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 9.5rem;
  }
}

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

  .pharmacist-dash-action-count--compact {
    width: 100%;
  }

  .pharmacist-dash-search,
  .pharmacist-dash-dob-search {
    flex-wrap: wrap;
    width: 100%;
  }

  .pharmacist-dash-search input[type="search"],
  .pharmacist-dash-search input[type="date"] {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .pharmacist-dash-search .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Travel clinic ---------- */
.page-hero-travel {
  background: linear-gradient(160deg, #e8f4f8 0%, #fff 55%);
}

.travel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.travel-dest-picker {
  margin-bottom: 12px;
}

.travel-dest-tiles-wrap {
  margin: 8px 0 20px;
}

.travel-dest-tiles-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.travel-dest-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.travel-dest-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 100%;
}

.travel-dest-tile:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.travel-dest-tile.active {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
  background: var(--teal-50);
}

.travel-dest-tile-region {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

.travel-dest-tile-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
}

.travel-dest-tile-vaccines {
  font-size: 0.78rem;
  color: var(--ink-700);
  line-height: 1.35;
}

.travel-malaria-badge-sm {
  font-size: 0.68rem;
  padding: 3px 8px;
  margin-top: 2px;
}

.travel-dest-tiles-empty {
  margin-top: 8px;
}

.travel-req-header h3 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.travel-req-region {
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.travel-req-lead {
  margin-bottom: 16px;
}

.travel-req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.travel-req-group h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin-bottom: 8px;
}

.travel-req-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.travel-req-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
}

.travel-tag-recommended {
  border-color: var(--teal-400);
  background: #fff;
  color: var(--teal-800);
}

.travel-tag-consider {
  border-color: #c9d4e8;
  color: var(--ink-700);
}

.travel-malaria-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.travel-malaria-none {
  background: #e8f5e9;
  color: #2e7d32;
}

.travel-malaria-low {
  background: #fff8e1;
  color: #f57f17;
}

.travel-malaria-variable {
  background: #fff3e0;
  color: #e65100;
}

.travel-malaria-high {
  background: #ffebee;
  color: #c62828;
}

.travel-req-disclaimer {
  margin-top: 16px;
  margin-bottom: 0;
}

.travel-intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 70%);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.travel-intro-copy h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.travel-intro-copy p {
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0;
}

.travel-intro-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.travel-intro-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-800);
}

.travel-intro-step span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--teal-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.travel-req-panel {
  background: #fff;
  border: 1px solid var(--teal-200);
  border-radius: 16px;
  padding: 20px 22px;
  margin-top: 8px;
  box-shadow: var(--shadow-md);
}

.travel-prevent-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  margin: 16px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
  border: 1px solid #ffe082;
}

.travel-prevent-banner-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.travel-prevent-banner strong {
  display: block;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.travel-prevent-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.travel-prevent-highlight {
  margin-bottom: 22px;
}

.travel-prevent-highlight h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--ink-900);
}

.travel-prevent-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.travel-prevent-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.travel-prevent-tier-essential {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.travel-prevent-tier-recommended {
  border-color: var(--teal-400);
  background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%);
}

.travel-prevent-tier-consider {
  border-color: #c9d4e8;
  background: #fafbfd;
}

.travel-prevent-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef4fb;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.travel-prevent-tier {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-800);
  margin-bottom: 4px;
}

.travel-prevent-tier-essential .travel-prevent-tier {
  color: #b45309;
}

.travel-prevent-card-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--ink-900);
}

.travel-prevent-card-body p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-700);
}

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

.travel-prevent-empty {
  padding: 16px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--ink-700);
  margin: 12px 0 20px;
}

.travel-req-details {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.travel-req-details h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--ink-800);
}

.travel-req-callout {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  font-size: 0.86rem;
  color: var(--ink-800);
}

.travel-req-malaria-high-panel,
.travel-req-yf-important {
  border: 1px solid #ffcdd2;
  border-radius: 12px;
  padding: 12px;
  background: #fff5f5;
}

.travel-req-malaria-variable-panel {
  border: 1px solid #ffe0b2;
  border-radius: 12px;
  padding: 12px;
  background: #fff8e1;
}

.travel-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.travel-service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}

.travel-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef4fb;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.travel-service-card h3 {
  font-size: 0.98rem;
  margin: 0;
  color: var(--ink-900);
}

.travel-service-card p {
  flex: 1;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-600);
}

.travel-service-book {
  align-self: flex-start;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.travel-pre-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.travel-pre-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.travel-traveller-hint {
  margin: 0 0 16px;
}

#travelTravellerSelect {
  max-width: 8rem;
}

.travel-lead-warning {
  color: #c62828;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.band-travel {
  border-color: var(--teal-200);
  background: linear-gradient(135deg, var(--teal-50) 0%, #fff 100%);
  color: var(--ink-900);
}

.band-travel h2 {
  color: var(--ink-900);
}

.band-travel p,
.band-travel .content-note {
  color: var(--ink-700);
}

.band-travel .slot-grid-label,
.band-travel .slot-grid-label strong {
  color: var(--ink-900);
}

.band-travel .slot-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-900);
}

.band-travel .slot-btn:hover {
  background: var(--teal-50);
  border-color: var(--teal-400);
  color: var(--ink-900);
}

.band-travel .slot-btn small {
  color: var(--ink-500);
  opacity: 1;
}

.band-travel .slot-locked-msg {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-700);
}

.band-travel .btn-primary {
  background: var(--teal-700);
  color: #fff;
}

.band-travel .btn-primary:hover {
  background: var(--teal-800);
  color: #fff;
}

.travel-popular-grid {
  display: none;
}

#travelBook.booking-locked .band-travel {
  opacity: 0.72;
}

#travelBook.booking-locked .slot-grid,
#travelBook.booking-locked #travelSlotsNote {
  pointer-events: none;
}

#travelBook.booking-unlocked .band-travel {
  opacity: 1;
}

@media (max-width: 1100px) {
  .travel-dest-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .travel-intro-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .travel-req-grid,
  .travel-pre-form-grid {
    grid-template-columns: 1fr;
  }

  .travel-prevent-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .travel-dest-tiles {
    grid-template-columns: 1fr;
  }

  .travel-services-grid {
    grid-template-columns: 1fr;
  }
}

/* NHS service information pages */
.nhs-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.nhs-service-article {
  padding: 28px;
}

.nhs-service-source {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.nhs-service-source p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.92rem;
  line-height: 1.5;
}

.nhs-service-status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--nhs-blue-light);
  color: var(--nhs-blue-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.nhs-service-status.is-fallback {
  background: #fff4e5;
  color: #8a4b08;
}

.nhs-service-summary {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-800);
  margin: 0 0 18px;
}

.nhs-service-content h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
}

.nhs-related {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.nhs-related h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.nhs-related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.nhs-related li {
  margin: 6px 0;
}

.nhs-service-content p,
.nhs-service-content li {
  color: var(--ink-700);
  line-height: 1.65;
  margin: 0 0 12px;
}

.nhs-service-content ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
}

.nhs-service-aside {
  position: sticky;
  top: 96px;
}

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

  .nhs-service-aside {
    position: static;
  }
}




.nav-services-group-nhs .nav-services-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nhs-blue);
}

.nav-services-group-nhs .nhs-logo {
  height: 18px;
}

/* —— Health blog —— */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-50);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
  flex: 1;
}

.blog-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.blog-card-body h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin: 0;
  flex: 1;
}

.blog-card-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-top: 4px;
}

.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--ink-500);
  margin-bottom: 28px;
}

.blog-article-meta time {
  font-weight: 500;
}

.blog-article .content-block p + p {
  margin-top: 14px;
}

.blog-article .content-list {
  margin-top: 16px;
}

.blog-disclaimer {
  margin-top: 36px;
  padding: 16px 18px;
  background: var(--amber-50);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-700);
}

.blog-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
}

.blog-back:hover {
  text-decoration: underline;
}

.blog-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

@media (min-width: 901px) and (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Patient account pages —— */
.account-page {
  max-width: 560px;
}

.account-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-sm);
}

.account-security-note {
  font-size: 0.88rem;
  color: var(--ink-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 22px;
}

.account-card .login-hint {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.account-card .booking-form .btn,
.account-otp .btn {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  margin-right: 0;
}

.account-otp {
  width: 100%;
}

.account-otp h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.account-otp-hint {
  font-size: 0.95rem;
  color: var(--ink-700);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.45;
}

.account-otp-hint.is-error {
  color: #9b1c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  font-weight: 600;
}

.account-otp-hint.is-ok {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  font-weight: 600;
}

.account-otp .booking-form .form-field,
.account-otp .booking-form .form-field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.account-card .btn {
  margin-top: 8px;
  margin-right: 8px;
}

@media (max-width: 640px) {
  .account-page {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .account-card {
    padding: 20px 16px 24px;
    border-radius: 14px;
  }

  .account-card .form-row.two-col {
    grid-template-columns: 1fr;
  }
}

.account-done h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.account-welcome {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.account-dashboard-page {
  max-width: 760px;
  padding-bottom: 48px;
}

.account-profile-card {
  margin-bottom: 28px;
}

.account-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-profile-head h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.account-profile-email {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0 0 22px;
}

.account-profile-grid dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-500);
  margin: 0 0 2px;
}

.account-profile-grid dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-900);
  font-weight: 500;
}

.account-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.account-dash-actions-inline {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.account-history-section {
  margin-top: 8px;
}

.account-upcoming-section {
  margin: 0 0 28px;
}

.account-upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.account-upcoming-card {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 55%);
  border: 1px solid var(--teal-200, #c5daf0);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.account-upcoming-when {
  margin: 6px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-800, #003d7a);
}

.account-dash-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

.account-dash-tab {
  flex: 1;
  border: 1px solid var(--teal-200, #c5daf0);
  background: var(--surface, #fff);
  color: var(--ink-700, #334155);
  font: inherit;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.account-dash-tab.active {
  background: var(--teal-700, #005eb8);
  border-color: var(--teal-700, #005eb8);
  color: #fff;
}

.account-password-card h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.account-password-lead {
  margin: 0 0 18px;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.account-password-hint {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--ink-500);
}

.account-password-otp {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.account-history-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.account-history-count {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-500);
}

.account-history-empty p {
  margin: 0 0 8px;
}

.account-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.account-history-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.account-history-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.account-history-kind {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-800);
}

.account-history-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-800);
}

.account-history-status-confirmed {
  background: #ecfdf5;
  color: #047857;
}

.account-history-status-needs_info {
  background: #fff7ed;
  color: #c2410c;
}

.account-history-status-rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.account-history-item strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.account-history-detail {
  margin: 0 0 8px;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.account-history-meds {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--ink-700);
  font-size: 0.9rem;
}

.account-history-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-500);
}

@media (max-width: 640px) {
  .account-profile-head {
    flex-direction: column;
  }

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

  .account-dash-actions .btn {
    width: 100%;
  }
}

button.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal-700);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.account-modal-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}

.account-modal-tab {
  flex: 1;
  border: 1px solid var(--teal-200, #c5daf0);
  background: var(--surface, #fff);
  color: var(--ink-700, #334155);
  font: inherit;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
}

.account-modal-tab.active {
  background: var(--teal-700, #005eb8);
  border-color: var(--teal-700, #005eb8);
  color: #fff;
}

#checkoutSignupModal .booking-form .btn {
  width: 100%;
  margin-top: 8px;
}

#checkoutResendVerify {
  margin-top: 10px;
}

/* ============================================
   Cookie consent
   ============================================ */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px;
  pointer-events: none;
}

.cookie-consent-inner {
  pointer-events: auto;
  width: min(920px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}

.cookie-consent-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.cookie-consent-copy p {
  color: var(--ink-700);
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.cookie-consent-links a {
  color: var(--nhs-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

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

.cookie-consent-actions .btn {
  padding: 11px 18px;
  font-size: 0.95rem;
}

.cookie-consent-manage {
  appearance: none;
  border: none;
  background: none;
  color: var(--ink-500);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.cookie-consent-manage:hover {
  color: var(--nhs-blue);
}

.cookie-consent-prefs {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--nhs-blue-light);
  border-radius: 12px;
}

.cookie-pref {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-800, var(--ink-700));
}

.cookie-pref input {
  accent-color: var(--nhs-blue);
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .cookie-consent {
    padding: 12px;
  }
  .cookie-consent-actions .btn {
    flex: 1 1 100%;
  }
}
