/* ==========================================================================
   MediFlow — Design System & Core Stylesheet
   Premium Healthcare Experience Prototype
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Primary: Deep Navy */
  --primary-950: #060F1E;
  --primary-900: #0A192F;
  --primary-850: #0D203D;
  --primary-800: #0F172A;
  --primary-700: #1E293B;
  --primary-600: #334155;
  --primary-500: #475569;

  /* Accent: Medical Teal & Turquoise */
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-300: #5EEAD4;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;

  /* Cyan & Sky accents */
  --cyan-600: #0891B2;
  --cyan-500: #06B6D4;
  --cyan-50:  #ECFEFF;

  /* Neutrals & Surfaces */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Status Colors */
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;
  --emerald-50:  #ECFDF5;

  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --amber-50:  #FFFBEB;

  --rose-600: #E11D48;
  --rose-500: #F43F5E;
  --rose-100: #FFE4E6;
  --rose-50:  #FFF1F2;

  --indigo-600: #4F46E5;
  --indigo-500: #6366F1;
  --indigo-50:  #EEF2FF;

  /* Layout, Radii & Shadows */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-teal: 0 10px 25px -5px rgba(13, 148, 136, 0.25);

  --max-width: 1240px;
  --header-height: 110px;
  --banner-height: 38px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p {
  color: var(--slate-600);
}

.text-teal { color: var(--teal-600) !important; }
.text-navy { color: var(--primary-900) !important; }
.text-muted { color: var(--slate-500) !important; }
.text-emerald { color: var(--emerald-600) !important; }
.text-amber { color: var(--amber-600) !important; }
.text-rose { color: var(--rose-600) !important; }

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-500);
}

/* --- Top Prototype Announcement Banner --- */
.prototype-banner {
  background: linear-gradient(90deg, var(--primary-950) 0%, var(--primary-850) 100%);
  color: var(--slate-300);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.prototype-banner .banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prototype-badge {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal-300);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prototype-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-reset-demo {
  color: var(--teal-300);
  font-size: 0.775rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.btn-reset-demo:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ==========================================================================
   MediFlow — Hospital Header & Navigation System (Real-World 2-Level Header)
   Conforms to modern hospital website standards (clarity, trust, usability)
   ========================================================================== */

/* Full-width Sticky Header Container */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.08);
}

/* --------------------------------------------------------------------------
   LEVEL 1 — SLIM HOSPITAL UTILITY BAR
   -------------------------------------------------------------------------- */
.utility-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  height: 38px;
  font-size: 0.8125rem;
  color: #475569;
}

.utility-container {
  max-width: var(--max-width, 1280px);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  transition: color 0.15s ease;
}

.utility-item:hover {
  color: #0D9488;
}

.utility-support svg {
  color: #0D9488;
  flex-shrink: 0;
}

.support-num {
  font-weight: 700;
  color: #0A192F;
}

.utility-divider-dot {
  color: #CBD5E1;
  font-size: 0.85rem;
  user-select: none;
}

.utility-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* Multilingual Devanagari Font Stack & Styling */
:root {
  --font-devanagari: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', 'Kohinoor Devanagari', 'Devanagari Sangam MN', sans-serif;
}

body.lang-devanagari {
  font-family: var(--font-devanagari), var(--font-sans);
}

body.lang-devanagari h1,
body.lang-devanagari h2,
body.lang-devanagari h3,
body.lang-devanagari h4,
body.lang-devanagari .font-display,
body.lang-devanagari .section-title,
body.lang-devanagari .hospital-brand-name {
  font-family: var(--font-devanagari), var(--font-display);
  line-height: 1.34;
}

.utility-lang-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.utility-lang-wrapper:hover {
  border-color: var(--teal-500);
}

.utility-lang-wrapper svg {
  color: #0D9488;
  flex-shrink: 0;
}

.utility-lang-select {
  border: none;
  background: transparent;
  color: #1E293B;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0;
  outline: none;
  font-family: inherit;
}

.utility-lang-select:focus {
  outline: none;
}

/* Mobile Menu Language Switcher Segmented Pills */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 1rem;
  padding: 0.35rem;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
}

.lang-pill {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-pill.active {
  background: #FFFFFF;
  color: var(--teal-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary-900);
}

.lang-pill:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
}

.utility-lang {
  cursor: pointer;
  user-select: none;
  font-weight: 550;
  color: #334155;
}

.utility-lang svg {
  color: #64748B;
}

.utility-divider {
  color: #CBD5E1;
  font-size: 0.85rem;
  user-select: none;
}

.utility-portal-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.utility-portal-btn:hover {
  background: #EDF2F7;
  color: #0D9488;
}

.utility-portal-btn svg {
  color: #0D9488;
}

.utility-portal-btn strong {
  color: #0A192F;
}

.utility-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* --------------------------------------------------------------------------
   LEVEL 2 — MAIN HEADER (Clean Full-Width Horizontal Bar)
   -------------------------------------------------------------------------- */
.main-header {
  height: 72px;
  background: #FFFFFF;
}

.main-header-container {
  max-width: var(--max-width, 1280px);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* LEFT: Hospital Branding */
.hospital-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}

.hospital-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28);
  flex-shrink: 0;
}

.hospital-brand-icon svg {
  width: 22px;
  height: 22px;
}

.hospital-brand-info {
  display: flex;
  flex-direction: column;
}

.hospital-brand-name {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-900, #0A192F);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hospital-brand-name .brand-accent {
  color: #0D9488;
}

.hospital-brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

/* CENTER: 6 Direct Main Navigation Links */
.hospital-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  padding: 0.6rem 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
  position: relative;
  line-height: 1.3;
}

.nav-item-link:hover {
  color: #0D9488;
  background-color: #F8FAFC;
}

.nav-item-link.active {
  color: #0D9488;
  font-weight: 700;
  background-color: rgba(13, 148, 136, 0.08);
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.95rem;
  right: 0.95rem;
  height: 2.5px;
  background: #0D9488;
  border-radius: 2px 2px 0 0;
}

/* RIGHT: Primary Action & Mobile Hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-book-appointment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0D9488;
  color: #FFFFFF !important;
  font-size: 0.925rem;
  font-weight: 650;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-book-appointment:hover {
  background: #0F766E;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.38);
  transform: translateY(-1px);
}

.btn-book-appointment:active {
  transform: translateY(0);
}

.btn-book-appointment svg {
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-menu-toggle:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #0A192F;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   MOBILE & TABLET NAVIGATION PANEL (Dropdown below header)
   -------------------------------------------------------------------------- */
.hospital-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 2px solid #CBD5E1;
  box-shadow: 0 16px 32px rgba(10, 25, 47, 0.12);
  max-height: calc(100vh - var(--header-height, 110px));
  overflow-y: auto;
  z-index: 1005;
}

.hospital-mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  padding: 1.25rem 1.5rem 1.75rem;
}

/* Mobile Patient Quick Banner */
.mobile-patient-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-patient-card:hover {
  background: rgba(13, 148, 136, 0.05);
  border-color: #0D9488;
}

.mobile-patient-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A192F 0%, #0D9488 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-patient-info {
  flex: 1;
  min-width: 0;
}

.mobile-patient-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0A192F;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-patient-role {
  font-size: 0.75rem;
  color: #0D9488;
  font-weight: 600;
  margin-top: 1px;
}

/* Mobile Vertical Links */
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-item {
  font-size: 1rem;
  font-weight: 600;
  color: #1E293B;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background-color: rgba(13, 148, 136, 0.08);
  color: #0D9488;
  font-weight: 700;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
}

.mobile-support-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0;
}

.mobile-support-link svg {
  color: #0D9488;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  position: relative;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-500) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 100%);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-navy {
  background: var(--primary-900);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.25);
}

.btn-navy:hover {
  background: var(--primary-800);
  box-shadow: 0 6px 20px rgba(10, 25, 47, 0.35);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-900);
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--teal-500);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--teal-600);
  border: 1.5px solid var(--teal-500);
}

.btn-outline:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
}

.btn-ghost:hover {
  background: var(--slate-100);
  color: var(--primary-900);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* --- Cards & Containers --- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(20, 184, 166, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
}

/* --- Badges & Pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-teal {
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
}

.badge-emerald {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid var(--emerald-100);
}

.badge-amber {
  background: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid var(--amber-100);
}

.badge-rose {
  background: var(--rose-50);
  color: var(--rose-600);
  border: 1px solid var(--rose-100);
}

.badge-slate {
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.45rem;
}

.form-label span.req {
  color: var(--rose-500);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--slate-800);
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.775rem;
  color: var(--slate-500);
  margin-top: 0.35rem;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-2xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--slate-200);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.35rem;
  margin: 0;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--slate-50);
  border-bottom-left-radius: var(--radius-2xl);
  border-bottom-right-radius: var(--radius-2xl);
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border-left: 4px solid var(--teal-600);
  padding: 1rem 1.25rem;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-success {
  border-left-color: var(--emerald-500);
}

.toast.toast-warning {
  border-left-color: var(--amber-500);
}

.toast.toast-error {
  border-left-color: var(--rose-500);
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-900);
  margin-bottom: 0.2rem;
}

.toast-message {
  font-size: 0.825rem;
  color: var(--slate-600);
  line-height: 1.4;
}

.toast-close {
  color: var(--slate-400);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.25rem;
}

.toast-close:hover {
  color: var(--slate-700);
}

/* --- Patient Journey Timeline System --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, var(--teal-500) 0%, var(--teal-200) 100%);
  z-index: 0;
}

.timeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-body-left {
  width: 44%;
  text-align: right;
  padding-right: 1.5rem;
}

.timeline-body-right {
  width: 44%;
  padding-left: 1.5rem;
}

.timeline-marker {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--teal-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.2);
  flex-shrink: 0;
}

.timeline-marker-emerald {
  background: var(--emerald-600);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
}

.timeline-mobile-content {
  display: none;
}

/* --- Site Footer --- */
.site-footer {
  background: var(--primary-950);
  color: var(--slate-400);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

/* --- Footer Brand Logo & Icon Fixed Proportions --- */
.footer-brand .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-brand .brand-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  min-height: 38px;
  max-height: 38px;
  border-radius: 9px;
  background: var(--teal-600);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  overflow: hidden;
}

.footer-brand .brand-icon svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px;
  max-height: 22px;
  display: block;
  flex-shrink: 0;
}

.footer-brand .brand-logo .flow {
  color: var(--teal-400);
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.925rem;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--teal-300);
  transform: translateX(3px);
}

.footer-emergency-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.footer-emergency-title {
  color: var(--rose-400);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-emergency-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.5;
  color: var(--slate-500);
}

.footer-credits {
  color: var(--slate-400);
}

/* ==========================================================================
   MediFlow — Architectural CAD Hospital Floor Map & Indoor Wayfinding
   ========================================================================== */

.floor-map-wrapper {
  background: #0F172A;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--slate-700);
  position: relative;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

/* CAD Map Control Toolbar */
.cad-toolbar {
  padding: 0.85rem 1.25rem;
  background: #0B132B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  z-index: 10;
}

.cad-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cad-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cad-zoom-controls {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cad-zoom-btn {
  background: transparent;
  color: #E2E8F0;
  border: none;
  padding: 0.4rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  min-width: 32px;
  min-height: 32px;
}

.cad-zoom-btn:hover {
  background: rgba(20, 184, 166, 0.25);
  color: #2DD4BF;
}

.cad-zoom-scale {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 52px;
  text-align: center;
  user-select: none;
}

/* CAD Map Viewport Container */
.map-svg-container {
  width: 100%;
  height: 540px;
  background: #090E1A;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-svg-container:active {
  cursor: grabbing;
}

.map-svg-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 0 0;
  transition: transform 0.08s ease-out;
}

/* CAD Map Architectural Elements */
.cad-room-group {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.cad-room-shape {
  fill: #FFFFFF;
  stroke: #334155;
  stroke-width: 2;
  transition: fill 0.25s ease, stroke 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
}

.cad-room-group:hover .cad-room-shape {
  fill: #F0FDFA;
  stroke: #0D9488;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 8px rgba(13, 148, 136, 0.25));
}

.cad-room-group.active .cad-room-shape {
  fill: #E6FFFA;
  stroke: #0D9488;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 12px rgba(13, 148, 136, 0.5));
}

.cad-dimmed {
  opacity: 0.22 !important;
  filter: grayscale(40%);
  pointer-events: none;
}

/* Architectural Corridor Walking Route Animation */
.walking-route-path {
  fill: none;
  stroke: #0D9488;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 6;
  animation: corridorWalkFlow 1.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.6));
}

@keyframes corridorWalkFlow {
  from {
    stroke-dashoffset: 28;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Animated Pin Beacons */
@keyframes cadRadarPing {
  0% {
    r: 8;
    opacity: 0.9;
    stroke-width: 3;
  }
  100% {
    r: 26;
    opacity: 0;
    stroke-width: 1;
  }
}

.cad-beacon-pulse {
  animation: cadRadarPing 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  transform-origin: center;
  pointer-events: none;
}

/* Floor Map CAD Legend Bar */
.cad-legend-bar {
  padding: 0.65rem 1.25rem;
  background: #0B132B;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.775rem;
  color: #94A3B8;
}

.cad-legend-items {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.cad-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cad-legend-chip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.chip-wing-a { background: #0D9488; }
.chip-wing-b { background: #2563EB; }
.chip-wing-c { background: #7C3AED; }
.chip-central { background: #D97706; }
.chip-corridor { background: #E2E8F0; border: 1px solid #94A3B8; }
.chip-route { background: #14B8A6; border-radius: 50%; box-shadow: 0 0 6px #14B8A6; }

/* Nearby Facilities Checklist in Info Panel */
.nearby-facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.nearby-facility-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  color: var(--slate-700);
  font-weight: 600;
}

.nearby-facility-pill svg {
  color: var(--teal-600);
  flex-shrink: 0;
}

/* Multi-Floor Route Leg Switcher Bar */
.multi-floor-leg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: #0B162C;
  border-bottom: 1px solid rgba(20, 184, 166, 0.3);
  font-size: 0.8rem;
  color: #CBD5E1;
  flex-wrap: wrap;
  gap: 0.6rem;
  z-index: 9;
}

.leg-switcher-group {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.leg-switcher-btn {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.leg-switcher-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  color: #2DD4BF;
  border-color: #14B8A6;
}

.leg-switcher-btn.active {
  background: #0D9488;
  color: #FFFFFF;
  border-color: #0D9488;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.5);
}

.start-location-select {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  background: var(--white);
  font-size: 0.825rem;
  color: var(--slate-800);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.start-location-select:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Route Turn Action Indicator in Direction Steps */
.direction-turn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.725rem;
  font-weight: 700;
  background: var(--teal-50);
  color: var(--teal-800);
  border: 1px solid var(--teal-200);
  margin-right: 0.4rem;
}

.direction-turn-pill.straight {
  background: var(--slate-100);
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.direction-turn-pill.elevator {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

/* Responsive adjustment for CAD map */
@media (max-width: 768px) {
  .map-svg-container {
    height: 420px;
  }
  .cad-toolbar {
    padding: 0.75rem 1rem;
  }
  .cad-legend-bar {
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .map-svg-container {
    height: 360px;
  }
  .nearby-facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Print Stylesheet (@media print) --- */
@media print {
  .prototype-banner,
  .site-header,
  .site-footer,
  .mobile-toggle,
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .toast-container,
  .btn,
  .hero-actions,
  #btnSubmitBooking,
  #btnPayTopBanner,
  #btnFastForwardAll,
  .modal-close-btn,
  .modal-footer {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .modal-overlay {
    position: static !important;
    background: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
  }

  .modal-dialog {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #CCCCCC !important;
    page-break-inside: avoid;
  }
}


