/* Base Styles */
:root {
  /* Updated Color Palette - Logo Inspired + Healthcare Theme */
  --primary-blue: #0055b3;
  --vibrant-blue: #1e90ff;
  --primary-teal: #20b2aa;
  --dark-teal: #008b8b;
  --medical-green: #00a86b;
  --clinical-green: #28a745;
  --trust-navy: #003366;
  --warm-gray: #6c757d;
  --light-teal: #e0f7fa;
  --healthcare-blue: #4a90e2;
  --success-green: #28a745;
  --warning-orange: #ff9500;
  --error-red: #dc3545;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --clinical-gray: #f5f5f5;

  /* Logo-inspired gradients + Medical theme */
  --logo-gradient: linear-gradient(135deg, #1e90ff, #20b2aa);
  --hero-gradient: linear-gradient(135deg, rgba(0, 85, 179, 0.6), rgba(0, 139, 139, 0.6));
  --medical-gradient: linear-gradient(135deg, #4a90e2, #00a86b);
  
  /* Legacy variables for compatibility (PRESERVED) */
  --primary-color: #0055b3;
  --primary-light: #007bff;
  --primary-dark: #003b80;
  --primary-option: #1e1e1e;
  --secondary-color: #4db8ac;
  --secondary-light: #868e96;
  --secondary-dark: #495057;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-teal);
}

a:focus {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--logo-gradient);
}

/* Text Selection Styling */
::selection {
  background-color: var(--primary-teal);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary-teal);
  color: var(--white);
}

/* PHASE 2: Enhanced Visual Elements & Page Alignment */

/* Breadcrumb Navigation - Enhanced */
.breadcrumbs {
  background-color: var(--off-white);
  padding: 15px 0;
  border-bottom: 1px solid var(--light-teal);
  font-size: 0.9rem;
  margin: 0;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--warm-gray);
  font-weight: 400;
}

.breadcrumb-current {
  color: var(--trust-navy);
  font-weight: 600;
}

/* Page Alignment - Standardized Container */
.page-container {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  padding: 0;
}

/* Standardized Page Headers */
.page-header {
  background: var(--hero-gradient), url('Page.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  margin-bottom: 0;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced Service Categories with Color Coding */
.service-category-medical-records {
  border-left: 5px solid var(--primary-blue);
}

.service-category-roi {
  border-left: 5px solid var(--primary-teal);
}

.service-category-ccm {
  border-left: 5px solid var(--medical-green);
}

.service-category-billing {
  border-left: 5px solid var(--trust-navy);
}

.service-category-rcm {
  border-left: 5px solid var(--vibrant-blue);
}

/* Interactive Elements - Enhanced Hover States */
.interactive-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(32, 178, 170, 0.1), transparent);
  transition: left 0.6s ease;
}

.interactive-card:hover::before {
  left: 100%;
}

.interactive-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(32, 178, 170, 0.2);
}

/* Enhanced Typography Hierarchy */
.content-section {
  padding: 60px 0;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-intro h2 {
  font-size: 2.2rem;
  color: var(--trust-navy);
  margin-bottom: 20px;
  position: relative;
}

.section-intro p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

/* Process Flow Indicators */
.process-step {
  position: relative;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(32, 178, 170, 0.15);
}

.process-step::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--logo-gradient);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--white);
}

/* Enhanced Form Elements */
.form-section {
  background: var(--off-white);
  padding: 60px 0;
  border-radius: 12px;
  margin: 40px 0;
}

.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--light-teal);
  z-index: 1;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--light-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--warm-gray);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.progress-step.active {
  background: var(--logo-gradient);
  border-color: var(--primary-teal);
  color: var(--white);
}

.progress-step.completed {
  background: var(--medical-green);
  border-color: var(--medical-green);
  color: var(--white);
}

/* Loading Animations */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* HEALTHCARE-THEMED LOADING SPINNER */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--light-teal);
  border-top: 4px solid var(--medical-green);
  border-radius: 50%;
  animation: medicalSpin 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  position: relative;
}

.loading-spinner::before {
  content: '⚕️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  animation: medicalFloat 2s ease-in-out infinite;
}

@keyframes medicalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes medicalFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Contact Page Elements */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.contact-method {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--logo-gradient);
}

.contact-method:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(32, 178, 170, 0.15);
}

.contact-method i {
  font-size: 2.5rem;
  color: var(--primary-teal);
  margin-bottom: 20px;
}

.contact-method h3 {
  color: var(--trust-navy);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.contact-method p {
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.contact-method strong {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

/* Service Page Enhancements */
.service-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.benefit-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-teal);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(32, 178, 170, 0.12);
}

.benefit-item h4 {
  color: var(--trust-navy);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.benefit-item p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Feature Tags */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.feature-tag {
  background: var(--light-teal);
  color: var(--trust-navy);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--primary-teal);
}

/* Splash Screen (ORIGINAL PRESERVED) */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-option);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.splash-content {
  text-align: center;
  color: var(--white);
}

.splash-text {
  font-size: 4rem;
  letter-spacing: 10px;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.splash-subtext {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 20px;
}

.splash-logo {
  height: 200px;
  margin-bottom: 24px;
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  transition: var(--transition);
  text-decoration: none;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 70px;
  width: auto;
  margin-right: 8px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}

.nav-links ul {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--dark-gray);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-teal);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-teal);
}

.nav-links a:hover {
  color: var(--primary-teal);
}

/* Hero Section */
.hero {
  background: var(--hero-gradient), url('EMR.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--off-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  border: 2px solid var(--light-teal);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(32, 178, 170, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Performance optimization */
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(32, 178, 170, 0.15);
  border-color: var(--primary-teal);
}

/* HEALTHCARE-THEMED SERVICE CARD ENHANCEMENTS */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--medical-gradient);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 0;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--trust-navy);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-card p {
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit {
  background-color: var(--white);
  border: 2px solid var(--light-teal);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(32, 178, 170, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Performance optimization */
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.benefit:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(32, 178, 170, 0.15);
  border-color: var(--primary-teal);
}

/* HEALTHCARE-THEMED BENEFIT ENHANCEMENTS */
.benefit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(32, 178, 170, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.benefit:hover::after {
  opacity: 1;
}

.benefit i {
  font-size: 2.5rem;
  color: var(--primary-teal);
  margin-bottom: 20px;
}

.benefit h3 {
  margin-bottom: 15px;
  color: var(--trust-navy);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.benefit p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

/* How it Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--off-white);
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 30px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -15px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-teal);
  display: none;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--logo-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  color: var(--trust-navy);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.step p {
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--hero-gradient), url('Med.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  position: relative;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  line-height: 1.2;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

/* HEALTHCARE-THEMED CTA BUTTON WITH CURSOR FIX */
.cta-button {
  display: inline-block;
  background: var(--logo-gradient);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* CURSOR FIX */
  pointer-events: auto;
  z-index: 10;
}

.cta-button * {
  /* Prevent child elements from interfering with cursor */
  pointer-events: none;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  /* CURSOR FIX */
  pointer-events: none;
  z-index: -1;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: var(--primary-teal) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Button Styles - Global Update */
button, .btn {
  background: var(--logo-gradient);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

button:hover, .btn:hover {
  background: var(--primary-teal) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--trust-navy);
  color: var(--light-gray);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--logo-gradient);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--medium-gray);
  transition: var(--transition);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links a:hover {
  color: var(--primary-teal);
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-teal);
}

.social-icons {
  display: flex;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--logo-gradient);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

/* Contact Page Styles */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-teal);
  margin-right: 15px;
}

.contact-item h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-form-container p {
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
  font-size: 1rem;
  color: var(--dark-gray);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:nth-last-child(2),
.form-group:last-child {
  grid-column: span 2;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--trust-navy);
  font-size: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-teal);
  border-radius: 4px;
  font-family: var(--font-main);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--warm-gray);
  opacity: 0.8;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 8px rgba(32, 178, 170, 0.3);
}

.contact-form button[type="submit"] {
  background: var(--logo-gradient);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  /* CURSOR FIX */
  pointer-events: auto;
}

.contact-form button[type="submit"] * {
  pointer-events: none;
}

.contact-form button[type="submit"]:hover {
  background: var(--primary-teal) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--white);
  border: 1px solid var(--light-teal);
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: var(--off-white);
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--logo-gradient);
  border-color: var(--primary-teal);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--off-white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background-color: var(--white);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--light-teal);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--trust-navy);
  line-height: 1.4;
}

.faq-toggle {
  font-size: 1rem;
  color: var(--primary-teal);
  transition: var(--transition);
}

.faq-answer {
  background-color: var(--white);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer p {
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 200px;
}

.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
}

/* Form Validation Styles */
.invalid {
  border-color: var(--error-red) !important;
}

.error-message {
  color: var(--error-red);
  font-size: 0.85rem;
  margin-top: 5px;
}

.success-message {
  background-color: var(--light-teal);
  color: var(--trust-navy);
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.success-message i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: var(--medical-green);
}

/* Page Banner (PRESERVED) */
.page-banner {
  background: linear-gradient(rgba(0, 85, 179, 0.8), rgba(0, 59, 128, 0.9)), url('Page.png') no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

/* PHASE 3: HEALTHCARE-THEMED SCROLL-TO-TOP BUTTON */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--medical-gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
  overflow: hidden;
  /* CURSOR FIX */
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: medicalPulse 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.scroll-to-top:hover::before {
  left: 100%;
}

.scroll-to-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.6);
}

/* Medical clipboard icon instead of arrow */
.scroll-to-top::after {
  content: '📋';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: white;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.scroll-to-top:hover::after {
  transform: translate(-50%, -52px) scale(1.1);
}

@keyframes medicalPulse {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Scroll-triggered Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Micro-interactions */
.micro-bounce {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.micro-bounce:hover {
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Performance Optimizations */
.hero,
.cta-section,
.page-header {
  /* Hardware acceleration */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.service-card,
.benefit,
.interactive-card {
  /* Optimize animations */
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .breadcrumb-nav {
    font-size: 0.85rem;
  }
  
  .section-intro h2 {
    font-size: 1.8rem;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .service-benefits {
    grid-template-columns: 1fr;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .scroll-to-top::after {
    font-size: 24px;
  }
  
  .page-header,
  .hero,
  .cta-section {
    background-attachment: scroll;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .service-card {
    min-height: auto;
    padding: 25px 20px;
  }

  .service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .benefit {
    min-height: auto;
    padding: 25px 15px;
  }

  .benefit h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .benefit p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .cta-section h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .cta-section p {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-links ul {
    flex-direction: column;
    padding: 20px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group:nth-last-child(2) {
    grid-column: span 1;
  }

  .logo img {
    height: 60px;
  }
}

@media (max-width: 992px) {
  .step:not(:last-child)::after {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .hero h1 {
    font-size: 2.7rem;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  .benefit h3 {
    font-size: 1.25rem;
  }
}

/* PRESERVED BREADCRUMB STYLES (from original) */
.breadcrumbs {
  font-size: 0.95rem;
  margin: 1rem 0;
  color: #555;
}

.breadcrumbs a {
  color: #0072ce;
  text-decoration: none;
  margin-right: 0.3rem;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.footer-legal {
  width: 100%;
  text-align: center;
  margin-top: 18px;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 30px;
}

.footer-legal-links li a {
  color: #bfc8d8;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-legal-links li a:hover,
.footer-legal-links li a:focus {
  color: #36b0f5;
  text-decoration: underline;
}
.visually-hidden {
  position: absolute !important;
  height: 1px; 
  width: 1px; 
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); /* IE6, IE7 */
  clip: rect(1px 1px 1px 1px);
  white-space: nowrap; /* added line */
}