/* ==========================================================================
   BS STUDIO - PREMIUM BOOKING SYSTEM
   Professional, business-ready styling for lash extension booking
   ========================================================================== */



   
/* ==========================================================================
   CSS CUSTOM PROPERTIES - DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary: #e1306c;
  --primary-light: #f5487a;
  --primary-dark: #c5295e;
  --secondary: #2d2d2d;
  --accent: #ffcc33;
  --accent-light: #ffd700;
  
  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Status Colors */
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  --info: #17a2b8;
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* Spacing Scale */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-base: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--neutral-800);
  background: linear-gradient(135deg, var(--neutral-200) 0%, var(--neutral-100) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.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;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  ring: 2px solid var(--primary);
  ring-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--neutral-100);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-base);
}

.btn-secondary {
  background: var(--neutral-100);
  color: var(--neutral-700);
  border: 2px solid var(--neutral-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--neutral-200);
  border-color: var(--neutral-400);
  box-shadow: var(--shadow-base);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: var(--neutral-100);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Card Component */
.card {
  background: var(--neutral-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--neutral-300);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--neutral-300);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--neutral-300);
  background: var(--neutral-200);
}

/* Form Components */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--neutral-800);
}

.form-control {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--neutral-800);
  background: var(--neutral-100);
  transition: all var(--transition-base);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.1);
  background: var(--neutral-100);
}

.form-control:invalid:not(:focus) {
  border-color: var(--error);
}

.form-control::placeholder {
  color: var(--neutral-500);
}

.form-help {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin-top: var(--space-1);
  line-height: 1.4;
}

/* ==========================================================================
   APP STRUCTURE
   ========================================================================== */

.app {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Pattern */
.background-pattern {
  position: fixed;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 20%, var(--primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--accent) 0%, transparent 50%);
  z-index: -1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-300);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-100);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.logo-text h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  margin: 0;
  line-height: 1.2;
}

.logo-text p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin: 0;
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.location i {
  color: var(--primary);
}

.status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--success);
  color: var(--neutral-100);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.progress-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-300);
  position: sticky;
  top: 80px;
  z-index: var(--z-sticky);
  padding: var(--space-6) 0;
}

.progress-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  background: var(--neutral-300);
  color: var(--neutral-600);
  transition: all var(--transition-base);
}

.step-text {
  text-align: center;
}

.step-number {
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-600);
  font-size: var(--text-sm);
  line-height: 1;
}

.step-title {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  font-weight: var(--font-weight-medium);
  margin-top: var(--space-1);
  line-height: 1;
}

.step.active .step-content,
.step.completed .step-content {
  background: var(--neutral-100);
  border-color: var(--primary);
  box-shadow: var(--shadow-base);
}

.step.active .step-icon,
.step.completed .step-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--neutral-100);
}

.step.completed .step-number,
.step.completed .step-title {
  color: var(--success);
  font-weight: var(--font-weight-semibold);
}

.step.active .step-number,
.step.active .step-title {
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
}

.step-connector {
  width: 64px;
  height: 2px;
  background: var(--neutral-300);
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  transition: width var(--transition-slow);
}

.step.completed + .step-connector::after {
  width: 100%;
}

/* ==========================================================================
   NOTIFICATION AREA
   ========================================================================== */

.notification-area {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-modal);
  max-width: 400px;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neutral-400);
}

.notification-area.notification-success {
  background: var(--success);
  color: var(--neutral-100);
}

.notification-area.notification-error {
  background: var(--error);
  color: var(--neutral-100);
}

.notification-area.notification-warning {
  background: var(--warning);
  color: var(--neutral-800);
}

.notification-area.notification-info {
  background: var(--info);
  color: var(--neutral-100);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.notification-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
  font-weight: var(--font-weight-medium);
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-base);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
  width: 100%;
}

.step-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.step-header h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--secondary);
  line-height: 1.2;
}

.step-header p {
  font-size: var(--text-xl);
  color: var(--neutral-600);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hold-countdown {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--warning);
  color: var(--neutral-800);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  margin-top: var(--space-4);
}

/* ==========================================================================
   STEP CONTENT - SHOW/HIDE
   ========================================================================== */

.step-content-1,
.step-content-2,
.step-content-3,
.step-content-4 {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.step-content-1.active-step,
.step-content-2.active-step,
.step-content-3.active-step,
.step-content-4.active-step {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp var(--transition-slow) ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SERVICE SELECTION (STEP 1)
   ========================================================================== */

.services-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.service-category {
  margin-bottom: var(--space-8);
}

.category-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.category-header h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.category-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--neutral-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-base);
  border: 2px solid var(--neutral-300);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.selected {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--neutral-100) 0%, rgba(225, 48, 108, 0.02) 100%);
}

.service-card.selected::before {
  transform: scaleX(1);
}

.service-card.selected::after {
  content: '✓';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  animation: checkmark var(--transition-base) ease-out;
}

@keyframes checkmark {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.service-card h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

.service-card .subtitle {
  font-size: var(--text-base);
  color: var(--primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-3);
}

.service-card .description {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.service-card .price-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--neutral-300);
  padding-top: var(--space-4);
}

.service-card .price {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
}

.service-card .duration {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--neutral-600);
  font-weight: var(--font-weight-medium);
}

.book-now-btn {
  width: 100%;
  margin-top: var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--neutral-100);
  border: none;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.book-now-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   DATE & TIME SELECTION (STEP 2)
   ========================================================================== */

.datetime-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.section-card {
  background: var(--neutral-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--neutral-300);
}

.section-card h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-card h3 i {
  color: var(--primary);
}

/* Calendar */
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  text-align: center;
}

.weekday {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-600);
  padding: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
}

.calendar-day {
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--neutral-800);
  border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.selected) {
  background: var(--neutral-200);
  border-color: var(--neutral-400);
}

.calendar-day.disabled {
  color: var(--neutral-500);
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--neutral-100);
  font-weight: var(--font-weight-semibold);
  border-color: var(--primary-dark);
}

.calendar-day.today {
  background: var(--neutral-300);
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-800);
}

/* Time Slots */
.no-date-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--neutral-500);
  text-align: center;
}

.no-date-selected i {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.timeslots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.timeslot {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 2px solid var(--neutral-300);
  background: var(--neutral-200);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--neutral-800);
  position: relative;
}

.timeslot:hover:not(.disabled):not(.held) {
  border-color: var(--primary);
  background: var(--neutral-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-base);
}

.timeslot.selected {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--neutral-100);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  font-weight: var(--font-weight-semibold);
}

.timeslot.disabled,
.timeslot.held {
  background: var(--neutral-300);
  color: var(--neutral-500);
  cursor: not-allowed;
  border-color: var(--neutral-400);
  opacity: 0.6;
}

.timeslot.held::after {
  content: 'Held';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: var(--error);
  font-weight: var(--font-weight-semibold);
}

/* ==========================================================================
   USER DETAILS (STEP 3)
   ========================================================================== */

.details-container {
  max-width: 600px;
  margin: 0 auto;
}

.details-container .section-card {
  padding: var(--space-10);
}

/* ==========================================================================
   CONFIRMATION (STEP 4)
   ========================================================================== */

.confirmation-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Booking Receipt */
.booking-receipt .receipt-card {
  background: linear-gradient(135deg, var(--neutral-100) 0%, rgba(225, 48, 108, 0.02) 100%);
  border: 2px solid var(--primary);
  position: relative;
}

.booking-receipt .receipt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.receipt-content {
  font-family: 'Courier New', monospace;
  color: var(--neutral-800);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--neutral-400);
}

.business-info strong {
  font-size: var(--text-lg);
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

.business-info p {
  margin: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.booking-date {
  text-align: right;
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.receipt-divider {
  border-bottom: 2px dashed var(--neutral-400);
  margin: var(--space-4) 0;
}

.receipt-details {
  margin: 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-2) 0;
  border-bottom: 1px dotted var(--neutral-300);
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row dt {
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-700);
  min-width: 100px;
}

.receipt-row dd {
  margin: 0;
  text-align: right;
  max-width: 60%;
  font-weight: var(--font-weight-medium);
}

.receipt-row dd strong {
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

.receipt-row dd small {
  display: block;
  color: var(--neutral-600);
  font-size: var(--text-xs);
  font-style: italic;
}

.receipt-total {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 2px solid var(--primary);
}

.total-row, .deposit-row, .balance-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-weight: var(--font-weight-semibold);
}

.total-row {
  font-size: var(--text-lg);
  color: var(--secondary);
}

.deposit-row {
  color: var(--primary);
}

.balance-row {
  color: var(--accent);
  border-top: 1px dashed var(--neutral-400);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--text-lg);
}

/* Policies Section */
.policies-section .section-card {
  border-left: 4px solid var(--primary);
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.policy-card {
  display: flex;
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--neutral-200);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--primary);
  transition: all var(--transition-base);
}

.policy-card:hover {
  background: var(--neutral-300);
  transform: translateX(2px);
}

.policy-icon {
  font-size: var(--text-xl);
  color: var(--primary);
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.policy-details h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 var(--space-1);
  color: var(--secondary);
}

.policy-details p {
  margin: 0;
  color: var(--neutral-600);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.policy-agreement {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: rgba(225, 48, 108, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(225, 48, 108, 0.2);
}

.policy-agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-base);
  accent-color: var(--primary);
  margin-top: var(--space-1);
  cursor: pointer;
}

.policy-agreement label {
  font-size: var(--text-sm);
  color: var(--neutral-700);
  line-height: 1.5;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
}

.policies-actions {
  text-align: center;
  margin-top: var(--space-6);
}

.policies-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.policies-btn:hover {
  background: var(--primary);
  color: var(--neutral-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-base);
}

/* Payment Section */
.payment-section {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.05) 0%, rgba(255, 204, 51, 0.05) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
}

.payment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.payment-section h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.payment-section h3 i {
  color: var(--primary);
}

.payment-card {
  background: var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-sm);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
}

.payment-title h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--secondary);
  margin: 0 0 var(--space-1);
}

.payment-title p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin: 0;
}

.payment-number {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.phone-number {
  font-family: 'Courier New', monospace;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  padding: var(--space-2) var(--space-4);
  background: var(--neutral-200);
  border-radius: var(--radius-base);
}

.copy-btn {
  background: var(--primary);
  border: none;
  color: var(--neutral-100);
  padding: var(--space-2);
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.copy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-base);
}

.payment-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.payment-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: rgba(225, 48, 108, 0.05);
  border-radius: var(--radius-base);
  border-left: 3px solid var(--primary);
}

.payment-step .step-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-100);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  background: var(--primary);
  flex-shrink: 0;
}

.payment-step span {
  font-size: var(--text-sm);
  color: var(--neutral-700);
  font-weight: var(--font-weight-medium);
}

.payment-step strong {
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

.payment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.file-upload {
  border: 2px dashed var(--neutral-400);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--neutral-200);
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--neutral-100);
  transform: translateY(-2px);
}

.file-upload i {
  font-size: var(--text-4xl);
  color: var(--primary);
  margin-bottom: var(--space-3);
  opacity: 0.7;
}

.file-upload p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-12);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  min-width: 160px;
}

.prev-btn {
  background: var(--neutral-100);
  color: var(--neutral-700);
  border: 2px solid var(--neutral-300);
  box-shadow: var(--shadow-sm);
}

.prev-btn:hover:not(:disabled) {
  background: var(--neutral-200);
  border-color: var(--neutral-400);
  box-shadow: var(--shadow-base);
}

.next-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--neutral-100);
  box-shadow: var(--shadow-md);
}

.next-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.next-btn.disabled {
  background: var(--neutral-400);
  color: var(--neutral-600);
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-6);
}

.modal {
  background: var(--neutral-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalFadeIn var(--transition-base) ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.large-modal {
  max-width: 800px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: var(--space-6);
  position: relative;
}

.modal-header h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  margin-bottom: var(--space-3);
}

.modal-header p {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  margin: 0;
  line-height: 1.5;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--neutral-100);
  font-size: var(--text-2xl);
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-md);
}

.large-icon {
  width: 80px;
  height: 80px;
  font-size: var(--text-4xl);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--neutral-600);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-base);
  transition: all var(--transition-base);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--neutral-200);
  color: var(--neutral-800);
}

/* Auth Modal */
.auth-tabs {
  display: flex;
  background: var(--neutral-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: none;
  background: transparent;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-600);
  cursor: pointer;
  transition: all var(--transition-base);
}

.auth-tab.active {
  background: var(--neutral-100);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  margin-bottom: var(--space-6);
}

.auth-form .form-group {
  margin-bottom: var(--space-4);
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Final Summary Modal */
.final-summary {
  margin-bottom: var(--space-8);
}

.final-summary h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  margin-bottom: var(--space-6);
  text-align: center;
}

.final-summary-content {
  background: var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--neutral-300);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: var(--text-base);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--neutral-300);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row dt {
  font-weight: var(--font-weight-medium);
  color: var(--neutral-700);
  min-width: 120px;
}

.summary-row dd {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  text-align: right;
  color: var(--neutral-800);
}

.summary-row.total {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-2);
}

.summary-row.deposit {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
}

.modal-buttons {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.modal-buttons .btn {
  flex: 1;
  padding: var(--space-4);
}

/* Policies Modal */
.policies-content {
  max-height: 60vh;
  overflow-y: auto;
  margin: var(--space-6) 0;
  padding-right: var(--space-2);
}

.policies-content::-webkit-scrollbar {
  width: 6px;
}

.policies-content::-webkit-scrollbar-track {
  background: var(--neutral-200);
  border-radius: var(--radius-full);
}

.policies-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

.policies-content section {
  margin-bottom: var(--space-6);
}

.policies-content h4 {
  color: var(--primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary);
  padding-bottom: var(--space-2);
}

.policies-content ul {
  list-style: none;
  padding: 0;
}

.policies-content li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.6;
  color: var(--neutral-700);
}

.policies-content li::before {
  content: '▸';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --space-16: 3rem;
    --space-20: 4rem;
  }

  .header-container,
  .progress-container,
  .main-content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
  }

  .datetime-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .payment-form {
    grid-template-columns: 1fr;
  }

  .modal {
    margin: var(--space-4);
    max-width: calc(100vw - 2rem);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
  }

  .header-container {
    flex-direction: column;
    gap: var(--space-4);
    min-height: auto;
    padding: var(--space-4);
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .progress-section {
    top: auto;
    position: relative;
    padding: var(--space-4) 0;
  }

  .progress-steps {
    gap: var(--space-2);
    overflow-x: auto;
    padding: 0 var(--space-2);
  }

  .step-content {
    padding: var(--space-3) var(--space-4);
    min-width: 120px;
  }

  .step-text {
    display: none;
  }

  .step-connector {
    width: 32px;
  }

  .main-content {
    padding: var(--space-6) var(--space-4) var(--space-16);
  }

  .step-header h2 {
    font-size: var(--text-3xl);
  }

  .step-header p {
    font-size: var(--text-lg);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .service-card {
    padding: var(--space-6);
  }

  .section-card {
    padding: var(--space-6);
  }

  .section-card h3 {
    font-size: var(--text-xl);
  }

  .calendar-grid {
    gap: var(--space-1);
  }

  .calendar-day {
    height: 40px;
    font-size: var(--text-sm);
  }

  .timeslots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .timeslot {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .navigation {
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
  }

  .nav-btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
    font-size: var(--text-base);
  }

  .modal {
    margin: var(--space-2);
    padding: var(--space-6);
    max-width: calc(100vw - 1rem);
  }

  .modal-header h3 {
    font-size: var(--text-2xl);
  }

  .modal-header p {
    font-size: var(--text-base);
  }

  .modal-icon {
    width: 56px;
    height: 56px;
    font-size: var(--text-xl);
  }

  .large-icon {
    width: 72px;
    height: 72px;
    font-size: var(--text-3xl);
  }

  .modal-buttons {
    flex-direction: column;
  }

  .receipt-row {
    flex-direction: column;
    gap: var(--space-1);
  }

  .receipt-row dd {
    text-align: left;
    max-width: 100%;
  }

  .policies-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .notification-area {
    left: var(--space-4);
    right: var(--space-4);
    top: var(--space-4);
    max-width: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --space-8: 1.5rem;
    --space-10: 2rem;
    --space-12: 2.5rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }

  .logo-text h1 {
    font-size: var(--text-xl);
  }

  .step-header h2 {
    font-size: var(--text-2xl);
  }

  .step-header p {
    font-size: var(--text-base);
  }

  .service-card {
    padding: var(--space-5);
  }

  .service-card h4 {
    font-size: var(--text-xl);
  }

  .service-card .price {
    font-size: var(--text-2xl);
  }

  .section-card {
    padding: var(--space-5);
  }

  .calendar-day {
    height: 36px;
    font-size: var(--text-xs);
  }

  .timeslots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .receipt-content {
    font-size: var(--text-sm);
  }

  .payment-card {
    padding: var(--space-4);
  }

  .phone-number {
    font-size: var(--text-lg);
  }

  .modal {
    padding: var(--space-5);
  }

  .modal-header h3 {
    font-size: var(--text-xl);
  }

  .policies-content {
    max-height: 50vh;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  }

  .form-control:focus {
    box-shadow: 0 0 0 4px rgba(225, 48, 108, 0.3);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .status-dot {
    animation: none;
  }
}

/* Print styles */
@media print {
  .header,
  .progress-section,
  .navigation,
  .footer,
  .notification-area {
    display: none !important;
  }

  .main-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .step-content-4 {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .step-content-1,
  .step-content-2,
  .step-content-3 {
    display: none !important;
  }

  .card,
  .section-card {
    box-shadow: none !important;
    border: 2px solid var(--neutral-800) !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* ==========================================================================
   UTILITY CLASSES - ADDITIONAL
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-medium { font-weight: var(--font-weight-medium); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-base); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-base); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Focus management for accessibility */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-primary:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: rgba(225, 48, 108, 0.5);
}

/* ==========================================================================
   COMPONENT STATES & VARIATIONS
   ========================================================================== */

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--neutral-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success states */
.success-state {
  border-color: var(--success);
  background: rgba(40, 167, 69, 0.05);
}

.success-state::before {
  content: '✓';
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  color: var(--success);
  font-weight: bold;
}

/* Error states */
.error-state {
  border-color: var(--error);
  background: rgba(220, 53, 69, 0.05);
}

.form-control.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Disabled states */
.disabled,
[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hover states for interactive elements */
.interactive:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

/* Focus-visible for better keyboard navigation */
.focusable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-base);
}

/* High contrast text for better readability */
.high-contrast {
  color: var(--neutral-900);
  font-weight: var(--font-weight-semibold);
}

/* Subtle animations for premium feel */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   BROWSER COMPATIBILITY & FALLBACKS
   ========================================================================== */

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .header,
  .progress-section {
    background: rgba(255, 255, 255, 0.98);
  }
  
  .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Fallback for older browsers */
@supports not (display: grid) {
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
  
  .service-card {
    flex: 1 1 300px;
  }
}

/* End of CSS */






/* ===============================================
   TOAST NOTIFICATION SYSTEM
   =============================================== */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
}

.toast {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 320px;
  max-width: 100%;
  pointer-events: auto;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  overflow: hidden;
  position: relative;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
  opacity: 0.3;
}

.toast.toast-show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-hide {
  transform: translateX(100%);
  opacity: 0;
}

.toast.toast-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(16, 185, 129, 0.95) 100%);
  color: white;
  border-color: rgba(34, 197, 94, 0.3);
}

.toast.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  color: white;
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.toast-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
  color: white;
  border-color: rgba(245, 158, 11, 0.3);
}

.toast.toast-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
  color: white;
  border-color: rgba(59, 130, 246, 0.3);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
}

.toast-content i:first-child {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-message {
  flex: 1;
  font-weight: 500;
  line-height: 1.5;
  font-size: 14px;
  word-wrap: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: all 0.2s ease;
  margin: -2px -2px 0 0;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.05);
}

.toast-close:active {
  transform: scale(0.95);
}

.toast-close i {
  font-size: 14px;
}

/* Toast animations */
@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Progress bar for toast duration */
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  animation: toastProgress 5s linear;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* ===============================================
   ENHANCED AUTHENTICATION STYLES
   =============================================== */

/* Auth modal improvements */
.auth-modal .modal {
  max-width: 450px;
  width: 90%;
}

.auth-tabs {
  display: flex;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
  position: relative;
}

.auth-tab.active {
  background: white;
  color: #7a1c5e;
  box-shadow: 0 2px 8px rgba(122, 28, 94, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.auth-tab:hover:not(.active) {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
}

.auth-tab:active {
  transform: translateY(0);
}

/* Enhanced form inputs */
.auth-form {
  margin-bottom: 24px;
}

.auth-form .form-group {
  margin-bottom: 18px;
  position: relative;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  color: #374151;
}

.auth-form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.auth-form input:focus {
  outline: none;
  border-color: #7a1c5e;
  box-shadow: 0 0 0 4px rgba(122, 28, 94, 0.1);
  transform: translateY(-1px);
}

.auth-form input:hover:not(:focus) {
  border-color: #d1d5db;
}

/* Password field with toggle visibility */
.auth-form .password-field {
  position: relative;
}

.auth-form .password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.auth-form .password-toggle:hover {
  color: #7a1c5e;
}

/* Confirm password field animation */
.auth-form input[name="confirmPassword"] {
  animation: slideDown 0.3s ease-out;
  transform-origin: top;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
  }
}

/* Auth buttons styling */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-buttons .primary-btn {
  background: linear-gradient(135deg, #7a1c5e 0%, #e1306c 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(122, 28, 94, 0.3);
}

.auth-buttons .primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 28, 94, 0.4);
}

.auth-buttons .primary-btn:active {
  transform: translateY(0);
}

.auth-buttons .primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-buttons .secondary-btn {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-buttons .secondary-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
}

.auth-buttons .text-btn {
  background: none;
  border: none;
  color: #6b7280;
  padding: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: underline;
}

.auth-buttons .text-btn:hover {
  color: #7a1c5e;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff;}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff;}

/* Loading state for auth buttons */
.auth-buttons button[disabled] {
  position: relative;
  color: transparent;
}

.auth-buttons button[disabled]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  color: white;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===============================================
   FORM ENHANCEMENTS
   =============================================== */

.form-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-help i {
  font-size: 11px;
  opacity: 0.7;
}

/* Enhanced form validation styles */
.form-group.has-error input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.has-success input {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-success {
  color: #22c55e;
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===============================================
   MOBILE RESPONSIVE ADJUSTMENTS
   =============================================== */

@media (max-width: 768px) {
  /* Toast notifications on mobile */
  .toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
    max-width: none;
  }

  .toast {
    min-width: auto;
    max-width: none;
    transform: translateY(-100%);
    border-radius: 12px;
  }

  .toast.toast-show {
    transform: translateY(0);
  }

  .toast.toast-hide {
    transform: translateY(-100%);
  }

  .toast-content {
    padding: 16px 18px;
  }

  .toast-message {
    font-size: 13px;
  }

  /* Auth modal on mobile */
  .auth-modal .modal {
    width: 95%;
    max-width: none;
    margin: 20px;
  }

  .auth-tabs {
    padding: 3px;
  }

  .auth-tab {
    padding: 12px 16px;
    font-size: 13px;
  }

  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .auth-buttons .primary-btn,
  .auth-buttons .secondary-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ===============================================
   DARK MODE SUPPORT (Optional)
   =============================================== */

@media (prefers-color-scheme: dark) {
  .toast {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(75, 85, 99, 0.3);
  }

  .toast.toast-success,
  .toast.toast-error,
  .toast.toast-warning,
  .toast.toast-info {
    /* Keep colored toasts as they are for visibility */
  }

  .auth-tabs {
    background: #374151;
    border-color: #4b5563;
  }

  .auth-tab {
    color: #d1d5db;
  }

  .auth-tab.active {
    background: #1f2937;
    color: #e1306c;
  }

  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }

  .auth-form input::placeholder {
    color: #9ca3af;
  }

  .auth-buttons .secondary-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
}

/* ===============================================
   HIGH CONTRAST MODE SUPPORT
   =============================================== */

@media (prefers-contrast: high) {
  .toast {
    border-width: 2px;
    box-shadow: none;
  }

  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    border-width: 2px;
  }

  .auth-form input:focus {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3);
  }
}

/* ===============================================
   REDUCED MOTION SUPPORT
   =============================================== */

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity 0.2s ease;
    transform: none !important;
  }

  .toast.toast-show {
    opacity: 1;
  }

  .toast.toast-hide {
    opacity: 0;
  }

  .auth-tab,
  .auth-form input,
  .auth-buttons button {
    transition: none;
  }

  .auth-buttons .primary-btn:hover,
  .auth-buttons .secondary-btn:hover {
    transform: none;
  }

  @keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
}