/* Booking Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    direction: rtl;
}

.progress {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.progress-bar {
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.step {
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    padding-top: 1.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.step::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    right: 50%;
    transform: translateX(50%);
    width: 1rem;
    height: 1rem;
    background-color: #e9ecef;
    border: 2px solid #6c757d;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.step.active {
    opacity: 1;
    color: #0d6efd;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.step-text {
    font-weight: 500;
}

/* Shop Selection */
.shop-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.shop-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shop-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px #0d6efd;
}

.shop-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.shop-details {
    padding: 1rem;
    text-align: right;
}

.shop-rating {
    color: #ffc107;
}

/* Service Selection */
.service-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    text-align: right;
}

.service-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.service-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px #0d6efd;
}

.service-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--bs-primary);
    margin-top: 0.5rem;
}

.service-duration {
    color: var(--bs-secondary);
    font-size: 0.875rem;
}

/* Barber Selection */
.barber-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.barber-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.barber-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px #0d6efd;
}

.barber-image {
    width: 100%;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.barber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-image i {
    font-size: 6rem;
    color: #dee2e6;
}

.barber-details {
    padding: 1rem;
}

.barber-rating {
    color: #ffc107;
    margin: 0.5rem 0;
}

.barber-speciality {
    color: var(--bs-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Time Selection */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    direction: rtl;
}

.time-slot {
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

.time-slot.selected {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.time-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navigation Buttons */
.booking-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Confirmation */
.booking-summary {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: right;
}

.confirmation-success {
    text-align: center;
    padding: 2rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Form Controls */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    }

    .step {
        font-size: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .shop-image,
    .barber-image {
        height: 10rem;
    }

    .booking-summary {
        padding: 1rem;
    }

    .service-card {
        padding: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .step {
        font-size: 0.7rem;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
    }

    .booking-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .booking-navigation button {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-steps > div {
    animation: fadeIn 0.3s ease-out;
}