/* Smart Booking Manager - Enhanced Booking Form Styles */

/* Light mode step numbers visibility */
.sbm-step-number {
    background: rgba(102, 126, 234, 0.8) !important;
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Ensure form labels are visible in both modes */
.sbm-form-group label,
.sbm-field-group label {
    color: #1f2937 !important;
    font-weight: 600;
}



/* Base loading times styling */
.sbm-loading-times {
    color: #6b7280;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}



/* Light mode fixes for template classes */
.sbm-service-name,
.sbm-staff-name {
    color: #1f2937 !important;
}

.sbm-service-description,
.sbm-staff-description,
.sbm-service-duration,
.sbm-service-price {
    color: #374151 !important;
}

.sbm-service-card,
.sbm-staff-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #1f2937 !important;
}

.sbm-form-description,
.sbm-step-description {
    color: #374151 !important;
}



/* Reset and Base Styles */
.sbm-booking-form *, .sbm-booking-form-container * {
    box-sizing: border-box;
}

.sbm-booking-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    border: none;
    color: #1f2937;
    transition: all 0.3s ease;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 0;
}

/* Responsive booking form */
@media (max-width: 768px) {
    .sbm-booking-form {
        padding: 0 10px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .sbm-booking-form {
        padding: 0 5px;
    }
}

/* Ensure proper text contrast in light mode */
.sbm-booking-form h1, .sbm-booking-form h2, .sbm-booking-form h3, .sbm-booking-form h4, .sbm-booking-form h5, .sbm-booking-form h6 {
    color: #1f2937 !important;
}

.sbm-booking-form p, .sbm-booking-form div, .sbm-booking-form span, .sbm-booking-form label {
    color: #374151 !important;
}

.sbm-booking-form .service-card, .sbm-booking-form .staff-card {
    color: #1f2937 !important;
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

.sbm-booking-form .sbm-service-card, .sbm-booking-form .sbm-staff-card {
    color: #1f2937 !important;
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

/* Ensure all text elements have proper contrast */
.sbm-booking-form .service-name, .sbm-booking-form .staff-name {
    color: #1f2937 !important;
}

.sbm-booking-form .service-description, .sbm-booking-form .staff-position, .sbm-booking-form .staff-specialization {
    color: #374151 !important;
}

.sbm-booking-form .service-price {
    color: #667eea !important;
}

.sbm-booking-form .service-duration {
    color: #6b7280 !important;
}

/* Button text visibility */
.sbm-btn {
    color: #ffffff !important;
}

.sbm-btn-secondary {
    color: #1f2937 !important;
}

/* Form input text visibility */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
    color: #1f2937 !important;
}

input::placeholder, textarea::placeholder {
    color: #6b7280 !important;
}

/* Progress step text visibility */
.step {
    color: rgba(255, 255, 255, 0.8) !important;
}

.step.active {
    color: rgba(255, 255, 255, 1) !important;
}

.step.completed {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Service and staff elements with proper contrast */
.sbm-service-name, .sbm-staff-name {
    color: #1f2937 !important;
}

.sbm-service-description, .sbm-staff-description {
    color: #6b7280 !important;
}

.sbm-service-price {
    color: #667eea !important;
}

.sbm-service-duration {
    color: #6b7280 !important;
}

.sbm-staff-position, .sbm-staff-specialties {
    color: #6b7280 !important;
}

/* WordPress template specific classes */
.sbm-booking-form-container {
    background: #ffffff !important;
    color: #1f2937 !important;
}

/* Light mode specific text visibility fixes */
/* Default light mode styling */
.sbm-form-header h3 {
    color: #1f2937 !important;
}

.sbm-form-description {
    color: #374151 !important;
}

/* Explicit light mode styling */
    color: #1f2937 !important;
}

    color: #374151 !important;
}





/* Default fallback for light mode when no theme attribute */
.sbm-step-description,
.sbm-form-group label,
.sbm-service-name,
.sbm-staff-name {
    color: #374151 !important;
}

.sbm-step-header h4 {
    color: #1f2937 !important;
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

/* Ensure step headers are visible */

.sbm-step-header h4 {
    color: #1f2937 !important;
}
    color: #6b7280 !important;
}

/* Default light mode for form elements */
input, select, textarea {
    color: #1f2937 !important;
}

.sbm-service-price,
.sbm-service-duration,
.sbm-service-description {
    color: #6b7280 !important;
}

/* Step header container layout fix */
.sbm-step-header {
    display: block !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #e5e7eb !important;
}

/* Additional fallback for step headers in form steps */
.sbm-form-step .sbm-step-header h4,
.sbm-step-1 .sbm-step-header h4,
.sbm-step-2 .sbm-step-header h4,
.sbm-step-3 .sbm-step-header h4,
.sbm-step-4 .sbm-step-header h4 {
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 1.375rem !important;
    margin: 0 0 1rem 0 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
}

/* Move step indicator below the header */
.sbm-step-indicator {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

/* Light mode step indicator visibility */
    color: #1f2937 !important;
}

/* Default light mode for step indicators */
.sbm-step-indicator .sbm-step-number,
.sbm-step-indicator .sbm-step-title {
    color: #1f2937 !important;
}

/* Light mode step header container */
    color: #1f2937 !important;
}

/* Ensure all text in step header area is visible in light mode */
    color: #1f2937 !important;
}

/* Default fallback for step header area */
.sbm-step-header *,
.sbm-step-indicator * {
    color: #1f2937 !important;
}

/* Force dark text on light backgrounds regardless of theme attribute */
.sbm-step-header h4 {
    color: #1f2937 !important;
}

.sbm-step-indicator .sbm-step-number,
.sbm-step-indicator .sbm-step-title {
    color: #1f2937 !important;
}

/* Override any dark theme styles when background is light - Higher specificity */
    color: #1f2937 !important;
}

    color: #1f2937 !important;
}

/* Additional high-specificity overrides */
    color: #1f2937 !important;
}

    color: #1f2937 !important;
}

/* Maximum specificity overrides - Force dark text regardless of theme */
/* Ultra-high specificity rules for bright text in dark mode */
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Force bright text for step indicators in dark mode */
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Force bright text for progress steps in dark mode */
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Light mode rules - keep dark text for light backgrounds */
body .sbm-booking-form-container .sbm-form-step .sbm-step-header h4,
body .sbm-booking-form-container .sbm-step-header h4,
.sbm-booking-form-container .sbm-form-step .sbm-step-header h4,
.sbm-booking-form-container .sbm-step-header h4 {
    color: #1f2937 !important;
    opacity: 1 !important;
}

/* Light mode step indicators */
body .sbm-booking-form-container .sbm-step-indicator .sbm-step-number,
body .sbm-booking-form-container .sbm-step-indicator .sbm-step-title,
.sbm-booking-form-container .sbm-step-indicator .sbm-step-number,
.sbm-booking-form-container .sbm-step-indicator .sbm-step-title {
    color: #1f2937 !important;
    opacity: 1 !important;
}

/* Light mode progress steps */
body .sbm-booking-form-container .sbm-progress-step .sbm-step-circle,
body .sbm-booking-form-container .sbm-progress-step .sbm-step-label,
.sbm-booking-form-container .sbm-progress-step .sbm-step-circle,
.sbm-booking-form-container .sbm-progress-step .sbm-step-label {
    color: #1f2937 !important;
    opacity: 1 !important;
}
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode overrides - Enhanced bright text */
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

.sbm-step-description {
    color: #6b7280 !important;
}

/* Import Inter font for better readability */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Enhanced container with better spacing */
.sbm-booking-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    min-height: 100vh;
    width: 100%;
    transition: all 0.3s ease;
}

/* Form header improvements - Minimized height */
.sbm-form-header {
    text-align: center;
    padding: 1.5rem 5% 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sbm-form-header::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

.sbm-form-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.sbm-form-description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* Enhanced Progress Steps - Minimized height */
.sbm-progress-steps {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem 5%;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Light mode progress steps */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Fallback for light mode when theme attribute is not set */
.sbm-progress-steps {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Dark mode progress steps */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sbm-progress-steps .progress-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
}

.sbm-progress-steps::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="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

/* Progress line connecting steps - positioned to center with step numbers */
.sbm-progress-steps::after {
    content: '';
    position: absolute;
    top: 22px; /* Center with 44px step numbers (22px from top) */
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), rgba(102, 126, 234, 0.6), rgba(102, 126, 234, 0.3));
    border-radius: 1px;
    z-index: 0;
    box-shadow: 0 1px 2px rgba(102, 126, 234, 0.15);
}

/* Dark mode progress line */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.15);
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(55, 65, 81, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    cursor: pointer;
}

/* Dark mode step text */
    color: rgba(255, 255, 255, 0.7);
}

.step:hover {
    color: rgba(55, 65, 81, 0.9);
    transform: translateY(-2px);
}

.step.active {
    color: #374151;
    transform: translateY(-4px);
}

/* Dark mode step hover and active */
    color: rgba(255, 255, 255, 0.9);
}

    color: #ffffff;
}

.step.completed {
    color: #10b981;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(102, 126, 234, 0.7));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Light mode step numbers - keep same styling as it works well */
    background: rgba(102, 126, 234, 0.8);
    color: #ffffff;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-number::before {
    opacity: 1;
}

.step:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(102, 126, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Dark mode active step number */
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), 0 0 0 3px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1rem;
    font-weight: 900;
}

.step-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    color: rgba(55, 65, 81, 0.9);
}

.step.active .step-title {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: rgba(55, 65, 81, 1);
}

/* Dark mode step titles */
    color: rgba(255, 255, 255, 0.9);
}

    color: rgba(255, 255, 255, 1);
}

/* Ensure progress step titles are visible in light mode */
.sbm-progress-steps .step-title {
    color: rgba(55, 65, 81, 0.9) !important;
}

.sbm-progress-steps .step.active .step-title {
    color: rgba(55, 65, 81, 1) !important;
}

/* Dark mode progress step titles */
    color: rgba(255, 255, 255, 0.9) !important;
}

    color: rgba(255, 255, 255, 1) !important;
}

/* Additional fallback for step indicator titles */
.sbm-step-indicator .sbm-step-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

    color: rgba(255, 255, 255, 0.9) !important;
}

/* Enhanced Form Steps - Optimized padding */
.sbm-step {
    padding: 2rem 5%;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
}

.sbm-step-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sbm-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.sbm-step h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.sbm-step h4 {
    margin: 0 0 1.25rem 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    letter-spacing: -0.015em;
}

/* Enhanced Field Groups - Optimized spacing */
.sbm-field-group {
    margin-bottom: 1.5rem;
}

.sbm-field-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.sbm-field-row,
.sbm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Form input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Enhanced date input styling for better accessibility */
input[type="date"] {
    cursor: pointer;
    position: relative;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23667eea" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    opacity: 1;
    z-index: 3;
    background: transparent;
}

input[type="date"]:hover {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

input[type="date"]:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Make the entire date group container clickable */
.sbm-date-group {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sbm-date-group:hover {
    transform: translateY(-1px);
}

.sbm-date-group label {
    pointer-events: none;
    user-select: none;
}

/* Mobile-specific improvements for date input */
@media (max-width: 768px) {
    input[type="date"] {
        min-height: 4.5rem;
        font-size: 1.1rem;
        padding: 1.5rem 4rem 1.5rem 1.5rem;
        touch-action: manipulation;
    }
    
    input[type="date"]::-webkit-calendar-picker-indicator {
        width: 2.5rem;
        height: 2.5rem;
        right: 1rem;
        opacity: 1;
        cursor: pointer;
        z-index: 5;
    }
    
    /* Enhanced mobile date container */
    .sbm-date-group {
        position: relative;
        min-height: 4.5rem;
        touch-action: manipulation;
    }
    
    /* Add a visible tap target for better mobile UX */
    .sbm-date-group::after {
        content: "📅";
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.8rem;
        pointer-events: none;
        z-index: 2;
        opacity: 0.8;
    }
    
    /* Make the entire container more touch-friendly */
    .sbm-date-group:active {
        transform: scale(0.98);
    }
    
    /* Ensure label doesn't interfere with touch */
    .sbm-date-group label {
        pointer-events: none;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    input[type="date"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 1;
        background: transparent;
    }
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Service and Staff Grid Layouts */
.sbm-services-grid,
.sbm-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sbm-service-option,
.sbm-staff-option {
    position: relative;
}

.sbm-service-card,
.sbm-staff-card {
    display: block;
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.sbm-service-card:hover,
.sbm-staff-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

input[type="radio"]:checked + .sbm-service-card,
input[type="radio"]:checked + .sbm-staff-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

/* Step descriptions - Optimized spacing */
.sbm-step-description {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Service List Layout */
.sbm-service-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.sbm-service-item {
    position: relative;
    margin-bottom: 10px;
}

.sbm-service-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sbm-service-item-label {
    display: block;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.sbm-service-item-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.sbm-service-item input[type="radio"]:checked + .sbm-service-item-label {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
}

.sbm-service-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 48px;
}

.sbm-service-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.sbm-service-duration {
    color: #6b7280;
    font-size: 14px;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.sbm-service-price {
    font-weight: 700;
    font-size: 16px;
    color: #667eea;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    line-height: 1;
}

.sbm-service-description {
    width: 100%;
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Dark mode support for service list */
    background: #374151;
    color: #d1d5db;
}

/* Enhanced Service Grid */
.sbm-service-grid, .sbm-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Enhanced Service Card */
.sbm-service-card, .service-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.sbm-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.sbm-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sbm-service-card:hover {
    border-color: #667eea;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.sbm-service-card:hover::before {
    transform: scaleX(1);
}

.sbm-service-card:hover::after {
    opacity: 1;
}

.sbm-service-card.selected {
    border-color: #667eea;
    background: #ffffff;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.2), 0 6px 12px rgba(0, 0, 0, 0.1);
}

.sbm-service-card.selected::before {
    transform: scaleX(1);
}

.sbm-service-card.selected::after {
    opacity: 1;
}

.sbm-service-name, .service-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
}

.sbm-service-description, .service-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.sbm-service-details, .service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    position: relative;
    z-index: 1;
    min-height: 48px;
    gap: 1rem;
}

.sbm-service-price, .service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    line-height: 1;
}

.sbm-service-duration, .service-duration {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
}

/* Service card icon placeholder */
.sbm-service-card .service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Legacy service card support */
.service-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.service-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-duration {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.service-card.selected .service-price {
    color: #ffffff;
}

.service-description {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.4;
}

/* Enhanced Staff Grid */
.sbm-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive staff grid */
@media (max-width: 768px) {
    .sbm-staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .sbm-staff-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Staff Card */
.sbm-staff-card, .staff-card {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive staff card */
@media (max-width: 768px) {
    .sbm-staff-card, .staff-card {
        padding: 1.5rem;
        min-height: 240px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .sbm-staff-card, .staff-card {
        padding: 1rem;
        min-height: 200px;
        border-radius: 8px;
    }
}

.sbm-staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.sbm-staff-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sbm-staff-card:hover {
    border-color: #667eea;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.sbm-staff-card:hover::before {
    transform: scaleX(1);
}

.sbm-staff-card:hover::after {
    opacity: 1;
}

.sbm-staff-card.selected {
    border-color: var(--border-hover);
    background: var(--card-bg);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 32px rgba(16, 185, 129, 0.2), 0 6px 12px rgba(0, 0, 0, 0.1);
}

.sbm-staff-card.selected::before {
    transform: scaleX(1);
}

.sbm-staff-card.selected::after {
    opacity: 1;
}

/* Enhanced Business Owner Styling */
.sbm-staff-card.business-owner {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.sbm-staff-card.business-owner::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.sbm-staff-card.business-owner::after {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(217, 119, 6, 0.03) 100%);
}

.sbm-staff-card.business-owner:hover {
    border-color: #f59e0b;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.sbm-staff-card.business-owner.selected {
    border-color: #f59e0b;
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.2), 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced Recommended Badge */
.sbm-recommended-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
}

.staff-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    position: relative;
}

.staff-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.staff-card.selected {
    border-color: var(--border-hover);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Business Owner Specific Styles */
.staff-card.sbm-business-owner {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.staff-card.sbm-business-owner:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.staff-card.sbm-business-owner.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.sbm-recommended {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sbm-business-owner .sbm-recommended {
    background: #28a745;
    color: white;
}

/* Step Description */
.sbm-step-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Skip Staff Button */
.sbm-skip-staff {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Staff Specialties */
.sbm-staff-specialties {
    margin-top: 8px;
    color: var(--text-muted);
    font-style: italic;
}

.staff-card.selected .sbm-staff-specialties {
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Staff Photo */
.sbm-staff-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    display: block;
}

/* Responsive staff photo */
@media (max-width: 768px) {
    .sbm-staff-photo {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem auto;
        border: 3px solid #e5e7eb;
    }
}

@media (max-width: 480px) {
    .sbm-staff-photo {
        width: 64px;
        height: 64px;
        margin: 0 auto 0.75rem auto;
        border: 2px solid #e5e7eb;
    }
}

.sbm-staff-photo::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #10b981, #059669, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sbm-staff-card:hover .sbm-staff-photo {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.sbm-staff-card:hover .sbm-staff-photo::before {
    opacity: 1;
}

.sbm-staff-card.selected .sbm-staff-photo {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.sbm-staff-card.selected .sbm-staff-photo::before {
    opacity: 1;
}

.sbm-staff-card.business-owner .sbm-staff-photo::before {
    background: linear-gradient(45deg, #f59e0b, #d97706, #f59e0b);
}

.sbm-staff-card.business-owner:hover .sbm-staff-photo {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

/* Enhanced Staff Name */
.sbm-staff-name, .staff-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
    text-align: center;
    word-wrap: break-word;
}

/* Enhanced Staff Position */
.sbm-staff-position, .staff-position {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-align: center;
    word-wrap: break-word;
}

/* Responsive staff text */
@media (max-width: 768px) {
    .sbm-staff-name, .staff-name {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .sbm-staff-position, .staff-position {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sbm-staff-name, .staff-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .sbm-staff-position, .staff-position {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
}

/* Enhanced Staff Specializations */
.sbm-staff-specializations, .staff-specialization {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Staff availability indicator */
.sbm-staff-availability {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.sbm-staff-availability.unavailable {
    background: #ef4444;
}

.sbm-staff-availability.busy {
    background: #f59e0b;
}

.staff-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.staff-card.selected .staff-photo {
    border-color: #ffffff;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.staff-position {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.staff-specialization {
    font-size: 12px;
    opacity: 0.7;
}

/* Enhanced Date & Time Selection */
.sbm-datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Enhanced Datepicker Container */
.sbm-datepicker-container {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sbm-datepicker-container:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.sbm-datepicker-container h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sbm-datepicker-container h4::before {
    content: '📅';
    font-size: 1.25rem;
}

.sbm-datepicker {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-family: inherit;
    font-weight: 500;
    color: #1f2937;
}

.sbm-datepicker:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sbm-datepicker:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Time Slots Container */
.sbm-time-slots-container {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 400px;
    display: flex;
    flex-direction: column;
}

/* Mobile/Tablet time slots behavior */
@media (max-width: 1024px) {
    .sbm-time-slots-container {
        border-radius: 12px;
        padding: 1.5rem;
        height: auto;
        min-height: 350px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .sbm-time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .sbm-mobile-date-change {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .sbm-selected-date-display {
        background: #f8f9fa;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .sbm-selected-date-text {
        color: #495057;
        font-weight: 500;
    }
    
    .sbm-selected-date-text strong {
        color: #667eea;
        font-weight: 700;
    }
    
    .sbm-change-date-btn {
        background: #f8f9fa;
        color: #495057;
        border: 2px solid #dee2e6;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .sbm-change-date-btn:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        transform: translateY(-1px);
    }
}

.sbm-time-slots-container:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.sbm-time-slots-container h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sbm-time-slots-container h4::before {
    content: '🕐';
    font-size: 1.25rem;
}

.sbm-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    height: 320px;
    overflow-y: auto;
    padding: 0.25rem;
}

.time-slot {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-slot:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.15);
}

.time-slot:hover::before {
    opacity: 1;
}

.time-slot.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.time-slot.unavailable {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #f3f4f6;
}

.time-slot.unavailable:hover {
    transform: none;
    box-shadow: none;
    border-color: #f3f4f6;
}

/* Light mode time slot styling */
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}

    background: #f9fafb;
    border-color: #667eea;
    color: #1f2937;
}

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

    background: #f9fafb;
    color: #9ca3af;
    border-color: #f3f4f6;
}

/* Default light mode (when no data-theme attribute) */
body:not([data-theme]) .time-slot {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}

body:not([data-theme]) .time-slot:hover {
    background: #f9fafb;
    border-color: #667eea;
    color: #1f2937;
}

body:not([data-theme]) .time-slot.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

body:not([data-theme]) .time-slot.unavailable {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #f3f4f6;
}

/* Selected Date Display */
.sbm-selected-date-display {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0c4a6e;
}

.sbm-selected-date-label {
    color: #0369a1;
    font-weight: 600;
}

.sbm-selected-date-value {
    color: #0c4a6e;
    font-weight: 700;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #0ea5e9;
}

/* Responsive selected date display */
@media (max-width: 768px) {
    .sbm-selected-date-display {
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .sbm-selected-date-value {
        padding: 3px 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sbm-selected-date-display {
        padding: 8px 10px;
        font-size: 12px;
        margin-bottom: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .sbm-selected-date-value {
        padding: 2px 4px;
        font-size: 12px;
        align-self: stretch;
        text-align: center;
    }
}

/* Custom Calendar Widget Styling */
.sbm-calendar-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Calendar responsive behavior */
.sbm-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
}

.sbm-calendar-day {
    aspect-ratio: 1;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

/* Mobile calendar border fix and responsive behavior */
@media (max-width: 768px) {
    .sbm-calendar-widget {
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        padding: 1rem;
        height: auto;
        min-height: 350px;
        max-width: 100%;
        margin: 0;
    }
    
    .sbm-calendar-days {
        gap: 2px;
    }
    
    .sbm-calendar-day {
        min-height: 40px;
        font-size: 13px;
    }
    
    /* Hide calendar after date selection on mobile/tablet */
    .sbm-calendar-widget.hidden-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .sbm-calendar-widget {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .sbm-calendar-days {
        gap: 1px;
    }
    
    .sbm-calendar-day {
        min-height: 35px;
        font-size: 12px;
        border-radius: 4px;
    }
}

@media (max-width: 1024px) {
    .sbm-calendar-widget.hidden-mobile {
        display: none;
    }
}

.sbm-calendar-widget:hover {
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Calendar Header */
.sbm-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
    width: 100%;
    box-sizing: border-box;
}

.sbm-calendar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937 !important;
    margin: 0;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbm-calendar-prev,
.sbm-calendar-next {
    background: transparent;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151 !important;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Responsive calendar header */
@media (max-width: 768px) {
    .sbm-calendar-header {
        margin-bottom: 0.75rem;
        padding: 0;
    }
    
    .sbm-calendar-title {
        font-size: 1rem;
    }
    
    .sbm-calendar-prev,
    .sbm-calendar-next {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sbm-calendar-header {
        margin-bottom: 0.5rem;
    }
    
    .sbm-calendar-title {
        font-size: 0.9rem;
    }
    
    .sbm-calendar-prev,
    .sbm-calendar-next {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.sbm-calendar-prev:hover,
.sbm-calendar-next:hover {
    background: #f8fafc;
    color: #1f2937;
}

/* Calendar Weekdays */
.sbm-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
    margin-bottom: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.sbm-weekday {
    text-align: center;
    font-size: 0.75rem;
    padding: 0.25rem 0;
    box-sizing: border-box;
    font-weight: 600;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Responsive calendar weekdays */
@media (max-width: 768px) {
    .sbm-calendar-weekdays {
        gap: 0.0625rem;
        margin-bottom: 0.375rem;
    }
    
    .sbm-weekday {
        font-size: 0.7rem;
        padding: 0.2rem 0;
    }
}

@media (max-width: 480px) {
    .sbm-calendar-weekdays {
        gap: 0.03125rem;
        margin-bottom: 0.25rem;
    }
    
    .sbm-weekday {
        font-size: 0.65rem;
        padding: 0.15rem 0;
    }

/* Calendar Days Grid */
.sbm-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
    margin-bottom: 1rem;
    flex: 1;
}

.sbm-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    background: transparent;
    color: #1f2937 !important;
    border: 1px solid transparent;
    min-height: 36px;
}

.sbm-calendar-day:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.sbm-calendar-day.other-month {
    color: #6b7280;
    opacity: 0.5;
}

.sbm-calendar-day.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.4;
}

.sbm-calendar-day.disabled:hover {
    background: #ffffff;
    border-color: transparent;
    transform: none;
}

.sbm-calendar-day.selected {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
}

.sbm-calendar-day.today {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
}

.sbm-calendar-day.today.selected {
    background: #667eea;
    border-color: #667eea;
}

/* Booking Status Indicators */
.sbm-calendar-day.sbm-booked {
    background: #dc2626;
    color: #ffffff;
}

.sbm-calendar-day.sbm-pending {
    background: #d97706;
    color: #ffffff;
}

.sbm-calendar-day.sbm-partial {
    background: #65a30d;
    color: #ffffff;
}

.sbm-calendar-day.sbm-booked:hover,
.sbm-calendar-day.sbm-pending:hover,
.sbm-calendar-day.sbm-partial:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Calendar Legend */
.sbm-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.sbm-legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280 !important;
    white-space: nowrap;
}

.sbm-legend-indicator {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
}

/* Mobile responsive legend */
@media (max-width: 768px) {
    .sbm-calendar-legend {
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
        justify-content: space-around;
    }
    
    .sbm-legend-item {
        font-size: 0.7rem;
        gap: 0.2rem;
    }
    
    .sbm-legend-indicator {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
    }
    
    .sbm-legend-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .sbm-calendar-legend {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }
    
    .sbm-legend-item {
        justify-content: center;
        width: 100%;
        max-width: 150px;
    }
}

.sbm-legend-indicator.sbm-booked {
    background: #dc2626;
}

.sbm-legend-indicator.sbm-pending {
    background: #d97706;
}

.sbm-legend-indicator.sbm-partial {
    background: #65a30d;
}

/* Light Mode Calendar Styling */
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    color: #1f2937;
}

    background: transparent;
    border: none;
    color: #6b7280;
}

    background: #f3f4f6;
    color: #1f2937;
}

    color: #6b7280;
}

    background: transparent;
    color: #1f2937;
}

    background: #f3f4f6;
    border-color: #e5e7eb;
}

    color: #9ca3af;
}

    color: #9ca3af;
}

    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
}

    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
}

    border-top-color: #e5e7eb;
}

    color: #6b7280;
}

/* Default Light Mode (when no data-theme attribute) */
body:not([data-theme]) .sbm-calendar-widget {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body:not([data-theme]) .sbm-calendar-title {
    color: #1f2937;
}

body:not([data-theme]) .sbm-calendar-prev,
body:not([data-theme]) .sbm-calendar-next {
    background: transparent;
    border: none;
    color: #6b7280;
}

body:not([data-theme]) .sbm-calendar-prev:hover,
body:not([data-theme]) .sbm-calendar-next:hover {
    background: #f3f4f6;
    color: #1f2937;
}

body:not([data-theme]) .sbm-weekday {
    color: #6b7280;
}

body:not([data-theme]) .sbm-calendar-day {
    background: transparent;
    color: #1f2937;
}

body:not([data-theme]) .sbm-calendar-day:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

body:not([data-theme]) .sbm-calendar-day.other-month {
    color: #9ca3af;
}

body:not([data-theme]) .sbm-calendar-day.disabled {
    color: #9ca3af;
}

body:not([data-theme]) .sbm-calendar-day.selected {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
}

body:not([data-theme]) .sbm-calendar-day.today {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
}

body:not([data-theme]) .sbm-calendar-legend {
    border-top-color: #e5e7eb;
}

body:not([data-theme]) .sbm-legend-item {
    color: #6b7280;
}

/* Dark Mode Calendar Styling */
    background: #ffffff !important;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    background: #ffffff !important;
    border-color: var(--border-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

    color: var(--text-primary);
}

    background: transparent;
    border: none;
    color: var(--text-muted);
}

    background: #f8fafc;
    color: var(--text-primary);
}

    color: var(--text-muted);
}

    background: transparent;
    color: var(--text-primary);
}

    background: #f3f4f6;
    border-color: #e5e7eb;
}

    color: var(--text-muted);
}

    color: var(--text-muted);
}

    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
    font-weight: 600;
}

    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
    font-weight: 600;
}

    background: #8b5cf6;
    border-color: #8b5cf6;
}

    border-top-color: #e5e7eb;
}

    color: var(--text-muted);
}

/* Enhanced Loading Message */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loading-message::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
textarea:disabled,
select:disabled {
    background: #f3f4f6;
    color: var(--text-muted);
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Input placeholder styling */
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Select styling */
select {
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%236b7280" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    appearance: none;
}

/* Booking Summary */
.sbm-booking-summary {
    background: #f8faff;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.sbm-booking-summary h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 500;
    color: #374151;
}

.summary-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.price-item .value {
    color: #059669;
}

.discount-item .value {
    color: #dc2626;
}

.total-item {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #667eea;
}

.total-item .value {
    color: var(--accent-primary);
}

/* Discount Section */
.sbm-discount-section {
    margin-bottom: 30px;
}

.sbm-discount-section h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.discount-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.discount-input-group input {
    flex: 1;
}

.discount-message {
    font-size: 14px;
    padding: 8px 0;
    min-height: 24px;
}

.discount-message.success {
    color: #059669;
}

.discount-message.error {
    color: #dc2626;
}

/* Wallet Section */
.sbm-wallet-section {
    margin-bottom: 30px;
}

.sbm-wallet-section h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.wallet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
}

.wallet-balance {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

/* Payment Methods */
.sbm-payment-methods {
    margin-bottom: 30px;
}

.sbm-payment-methods h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.payment-option:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.payment-option input[type="radio"] {
    margin: 4px 12px 0 0;
    width: auto;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: var(--accent-primary);
    font-weight: 600;
}

.payment-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.payment-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Final Summary */
.sbm-final-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.summary-section {
    background: #f8faff;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px;
}

.summary-section h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 8px;
}

.detail-item {
    margin-bottom: 12px;
    line-height: 1.5;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #374151;
    display: inline-block;
    min-width: 100px;
}

/* Terms Section */
.sbm-terms-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 8px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.terms-checkbox input[type="checkbox"] {
    margin: 4px 12px 0 0;
    width: auto;
}

.terms-checkbox a {
    color: #667eea;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Enhanced Buttons */
.sbm-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    line-height: 1;
    min-height: 48px;
}

.sbm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sbm-btn:hover::before {
    left: 100%;
}

.sbm-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #764ba2 100%);
    color: var(--button-text);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    border: 2px solid transparent;
}

.sbm-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sbm-btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.sbm-btn-secondary {
    background: var(--card-bg);
    color: #374151;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sbm-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.sbm-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sbm-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.sbm-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.sbm-btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid #667eea;
}

.sbm-btn-outline:hover {
    background: #667eea;
    color: var(--button-text);
    transform: translateY(-1px);
}

.sbm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.sbm-btn:disabled::before {
    display: none;
}

/* Button loading state */
.sbm-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.sbm-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Navigation Buttons */
.sbm-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.sbm-btn-next,
.sbm-btn-prev {
    min-width: 140px;
    font-weight: 700;
}

.sbm-btn-prev {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.sbm-btn-prev:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(107, 114, 128, 0.4);
}

/* Step Actions */
.sbm-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.sbm-step-actions .sbm-btn {
    min-width: 140px;
}

/* Success Step */
.sbm-success-step {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 2s infinite;
}

.sbm-success-step h3 {
    color: #059669;
    margin-bottom: 20px;
}

.success-message {
    margin-bottom: 30px;
    color: #6b7280;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Error Messages */
.sbm-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Loading States */
.sbm-loading {
    position: relative;
    overflow: hidden;
}

.sbm-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: loading 1.5s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced Responsive Design */

/* Large screens and ultra-wide monitors */
@media (min-width: 1400px) {
    .sbm-step {
        padding: 2.5rem 10%;
    }
    
    .sbm-form-header {
        padding: 1.75rem 10% 1.25rem;
    }
    
    .sbm-progress-steps {
        padding: 1.5rem 10%;
    }
    
    .sbm-service-grid,
    .sbm-staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .sbm-datetime-container {
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .sbm-booking-form-container {
        padding: 0;
        width: 100%;
    }
    
    .sbm-booking-form {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .sbm-form-header {
        padding: 1.25rem 4% 0.875rem;
    }
    
    .sbm-progress-steps {
        padding: 1rem 4%;
    }
    
    .sbm-service-grid,
    .sbm-staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .sbm-datetime-container {
        gap: 1.5rem;
    }
    
    .sbm-step {
        padding: 1.75rem 4%;
    }
}

@media (max-width: 768px) {
    .sbm-booking-form-container {
        padding: 0;
        min-height: 100vh;
        width: 100%;
    }
    
    .sbm-booking-form {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }
    
    .sbm-form-header {
        padding: 1.25rem 4% 0.75rem;
    }
    
    .sbm-form-header h3 {
        font-size: 1.625rem;
    }
    
    .sbm-form-description {
        font-size: 0.95rem;
    }
    
    .sbm-progress-steps {
        padding: 1rem 4%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step {
        flex: none;
        min-width: calc(20% - 8px);
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .step-title {
        font-size: 0.7rem;
    }
    
    .sbm-step {
        padding: 1.5rem 4%;
    }
    
    .sbm-step h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .sbm-step h4 {
        font-size: 1.125rem;
    }
    
    .sbm-step-description {
        font-size: 1rem;
    }
    
    .sbm-field-row,
    .sbm-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sbm-services-grid,
    .sbm-service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sbm-service-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .sbm-service-name {
        font-size: 1.25rem;
    }
    
    .sbm-staff-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sbm-staff-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .sbm-staff-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .sbm-datetime-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sbm-datepicker-container,
    .sbm-time-slots-container {
        padding: 1.5rem;
        height: 350px;
    }
    
    .sbm-calendar-widget {
        height: 300px;
    }
    
    .sbm-time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
        height: 250px;
    }
    
    .time-slot {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .discount-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .sbm-final-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sbm-step-navigation {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .sbm-step-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .sbm-step-actions .sbm-btn,
    .sbm-step-navigation .sbm-btn {
        width: 100%;
        min-width: auto;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .success-actions .sbm-btn {
        width: 100%;
    }
    
    .sbm-success-step {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .sbm-booking-form-container {
        padding: 0;
        width: 100%;
    }
    
    .sbm-booking-form {
        width: 100%;
        max-width: 100%;
    }
    
    .sbm-form-header {
        padding: 1rem 3% 0.5rem;
    }
    
    .sbm-form-header h3 {
        font-size: 1.375rem;
    }
    
    .sbm-form-description {
        font-size: 0.875rem;
    }
    
    .sbm-progress-steps {
        padding: 0.75rem 3%;
        gap: 0.375rem;
    }
    
    .step {
        min-width: calc(20% - 6px);
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .step-title {
        font-size: 0.625rem;
        line-height: 1.1;
    }
    
    .sbm-step {
        padding: 1.25rem 3%;
    }
    
    .sbm-step h3 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    .sbm-step h4 {
        font-size: 1rem;
    }
    
    .sbm-step-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .sbm-services-grid,
    .sbm-service-grid,
    .sbm-staff-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .sbm-service-card,
    .sbm-staff-card {
        padding: 1.25rem;
    }
    
    .sbm-service-name {
        font-size: 1.125rem;
    }
    
    .sbm-service-description {
        font-size: 0.9rem;
    }
    
    .sbm-service-price {
        font-size: 1.25rem;
    }
    
    .sbm-staff-photo {
        width: 64px;
        height: 64px;
        margin-bottom: 0.75rem;
    }
    
    .sbm-staff-name {
        font-size: 1.125rem;
    }
    
    .sbm-staff-position {
        font-size: 0.9rem;
    }
    
    .sbm-staff-specializations {
        font-size: 0.8rem;
    }
    
    .sbm-datepicker-container,
    .sbm-time-slots-container {
        padding: 1.25rem;
        height: 320px;
    }
    
    .sbm-calendar-widget {
        height: 280px;
    }
    
    .sbm-datepicker-container h4,
    .sbm-time-slots-container h4 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .sbm-time-slots {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 0.5rem;
        height: 220px;
    }
    
    .time-slot {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    .sbm-field-group {
        margin-bottom: 1.5rem;
    }
    
    .sbm-field-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .sbm-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .sbm-success-step {
        padding: 2rem 1.5rem;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
        margin-bottom: 1.5rem;
    }
}



/* Print Styles */
@media print {
    .sbm-progress-steps,
    .sbm-step-actions {
        display: none;
    }
    
    .sbm-booking-form {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .sbm-step {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .sbm-booking-form {
        border: 3px solid #000;
    }
    
    .sbm-btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .sbm-btn-secondary {
        background: #fff;
        border: 2px solid #000;
        color: #000;
    }
    
    .service-card.selected,
    .staff-card.selected {
        background: #000;
        border-color: #000;
    }
    
    .time-slot.selected {
        background: #000;
        border-color: #000;
    }
}

/* Enhanced Accessibility - Reduced Motion */
@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;
    }
    
    .sbm-step {
        animation: none;
    }
    
    .success-icon {
        animation: none;
    }
    
    .sbm-service-card:hover,
    .sbm-staff-card:hover,
    .sbm-btn:hover,
    .time-slot:hover {
        transform: none !important;
    }
    
    .step:hover,
    .step.active {
        transform: none !important;
    }
    
    .sbm-recommended-badge {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .sbm-booking-form {
        border: 3px solid #000000;
        box-shadow: none;
    }
    
    .sbm-btn-primary {
        background: #000000;
        border: 2px solid #000000;
        color: #ffffff;
    }
    
    .sbm-btn-secondary {
        background: #ffffff;
        border: 2px solid #000000;
        color: #000000;
    }
    
    .sbm-service-card.selected,
    .sbm-staff-card.selected {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .time-slot.selected {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        border: 2px solid #000000;
    }
    
    input:focus,
    textarea:focus,
    select:focus {
        border: 3px solid #000000;
        box-shadow: none;
    }
}

/* Print Styles */
@media print {
    .sbm-booking-form-container {
        background: white;
        padding: 0;
    }
    
    .sbm-booking-form {
        box-shadow: none;
        border: 1px solid #000000;
        margin: 0;
    }
    
    .sbm-progress-steps,
    .sbm-step-navigation,
    .sbm-step-actions {
        display: none;
    }
    
    .sbm-step {
        display: block !important;
        page-break-inside: avoid;
        padding: 1rem;
    }
    
    .sbm-form-header {
        background: white;
        color: black;
    }
    
    .sbm-service-card,
    .sbm-staff-card {
        border: 1px solid #000000;
        background: white;
        color: black;
        break-inside: avoid;
    }
    
    .sbm-btn {
        display: none;
    }
}

/* Fixed Navigation - Only sticky on mobile */
.sbm-fixed-navigation {
    background: #ffffff;
    border-top: 2px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

@media (max-width: 768px) {
    .sbm-fixed-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

@media (min-width: 769px) {
    .sbm-fixed-navigation {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.sbm-fixed-navigation .sbm-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
    gap: 15px;
}

.sbm-fixed-navigation .sbm-progress-indicator {
    margin-bottom: 0;
}

.sbm-fixed-navigation .sbm-btn {
    min-width: 120px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sbm-fixed-navigation .sbm-prev-step {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Light button style */
.sbm-btn-light {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.sbm-btn-light:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

    background: #6c757d;
    color: #f8f9fa;
    border-color: #495057;
}

    background: #5a6268;
    color: #f8f9fa;
    border-color: #6c757d;
}

.sbm-fixed-navigation .sbm-progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.sbm-fixed-navigation .sbm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 60px;
}

/* Mobile responsive progress steps */
@media (max-width: 768px) {
    .sbm-fixed-navigation .sbm-progress-steps {
        gap: 0.5rem;
        justify-content: space-between;
        padding: 0 0.5rem;
    }
    
    .sbm-fixed-navigation .sbm-progress-step {
        min-width: 50px;
        gap: 0.25rem;
    }
    
    .sbm-fixed-navigation .sbm-step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .sbm-fixed-navigation .sbm-step-label {
        font-size: 10px;
        text-align: center;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .sbm-fixed-navigation .sbm-progress-steps {
        gap: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .sbm-fixed-navigation .sbm-progress-step {
        min-width: 45px;
    }
    
    .sbm-fixed-navigation .sbm-step-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .sbm-fixed-navigation .sbm-step-label {
        font-size: 9px;
    }
}

.sbm-fixed-navigation .sbm-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sbm-fixed-navigation .sbm-progress-step.active .sbm-step-circle {
    background: #667eea;
    color: white;
}

.sbm-fixed-navigation .sbm-step-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.sbm-fixed-navigation .sbm-progress-step.active .sbm-step-label {
    color: #1f2937;
    font-weight: 600;
}

.sbm-fixed-navigation .sbm-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    max-width: 800px;
    position: relative;
}

.sbm-fixed-navigation .sbm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Add bottom padding to form content to account for sticky navigation - only on mobile */
@media (max-width: 768px) {
    .sbm-booking-form {
        padding-bottom: 200px;
    }
}

/* Remove bottom padding on desktop */
@media (min-width: 769px) {
    .sbm-booking-form {
        padding-bottom: 0;
    }
}

/* Dark mode support for sticky navigation */
    background: #1f2937;
    border-top-color: #374151;
}

    background: #374151;
    color: #9ca3af;
}

    background: #667eea;
    color: white;
}

    color: #9ca3af;
}

    color: #f9fafb;
}

    background: #374151;
}
