/* Family Dashboard Custom Styles */

/* ========================================
   Variables and Root Settings
   ======================================== */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary: #4ECDC4;
  --dark: #2D3436;
  --light: #F8F9FA;
  --success: #00D9A5;
  --warning: #FFB800;
  --danger: #FF4757;
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #FFB800 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s ease;
  
  /* Mobile Design System Variables */
  --color-primary: #FF6B35;
  --color-surface: #FFFFFF;
  
  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  
  --line-height-base: 1.5;
  --line-height-heading: 1.2;
  
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  
  /* Components */
  --button-min-height: 44px;
  --button-padding-x: 24px;
  --button-padding-y: 8px;
  --button-border-radius: 8px;
  --button-font-size: 16px;
  --button-font-weight: 600;
  
  --card-border-radius: 8px;
  --card-padding: 16px;
  
  --input-min-height: 44px;
  --input-padding-x: 16px;
  --input-padding-y: 8px;
  --input-border-radius: 8px;
  --input-border: 1px solid #e0e0e0;
  --input-background: #FFFFFF;
  --input-text-color: #333;
  --input-font-size: 16px;
  
  /* Layout */
  --nav-height: 60px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 50%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  z-index: 1; /* Ensure hero section is below navigation elements */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s;
  animation-fill-mode: both;
}

/* Floating Animation Elements */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

/* ========================================
   Search Section
   ======================================== */
.search-section {
  padding: 40px 0;
  background: #f8f9fa;
}

.search-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  animation: fadeIn 0.6s ease-out;
}

.search-header {
  text-align: center;
  margin-bottom: 30px;
}

.search-header h2 {
  color: #333;
  font-weight: 600;
}

.search-header p {
  color: #666;
  margin-top: 10px;
}

/* Search Form Styling */
.search-form .form-control,
.search-form .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.search-form .form-control:focus,
.search-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.1);
}

.search-form label {
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.btn-search {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 12px 40px;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* ========================================
   School Cards
   ======================================== */
.school-results {
  padding: 40px 0;
}

.school-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease-out;
}

.school-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.school-card-header {
  background: var(--gradient-primary);
  color: white;
  padding: 20px;
}

.school-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.school-type {
  opacity: 0.9;
  font-size: 0.9rem;
}

.school-card-body {
  padding: 25px;
}

.school-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #666;
}

.school-info-item i {
  color: var(--primary);
  margin-right: 10px;
  width: 20px;
}

.availability-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.available {
  background-color: #d4edda;
  color: #155724;
}

.waitlist {
  background-color: #fff3cd;
  color: #856404;
}

.btn-details {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

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

/* ========================================
   Statistics Section
   ======================================== */
.stats-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 2rem;
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-label {
  color: #666;
  font-size: 1.1rem;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
  padding: 60px 0;
  background: white;
}

.testimonial-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.quote-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  padding-top: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.author-info h5 {
  margin: 0;
  color: #333;
  font-weight: 600;
}

.author-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
  padding: 60px 0;
  background: var(--gradient-primary);
  color: white;
}

.features-section .section-title {
  color: white;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-description {
  opacity: 0.9;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 40px;
}

.btn-cta {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 15px 50px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-block;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
  color: white;
  text-decoration: none;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ========================================
   Loading States
   ======================================== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  /* Mobile Design System Implementation */
  
  /* Hero Section - Buggy Homepage Style Mobile */
  .hero-section {
    padding: calc(4rem + 57px) 0 4rem; /* Match homepage masthead */
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
  }
  
  .hero-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
  }
  
  .hero-content {
    text-align: center;
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
  }
  
  .hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md); /* Proper spacing */
  }
  
  .hero-title {
    font-size: 3rem; /* Match homepage */
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: white;
    font-family: "Lora", serif;
  }
  
  .hero-subtitle {
    font-size: 1.5rem; /* Match homepage subheading */
    line-height: 1.1;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    color: white;
    font-weight: 300;
    font-family: "Open Sans", sans-serif;
  }
  
  /* Stats - Loveform Minimal */
  .stat-items {
    display: inline-flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    display: block;
    color: white;
    line-height: 1;
  }
  
  .stat-label {
    font-size: 0.625rem; /* Tiny elegant text */
    opacity: 0.7;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
  }
  
  /* CTA Buttons - Touch Optimized */
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    min-height: var(--button-min-height);
    padding: var(--button-padding-y) var(--button-padding-x);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
  }
  
  .btn-hero-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
  }
  
  .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
  }
  
  /* Trust Indicators - Mobile Layout */
  .trust-indicators {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
  }
  
  .trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    color: white;
  }
  
  /* Search Container - Mobile Optimized */
  .search-container {
    padding: var(--spacing-md);
    margin: var(--spacing-md);
    background: var(--color-surface);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
  }
  
  .btn-search {
    width: 100%;
  }
  
  .school-card {
    margin-bottom: 20px;
  }
  
  .feature-card {
    margin-bottom: 20px;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .btn-cta {
    padding: 12px 40px;
  }
}

@media (max-width: 576px) {
  /* Small Mobile Implementation - Follows Design System */
  
  /* Navigation Fix */
  .navbar {
    height: var(--nav-height);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  /* Content Offset for Fixed Nav */
  body {
    padding-top: var(--nav-height);
  }
  
  /* Hero Adjustments for Small Screens - Buggy Minimal */
  .hero-section {
    padding: calc(var(--nav-height) + var(--spacing-md)) 0 var(--spacing-md);
    min-height: 100vh; /* Full height on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + var(--spacing-sm));
  }
  
  .hero-badge {
    margin-bottom: 0; /* No gap between badge and title */
  }
  
  .hero-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xxs);
    margin-top: var(--spacing-xxs);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
  }
  
  /* Floating Cards - Hide on Small Mobile */
  .floating-card {
    display: none;
  }
  
  /* Stats - Compact View */
  .stat-items {
    padding: var(--spacing-xs);
    gap: var(--spacing-xxs);
  }
  
  .stat-number {
    font-size: var(--font-size-lg);
  }
  
  .stat-label {
    font-size: 0.625rem; /* Even smaller on tiny screens */
  }
  
  /* Form Inputs - Touch Optimized */
  .search-form .form-control,
  .search-form .form-select {
    min-height: var(--input-min-height);
    padding: var(--input-padding-y) var(--input-padding-x);
    font-size: var(--input-font-size);
    border: var(--input-border);
    border-radius: var(--input-border-radius);
    background: var(--input-background);
    color: var(--input-text-color);
  }
  
  .search-form .form-control:focus,
  .search-form .form-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  }
  
  /* School Cards - Mobile Optimized */
  .school-card {
    margin-bottom: var(--spacing-sm);
    border-radius: var(--card-border-radius);
    overflow: hidden;
  }
  
  /* Family Overview Cards */
  .overview-card {
    padding: var(--card-padding);
    margin-bottom: var(--spacing-sm);
  }
  
  /* Section Spacing */
  .search-section,
  .stats-section,
  .features-section {
    padding: var(--spacing-lg) 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .quote-icon {
    font-size: 2rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.border-gradient {
  border: 2px solid;
  border-image: var(--gradient-primary) 1;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.bg-gradient-success {
  background: linear-gradient(135deg, var(--success) 0%, #00B894 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #FFA000 100%);
}

/* ========================================
   Advanced Filters
   ======================================== */
.btn-filter-toggle {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.advanced-filters-panel {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

.distance-slider {
  display: flex;
  align-items: center;
  gap: 15px;
}

.distance-value {
  font-weight: 600;
  color: var(--primary);
}

.program-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.search-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-map-view {
  background: white;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-map-view:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

/* ========================================
   Map View
   ======================================== */
.map-section {
  padding: 0;
  margin-top: -50px;
}

.map-sidebar {
  background: white;
  height: 600px;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.map-sidebar-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.school-marker {
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}

.school-marker.available {
  color: var(--success);
  border: 2px solid var(--success);
}

.school-marker.limited {
  color: var(--warning);
  border: 2px solid var(--warning);
}

.school-marker.waitlist {
  color: var(--danger);
  border: 2px solid var(--danger);
}

/* ========================================
   Enhanced School Cards
   ======================================== */
.results-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.view-options {
  display: flex;
  gap: 15px;
}

.btn-compare, .btn-favorites {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-compare:hover, .btn-favorites:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-favorite {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
  transform: scale(1.1);
}

.btn-favorite.favorited {
  color: var(--danger);
}

.compare-checkbox {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.school-header {
  margin-bottom: 15px;
}

.school-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--warning);
}

.rating-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin-left: 5px;
}

/* Transport Section */
.transport-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.transport-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark);
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.transport-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transport-item i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.transport-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.transport-item span {
  font-size: 0.85rem;
  color: #6c757d;
}

.vehicle-amenities {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.amenity-tag {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Pricing Section */
.pricing-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  margin-top: 20px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.price-main {
  display: flex;
  align-items: baseline;
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.price-period {
  font-size: 1rem;
  color: #6c757d;
  margin-left: 5px;
}

.price-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
}

.discount-badge {
  background: var(--success);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-calculate-quote {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-calculate-quote:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

/* Trust Section */
.trust-section {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.trust-badge {
  flex: 1;
  background: #e8f5e9;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--success);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.trust-badge i {
  font-size: 1.2rem;
}

/* Quick Stats */
.quick-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #6c757d;
}

.quick-stat i {
  color: var(--primary);
}

/* ========================================
   Cost Calculator
   ======================================== */
.calculator-section {
  background: var(--light);
  padding: 80px 0;
}

.calculator-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.calculator-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
}

.calculator-subtitle {
  text-align: center;
  color: #6c757d;
  margin-bottom: 40px;
}

.calculator-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
}

.calc-input-group {
  margin-bottom: 25px;
}

.calc-input-group label {
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  color: var(--dark);
}

.number-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 5px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  width: fit-content;
}

.number-selector button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.number-selector button:hover {
  background: var(--primary-dark);
}

.number-selector input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.calc-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  background: white;
}

.days-selector {
  display: flex;
  gap: 15px;
}

.day-option {
  flex: 1;
  position: relative;
}

.day-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.day-option span {
  display: block;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-option input[type="radio"]:checked + span {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.distance-display {
  display: flex;
  align-items: center;
  gap: 20px;
}

.distance-text {
  font-weight: 600;
  color: var(--primary);
}

/* Quote Display */
.quote-display {
  background: var(--gradient-primary);
  color: white;
  padding: 40px;
  border-radius: 15px;
  height: 100%;
}

.quote-display h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: white;
}

.quote-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 30px;
}

.quote-currency {
  font-size: 2rem;
  opacity: 0.8;
}

.quote-value {
  font-size: 4rem;
  font-weight: 700;
  margin: 0 5px;
}

.quote-period {
  font-size: 1.2rem;
  opacity: 0.8;
}

.quote-breakdown {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.breakdown-item.total {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 2px solid rgba(255,255,255,0.3);
}

.quote-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-quote-primary, .btn-quote-secondary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

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

.btn-quote-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-quote-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-quote-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.quote-note {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  padding: 80px 0;
  background: white;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.2rem;
  margin-top: 10px;
}

.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-button {
  background: white;
  border: none;
  padding: 20px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-button::after {
  margin-left: auto;
}

.accordion-body {
  padding: 20px 30px;
  line-height: 1.8;
  color: #495057;
}

.faq-cta {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.faq-cta p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--dark);
}

/* ========================================
   Route Preview Section
   ======================================== */
.route-preview-section {
  background: var(--gradient-secondary);
  padding: 80px 0;
  color: white;
}

.route-preview-section .section-title,
.route-preview-section .section-subtitle {
  color: white;
}

.route-preview-container {
  margin-top: 50px;
}

.route-timeline {
  position: relative;
  padding-left: 50px;
}

.route-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.3);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.timeline-item.active {
  opacity: 1;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  width: 40px;
  height: 40px;
  background: white;
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.timeline-item.active .timeline-marker {
  background: var(--primary);
  color: white;
}

.timeline-content h4 {
  color: white;
  margin-bottom: 8px;
}

.timeline-content p {
  opacity: 0.9;
  margin: 0;
}

.route-video-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.route-preview-image {
  width: 100%;
  height: auto;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: white;
}

.play-button i {
  font-size: 2rem;
  color: var(--primary);
  margin-left: 5px;
}

.route-features {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.route-feature {
  background: rgba(255,255,255,0.1);
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.route-feature i {
  font-size: 1.2rem;
}

/* ========================================
   Chat Widget
   ======================================== */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chat-button {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
}

.chat-button:hover {
  transform: scale(1.1);
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  animation: slideInUp 0.3s ease;
}

.chat-header {
  background: var(--gradient-primary);
  padding: 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-agent img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.chat-agent h5 {
  margin: 0;
  font-size: 1rem;
  color: white;
}

.status {
  font-size: 0.85rem;
  opacity: 0.9;
}

.chat-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

.chat-message {
  margin-bottom: 15px;
}

.chat-message.agent {
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.chat-send {
  background: var(--primary);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send:hover {
  background: var(--primary-dark);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   School Comparison Modal
   ======================================== */
.comparison-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.comparison-modal.active {
  display: flex;
}

.comparison-content {
  background: white;
  border-radius: 20px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.comparison-title {
  font-size: 2rem;
  color: var(--dark);
}

.btn-close-comparison {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close-comparison:hover {
  color: var(--dark);
}

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

.comparison-school {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  position: relative;
}

.comparison-school-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.comparison-school-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.comparison-feature {
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-feature:last-child {
  border-bottom: none;
}

.feature-label {
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.feature-value {
  font-size: 1.1rem;
  color: var(--dark);
}

.comparison-highlight {
  background: var(--success);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-left: 10px;
}

.comparison-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

/* ========================================
   Transportation Details Modal
   ======================================== */
.transport-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.transport-modal.active {
  display: flex;
}

.transport-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}

.route-map-container {
  height: 400px;
  background: #f8f9fa;
  border-radius: 15px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.route-stops {
  margin-bottom: 30px;
}

.stop-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
}

.stop-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 20px;
}

.stop-details {
  flex: 1;
}

.stop-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}

.stop-time {
  color: #6c757d;
  font-size: 0.9rem;
}

.driver-info-card {
  background: var(--gradient-secondary);
  color: white;
  padding: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.driver-avatar {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 2rem;
}

.driver-details h4 {
  color: white;
  margin-bottom: 10px;
}

.driver-stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.driver-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

/* ========================================
   Interactive Toggle Styles
   ======================================== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

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

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

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-weight: 500;
}

/* ========================================
   Enhanced Map Styles
   ======================================== */
.map-container {
  position: relative;
  height: 600px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
}

.map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.map-control-btn {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-control-btn:hover {
  background: #f8f9fa;
  border-color: var(--primary);
  color: var(--primary);
}

.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.legend-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid;
}

.legend-marker.available {
  background: var(--success);
  border-color: var(--success);
}

.legend-marker.limited {
  background: var(--warning);
  border-color: var(--warning);
}

.legend-marker.waitlist {
  background: var(--danger);
  border-color: var(--danger);
}

/* ========================================
   Enhanced Filters Expansion
   ======================================== */
.filter-section {
  background: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-title {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.grade-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.grade-checkbox {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.grade-checkbox:hover {
  border-color: var(--primary);
}

.grade-checkbox.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.time-range-selector {
  display: flex;
  gap: 15px;
  align-items: center;
}

.time-input {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: 120px;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-tag {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-tag:hover {
  border-color: var(--secondary);
}

.language-tag.selected {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* ========================================
   Virtual Route Preview Enhancement
   ======================================== */
.route-preview-enhanced {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.route-3d-view {
  position: relative;
  height: 500px;
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
}

.route-timeline-enhanced {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  overflow-x: auto;
}

.timeline-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  position: relative;
}

.timeline-stop::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 100%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
}

.timeline-stop:last-child::after {
  display: none;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 1;
  position: relative;
}

.timeline-stop.active .timeline-marker {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.timeline-stop.completed .timeline-marker {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.timeline-info {
  margin-top: 10px;
  text-align: center;
}

.timeline-time {
  font-weight: 600;
  color: var(--dark);
}

.timeline-location {
  font-size: 0.85rem;
  color: #6c757d;
}

/* ========================================
   Enhanced Live Chat Widget
   ======================================== */
.chat-widget-enhanced {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
}

.chat-options {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-xl);
  padding: 20px;
  min-width: 250px;
  display: none;
  animation: fadeInUp 0.3s ease;
}

.chat-options.active {
  display: block;
}

.chat-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.chat-option:hover {
  background: #f8f9fa;
}

.chat-option-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.chat-option-text h5 {
  margin: 0;
  font-size: 1rem;
  color: var(--dark);
}

.chat-option-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #6c757d;
}

.chat-quick-actions {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.quick-action-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========================================
   Mobile Responsive Enhancements
   ======================================== */
@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .route-timeline-enhanced {
    padding: 15px;
  }
  
  .map-sidebar {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .advanced-filters-panel {
    padding: 15px;
  }
  
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .school-card-actions {
    flex-direction: column;
  }
  
  .btn-school {
    width: 100%;
  }
  
  .transport-grid {
    grid-template-columns: 1fr;
  }
  
  .quote-display {
    padding: 30px 20px;
  }
  
  .quote-value {
    font-size: 3rem;
  }
  
  .calculator-form {
    padding: 20px;
  }
  
  .days-selector {
    flex-direction: column;
  }
  
  .route-3d-view {
    height: 300px;
  }
  
  /* Loveform Chat Widget - Mobile Optimized */
  .chat-widget,
  .chat-widget-enhanced {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 900;
  }
  
  .chat-button {
    width: var(--touch-target-comfortable);
    height: var(--touch-target-comfortable);
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
  }
  
  .chat-button:active {
    transform: scale(0.95);
  }
  
  /* Touch target for accessibility */
  --touch-target-comfortable: 48px;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .search-box {
    padding: 20px;
    margin-top: -50px;
  }
  
  .school-card {
    margin-bottom: 20px;
  }
  
  .comparison-content {
    padding: 20px;
  }
  
  .transport-content {
    padding: 20px;
  }
  
  .route-stops {
    margin-bottom: 20px;
  }
  
  .map-controls {
    top: 10px;
    right: 10px;
    padding: 5px;
  }
  
  .map-legend {
    bottom: 10px;
    left: 10px;
    padding: 15px;
  }
  
  .timeline-stop {
    min-width: 80px;
  }
  
  .timeline-marker {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .chat-widget,
  .chat-widget-enhanced,
  .map-controls,
  .btn-filter-toggle,
  .filter-pills,
  .btn-favorite,
  .btn-compare {
    display: none !important;
  }
  
  .school-card {
    page-break-inside: avoid;
  }
  
  .comparison-modal,
  .transport-modal {
    position: static;
    background: white;
    display: block;
  }
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ========================================
   Base Typography
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

/* ========================================
   Specific Hero Section Styles (Family Dashboard) - Match Homepage
   ======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url('/assets/img/on_kids_van_bg.png'); /* Inspiring family transportation background */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  z-index: 1; /* Ensure background stays below navigation elements */
  align-items: center;
  justify-content: center; /* Center content horizontally */
  padding: calc(4rem + 57px) 0 4rem; /* Match homepage masthead padding */
}

/* Add overlay for better text readability like homepage */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 80%, white 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, white 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, white 0%, transparent 50%);
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-size: 3rem; /* Match homepage */
  font-family: "Lora", serif; /* Match homepage font */
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2; /* Above overlay */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-family: "Open Sans", sans-serif; /* Match homepage font */
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  background: white;
  color: var(--primary);
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--primary-dark);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.btn-hero-secondary:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.trust-indicators {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.trust-item i {
  font-size: 1.2rem;
  color: var(--success);
}

/* Floating Elements */
.floating-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 20%;
  right: -50px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  right: 10%;
  animation-delay: 2s;
}

/* ========================================
   Search Section (Family Dashboard Specific)
   ======================================== */
.search-section {
  background: var(--light);
  padding: 80px 0;
  position: relative;
}

.search-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  margin-top: -100px;
  position: relative;
  z-index: 20;
}

.search-title {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.search-subtitle {
  color: #6c757d;
  text-align: center;
  margin-bottom: 30px;
}

.search-input-group {
  flex: 1;
  min-width: 250px;
}

.search-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  display: block;
}

.search-input, .search-select {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus, .search-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}

/* School Results Section */
.results-section {
  padding: 60px 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.results-count {
  font-size: 1.2rem;
  color: #6c757d;
}

.results-count strong {
  color: var(--primary);
  font-size: 1.4rem;
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-pill:hover {
  border-color: var(--primary);
}

/* School Cards (Family Dashboard Specific) */
.school-card-header {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.school-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.school-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.95);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.badge-available {
  color: var(--success);
  border: 1px solid var(--success);
}

.badge-limited {
  color: var(--warning);
  border: 1px solid var(--warning);
}

.badge-waitlist {
  color: var(--danger);
  border: 1px solid var(--danger);
}

.school-location {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.school-features {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #495057;
}

.feature-item i {
  color: var(--secondary);
}

.school-stats {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.stat-box {
  text-align: center;
  flex: 1;
}

.stat-desc {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 4px;
}

.school-actions {
  display: flex;
  gap: 12px;
}

.btn-school {
  flex: 1;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-school-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-school-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-school-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* Testimonials Section (Family Dashboard Specific) */
.testimonials-section {
  background: var(--gradient-secondary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
  color: white;
}

.testimonials-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.testimonials-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 2rem;
  color: var(--secondary);
  position: absolute;
  top: 20px;
  left: 30px;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.author-rating {
  color: var(--warning);
  margin-left: auto;
}

/* CTA Section (Family Dashboard Specific) */
.cta-section {
  background: var(--gradient-primary);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-cta-secondary:hover {
  background: white;
  color: var(--dark);
}

/* Premium Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus States */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Notification Badge */
.notification-badge {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: white;
  padding: 20px 30px;
  border-radius: 50px;
  box-shadow: var(--shadow-xl);
  display: none;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   Z-Index Fixes for Logo Bleed-Through
   ======================================== */
/* Ensure proper layering on all screen sizes */
.hero-section,
.hero-section::before,
.hero-section::after {
  z-index: 1 !important;
}

/* Sidebar and navigation must stay above content */
#sidebar {
  z-index: 1100 !important;
}

.navbar {
  z-index: 1050 !important;
}

/* Mobile-specific z-index fixes */
@media (max-width: 768px) {
  .hero-section {
    z-index: 1 !important;
    position: relative;
  }
  
  #sidebar,
  .sidebar-logo,
  .logo-expanded,
  .logo-collapsed {
    z-index: 1100 !important;
  }
  
  .navbar {
    z-index: 1050 !important;
  }
  
  /* Ensure hero content doesn't overlap with navigation */
  .hero-content {
    z-index: 2 !important;
    position: relative;
  }
}