/* 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: #ffba08; /* Orange for success */
  --bs-info: #7678ED; /* Purple for info */
  --bs-warning: #ffba08; /* Orange for warning */
  --bs-danger: #7678ED; /* Purple for danger (using approved colors) */
  --bs-light: #FFFFFF; /* White */
  --bs-dark: #1E212B; /* Navy for primary text/backgrounds */

  /* B058: kill every Bootstrap default-blue variable site-wide so click /
     hover / active / focus states on links, nav-links, dropdown toggles
     and form controls stop flashing Bootstrap's #0d6efd. Bootstrap 5.3
     reads these at runtime for :hover, :focus, :active, :focus-visible,
     so overriding them here is the single-source-of-truth fix. */
  --bs-link-color: #7678ED;
  --bs-link-color-rgb: 118, 120, 237;
  --bs-link-hover-color: #5a5cdc;
  --bs-link-hover-color-rgb: 90, 92, 220;
  --bs-nav-link-color: #1E212B;
  --bs-nav-link-hover-color: #7678ED;
  --bs-nav-pills-link-active-color: #fff;
  --bs-nav-pills-link-active-bg: #7678ED;
  --bs-dropdown-link-color: #1E212B;
  --bs-dropdown-link-hover-color: #7678ED;
  --bs-dropdown-link-hover-bg: rgba(118, 120, 237, 0.08);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: #7678ED;
  --bs-form-control-focus-border-color: #7678ED;
  --bs-focus-ring-color: rgba(118, 120, 237, 0.25);
  --bs-focus-ring-width: 0.2rem;
  --bs-pagination-color: #7678ED;
  --bs-pagination-hover-color: #5a5cdc;
  --bs-pagination-focus-color: #5a5cdc;
  --bs-pagination-focus-bg: rgba(118, 120, 237, 0.08);
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(118, 120, 237, 0.25);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: #7678ED;
  --bs-pagination-active-border-color: #7678ED;

  /* Light Colors (for backgrounds/accents) */
  --primary-light: rgba(118, 120, 237, 0.1); /* Light purple tint */
  --secondary-light: rgba(255, 186, 8, 0.1); /* Light orange tint */
  --success-light: rgba(255, 186, 8, 0.1);
  --info-light: rgba(118, 120, 237, 0.1);
  --warning-light: rgba(255, 186, 8, 0.1);
  --danger-light: rgba(118, 120, 237, 0.1);

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

  /* Text Colors */
  --text-primary: #1E212B; /* Navy for main text */
  --text-secondary: #1E212B; /* Navy for secondary text (better contrast) */
  --text-light: #1E212B; /* Navy for subtle text (better contrast) */
  --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: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", 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:not(.btn):not(.bd-btn):not([class*="-btn"]):not([class*="cta"]):hover {
  color: #8B8EF0; /* Lighter purple for hover */
}

/* Custom Button Styles */
.btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  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 {
  box-shadow: 0 4px 16px rgba(118,120,237,0.3);
  background: linear-gradient(135deg, #8B8EF0 0%, #7678ED 100%);
  color: white;
  border-color: var(--bs-primary);
  transform: translateY(-1px);
}

.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 */
  box-shadow: var(--shadow-lg);
}

.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);
}

/* B055: Bootstrap 5.3 drives button state colors via per-selector CSS
   variables. Overriding .btn-outline-primary's own CSS properties above
   only covers the idle state; Bootstrap's `.btn.active, .btn:hover,
   .btn:focus-visible` rules still read --bs-btn-*-bg and win because of
   higher specificity. We have to override the variables directly. */
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-gradient: none;
  background: transparent;
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  border-width: 2px;
}

.btn-outline-primary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:first-child:active,
:not(.btn-check)+.btn-outline-primary:active {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

/* Same treatment for filled .btn-primary so its active state doesn't
   flash Bootstrap default blue on mousedown either. */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #6163e0;
  --bs-btn-hover-border-color: #6163e0;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #6163e0;
  --bs-btn-active-border-color: #6163e0;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-gradient: none;
}

/* =====================================================================
   B058: site-wide kill of Bootstrap default-blue click / hover / active
   states. Targets every element the user reported (select buttons,
   specialist buttons, navbar profile dropdown toggle) plus the full
   set of Bootstrap components that default to #0d6efd.
   ===================================================================== */

/* Kill mobile blue tap flash (Android Chrome, Safari iOS) */
* {
  -webkit-tap-highlight-color: rgba(118, 120, 237, 0.12);
}

/* Every .btn — block Bootstrap from painting the active/focus states
   with its default variables even when the variant didn't set them.
   `.show` is Bootstrap's class for open dropdowns. */
.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(118, 120, 237, 0.28) !important;
  outline: 0 !important;
}
.btn:active,
.btn.active,
.btn.show {
  outline: 0 !important;
}

/* Navbar links + dropdown toggle — this is where the profile dropdown
   flash was coming from. <a class="nav-link dropdown-toggle"> uses
   default browser :active color which we override to brand purple.
   The !important is intentional: Bootstrap sets :focus styles with
   equal specificity and we need to win. */
.nav-link,
.navbar-nav .nav-link {
  color: #1E212B;
}
.nav-link:hover,
.navbar-nav .nav-link:hover {
  color: #7678ED;
}
.nav-link:focus,
.nav-link:focus-visible,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:focus-visible {
  color: #7678ED !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.nav-link:active,
.nav-link.active,
.nav-link.show,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: #7678ED !important;
  background-color: transparent !important;
}
.dropdown-toggle:focus,
.dropdown-toggle:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}
.dropdown-toggle:active,
.dropdown-toggle.show {
  color: #7678ED !important;
  background-color: transparent !important;
  outline: 0 !important;
}

/* Dropdown menu items */
.dropdown-item {
  color: #1E212B;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(118, 120, 237, 0.08) !important;
  color: #1E212B !important;
}
.dropdown-item:active,
.dropdown-item.active {
  background-color: #7678ED !important;
  color: #fff !important;
}

/* Form controls — the default focus ring is blue; make it purple. */
.form-control:focus,
.form-select:focus {
  border-color: #7678ED !important;
  box-shadow: 0 0 0 0.2rem rgba(118, 120, 237, 0.18) !important;
}
.form-check-input:focus {
  border-color: #7678ED !important;
  box-shadow: 0 0 0 0.2rem rgba(118, 120, 237, 0.22) !important;
}
.form-check-input:checked {
  background-color: #7678ED !important;
  border-color: #7678ED !important;
}

/* Plain anchor tags (outside nav-link) default to blue on :active in
   some browsers. Pin them to brand purple. */
a:not(.btn):not(.nav-link):not(.dropdown-item):focus-visible {
  outline: 2px solid #7678ED;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Page-link / pagination */
.page-link {
  color: #7678ED;
}
.page-link:hover,
.page-link:focus {
  color: #5a5cdc;
  background-color: rgba(118, 120, 237, 0.08);
  box-shadow: 0 0 0 0.2rem rgba(118, 120, 237, 0.15) !important;
}
.page-item.active .page-link {
  background-color: #7678ED !important;
  border-color: #7678ED !important;
}
/* ===================================================================== */

.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;
  box-shadow: var(--shadow-lg);
}

.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;
  box-shadow: var(--shadow-lg);
}

.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;
  box-shadow: var(--shadow-lg);
}

/* Add Salon button in navbar - larger font and yellow color on all states */
.add-salon-btn {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.add-salon-btn:focus,
.add-salon-btn:active,
.add-salon-btn.active {
  background: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 186, 8, 0.25) !important;
}

.add-salon-btn:hover {
  background: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
  color: white !important;
}

.btn-success {
  background: linear-gradient(135deg, #ffba08 0%, #ffa500 100%);
  border-color: var(--bs-success);
  color: var(--text-primary);
}

.btn-success:hover {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #ffc933 0%, #ffba08 100%);
  color: #1E212B;
}

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

.btn-info:hover {
  box-shadow: var(--shadow-lg);
  color: white;
}

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

.btn-warning:hover {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #ffc933 0%, #ffba08 100%);
  color: #1E212B;
}

.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: 0.85rem 1.75rem;
  font-size: 0.9375rem;
  border-radius: 50px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 50px;
}

/* Pill-shaped CTA buttons (M044) */
.btn-cta {
  background: var(--gradient-primary);
  border-color: var(--bs-primary);
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(118,120,237,0.18);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #8B8EF0 0%, #7678ED 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(118,120,237,0.3);
  transform: translateY(-1px);
}

/* White pill CTA for colored backgrounds (M044) */
.btn-cta-light {
  background: #fff;
  border-color: #fff;
  color: #1E212B;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}
.btn-cta-light:hover {
  background: #f0f0f0;
  color: #1E212B;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.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);
}

/* Fix duplicate dropdown icons - ensure only one icon shows for language dropdown */
#languageDropdown.dropdown-toggle::after {
  display: inline-block !important;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "" !important;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* Remove any duplicate ::before pseudo-element */
#languageDropdown.dropdown-toggle::before {
  display: none !important;
  content: none !important;
}

.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 */
/* Legacy hero classes kept for backward compat — no longer rendered */

.text-white-75 {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--bs-primary);
}

.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;
}

/* 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 {
  box-shadow: var(--shadow-lg);
  border-color: var(--bs-primary);
  background: var(--primary-light);
}

.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;
}

/* Service Icons - No background, keep original colors */
.service-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 auto 1rem;
  background: transparent;
}

.service-icon-wrapper:hover {
  transform: scale(1.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.service-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: #ffba08;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Services Marquee */
.services-section-v2 {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.services-marquee-section {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 120px, black calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 120px, black calc(100% - 120px), transparent 100%);
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.75rem 0;
}

.marquee-row-left {
  animation: marquee-scroll-left 41s linear infinite;
}

.marquee-row-right {
  animation: marquee-scroll-right 34s linear infinite;
}

.services-marquee-section:hover .marquee-row {
  animation-play-state: paused;
}

@keyframes marquee-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-card {
  flex-shrink: 0;
  width: calc((100vw - 6rem) / 3);
  max-width: 340px;
  min-width: 220px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem 1.5rem;
  text-align: center;
}

.marquee-card:hover {
  border-color: #ffba08;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.marquee-card .service-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}

.marquee-card h6 {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .services-marquee-section {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
  }
  .marquee-card {
    width: calc((100vw - 4rem) / 2);
    min-width: 150px;
    padding: 1.25rem 1rem;
  }
  .marquee-card .service-icon {
    width: 48px;
    height: 48px;
  }
  .marquee-card h6 {
    font-size: 0.8rem;
  }
}

/* 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-light);
  color: var(--text-primary);
}

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

.testimonials .text-muted {
  color: #6c757d !important;
}

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

.testimonial-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.testimonial-card .card-text {
  color: var(--text-primary);
}

.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: var(--text-primary);
}

.testimonial-author small {
  color: #6c757d;
}

/* 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 */
.site-footer {
  background: var(--bg-dark);
  color: white;
  padding: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand {
  padding-right: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-social-icon:hover {
  background: rgba(118, 120, 237, 0.25);
  color: white;
}

.footer-heading {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-credit {
  font-size: 0.7rem;
  opacity: 0.6;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-lang {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.footer-lang:hover {
  color: white;
}

.footer-lang.active {
  color: white;
  background: rgba(118, 120, 237, 0.25);
}

.footer-lang-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
}

/* Footer responsive */
@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 575px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0 1.5rem;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Legacy footer classes kept for backward compat */
.footer { background: var(--bg-dark); 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; }
.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); transition: var(--transition); }
.footer-section ul li a:hover { color: white; }
.footer-section p { color: rgba(255, 255, 255, 0.85); }
.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); }

/* 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 select options - Light purple with transparency */
.form-select option,
select.form-select option {
  background-color: rgba(118, 120, 237, 0.15) !important;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
}

.form-select option:hover,
select.form-select option:hover {
  background-color: rgba(118, 120, 237, 0.25) !important;
}

.form-select option:checked,
select.form-select option:checked {
  background-color: rgba(118, 120, 237, 0.3) !important;
  color: var(--text-primary);
  font-weight: 600;
}

.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 {
  box-shadow: var(--shadow-xl);
  border-color: var(--bs-primary);
}

/* 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;
  align-items: center;
  width: 100%;
}

.search-input-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
  max-width: 600px;
  margin: 0;
  padding: 0;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0;
  padding: 0;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-primary);
  font-size: 1.1rem;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  text-align: center;
}

/* 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;
  padding-left: 3rem !important;
  box-sizing: border-box;
  cursor: pointer;
  margin: 0;
}

/* 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);
  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);
  box-shadow: 0 0 0 2px rgba(118, 120, 237, 0.1);
  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;
}

/* Dropdown options styling - Light purple with transparency */
.professional-select option,
.city-select option,
select option {
  background-color: rgba(118, 120, 237, 0.15) !important;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
}

.professional-select option:hover,
.city-select option:hover,
select option:hover {
  background-color: rgba(118, 120, 237, 0.25) !important;
}

.professional-select option:checked,
.city-select option:checked,
select option:checked {
  background-color: rgba(118, 120, 237, 0.3) !important;
  color: var(--text-primary);
  font-weight: 600;
}

.search-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

.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 {
  box-shadow: 0 8px 25px rgba(118, 120, 237, 0.4);
  background: linear-gradient(135deg, #6B6DE8 0%, #7B7EEB 100%);
}

.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;
  box-shadow: 0 4px 15px rgba(118, 120, 237, 0.2);
}

/* 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;
    padding-left: 2.5rem !important;
    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;
    display: flex;
    align-items: center;
  }
}

@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;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .professional-select,
  .city-select {
    display: flex;
    align-items: center;
  }
  
  .professional-select,
  .city-select {
    padding-left: 2.5rem !important;
  }
  
  .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;
}

/* Bootstrap Alert Overrides - Use approved color palette */
.alert-success {
  background-color: rgba(255, 186, 8, 0.1) !important;
  border-color: #ffba08 !important;
  color: #1e212b !important;
}

.alert-success .alert-link {
  color: #ffba08 !important;
}

.alert-info {
  background-color: rgba(118, 120, 237, 0.1) !important;
  border-color: #7678ED !important;
  color: #1e212b !important;
}

.alert-info .alert-link {
  color: #7678ED !important;
}

.alert-warning {
  background-color: rgba(255, 186, 8, 0.1) !important;
  border-color: #ffba08 !important;
  color: #1e212b !important;
}

.alert-warning .alert-link {
  color: #ffba08 !important;
}

/* How It Works Section - Modern Design */
.how-it-works-section {
  background: #f8f9fa;
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  color: #1e212b;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Bento Grid Cards */
.bento-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.bento-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-image {
  transform: scale(1.03);
}

.bento-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento-step-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #ffba08;
  margin-bottom: 0.75rem;
  font-family: 'General Sans', sans-serif;
  letter-spacing: -0.05em;
}

.bento-step-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e212b;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.bento-step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 1.25rem;
  flex: 1;
}

.bento-step-link {
  color: #1e212b;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bento-step-link:hover {
  color: #7678ED;
}

.bento-step-link i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.bento-step-link:hover i {
  transform: translateX(3px);
}

/* Global text link hover purple (excludes buttons & navs) */
a:not(.btn):not(.bd-btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not([class*="-btn"]):not([class*="cta"]):hover {
  color: #7678ED;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bento-image-wrapper {
    height: 180px;
  }

  .bento-step-number {
    font-size: 2.5rem;
  }

  .bento-step-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 576px) {
  .how-it-works-section {
    padding: 60px 0;
  }
}

@media (max-width: 992px) {
  .step-connector {
    display: none;
  }
  
  .how-it-works-card {
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .how-it-works-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-text-section {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .hero-image-section {
    padding-left: 0;
    margin-top: 40px;
  }
  
  .hero-image-wrapper {
    transform: none;
  }
}

/* Custom Pagination Styling to Match Theme */
.pagination {
  gap: 0.5rem;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  border: 2px solid var(--border-color, #E1E5E9);
  border-radius: var(--border-radius, 12px);
  padding: 0.625rem 1rem;
  color: var(--text-primary, #1E212B);
  background-color: #FFFFFF;
  font-weight: 500;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  min-width: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-link:hover {
  background: var(--gradient-primary, linear-gradient(135deg, #7678ED 0%, #8B8EF0 100%));
  color: #FFFFFF;
  border-color: #7678ED;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(118, 120, 237, 0.3);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary, linear-gradient(135deg, #7678ED 0%, #8B8EF0 100%));
  color: #FFFFFF;
  border-color: #7678ED;
  box-shadow: 0 4px 12px rgba(118, 120, 237, 0.3);
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  background-color: #F8F9FA;
  color: #6c757d;
  border-color: #E1E5E9;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
  background-color: #F8F9FA;
  color: #6c757d;
  border-color: #E1E5E9;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(118, 120, 237, 0.25);
  outline: none;
}

@media (max-width: 576px) {
  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    font-size: 0.875rem;
  }
}

/* Leaflet map fix: prevent Bootstrap from breaking tiles */
.leaflet-container {
  overflow: hidden !important;
}

.leaflet-container img {
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
}

.leaflet-container img.leaflet-tile {
  height: 256px !important;
  width: 256px !important;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.custom-map-pin {
  background: none !important;
  border: none !important;
}
.leaflet-custom-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.leaflet-custom-zoom .zoom-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 18px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.leaflet-custom-zoom .zoom-btn:hover {
  background: #f0f0f0;
}
.leaflet-custom-zoom .zoom-btn:active {
  transform: scale(0.92);
}
.salon-name-popup .leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0;
}
.salon-name-popup .leaflet-popup-content {
  margin: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.salon-name-popup .leaflet-popup-tip {
  background: #fff;
}
