:root {
  --navy-blue: #0A2540;
  --royal-blue: #004B87;
  --primary-blue: #053e57;
  --light-blue: #EBF3FA;
  --text-dark: #1a202c;
  --text-muted: #64748B;
  --bg-gray: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --secondary-color: #F5F5F5;
  --background-color: #8eaebc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-gray);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Top Contact Bar --- */
.top-bar {
  background-color: var(--primary-blue);
  color: var(--secondary-color);
  padding: 0.5rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Main Header Navigation --- */
header {
  background-color: var(--white);
  padding: 0rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;

}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-icon {
  width: 8em;
  height: 6em;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--primary-blue);
}

.btn-header-contact {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

/* Dropdown Menu (Hidden by Default) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 0.5rem 0;
  z-index: 1000;
}

/* Display Menu when active/open class is added */
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  color: var(--text-dark);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--navy-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- App Container & Views --- */
main#app {
  flex: 1;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(5, 62, 87, 1), rgba(5, 62, 87, 0.3)), center/cover no-repeat;
  color: var(--white);
  padding: 6rem 5%;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  text-transform: uppercase;
}

.hero-description {
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  opacity: 0.85;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary, .btn-hero-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-hero-primary {
  background-color: var(--white);
  color: var(--text-dark);
}

.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Welcome / About Section */
.welcome-section {
  padding: 4rem 5%;
  background: var(--white);
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.btn-learn-more {
  background-color: var(--royal-blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

/* Contact Page Forms */
.contact-container {
  max-width: 600px;
  margin: 3rem auto;
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 90%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
}

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

.btn-submit {
  background-color: var(--royal-blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
}

.status-msg {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  display: none;
  font-size: 0.9rem;
}

.status-msg.success { display: block; background-color: #D1E7DD; color: #0F5132; }
.status-msg.error { display: block; background-color: #F8D7DA; color: #842029; }

/* --- Footer --- */
footer {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 3rem 5% 1rem 5%;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive Breakpoints --- */

@media (max-width: 1024px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .welcome-section {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-content {
    grid-column: span 2;
    padding-left: 0;
    margin-top: 1rem;
  }
}

@media (max-width: 900px) {
  .top-bar {
    justify-content: center;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
  }

  nav.open {
    display: flex;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: var(--bg-gray);
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .btn-header-contact {
    display: none;
  }

  .btn-header-contact.mobile-only {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .welcome-section {
    grid-template-columns: 1fr;
    padding: 2.5rem 5%;
  }

  .stats-column {
    flex-direction: row;
  }

  .stat-card {
    flex: 1;
  }

  .welcome-content {
    grid-column: span 1;
  }

  .hero-section {
    padding: 4rem 5%;
  }

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

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .stats-column {
    flex-direction: column;
  }

  .hospital-image-card img {
    min-height: 220px;
  }
}

/* Container */
.services-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Header Section */
.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-header h2 {
  font-size: 2.25rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.services-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #0284c7;
  border-radius: 2px;
}

.services-header p {
  color: #64748b;
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* Responsive Grid System */
.services-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on mobile */
  gap: 1.75rem;
}

/* Tablet Layout (2 Columns) */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Layout (4 Columns) */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Styling */
.service-card {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

/* Icon Styles */
.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: #e0f2fe;
  color: #0284c7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .icon-wrapper {
  background-color: #0284c7;
  color: #ffffff;
}

/* Text Content */
.service-card h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Keeps buttons aligned at the bottom across all cards */
}

/* Button/Link Styling */
.service-btn {
  text-decoration: none;
  color: #0284c7;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-btn i {
  font-size: 0.8rem;
}

.service-btn:hover {
  color: #0369a1;
  gap: 0.75rem; /* Subtle hover effect moving the arrow */
}


/* --- Features Grid (5 Cards Setup) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}


/* --- Card Styles --- */
.card {
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

/* Background Color Variants */
.card-blue   { background-color: #f4f8ff; }
.card-green  { background-color: #f1faf5; }
.card-purple { background-color: #f5f4ff; }
.card-orange { background-color: #fef8f3; }
.card-teal   { background-color: #f0fdfa; }

/* Font Awesome Icon Wrapper Styling */
.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-wrapper i {
  font-size: 1.25rem;
}

/* Icon Color Variants */
.icon-blue   { background-color: #dbeaff; color: #2563eb; }
.icon-green  { background-color: #d1fae5; color: #059669; }
.icon-purple { background-color: #e0e7ff; color: #4f46e5; }
.icon-orange { background-color: #ffedd5; color: #ea580c; }
.icon-teal   { background-color: #ccfbf1; color: #0d9488; }

/* Card Content Typography */
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.925rem;
  color: #4b5563;
  line-height: 1.55;
}

/*styling for the four step process section*/
.process-wrapper {
  max-width: 1200px;
  width: 100%;
}

/* Header */
.process-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.process-header .subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0284c7;
  margin-bottom: 0.5rem;
  display: block;
}

.process-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
}

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

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Styling */
.step-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Header inside card */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.step-number {
  font-size: 1.75rem;
  font-weight: 800;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Text Styling */
.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.925rem;
  color: #64748b;
  line-height: 1.6;
}

/* Theme Accents Per Stage */
/* Stage 1: Blue */
.step-card:nth-child(1) { border-top: 4px solid #0284c7; }
.step-card:nth-child(1) .step-number { color: #0284c7; }
.step-card:nth-child(1) .step-icon { background-color: #e0f2fe; color: #0284c7; }

/* Stage 2: Indigo */
.step-card:nth-child(2) { border-top: 4px solid #6366f1; }
.step-card:nth-child(2) .step-number { color: #6366f1; }
.step-card:nth-child(2) .step-icon { background-color: #e0e7ff; color: #6366f1; }

/* Stage 3: Teal */
.step-card:nth-child(3) { border-top: 4px solid #0d9488; }
.step-card:nth-child(3) .step-number { color: #0d9488; }
.step-card:nth-child(3) .step-icon { background-color: #ccfbf1; color: #0d9488; }

/* Stage 4: Emerald */
.step-card:nth-child(4) { border-top: 4px solid #10b981; }
.step-card:nth-child(4) .step-number { color: #10b981; }
.step-card:nth-child(4) .step-icon { background-color: #d1fae5; color: #10b981; }

/*styling for the map*/
/* Section Container */
    .location-section {
      max-width: 1200px;
      margin: 0 auto;
      background: var(--white);
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      border: 1px solid #e2e8f0;
    }

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

    @media (min-width: 900px) {
      .location-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* Left Column: Coverage & Details */
    .business-info {
      padding: 2.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .section-tag {
      color: var(--accent-color);
      font-weight: 700;
      text-transform: uppercase;
      font-size: 0.85rem;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
      display: block;
    }

    .business-info h2 {
      font-size: 2rem;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
    }

    .base-location {
      font-weight: 600;
      color: var(--accent-color);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Area Badges Grid */
    .coverage-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0.75rem;
      margin-bottom: 2rem;
    }

    .area-card {
      background-color: var(--bg-light);
      border: 1px solid #e2e8f0;
      padding: 0.85rem 1rem;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .area-card.headquarters {
      background-color: #eff6ff;
      border-color: #bfdbfe;
    }

    .area-card .badge-icon {
      font-size: 1.2rem;
    }

    .area-card .area-details h4 {
      font-size: 0.95rem;
      color: var(--primary-color);
      margin-bottom: 0.1rem;
    }

    .area-card .area-details p {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .contact-details {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-bottom: 2rem;
      font-size: 0.95rem;
    }

    .contact-details a {
      color: var(--text-dark);
      text-decoration: none;
      font-weight: 500;
    }

    .contact-details a:hover {
      color: var(--accent-color);
    }

    .action-buttons {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn {
      padding: 0.8rem 1.5rem;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      display: inline-block;
      transition: all 0.2s ease;
      text-align: center;
    }

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

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

    .btn-secondary {
      background-color: var(--bg-light);
      color: var(--primary-color);
      border: 1px solid #cbd5e1;
    }

    .btn-secondary:hover {
      background-color: #e2e8f0;
    }

    /* Right Column: Wide Region Map Wrapper */
    .map-wrapper {
      position: relative;
      width: 100%;
      min-height: 450px;
      background-color: #e2e8f0;
    }

    @media (min-width: 900px) {
      .map-wrapper {
        min-height: 100%;
      }
    }

    .map-wrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    /* styling for the referral form */
    .form-container {
      background: var(--card-bg);
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 600px;
    }

    .step-indicator {
      display: flex;
      justify-content: space-between;
      margin-bottom: 25px;
      border-bottom: 2px solid #eee;
      padding-bottom: 10px;
    }

    .step-indicator span {
      font-weight: bold;
      color: #aaa;
    }

    .step-indicator span.active {
      color: var(--primary-color);
    }

    .form-step {
      display: none;
    }

    .form-step.active {
      display: block;
    }

    .form-group {
      margin-bottom: 18px;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
    }

    label .required {
      color: red;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--border-color);
      border-radius: 4px;
      font-size: 14px;
    }

    textarea {
      resize: vertical;
      height: 100px;
    }

    .radio-group, .checkbox-group {
      display: flex;
      gap: 15px;
      align-items: center;
      margin-top: 5px;
    }

    .checkbox-group {
      align-items: flex-start;
    }

    .checkbox-group input {
      margin-top: 3px;
    }

    .btn-submit {
      width: 100%;
      background-color: var(--primary-color);
      color: white;
      border: none;
      padding: 12px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

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

    /* Step 2 Styles */
    .thank-you-card {
      text-align: center;
      padding: 20px 10px;
    }

    .thank-you-card h2 {
      color: var(--primary-color);
      margin-bottom: 15px;
    }

    .thank-you-card p {
      line-height: 1.6;
      font-size: 16px;
      color: #555;
    }

    .icon-success {
      font-size: 48px;
      color: #28a745;
      margin-bottom: 15px;
    }