/* Category Section Styles */
.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-title {
    display: flex;
    align-items: center;
    flex: 1;
}

.category-title h3 {
    margin: 0;
    font-weight: 600;
}

.category-title i {
    margin-left: 1rem;
    opacity: 0.8;
}

.category-count {
    margin-right: 1rem;
}

.category-count .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.category-services {
    padding: 0 1rem;
}

/* Enhanced Service Cards */
.service-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-duration {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-card .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    transform: scale(1.05);
}

/* Selected Service Display */
.selected-service-display {
    margin-bottom: 2rem;
}

.selected-service-display .alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Booking Form Container */
.booking-form-container {
    margin-top: 2rem;
}

.booking-form-container .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.booking-form-container .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

/* Time Slots */
.time-slots-container {
    min-height: 60px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 0.75rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: #fff5f8;
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-slot.occupied {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Booking Instructions */
.booking-instructions {
    margin-bottom: 2rem;
}

.step-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.step-number {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    font-weight: bold;
}

.step-text {
    font-weight: 500;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-title {
        flex-direction: column;
        text-align: center;
    }
    
    .category-title i {
        margin: 0 0 0.5rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .step-card {
        height: 60px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .category-services {
        padding: 0;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading State */
.loading-slots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-slots .spinner-border {
    color: var(--primary-color);
}

/* Alert Enhancements */
.alert-enhanced {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

/* Category-specific color overrides */
.category-section[data-category-color] .service-card:hover {
    border-color: attr(data-category-color);
}

.category-section[data-category-color] .service-card.selected {
    border-color: attr(data-category-color);
}