/* CSS Variables - Purple & Navy Palette */
:root {
  /* Primary Colors */
  --bs-primary: #7678ED; /* Purple */
  --bs-primary-rgb: 118, 120, 237;
  --bs-secondary: #ffba08; /* Keep for general Bootstrap components if needed, but prefer custom palette */
  --bs-success: #228b22;
  --bs-info: #7678ED; /* Purple for info */
  --bs-warning: #daa520;
  --bs-danger: #b22222;
  --bs-light: #FFFFFF; /* White */
  --bs-dark: #1E212B; /* Navy for primary text/backgrounds */

  /* Light Colors (for backgrounds/accents) */
  --primary-light: rgba(118, 120, 237, 0.1); /* Light purple tint */
  --success-light: rgba(34, 139, 34, 0.1);
  --info-light: rgba(118, 120, 237, 0.1);
  --warning-light: rgba(218, 165, 32, 0.1);
  --danger-light: rgba(178, 34, 34, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7678ED 0%, #8B8EF0 100%); /* Purple gradient */
  --gradient-secondary: linear-gradient(135deg, #1E202B 0%, #2A2D3A 100%); /* Navy gradient */
  --gradient-info: linear-gradient(135deg, #7678ED 0%, #8B8EF0 100%);
  --gradient-warning: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
  --gradient-light: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%); /* White to light gray */

  /* Text Colors */
  --text-primary: #1E202B; /* Navy for main text */
  --text-secondary: #4A4D5A; /* Medium navy for secondary text */
  --text-light: #6B6E7A; /* Light navy for subtle text */
  --text-white: #FFFFFF; /* Pure white for dark backgrounds */

  /* Background Colors */
  --bg-primary: #FFFFFF; /* Main page background */
  --bg-light: #F8F9FA; /* Light section background */
  --bg-lighter: #F1F3F4; /* Even lighter background */
  --bg-dark: #1E202B; /* Navy background for footer/testimonials */

  /* Border Colors */
  --border-color: #E1E5E9; /* Light gray for borders */
  --border-light: #F1F3F4; /* Very light gray */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(30, 32, 43, 0.05);
  --shadow: 0 1px 3px 0 rgba(30, 32, 43, 0.1), 0 1px 2px 0 rgba(30, 32, 43, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(30, 32, 43, 0.1), 0 2px 4px -1px rgba(30, 32, 43, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(30, 32, 43, 0.1), 0 4px 6px -2px rgba(30, 32, 43, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(30, 32, 43, 0.1), 0 10px 10px -5px rgba(30, 32, 43, 0.04);

  /* Border Radius */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.125rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #8B8EF0; /* Lighter purple for hover */
}

/* Custom Button Styles */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: 2px solid transparent; /* Ensure all buttons have a border */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: var(--bs-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #8B8EF0 0%, #7678ED 100%); /* Purple gradient for hover */
  color: white;
  border-color: var(--bs-primary);
}

.btn-secondary {
  background: var(--gradient-secondary);
  border-color: #2A2D3A; /* Navy border */
  color: var(--text-white); /* White text for navy background */
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #2A2D3A 0%, #1E202B 100%); /* Navy gradient for hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  border-width: 2px; /* Explicitly set border width */
}

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

.btn-outline-success {
  background: transparent;
  border-color: var(--bs-success);
  color: var(--bs-success);
  border-width: 2px; /* Explicitly set border width */
}

.btn-outline-success:hover {
  background: var(--bs-success);
  border-color: var(--bs-success);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-info {
  background: transparent;
  border-color: var(--bs-info);
  color: var(--bs-info);
  border-width: 2px; /* Explicitly set border width */
}

.btn-outline-info:hover {
  background: var(--bs-info);
  border-color: var(--bs-info);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-warning {
  background: transparent;
  border-color: var(--bs-warning);
  color: var(--bs-warning);
  border-width: 2px; /* Explicitly set border width */
}

.btn-outline-warning:hover {
  background: var(--bs-warning);
  border-color: var(--bs-warning);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(135deg, #228b22 0%, #32cd32 100%);
  border-color: var(--bs-success);
  color: white;
}

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

.btn-info {
  background: var(--gradient-info);
  border-color: var(--bs-info);
  color: white;
}

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

.btn-warning {
  background: var(--gradient-warning);
  border-color: var(--bs-warning);
  color: white;
}

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

.btn-social {
  background-color: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  justify-content: center;
}

.btn-social:hover {
  background-color: var(--bg-light);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--border-radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000; /* Higher z-index to stay above filters */
}

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

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--bs-primary) !important;
}

.nav-brand h2 {
  color: var(--bs-primary);
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  transition: var(--transition);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bs-primary) !important;
  background-color: var(--primary-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Professional Search Form */
.professional-search-container {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.search-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-section {
  width: 100%;
}

.professional-select {
  width: 100%;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1.1rem;
  color: #333;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.professional-select:focus {
  border-color: #7678ED;
  box-shadow: 0 0 0 3px rgba(118, 120, 237, 0.1);
}

.search-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.professional-search-btn {
  background: #7678ED;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
}

.professional-search-btn:hover {
  background: #6a6ce8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(118, 120, 237, 0.3);
}

.professional-location-btn {
  background: transparent;
  color: #7678ED;
  border: 2px solid #7678ED;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
}

.professional-location-btn:hover {
  background: #7678ED;
  color: white;
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .professional-search-container {
    padding: 20px;
    margin: 0 15px;
  }
  
  .search-form-wrapper {
    gap: 16px;
  }
  
  .search-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .professional-search-btn,
  .professional-location-btn {
    width: 100%;
  }
  
  .professional-select {
    font-size: 1rem;
    padding: 14px 16px;
  }
  
  /* Center everything on mobile */
  .hero-section .container {
    text-align: center;
  }
  
  .hero-section .row {
    justify-content: center;
  }
  
  .hero-section .col-lg-6 {
    text-align: center;
  }
  
  .hero-section h1 {
    text-align: center;
  }
  
  .hero-section p {
    text-align: center;
  }
}

/* iPad specific fixes */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section .container {
    padding: 0 30px;
  }
  
  .hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  
  .professional-search-container {
    padding: 22px;
    max-width: 700px;
  }
  
  .professional-select {
    font-size: 1.1rem;
    padding: 15px 18px;
  }
  
  .professional-search-btn,
  .professional-location-btn {
    padding: 15px 20px;
    font-size: 1rem;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .professional-select {
    font-size: 1.2rem;
    padding: 1.2rem 1.8rem;
  }
  
  .professional-search-btn {
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
  }
  
  .professional-location-btn {
    font-size: 1.1rem;
    padding: 1.2rem 1.8rem;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

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

.text-white-75 {
  color: rgba(255, 255, 255, 0.9) !important; /* Increased opacity for better contrast */
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: white;
  overflow: hidden;
}

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

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-header h3 {
  margin: 0;
}

.card-body {
  padding: 1.5rem;
}

/* Categories */
.categories {
  padding: 4rem 0;
}

.categories h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color); /* Added border for category cards */
}

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

.category-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light); /* Changed to primary-light for consistency */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  transition: var(--transition);
}

.category-icon i {
  width: 24px;
  height: 24px;
  color: var(--bs-primary);
  font-size: 2rem;
}

/* Featured Salons */
.featured-salons {
  padding: 4rem 0;
  background: var(--bg-light);
}

.featured-salons h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.featured-salons p {
  color: var(--text-secondary);
}

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

/* How It Works */
.how-it-works {
  padding: 4rem 0;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
}

/* Icon Circles */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  transition: var(--transition);
}

.icon-circle i {
  font-size: 2rem;
}

/* Step Numbers */
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background: var(--bg-dark); /* Changed to --bg-dark for better contrast */
  color: white;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.testimonials .text-muted {
  color: rgba(255, 255, 255, 0.8) !important; /* Increased opacity for better contrast */
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card .card-text {
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-author h6 {
  color: white;
}

.testimonial-author small {
  /* Targeting the small tag for "Verified Customer" */
  color: rgba(255, 255, 255, 0.7); /* Adjusted for better contrast */
}

/* CTA Section */
.cta-section {
  /* Added a class for easier targeting */
  background: var(--gradient-primary);
  color: white;
  padding: 5rem 0; /* Increased padding for more prominence */
}

.cta-section h2 {
  color: white; /* Ensure title is white */
}

.cta-section p.lead {
  color: rgba(255, 255, 255, 0.9); /* Increased opacity for better contrast */
}

/* Footer */
.footer {
  background: var(--bg-dark); /* Changed to --bg-dark for consistency */
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4,
.footer-section h5,
.footer-section h6 {
  margin-bottom: 1rem;
  color: white; /* Ensure headings are white */
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.85); /* Increased opacity for better contrast */
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85); /* Increased opacity for better contrast */
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85); /* Increased opacity for better contrast */
}

/* Search Page */
.search-page {
  padding: 2rem 0;
}

.search-header {
  margin-bottom: 2rem;
  background: var(--bg-light);
}

.search-header h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.search-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid var(--border-color);
  z-index: 10; /* Lower than navbar z-index */
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.clear-filters {
  background: none;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.clear-filters:hover {
  background: var(--bs-primary);
  color: white;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group h4,
.filter-group h6 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.checkbox-group,
.rating-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group label,
.rating-filter label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-check-input {
  border-color: var(--border-color);
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.price-range {
  margin-top: 1rem;
}

.price-range input[type="range"] {
  width: 100%;
  margin-bottom: 0.5rem;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

.form-range::-webkit-slider-thumb {
  background: var(--bs-primary);
}

.form-range::-moz-range-thumb {
  background: var(--bs-primary);
}

/* Search Results */
.search-results {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.results-header h2,
.results-header h5 {
  margin: 0;
  color: var(--text-primary);
}

.sort-options select {
  padding: 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: white;
  color: var(--text-primary);
}

.salon-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.salon-card img {
  width: 100%;
  height: 250px; /* Ensure consistent height for images */
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0; /* Apply border-radius to top corners */
}

.salon-card .card-body {
  padding: 1.5rem;
}

.salon-card .icon-circle {
  /* Specific styles for icons in salon cards */
  width: 20px; /* Slightly larger icon circle */
  height: 20px;
  font-size: 0.8rem; /* Larger icon size */
}

.salon-card .icon-circle i {
  font-size: 0.8rem; /* Match icon circle font size */
}

/* Auth Page */
.auth-page {
  padding: 2rem 0;
  min-height: 100vh; /* Ensure it takes full height */
  display: flex;
  flex-direction: column; /* Allow content to stack */
  align-items: center;
  background: var(--bg-primary); /* Explicitly white background */
}

.auth-page .navbar {
  position: static; /* Remove sticky behavior for auth page navbar */
  width: 100%;
  background: white;
  border-bottom: 1px solid var(--border-color);
}

.auth-container {
  display: flex; /* Use flex for single column layout */
  flex-direction: column;
  align-items: center;
  gap: 2rem; /* Adjust gap between form and benefits */
  max-width: 700px; /* Max width for the content */
  width: 100%;
  margin-top: 3rem; /* Space below navbar */
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%; /* Take full width of its container */
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1,
.auth-header h2 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.checkmark,
.radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  position: relative;
  transition: var(--transition);
}

.radio-mark {
  border-radius: 50%;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark,
.radio-label input[type="radio"]:checked + .radio-mark {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.forgot-password {
  color: var(--bs-primary);
  font-size: 0.875rem;
}

.auth-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-type {
  margin-bottom: 1.5rem;
}

.account-type label {
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  color: var(--text-primary);
}

.radio-group {
  display: flex;
  gap: 2rem;
}

/* Auth Benefits */
.auth-benefits {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color); /* Added border for benefits card */
  width: 100%; /* Take full width of its container */
}

.auth-benefits h3 {
  margin-bottom: 2rem;
  color: var(--bs-primary);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefit-item .icon-circle {
  flex-shrink: 0;
  margin-top: 0;
  border-radius: 50%;
}

.benefit-item div {
  flex: 1;
  text-align: left;
}

.benefit-item h5 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.blockquote {
  color: var(--text-primary); /* Ensure blockquote text is readable */
}

.blockquote-footer {
  color: var(--text-secondary); /* Ensure footer text is readable */
}

/* Form Controls */
.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition);
  background: white;
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(118, 120, 237, 0.25); /* Purple focus shadow */
}

.form-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}
.visible {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom CSS for Salon Market Bootstrap Platform */

.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

/* Light color utilities */
.bg-primary-light {
  background-color: var(--primary-light) !important;
}

.bg-success-light {
  background-color: var(--success-light) !important;
}

.bg-info-light {
  background-color: var(--info-light) !important;
}

.bg-warning-light {
  background-color: var(--warning-light) !important;
}

.bg-danger-light {
  background-color: var(--danger-light) !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.9) !important; /* Increased opacity for better contrast */
}

/* Gradient backgrounds */
.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-light {
  background: var(--gradient-light) !important;
}

/* Custom shadows */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
  box-shadow: var(--shadow-xl) !important;
}

.shadow-soft {
  box-shadow: var(--shadow-md) !important;
}

.shadow-strong {
  box-shadow: var(--shadow-xl) !important;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
}

.min-vh-75 {
  min-height: 75vh;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .search-content {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .salon-carousel {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-page .navbar {
    position: sticky; /* Revert to sticky for mobile if needed, or keep static */
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 2rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--bs-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

.fade-in-up {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
  animation: slideIn 0.8s ease-out;
}

/* Additional Responsive Utilities */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 50vh;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
  }
}

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #7678ED 0%, #8B8EF0 50%, #A8ABF5 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* Professional Search Container */
.professional-search-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  animation: slideInUp 0.8s ease-out;
}

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

.search-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-input-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  color: var(--bs-primary);
  font-size: 1.1rem;
  z-index: 3;
}

/* Unified dropdown styling for both selects - IDENTICAL */
.professional-select,
.city-select {
  width: 100%;
  height: 56px;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #E1E5E9;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: var(--text-primary);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%237678ED' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.2rem;
  padding-right: 3rem;
  box-sizing: border-box;
  cursor: pointer;
}

/* Force identical arrow styling - override any inherited styles */
.professional-select,
.city-select {
  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='%237678ED' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 1rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.2rem !important;
}

/* Identical focus states for both selects - FORCED */
.professional-select:focus,
.city-select:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(118, 120, 237, 0.1);
  transform: translateY(-1px);
  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='%235A5CE8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 1rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.2rem !important;
}

/* Identical hover states for both selects - FORCED */
.professional-select:hover,
.city-select:hover {
  border-color: var(--bs-primary);
  transform: translateY(-1px);
  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='%235A5CE8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 1rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.2rem !important;
}

.search-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.professional-search-btn {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #7678ED 0%, #8B8EF0 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(118, 120, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.professional-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(118, 120, 237, 0.4);
  background: linear-gradient(135deg, #6B6DE8 0%, #7B7EEB 100%);
}

.professional-search-btn:active {
  transform: translateY(0);
}

.nearest-salon-btn {
  background: white;
  color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 150px;
}

.nearest-salon-btn:hover {
  background: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(118, 120, 237, 0.2);
}

.nearest-salon-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .professional-search-container {
    padding: 1.5rem;
    margin: 0 1rem;
    border-radius: 16px;
  }
  
  .search-actions {
    flex-direction: column;
  }
  
  .professional-search-btn,
  .nearest-salon-btn {
    width: 100%;
    min-width: auto;
  }
  
  .search-input-group {
    gap: 0.75rem;
  }
  
  .professional-select,
  .city-select {
    height: 54px;
    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='%237678ED' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-size: 1.1rem !important;
    background-position: right 1rem center !important;
    background-repeat: no-repeat !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 60vh;
    padding: 1.5rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .professional-search-container {
    padding: 1rem;
    margin: 0 0.5rem;
    border-radius: 12px;
  }
  
  .professional-select,
  .city-select {
    height: 52px;
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    font-size: 0.95rem;
    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='%237678ED' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-size: 1rem !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
  }
  
  .input-with-icon i {
    left: 0.75rem;
    font-size: 1rem;
  }
  
  .professional-search-btn,
  .nearest-salon-btn {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.input-group-text {
  background-color: white;
  border-color: var(--border-color);
}

.input-group-text .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}
