/* Modern Astrology Website - Contemporary UI Design */

/* Google Fonts are loaded via HTML link tags in header.php */

/* CSS Custom Properties & Theme Variables */
:root {
  /* Color Palette - Spiritual Astrology Theme */
  --primary-color: #ff6b35;        /* Deep Saffron - spiritual significance */
  --primary-dark: #e55a2b;         /* Darker saffron */
  --primary-light: #ff8c69;        /* Lighter saffron */
  --secondary-color: #6a4c93;      /* Deep Purple - mystical, spiritual */
  --accent-color: #ffd700;         /* Gold - prosperity, knowledge */
  --accent-secondary: #c41e3a;     /* Deep Red - energy, power */
  
  /* RGB Values for transparency effects */
  --color-primary-rgb: 255, 107, 53;
  --color-secondary-rgb: 106, 76, 147;
  --color-accent-rgb: 255, 215, 0;
  
  /* Gradients - Spiritual Theme */
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #6a4c93 100%);
  --gradient-secondary: linear-gradient(135deg, #ffd700 0%, #c41e3a 100%);
  --gradient-tertiary: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
  --gradient-dark: linear-gradient(135deg, #2c1810 0%, #6a4c93 100%);
  --gradient-sunset: linear-gradient(135deg, #ff6b35 0%, #ffd700 50%, #c41e3a 100%);
  
  /* Text Gradients for Spiritual Theme */
  --text-gradient: var(--gradient-primary);
  --text-gradient-gold: linear-gradient(45deg, #ffd700, #ff6b35);
  --text-gradient-spiritual: linear-gradient(45deg, #ff6b35, #6a4c93, #ffd700);
  
  /* Hero Section Gradients */
  --hero-gradient-primary: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(106, 76, 147, 0.9) 100%);
  --hero-gradient-secondary: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(196, 30, 58, 0.9) 100%);
  
  /* Background Gradients */
  --bg-gradient-light: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(106, 76, 147, 0.05) 100%);
  --bg-gradient-dark: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(106, 76, 147, 0.1) 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-backdrop: blur(16px);
  
  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
    /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Borders */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 20px rgb(103 126 234 / 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Additional Color Variables */
  --text-color: var(--text-primary);
  --bg-color: var(--bg-primary);
  
  /* Bootstrap-compatible variables */
  --bs-primary: var(--primary-color);
  --bs-secondary: var(--secondary-color);
  --bs-success: #22c55e;
  --bs-info: #3b82f6;
  --bs-warning: var(--accent-color);
  --bs-danger: var(--accent-secondary);  --bs-light: #f8fafc;
  --bs-dark: #1e293b;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  padding-top: 140px; /* Account for fixed navbar + contact banner on desktop */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Modern Navigation */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
  width: 100%; /* Ensure full width */
}

.navbar.scrolled {
  padding: var(--space-sm) 0;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-lg);
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0; /* Reduce navbar padding on mobile */
  }
  
  .navbar.scrolled {
    padding: 0.25rem 0; /* Even less padding when scrolled */
  }
  
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem; /* Smaller toggler button */
    font-size: 1rem;
    margin-left: auto; /* Push to the right */
    flex-shrink: 0; /* Prevent shrinking */
  }
  
  .navbar-collapse {
    margin-top: 0.5rem; /* Add small margin when expanded */
  }
}

.navbar-brand {
  font-family: var(--font-heading) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  height: auto !important; /* Allow natural height */
  max-height: 60px !important; /* Constrain maximum height */
  /* Debug: temporarily visible border */
  /* border: 1px solid red; */
}

.brand-logo {
  position: relative;
  width: 150px; /* Increased from 120px to 150px */
  height: 150px; /* Increased from 120px to 150px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure nothing overflows */
  flex-shrink: 0; /* Prevent shrinking */
  min-width: 150px; /* Minimum width increased to 150px */
  min-height: 150px; /* Minimum height increased to 150px */
  border-radius: var(--radius-lg); /* Square with rounded corners instead of circle */
}

.brand-logo .logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed from contain to cover for better fit */
  border-radius: var(--radius-md); /* Square with rounded corners instead of circle */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; /* Show by default, hide on error */
  max-width: 150px; /* Explicit max size increased to 150px */
  max-height: 150px; /* Explicit max size increased to 150px */
}

.brand-logo .logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.brand-logo .logo-fallback {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-md); /* Square with rounded corners instead of circle */
  display: none; /* Hidden by default, shown on logo error */
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo .logo-fallback:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Logo */
@media (max-width: 768px) {
  .navbar-brand {
    max-height: 50px !important; /* Constrain navbar brand height on mobile */
    gap: 0.5rem !important; /* Reduce gap on mobile */
    flex-shrink: 0; /* Prevent brand from shrinking */
    margin-right: 1rem; /* Add margin to separate from toggler */
  }
  
  .brand-logo {
    width: 50px; /* Much smaller on mobile */
    height: 50px; /* Much smaller on mobile */
    min-width: 50px; /* Minimum width for mobile */
    min-height: 50px; /* Minimum height for mobile */
  }
  
  .brand-logo .logo-img {
    width: 100%;
    height: 100%;
    max-width: 50px; /* Much smaller on mobile */
    max-height: 50px; /* Much smaller on mobile */
  }
  
  .brand-main {
    font-size: 1rem;
  }
  
  .brand-sub {
    font-size: 0.75rem;
  }
    .brand-logo .logo-fallback {
    font-size: 2rem; /* Smaller fallback icon for mobile */
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    max-height: 45px !important; /* Even smaller on extra small screens */
    gap: 0.25rem !important; /* Minimal gap on small screens */
    margin-right: 0.75rem; /* Smaller margin on very small screens */
  }
  
  .brand-logo {
    width: 45px; /* Very small on extra small screens */
    height: 45px; /* Very small on extra small screens */
    min-width: 45px;
    min-height: 45px;
  }
  
  .brand-logo .logo-img {
    width: 100%;
    height: 100%;
    max-width: 45px; /* Very small on extra small screens */
    max-height: 45px; /* Very small on extra small screens */
  }
  
  .brand-text {
    display: none; /* Hide brand text on very small screens */
  }
  
  .brand-logo .logo-fallback {
    font-size: 1.5rem; /* Smaller fallback icon for extra small screens */
    width: 45px;
    height: 45px;
  }
}

/* Logo Placeholder */
.logo-placeholder {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md); /* Square with rounded corners instead of circle */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Logo Placeholder */
@media (max-width: 768px) {
  .logo-placeholder {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .logo-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

/* Hero Section */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    var(--gradient-primary);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Modern Buttons */
.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
  z-index: -1;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary) !important;
  color: white !important;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: none !important;
}

.btn-primary:hover {
  transform: translateY(-2px);  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  color: white !important;
}

.btn-secondary {
  background: var(--glass-bg) !important;
  color: white !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  color: white !important;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

/* Spiritual Theme Utility Classes */
.text-saffron { color: var(--primary-color) !important; }
.text-purple-deep { color: var(--secondary-color) !important; }
.text-gold { color: var(--accent-color) !important; }
.text-spiritual-red { color: var(--accent-secondary) !important; }

.bg-saffron { background-color: var(--primary-color) !important; }
.bg-purple-deep { background-color: var(--secondary-color) !important; }
.bg-gold { background-color: var(--accent-color) !important; }
.bg-spiritual-red { background-color: var(--accent-secondary) !important; }

.bg-gradient-spiritual { background: var(--gradient-primary) !important; }
.bg-gradient-sunset { background: var(--gradient-sunset) !important; }
.bg-gradient-gold { background: var(--gradient-secondary) !important; }

/* Missing gradient classes for consistent styling */
.gradient-bg { 
  background: var(--gradient-primary) !important; 
  color: white !important;
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gradient:hover {
  background: var(--gradient-sunset);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-gradient:focus {
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Enhanced glassmorphism with spiritual colors */
.glass-card-spiritual {
  background: rgba(255, 107, 53, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-lg);
}

.glass-card-mystical {
  background: rgba(106, 76, 147, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(106, 76, 147, 0.2);
  border-radius: var(--radius-lg);
}

.glass-card-golden {
  background: rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
}

/* Button variants for spiritual theme */
.btn-spiritual {
  background: var(--gradient-primary);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-spiritual:hover {
  background: var(--gradient-sunset);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  color: white;
}

.btn-mystical {
  background: var(--secondary-color);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-mystical:hover {
  background: var(--gradient-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 76, 147, 0.3);
  color: white;
}

.btn-golden {
  background: var(--accent-color);
  border: none;
  color: #1a0d0a;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-golden:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  color: white;
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.card-glass:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* Service Cards */
.service-card-modern {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card-modern:hover::before {
  transform: scaleX(1);
}

.service-icon-modern .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-icon-modern .icon-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.9;
  border-radius: 16px;
}

.price-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 8px;
}

.duration-badge {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
  font-size: 0.9rem;
}

.feature-item:last-child {
  border-bottom: none;
}

.service-actions {
  padding-top: 16px;
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

/* Filter Buttons */
.filter-buttons-modern {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn-filter-modern {
  background: var(--glass-bg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  color: var(--text-color);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-filter-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-filter-modern:hover,
.btn-check:checked + .btn-filter-modern {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-filter-modern:hover::before,
.btn-check:checked + .btn-filter-modern::before {
  opacity: 1;
}

.btn-filter-modern span {
  position: relative;
  z-index: 1;
}

/* Contact Cards */
.contact-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-8px);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-icon .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-icon .icon-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.9;
  border-radius: 20px;
}

/* Contact Form */
.contact-form-card {
  position: relative;
  overflow: hidden;
}

.modern-form .form-group-modern {
  position: relative;
  margin-bottom: 2rem;
}

.form-label-modern {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  background: transparent;
  padding: 0 4px;
}

.form-control-modern {
  width: 100%;
  padding: 20px 16px 8px 16px;
  border: 2px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: 12px;
  background: var(--glass-bg);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

/* Special handling for select elements */
.form-control-modern select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Floating label behavior for all form controls */
.form-control-modern:focus,
.form-control-modern:not(:placeholder-shown),
.form-control-modern:valid,
.form-control-modern.has-value,
.form-control-modern[data-selected="true"] {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}

.form-control-modern:focus + .form-focus-line,
.form-control-modern:not(:placeholder-shown) + .form-focus-line,
.form-control-modern:valid + .form-focus-line,
.form-control-modern.has-value + .form-focus-line,
.form-control-modern[data-selected="true"] + .form-focus-line {
  transform: scaleX(1);
}

.form-control-modern:focus ~ .form-label-modern,
.form-control-modern:not(:placeholder-shown) ~ .form-label-modern,
.form-control-modern:valid ~ .form-label-modern,
.form-control-modern.has-value ~ .form-label-modern,
.form-control-modern[data-selected="true"] ~ .form-label-modern {
  top: 4px;
  left: 16px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  background: var(--glass-bg);
}

/* Special handling for select dropdown when option is selected */
.form-group-modern select.form-control-modern:not([value=""]) ~ .form-label-modern,
.form-group-modern select.form-control-modern.has-value ~ .form-label-modern {
  top: 4px;
  left: 16px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  background: var(--glass-bg);
}

/* Textarea specific styling */
.form-control-modern textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 24px;
}

.form-control-modern textarea:not(:placeholder-shown) ~ .form-label-modern,
.form-control-modern textarea:focus ~ .form-label-modern,
.form-control-modern textarea.has-value ~ .form-label-modern {
  top: 4px;
  left: 16px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  background: var(--glass-bg);
}

.form-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

/* Alert Styles */
.alert-modern {
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  border-left: 4px solid;
}

.alert-success.alert-modern {
  background: rgba(25, 135, 84, 0.1);
  color: #0d5d2c;
  border-left-color: #198754;
}

.alert-danger.alert-modern {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border-left-color: #dc3545;
}

/* About Page Specific */
.founder-image-wrapper {
    position: relative;
    display: inline-block;
}

.founder-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 4px solid rgba(var(--color-primary-rgb), 0.2);
    transition: all 0.3s ease;
}

.founder-image-wrapper:hover .founder-image {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.founder-image-bg {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.founder-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.specializations .specialization-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.specializations .specialization-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.15);
}

/* Stats Cards */
.stats-card:hover {
    transform: translateY(-8px);
}

.stats-number {
    position: relative;
}

.stats-number::after {
    content: '+';
    position: absolute;
    right: -10px;
    top: 0;
    font-size: 0.6em;
    opacity: 0.7;
}

/* Mission/Vision Cards */
.mission-vision-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-vision-card:hover {
    transform: translateY(-8px);
}

.mission-vision-card .card-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mission-vision-card .card-icon .icon-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
    border-radius: 20px;
}

/* Philosophy Cards */
.philosophy-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.philosophy-card:hover {
    transform: translateY(-8px);
}

.philosophy-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.philosophy-icon .icon-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
    border-radius: 20px;
}

/* Values Cards */
.values-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.values-card:hover {
    transform: translateY(-8px);
}

/* Breadcrumb Modern */
.breadcrumb-modern {
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-modern .breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: 8px;
    color: var(--text-muted);
}

.breadcrumb-modern .breadcrumb-item:not(.active) a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-modern .breadcrumb-item:not(.active) a:hover {
    color: var(--color-primary);
}

/* Hero Stats */
.hero-stats {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item h3 {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section Modern */
.hero-section-modern {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-primary);
}

.hero-gradient-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(108, 117, 125, 0.9) 100%);
}

.hero-gradient-primary {
  background: var(--hero-gradient-primary);
}

.hero-gradient-secondary {
  background: var(--hero-gradient-secondary);
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-content-modern h1 {
  color: white;
}

.hero-content-modern .lead {
  color: rgba(255, 255, 255, 0.9);
}

.service-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: white;
}

.hero-cta .btn {
  position: relative;
  z-index: 3;
}

/* Hero Section for Ceremony Services */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(106, 76, 147, 0.1) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .service-icon-large {
  display: inline-block;
  padding: 2rem;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.hero-section .service-icon-large i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-section .btn {
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
  transition: all 0.3s ease;
}

.hero-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
}

/* Service Details Card */
.service-details-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(var(--border-rgb), 0.1);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item i {
  font-size: 1.2rem;
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 3rem 0;
  }
  
  .hero-section .service-icon-large {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

/* Responsive Improvements */
@media (max-width: 576px) {
    .filter-buttons-modern {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-filter-modern {
        width: 100%;
        max-width: 250px;
    }
}

@media (min-width: 577px) {
    .filter-buttons-modern {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }
    
    .btn-filter-modern {
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .filter-buttons-modern {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-filter-modern {
        width: 100%;
        max-width: 250px;
    }
    
    .founder-image {
        width: 200px;
        height: 200px;
    }
    
    .service-card-modern {
        margin-bottom: 24px;
    }
    
    .contact-form-card {
        padding: 32px 24px !important;
    }
    
    .modern-form .row {
        margin: 0;
    }
    
    .modern-form .row > * {
        padding: 0;
        margin-bottom: 16px;
    }
}

/* Animation for counting numbers */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-number {
    animation: countUp 0.6s ease-out;
}

/* Enhanced Dropdown Menu Styling */
.dropdown-menu {
  max-height: 80vh;
  overflow-y: auto;
  min-width: 280px;
}

.dropdown-header {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-header:first-child {
  margin-top: 0;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  margin: 0.5rem 0;
  opacity: 0.3;
}

/* ============================================ */
/* FORM ELEMENTS & CHECKBOXES */
/* ============================================ */

/* Custom Checkbox Styles */
.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 2px solid var(--primary-color);
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb), 0.25);
  outline: none;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  transform: scale(1.05);
}

.form-check-input:checked:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb), 0.25);
}

.form-check-input:hover {
  border-color: var(--primary-dark);
  transform: scale(1.02);
}

.form-check-input:active {
  transform: scale(0.98);
}

/* Form Check Label */
.form-check-label {
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  margin-left: 0.5rem;
}

.form-check-label:hover {
  color: var(--primary-color);
}

.form-check:has(.form-check-input:checked) .form-check-label {
  color: var(--primary-color);
  font-weight: 600;
}

/* Form Check Container */
.form-check {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-check:hover {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  transform: translateX(2px);
}

.form-check:has(.form-check-input:checked) {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

/* Agreement Checkbox Special Styling */
#agreement {
  accent-color: var(--primary-color);
}

.form-check:has(#agreement) {
  border: 2px solid rgba(var(--color-primary-rgb), 0.2);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05), rgba(var(--color-secondary-rgb), 0.05));
  padding: 1rem;
  border-radius: 0.75rem;
}

.form-check:has(#agreement:checked) {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-secondary-rgb), 0.1));
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
}

/* Interest Areas Styling */
.row.g-2 .form-check {
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.row.g-2 .form-check:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.15);
}

/* Form Validation States */
.form-check-input:invalid {
  border-color: #dc3545;
}

.form-check-input:valid {
  border-color: #28a745;
}

/* Responsive Checkbox Sizing */
@media (max-width: 768px) {
  .form-check-input {
    width: 1.1em;
    height: 1.1em;
  }
  
  .form-check {
    padding: 0.5rem;
  }
}

/* Animation for checkbox state changes */
@keyframes checkboxCheck {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1.05); }
}

.form-check-input:checked {
  animation: checkboxCheck 0.3s ease-in-out;
}

/* Additional Interactive States */
.form-check.checked {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), rgba(var(--color-secondary-rgb), 0.15));
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.2);
}

.form-check.ripple {
  animation: rippleEffect 0.3s ease-out;
}

.form-check.agreement-checked {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.1), rgba(var(--color-primary-rgb), 0.1));
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb), 0.2);
}

@keyframes rippleEffect {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.4);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(var(--color-primary-rgb), 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0);
  }
}

/* Focus and Active States Enhancement */
.form-check-input:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Accessibility improvements */
.form-check-input:focus:not(:focus-visible) {
  outline: none;
}

.form-check-label[for] {
  cursor: pointer;
}

/* Better spacing for mobile */
@media (max-width: 576px) {
  .row.g-2 .col-md-4 {
    margin-bottom: 0.5rem;
  }
  
  .form-check {
    padding: 0.75rem 0.5rem;
  }
  
  .form-check-label {
    font-size: 0.9rem;
  }
}

/* Bootstrap Override - Higher Specificity */
.booking-form .form-check-input,
.consultation-form .form-check-input,
form .form-check-input {
  width: 1.25em !important;
  height: 1.25em !important;
  background-color: #fff !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 0.375rem !important;
  margin-top: 0.1em !important;
}

.booking-form .form-check-input:checked,
.consultation-form .form-check-input:checked,
form .form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

/* Ensure proper checkbox display */
.form-check-input[type="checkbox"] {
  display: inline-block !important;
  vertical-align: top !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  flex-shrink: 0 !important;
}

/* Force checkbox visibility */
input[type="checkbox"].form-check-input {
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Debug styles - remove after testing */
.form-check-input {
  border: 2px solid red !important; /* Temporary for debugging */
}

.form-check-input:checked {
  background-color: green !important; /* Temporary for debugging */
}

/* CTA Section Enhanced Typography */
.gradient-bg {
  background: var(--gradient-primary) !important;
  color: white !important;
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.gradient-bg > * {
  position: relative;
  z-index: 1;
}

.gradient-bg h1,
.gradient-bg h2,
.gradient-bg h3,
.gradient-bg h4,
.gradient-bg h5,
.gradient-bg h6 {
  color: white !important;
  font-weight: 700 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  font-family: var(--font-heading) !important;
}

.gradient-bg p,
.gradient-bg .lead {
  color: white !important;
  font-weight: 500 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-family: var(--font-primary) !important;
}

.gradient-bg .text-white {
  color: white !important;
}

/* Map Section Styling */
.map-container {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
}

.map-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  pointer-events: none;
}

.address-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  max-width: 400px;
  pointer-events: all;
  transition: all 0.3s ease;
}

.address-card:hover {
  background: rgba(255, 255, 255, 0.98) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.location-feature {
  transition: all 0.3s ease;
  border-radius: var(--radius-md);
}

.location-feature:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.location-feature .feature-icon {
  transition: all 0.3s ease;
}

.location-feature:hover .feature-icon i {
  transform: scale(1.1);
}

/* Responsive design for map section */
@media (max-width: 768px) {
  .map-wrapper iframe {
    height: 300px;
  }
  
  .map-overlay {
    position: static;
    margin-top: 20px;
  }
  
  .address-card {
    max-width: 100%;
    background: rgba(255, 255, 255, 1) !important;
  }
  
  .location-feature {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .map-wrapper iframe {
    height: 250px;
  }
  
  .address-details h5 {
    font-size: 1rem;
  }
  
  .address-details p {
    font-size: 0.85rem;
  }
  
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Registration Form Validation Styles */
.form-control.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus,
.form-check-input.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.was-validated .form-control:invalid,
.was-validated .form-check-input:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid,
.was-validated .form-check-input:valid {
  border-color: #198754;
}

/* Loading button state */
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Form field focus states */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* WhatsApp Floating Button Styles */
.whatsapp-float {
  position: fixed !important;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366 !important;
  color: white !important;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  background: #128C7E !important;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  text-decoration: none;
}

.whatsapp-float:focus {
  background: #128C7E !important;
  color: white !important;
  text-decoration: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

.whatsapp-float i {
  font-size: 26px;
  line-height: 1;
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Additional WhatsApp icon improvements */
.whatsapp-float {
  /* Ensure icon rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.whatsapp-float i.fab.fa-whatsapp {
  /* Force Font Awesome to load properly */
  font-family: "Font Awesome 6 Brands" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.whatsapp-float i.fab.fa-whatsapp::before {
  content: "\f232" !important;
}

/* Fallback styling */
.whatsapp-float .whatsapp-unicode {
  font-size: 28px;
  font-weight: bold;
  display: none;
  line-height: 1;
}

/* Show fallback if Font Awesome fails */
.whatsapp-float.use-fallback i.fab.fa-whatsapp {
  display: none !important;
}

.whatsapp-float.use-fallback .whatsapp-unicode {
  display: inline-block !important;
}

/* Additional fallback with SVG */
.whatsapp-float .whatsapp-svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: none;
}

.whatsapp-float.use-svg .whatsapp-svg {
  display: inline-block !important;
}

.whatsapp-float.use-svg i.fab.fa-whatsapp,
.whatsapp-float.use-svg .whatsapp-unicode {
  display: none !important;
}

/* Back to Top Button Styles */
#backToTop {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary) !important;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  z-index: 9998;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
  background: var(--gradient-sunset) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#backToTop.show {
  display: flex !important;
}

/* Adjust WhatsApp button to avoid conflict with back-to-top */
.whatsapp-float {
  bottom: 20px;
  right: 85px; /* Position to the left of back-to-top button */
}

/* When back-to-top is not visible, center WhatsApp button better */
body:not(.show-back-to-top) .whatsapp-float {
  right: 20px;
}

/* Mobile adjustments for both buttons */
@media (max-width: 768px) {
  #backToTop {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  
  .whatsapp-float {
    bottom: 15px;
    right: 75px;
  }
  
  body:not(.show-back-to-top) .whatsapp-float {
    right: 15px;
  }
}

@media (max-width: 480px) {
  #backToTop {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .whatsapp-float {
    bottom: 10px;
    right: 65px;
  }
  
  body:not(.show-back-to-top) .whatsapp-float {
    right: 10px;
  }
}

/* Quick Contact Banner Mobile Optimization */
.bg-warning {
  position: fixed; /* Change to fixed positioning */
  top: 0; /* Position at top */
  left: 0;
  right: 0;
  z-index: 999; /* Below navbar but above content */
  margin-top: 80px; /* Push below the main navbar */
  transition: margin-top 0.2s ease; /* Smooth transition */
}

/* Desktop Contact Banner Positioning */
@media (min-width: 992px) {
  .bg-warning {
    margin-top: 90px; /* More space for larger navbar on desktop */
  }
}

@media (max-width: 768px) {
  .bg-warning {
    padding: 0.5rem 0 !important; /* Reduce padding on mobile */
    font-size: 0.875rem; /* Smaller text on mobile */
    margin-top: 70px; /* Adjust for smaller mobile navbar */
  }
  
  .bg-warning .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .bg-warning .btn-sm {
    padding: 0.25rem 0.5rem; /* Smaller button on mobile */
    font-size: 0.75rem;
    margin-top: 0.25rem; /* Add some top margin */
  }
  
  .bg-warning .row {
    align-items: stretch; /* Ensure proper alignment */
  }
  
  .bg-warning .col-md-8 {
    margin-bottom: 0.25rem; /* Add space below contact info */
  }
  
  /* Ensure proper spacing between navbar and content */
  body {
    padding-top: 140px; /* Adjust for navbar + banner height on mobile */
  }
}

@media (max-width: 576px) {
  .bg-warning {
    padding: 0.5rem 0 !important; /* Increase padding for better spacing */
    font-size: 0.8rem;
    margin-top: 60px; /* Smaller margin for very small screens */
  }
  
  .bg-warning .row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center; /* Center content */
  }
  
  .bg-warning .col-md-8,
  .bg-warning .col-md-4 {
    text-align: center !important;
    width: 100%;
  }
  
  .bg-warning .col-md-8 {
    margin-bottom: 0.5rem; /* More space below contact info */
  }
  
  .bg-warning .btn-sm {
    margin-top: 0; /* Remove top margin on small screens */
    width: auto; /* Don't make button full width */
    min-width: 100px; /* Minimum button width */
  }
  
  body {
    padding-top: 160px; /* More space for stacked banner elements */
  }
}

/* Additional mobile navbar improvements */
@media (max-width: 768px) {
  .navbar-brand {
    flex-shrink: 0; /* Prevent brand from shrinking */
  }
  
  .navbar-nav {
    margin-top: 0.5rem;
  }
  
  .nav-link {
    padding: 0.5rem 1rem; /* Better touch targets */
  }
  
  /* Ensure navbar container has proper flex properties */
  .navbar .container {
    min-height: 60px; /* Minimum height for proper spacing */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  /* Prevent any potential overlapping elements */
  .navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1001;
  }
}

@media (max-width: 576px) {
  .navbar .container {
    min-height: 55px; /* Slightly smaller on very small screens */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Review Cards */
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.client-avatar .bg-gradient {
  background: var(--gradient-primary);
}

.rating-stars {
  font-size: 0.875rem;
  line-height: 1;
}

.rating-stars i {
  margin-right: 2px;
}

.rating-stars i:last-child {
  margin-right: 0;
}

.client-name {
  color: var(--text-primary);
  margin-bottom: 0.25rem !important;
}

.service-type {
  font-size: 0.8rem;
  font-weight: 500;
}

.review-text {
  font-style: italic;
  line-height: 1.5;
}

.review-summary .rating-number {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-summary .rating-stars {
  font-size: 1.2rem;
}

/* Service Icon and Stats */
.service-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.service-icon-large i {
  display: block;
  width: 120px;
  height: 120px;
  line-height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-image-modern {
  position: relative;
  z-index: 2;
}

.floating-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  color: white;
}

/* Glass Card Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Section Padding */
.section-padding {
  padding: var(--space-4xl) 0;
}

/* Mega Menu Styles */
.dropdown-mega {
  position: static !important;
}

.mega-menu {
  width: 100%;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
  padding: 2rem 0;
  margin-top: 0.5rem;
  max-width: 1200px;
  background: white;
  position: absolute;
}

.mega-menu-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.mega-menu-header h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
}

.mega-menu-header i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.mega-menu-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.mega-menu-link:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateX(5px);
}

.mega-menu-link i {
  font-size: 0.875rem;
  opacity: 0.7;
  width: 16px;
}

.mega-menu-featured {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.featured-services-bar {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.featured-services-bar h6 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.featured-services-bar .btn-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.emergency-contact {
  text-align: right;
}

.emergency-contact small {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.emergency-contact a {
  font-size: 1rem;
  font-weight: 600;
}

/* Mobile Mega Menu */
@media (max-width: 991.98px) {
  .mega-menu {
    position: relative !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    padding: 1rem;
    margin-top: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    max-width: none;
  }
  
  .mega-menu .container {
    padding: 0;
  }
  
  .mega-menu .row {
    margin: 0;
  }
  
  .mega-menu .col-md-3 {
    padding: 0.5rem;
  }
  
  .mega-menu-content {
    margin-bottom: 1rem;
  }
  
  .featured-services-bar {
    padding: 1rem;
  }
  
  .featured-services-bar .row {
    text-align: center;
  }
  
  .emergency-contact {
    text-align: center;
    margin-top: 1rem;
  }
  
  .mega-menu-header {
    margin-bottom: 0.5rem;
  }
  
  .mega-menu-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* Dropdown Enhancement */
.dropdown-mega .dropdown-toggle::after {
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* Hover Effects */
.nav-item.dropdown-mega:hover .mega-menu {
  display: block;
}

.mega-menu {
  display: none;
}

.dropdown-mega:hover .mega-menu,
.dropdown-mega .mega-menu.show {
  display: block;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Mega Menu Color Variants */
.mega-menu-header.text-primary i { color: var(--primary-color) !important; }
.mega-menu-header.text-success i { color: var(--success-color) !important; }
.mega-menu-header.text-warning i { color: var(--warning-color) !important; }
.mega-menu-header.text-info i { color: var(--info-color) !important; }
.mega-menu-header.text-danger i { color: var(--danger-color) !important; }
