/**
 * Customer Booking Wizard Styles
 * Extends theme.css with booking-specific styles
 */

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

.booking-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.booking-header h1 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--color-secondary);
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.step-item.completed .step-number {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.step-label {
    margin-left: 10px;
    color: var(--color-primary);
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .step-label {
        display: block;
    }
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--color-card);
    margin: 0 15px;
}

.step-item.completed + .step-connector {
    background: var(--color-secondary);
}

/* Cards */
.booking-card {
    background: var(--color-card);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.booking-card h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Service Cards */
.service-card {
    background: white;
    border: 2px solid var(--color-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-card.selected {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.service-details {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.service-price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Stylist Cards */
.stylist-card {
    background: white;
    border: 2px solid var(--color-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.stylist-card:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stylist-card.selected {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.stylist-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 5px;
}

/* Stylist Card Select (New Card Layout) */
.stylist-card-select {
    border: 2px solid #e9ecef !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    overflow: hidden;
}

.stylist-card-select:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 10px 25px rgba(57, 62, 70, 0.15) !important;
    transform: translateY(-5px);
}

.stylist-card-select.selected {
    border-color: var(--color-primary) !important;
    border-width: 3px !important;
    background: linear-gradient(to bottom, rgba(57, 62, 70, 0.03), rgba(255, 255, 255, 0.98)) !important;
    box-shadow: 0 10px 30px rgba(57, 62, 70, 0.25) !important;
    transform: translateY(-2px);
}

/* Round Profile Image - Smaller Size */
.stylist-photo-round {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    transition: all 0.3s ease;
}

.stylist-card-select:hover .stylist-photo-round {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(57, 62, 70, 0.2);
    border-color: #e9ecef;
}

.stylist-card-select.selected .stylist-photo-round {
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(57, 62, 70, 0.3);
    transform: scale(1.05);
}

.stylist-photo-placeholder-round {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stylist-card-select:hover .stylist-photo-placeholder-round {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(57, 62, 70, 0.2);
    border-color: #e9ecef;
}

.stylist-card-select.selected .stylist-photo-placeholder-round {
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(57, 62, 70, 0.3);
    transform: scale(1.05);
}

/* Cart Summary */
.cart-summary {
    background: white;
    border: 2px solid var(--color-card);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.cart-summary h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-card);
}

.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-card);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.cart-item-details {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--color-card);
}

.cart-total-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.cart-total-value {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.3rem;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.time-slot {
    background: white;
    border: 2px solid var(--color-card);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--color-primary);
}

.time-slot:hover {
    border-color: var(--color-secondary);
    background: var(--color-bg);
}

.time-slot.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.time-slot.unavailable {
    background: var(--color-card);
    color: var(--color-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Tips/Help */
.booking-tip {
    background: var(--color-card);
    border-left: 4px solid var(--color-secondary);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.booking-tip strong {
    color: var(--color-primary);
}

.booking-tip p {
    color: var(--color-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Navigation */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--color-card);
}

/* Buttons */
.btn-booking {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-booking:hover {
    background: #2a2e35;
    color: white;
}

.btn-booking:disabled {
    background: var(--color-card);
    color: var(--color-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-booking-secondary {
    background: var(--color-card);
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-booking-secondary:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.btn-booking-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-booking-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-booking-outline.selected {
    background: var(--color-primary);
    color: white;
}

.btn-booking-danger {
    background: var(--color-danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-booking-danger:hover {
    background: #c82333;
    color: white;
}

/* Alerts */
.alert-booking-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-booking-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-booking-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Selected Services Badge */
#selectedServicesBadge {
    font-size: 0.9rem;
    padding: 6px 12px;
}

/* Cart Item Responsive */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--color-card);
    border-radius: 6px;
    background: white;
    transition: all 0.2s;
}

.cart-item:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-item .btn-outline-danger {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.875rem;
}

/* Summary in Header */
#cartSummary {
    font-size: 0.9rem;
}

#cartSummary strong {
    font-weight: 600;
}

/* Responsive Layout */
@media (max-width: 991px) {
    .cart-summary {
        position: relative;
        top: 0;
        margin-top: 20px;
    }
    
    #cartSummary {
        text-align: left !important;
        margin-top: 10px;
    }
}

/* Sticky Bottom Bar (Mobile) */
@media (max-width: 768px) {
    .booking-nav-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        gap: 10px;
    }
    
    .booking-nav-mobile .btn {
        flex: 1;
    }
    
    body {
        padding-bottom: 80px;
    }
    
    /* Stylist Cards Mobile */
    .stylist-photo-round,
    .stylist-photo-placeholder-round {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    /* Mobile: Stack summary */
    .booking-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    #cartSummary {
        width: 100%;
        text-align: left !important;
    }
    
    /* Mobile: Smaller cart items */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cart-item .btn-outline-danger {
        align-self: flex-end;
    }
    
    /* Mobile: Service cards */
    .service-card .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-card .btn {
        width: 100%;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-card);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Timeline Preview */
.timeline-preview {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid var(--color-primary);
}

.timeline-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-card);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    font-weight: 600;
    color: var(--color-primary);
}

.timeline-service {
    color: var(--color-secondary);
    font-size: 0.9rem;
}
