/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
  /* Global Luxury Medical Palette */
  --primary: #0f3c3e;       /* Deep Medical Teal */
  --primary-light: #1b5e61; /* Lighter Teal for hovers */
  --accent: #d4af37;        /* Champagne Gold */
  --text-main: #111827;     /* Almost Black */
  --text-light: #4b5563;    /* Dark Gray */
  --bg-light: #f9fafb;      /* Off-white */
  --white: #ffffff;
  --max-width: 1200px;
  
  /* Spacing & Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 4px; /* Sharper corners for professionalism */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  padding-top: 80px; /* Space for fixed header */
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--text-light); }
a { text-decoration: none; transition: 0.3s; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.98); /* Clean white background */
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(5px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* User Icon */
.user-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bg-light);
}


/* =========================================
   INDEX PAGE SPECIFIC STYLES
   ========================================= */

/* Hero Section Enhancements */




/* The "Vetting Protocol" - Step Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.process-step {
  background: var(--white);
  padding: 2rem;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.step-number {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  color: rgba(15, 60, 62, 0.1);
  line-height: 1;
  margin-bottom: -1rem;
  display: block;
}

/* Comparison Table (Why Us vs Them) */
.comparison-section {
  background: var(--bg-light);
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.compare-table th { background: var(--primary); color: white; }
.compare-table .check { color: green; font-weight: bold; }
.compare-table .cross { color: red; font-weight: bold; }

/* FAQ Accordion */
.faq-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  border-radius: 4px;
}
.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
}
.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: none; /* Hidden by default */
  color: var(--text-light);
  line-height: 1.6;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { color: var(--accent); }

/* Responsive text for SEO */
.seo-text-block {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* =========================================
   3. HERO SECTION (Replaces Video)
   ========================================= */
/* =========================================
   HERO SECTION (Responsive Update)
   ========================================= */
.hero-section {
  position: relative;
  /* Changed to min-height to prevent text cutting off on small screens */
  min-height: 80vh; 
  background-image: url('../img/background-image.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  /* Pull up behind header - ensure this matches your header height */
  margin-top: -80px; 
  padding-top: 80px; /* Add padding top so text doesn't hide behind header */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 60, 62, 0.7), rgba(15, 60, 62, 0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  width: 100%; /* Ensures it takes width on mobile */
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1; /* Tighter line height for mobile wrapping */
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-tagline {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

/* =========================================
   TRUST BAR (Responsive Update)
   ========================================= */
.trust-bar {
  background: var(--white);
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.logo-grid {
  display: flex;
  justify-content: center; /* Center items on all screens */
  align-items: center;
  flex-wrap: wrap; /* Allows stacking on mobile */
  gap: 3rem; /* Wider gap on desktop looks cleaner */
  opacity: 0.7;
}

.logo-grid span {
  font-weight: 700;
  font-size: 1.2rem;
  color: #000;
  white-space: nowrap; /* Prevents logo text from breaking awkwardly */
}

/* =========================================
   MOBILE & TABLET OPTIMIZATIONS
   ========================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-section {
    min-height: 60vh; /* Slightly shorter on tablet */
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .hero-section {
    min-height: 600px; /* Fixed minimum height ensures background is visible */
    background-position: center top; /* Focus on top of image on mobile */
  }

  .hero-content {
    padding: 1rem 1rem; /* Reduce side padding */
    margin-top: 30px;
  }

  .hero-content h1 {
    font-size: 1.5rem; /* Much smaller font for phones */
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem; /* Readable body text */
    margin-bottom: 1rem;
  }
  
  .hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  /* Trust Bar Tweaks */
  .trust-bar {
    padding: 1rem 0;
  }
  
  .logo-grid {
    gap: 1rem; /* Tighter gap for small screens */
    flex-direction: row; /* Keep in row but wrap */
  }
  
  .logo-grid span {
    font-size: 0.7rem; /* Smaller logos */
    flex: 0 1 auto; /* Allows flexible sizing */
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  margin-top: 1rem;
}

.btn-primary:hover {
  background: #b5952f;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 1rem;
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* Values Grid (Icon + Text) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.value-card {
  text-align: left;
  padding: 2rem;
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  transition: 0.3s;
}
.value-card:hover { background: white; box-shadow: var(--shadow-sm); }
.value-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* Team Styling Enhancements */
.team-img-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-light);
  transition: 0.3s;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

/* =========================================
   4. SECTIONS & CARDS
   ========================================= */
section { padding: 5rem 0; }

.bg-light { background-color: var(--bg-light); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* Service Cards (Clean, not Neon) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card h3 { color: var(--primary); margin-bottom: 1rem; }

/* Image Tiles */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tile {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
}

.tile span {
  width: 100%;
  background: rgba(15, 60, 62, 0.9);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  transition: 0.3s;
}

.tile:hover span { background: var(--accent); }

/* =========================================
   CASE STUDIES SPECIFIC STYLES
   ========================================= */

/* The "Results" Highlight Box */
.results-box {
  background: var(--bg-light);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}
.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* Case Study Badge */
.cs-badge {
  background: var(--accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Testimonial Wall (Masonry-ish look) */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.quote-card {
  background: var(--white);
  padding: 2.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  font-style: italic;
}
.quote-author {
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .results-box { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3rem 0; }
}

/* =========================================
   SERVICES PAGE SPECIFIC STYLES
   ========================================= */

/* Deep Dive Sections (Alternating Layout) */
.service-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 1px solid #eee;
}
.service-row:nth-child(even) {
  flex-direction: row-reverse; /* Flips image/text for variety */
}
.service-row:last-child { border-bottom: none; }

.service-content { flex: 1; }
.service-image { 
  flex: 1; 
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Feature List inside services */
.feature-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns of bullet points */
  gap: 1rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}
.feature-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* Responsive */
@media (max-width: 900px) {
  .service-row { flex-direction: column !important; gap: 2rem; }
  .service-image { width: 100%; height: 250px; }
  .feature-list { grid-template-columns: 1fr; }
}

/* =========================================
   5. PRICING & FORMS
   ========================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.pricing-card ul {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-card li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
}

/* =========================================
   6. FOOTER
   ========================================= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.8rem;
}

.footer-links a:hover { color: var(--accent); padding-left: 5px; }

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active { display: flex; }
  
  h1 { font-size: 2rem; }
  

  
  .pricing-card.featured { transform: none; }
}


/* =========================================
   PRICING PAGE SPECIFIC STYLES
   ========================================= */

/* The "Philosophy" Box */
.philosophy-box {
  background: #f0fdf4; /* Very light green */
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 500;
}

/* Feature Matrix (Comparison Table) */
.matrix-section {
  overflow-x: auto;
  margin-top: 4rem;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px; /* Forces scroll on mobile */
}
.matrix-table th, .matrix-table td {
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.matrix-table th:first-child, .matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  width: 30%;
}
.matrix-table th {
  background: var(--bg-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
.matrix-check { color: var(--primary); font-size: 1.2rem; }
.matrix-dash { color: #cbd5e1; }

/* ROI Section (Dark Mode look) */
.roi-section {
  background: var(--primary);
  color: white;
  padding: 4rem;
  border-radius: var(--radius);
  margin-top: 4rem;
  text-align: center;
}
.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.roi-card {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
}
.roi-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* Pricing Card Enhancements */
.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  margin: 1rem 0;
}
.price-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}


/* =========================================
   PILOT PROGRAM SPECIFIC STYLES
   ========================================= */

/* The "Territory" Warning Box */
.territory-box {
  background: #fffbeb; /* Light yellow */
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
  display: inline-block;
}

/* Qualification Grid (Who is this for?) */
.qualify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.qualify-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid #eee;
}
.qualify-card.good {
  background: #f0fdf4; /* Green tint */
  border-color: #bbf7d0;
}
.qualify-card.bad {
  background: #fef2f2; /* Red tint */
  border-color: #fecaca;
}
.qualify-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}
.checklist {
  list-style: none;
  text-align: left;
}
.checklist li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}
.qualify-card.good .checklist li::before {
  content: "✓";
  color: green;
  position: absolute;
  left: 0;
  font-weight: bold;
}
.qualify-card.bad .checklist li::before {
  content: "✕";
  color: red;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Step Process (Horizontal) */
.timeline-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.t-step {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.t-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 1rem auto;
}



/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

/* Contact Wrapper (Split Layout) */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Info is smaller, Form is wider */
  gap: 4rem;
  align-items: start;
  margin-top: -3rem; /* Overlap the hero slightly for depth */
  position: relative;
  z-index: 10;
}

/* Info Side (Left) */
.contact-info-card {
  background: var(--primary);
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.info-item {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-icon {
  font-size: 1.5rem;
  color: var(--accent);
}
.info-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}
.info-value {
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}

/* Form Side (Right) */
.contact-form-card {
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; margin-top: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================
   HEADER EXTRAS & MODAL STYLES
   ========================================= */

/* Header Right Side (Phone + CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-phone:hover { color: var(--accent); }

.btn-header {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  border: none;
}
.btn-header:hover { background: var(--accent); color: white; }

/* HIDE phone on small mobile to save space */
@media (max-width: 900px) {
  .header-phone { display: none; }
  .btn-header { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* =========================================
   POP-UP MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 60, 62, 0.85); /* Dark Teal Tint */
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: 0.3s ease;
  border-top: 5px solid var(--accent);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  transition: 0.2s;
}
.close-modal:hover { color: var(--primary); }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}