@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for NAPH Brand Colors */
:root {
  --naph-burgundy: #912D5B;
  --naph-teal: #0D7C66;
  --naph-light-teal: #41B3A2;
  --naph-light-blue: #F0F9FF;
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --red-50: #fef2f2;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --yellow-400: #facc15;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--slate-700);
  background-color: var(--white);
  scroll-behavior: smooth;
}

/* Utility classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Page-specific hero sections */
.hero-section {
  background: linear-gradient(135deg, var(--naph-light-blue) 0%, var(--white) 100%);
  padding: 5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge.burgundy {
  background-color: rgba(145, 45, 91, 0.1);
  color: var(--naph-burgundy);
}

.hero-badge.teal {
  background-color: rgba(13, 124, 102, 0.1);
  color: var(--naph-teal);
}

.hero-badge i {
  margin-right: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 64rem;
  margin: 0 auto 2rem;
}

.hero-highlight {
  color: var(--naph-burgundy);
}

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

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-indicator i {
  color: var(--naph-teal);
}

/* Content sections */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-image {
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 24rem;
  object-fit: cover;
}

.content-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.section-title.burgundy {
  color: var(--naph-burgundy);
}

.section-title.teal {
  color: var(--naph-teal);
}

.section-title i {
  margin-right: 0.75rem;
}

.section-text {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .content-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .trust-indicators {
    flex-direction: column;
    align-items: center;
  }
}

/* Policy page specific styles */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content ul {
  list-style: disc;
  margin-left: 2rem;
  margin-top: 1rem;
  color: var(--slate-600);
}

.policy-content ul li {
  margin-bottom: 0.5rem;
}

.contact-info-box {
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: var(--slate-50);
  border-radius: 0.5rem;
  border-left: 4px solid var(--naph-burgundy);
}

.contact-info-box p {
  margin-bottom: 0.5rem;
}

.contact-info-box p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #7a2449;
}

.btn-secondary {
  background-color: var(--naph-teal);
  color: var(--white);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--naph-teal);
  border: 2px solid var(--naph-teal);
}

.btn-outline:hover {
  background-color: var(--naph-teal);
  color: var(--white);
}

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

.btn-white:hover {
  background-color: var(--slate-100);
}

.card {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--naph-burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--naph-burgundy);
  margin: 0;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--naph-teal);
  font-weight: 500;
  margin: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--naph-burgundy);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--naph-teal);
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--naph-burgundy);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--naph-light-blue) 0%, var(--white) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--slate-900);
}

.hero-text .highlight {
  color: var(--naph-burgundy);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.trust-indicators {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stat-card {
  position: absolute;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card.bottom-left {
  bottom: -1.5rem;
  left: -1.5rem;
}

.stat-card.top-right {
  top: -1.5rem;
  right: -1.5rem;
  background-color: var(--naph-teal);
  color: var(--white);
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--naph-burgundy);
  margin-bottom: 0.5rem;
}

.stat-card.top-right .stat-number {
  color: var(--white);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.stat-card.top-right .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 48rem;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--slate-50);
}

.bg-dark {
  background-color: var(--slate-900);
  color: var(--white);
}

.bg-burgundy {
  background-color: var(--naph-burgundy);
  color: var(--white);
}

.bg-teal {
  background-color: var(--naph-teal);
  color: var(--white);
}

/* Service Cards */
.service-card {
  padding: 2rem;
  text-align: center;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  border: 1px solid var(--slate-100);
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.service-icon.burgundy {
  background-color: rgba(145, 45, 91, 0.1);
  color: var(--naph-burgundy);
}

.service-icon.teal {
  background-color: rgba(13, 124, 102, 0.1);
  color: var(--naph-teal);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-price {
  color: var(--naph-burgundy);
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-learn-more {
  color: var(--naph-teal);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.service-learn-more:hover {
  color: var(--naph-burgundy);
}

/* Contact Form */
.contact-form {
  background-color: var(--slate-50);
  padding: 2rem;
  border-radius: 1rem;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--slate-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--naph-teal);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.4;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon.burgundy {
  background-color: rgba(145, 45, 91, 0.1);
  color: var(--naph-burgundy);
}

.contact-icon.teal {
  background-color: rgba(13, 124, 102, 0.1);
  color: var(--naph-teal);
}

.contact-details h4 {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--slate-600);
  margin: 0.125rem 0;
}

/* Footer */
.footer {
  background-color: var(--slate-900);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--naph-burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin: 0;
}

.footer-description {
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--slate-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s;
}

.social-link:hover {
  background-color: var(--naph-burgundy);
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* Emergency Banner */
.emergency-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--red-600);
  color: var(--white);
  padding: 0.75rem;
  text-align: center;
  z-index: 1000;
  font-size: 0.875rem;
}

.emergency-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.emergency-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  margin-left: 1rem;
}

.emergency-close:hover {
  opacity: 0.8;
}

/* Icons (Font Awesome replacement) */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-style: normal;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .trust-indicators {
    justify-content: center;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .stat-card.bottom-left,
  .stat-card.top-right {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 1rem;
  }
  
  .emergency-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
  .navbar,
  .emergency-banner {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus states */
.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--naph-teal);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--slate-300);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Programs Section Styles */
.program-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-header {
    padding: 1.5rem;
    color: white;
}

.program-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.program-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.program-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.program-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.program-features i {
    color: var(--naph-teal);
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.program-footer {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

/* ==============================================
   COOKIE CONSENT BANNER - FULL OPTIMIZED VERSION
   Includes:
   - Better accessibility
   - Performance optimizations
   - Enhanced responsive behavior
   - Cross-browser fixes
   - Improved animations
============================================== */

/* Base Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    color: #333;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-top: 1px solid #ddd;
    will-change: transform;
    opacity: 0;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
}

/* Content Layout */
.cookie-content {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 15px;
}

/* Text Section */
.cookie-text {
    flex: 1;
    min-width: 300px;
    margin-bottom: 10px;
}

.cookie-text p {
    margin: 0;
    font-size: clamp(13px, 2vw, 14px);
    line-height: 1.5;
}

.cookie-text a {
    color: #2c7be5;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: none;
}

/* Button Container */
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Base Button Styles */
.cookie-btn {
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
    font-weight: 500;
}

.cookie-btn:focus-visible {
    outline: 2px solid #2c7be5;
    outline-offset: 2px;
}

/* Specific Button Types */
.cookie-accept {
    background-color: #2c7be5;
    color: white;
}

.cookie-accept:hover {
    background-color: #1a68d1;
}

.cookie-reject {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-reject:hover {
    background-color: #e9ecef;
}

.cookie-settings {
    background-color: white;
    color: #2c7be5;
    border: 1px solid #2c7be5;
}

.cookie-settings:hover {
    background-color: #f0f7ff;
}

/* Modal Styles */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
    padding: 20px;
}

.cookie-settings-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

/* Cookie Options */
.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2c7be5;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Labels and Descriptions */
.required-badge {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
}

.cookie-description {
    margin: 5px 0 0 60px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cookie-save {
    background-color: #2c7be5;
    color: white;
    min-width: 140px;
}

.cookie-save:hover {
    background-color: #1a68d1;
}

.cookie-cancel {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-cancel:hover {
    background-color: #e9ecef;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 8px 12px;
        min-width: 100px;
        flex-grow: 1;
    }
    
    .switch {
        width: 40px;
        height: 20px;
    }
    
    .slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .slider:before {
        transform: translateX(20px);
    }
    
    .cookie-description {
        margin-left: 50px;
        font-size: 12px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-buttons {
        justify-content: center;
    }
    
    .cookie-save,
    .cookie-cancel {
        min-width: 120px;
    }
}

/* Safari/iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .cookie-consent-banner {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .cookie-consent-banner {
        border: 2px solid #000;
    }
    
    .cookie-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-settings-modal,
    .modal-content {
        transition: none;
        animation: none;
    }
}

/* Print Styles */
@media print {
    .cookie-consent-banner,
    .cookie-settings-modal {
        display: none !important;
    }
}