/* ====================================
            BOOKING HERO
==================================== */

.booking-hero {
    min-height: 55vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--white-color);

    position: relative;

    background:
        linear-gradient(rgba(20, 20, 20, 0.35),
            rgba(20, 20, 20, 0.45)),
        url("../images/booking/booking-hero.jpg");

    background-size: cover;
    background-position: center;
}


.booking-hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.30));
}


.booking-hero .container {
    position: relative;
    z-index: 2;
}


.booking-hero span {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--primary-color);

    letter-spacing: 4px;

    text-transform: uppercase;

    font-weight: 600;
}


.booking-hero h1 {
    color: var(--white-color);

    margin-bottom: 25px;
}


.booking-hero p {
    max-width: 650px;

    margin: auto;

    font-size: 1.05rem;

    color: rgba(255, 255, 255, 0.9);
}



/* ====================================
            BOOKING SECTION
==================================== */

.booking-section {
    padding: 120px 0;

    background: var(--secondary-color);
}



/* ====================================
            PROGRESS BAR
==================================== */

.booking-progress {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 80px;

    flex-wrap: nowrap;
}


.progress-step {

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 90px;

    position: relative;
}


.progress-step span {

    width: 55px;

    height: 55px;

    border-radius: 50%;

    background: var(--white-color);

    color: var(--text-color);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 600;

    box-shadow: var(--shadow-soft);

    transition: var(--transition);
}


.progress-step p {

    margin-top: 15px;

    font-size: .9rem;

    font-weight: 500;

    color: var(--text-color);
}


/* Active Step */

.progress-step.active span {

    background: var(--accent-color);

    color: var(--white-color);

}


.progress-step.active p {

    color: var(--heading-color);

    font-weight: 600;

}


/* Line Between Steps */

.progress-line {

    width: 70px;

    height: 2px;

    background: rgba(0, 0, 0, 0.15);

    margin: 0 15px;

}


/* Completed Step */

.progress-step.completed span {

    background: var(--accent-color);

    color: var(--white-color);

}

.progress-step.completed+.progress-line {

    background: var(--accent-color);

}



/* ====================================
            BOOKING STEPS
==================================== */


.booking-step {

    display: none;

}


.booking-step.active {

    display: block;

    animation: fadeIn .5s ease;

}


@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ====================================
        SERVICE SELECTION
==================================== */

.booking-service-card {
    height: 100%;

    background: var(--white-color);

    border-radius: var(--radius-large);

    overflow: hidden;

    cursor: pointer;

    box-shadow: var(--shadow-soft);

    transition: var(--transition);

    border: 2px solid transparent;
}


.booking-service-card:hover {
    transform: translateY(-10px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}


.booking-service-card.selected {
    border-color: var(--accent-color);

    transform: translateY(-8px);
}


.booking-service-card img {
    width: 100%;

    height: 260px;

    object-fit: cover;

    transition: transform .8s ease;
}


.booking-service-card:hover img {
    transform: scale(1.08);
}


.booking-service-card .service-content {
    padding: 30px;
}


.booking-service-card h3 {
    margin-bottom: 15px;
}


.booking-service-card p {
    margin-bottom: 25px;

    min-height: 70px;
}


.booking-service-card .service-meta {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 15px;

    border-top: 1px solid rgba(0, 0, 0, 0.08);

    font-weight: 600;

    color: var(--accent-color);
}



/* ====================================
            DATE SELECTION
==================================== */

.date-selection {
    max-width: 550px;

    margin: auto;

    background: var(--white-color);

    padding: 45px;

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-soft);

    text-align: center;
}


.date-selection label {
    display: block;

    margin-bottom: 20px;

    font-size: 1.1rem;

    font-weight: 500;

    color: var(--heading-color);
}


.date-selection input {
    height: 60px;

    font-size: 1rem;

    text-align: center;

    border-radius: var(--radius-medium);

    border: 1px solid rgba(0, 0, 0, .15);
}


.date-selection input:focus {
    border-color: var(--accent-color);

    box-shadow: 0 0 0 0.25rem rgba(201, 162, 126, 0.2);
}



/* ====================================
            TIME SLOTS
==================================== */

.time-slots {
    max-width: 800px;

    margin: auto;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 20px;
}


.time-slot {
    min-width: 120px;

    height: 55px;

    border-radius: 50px;

    border: 1px solid rgba(0, 0, 0, .15);

    background: var(--white-color);

    color: var(--heading-color);

    font-weight: 600;

    transition: var(--transition);

    box-shadow: var(--shadow-soft);
}


.time-slot:hover {
    background: var(--accent-color);

    color: var(--white-color);

    transform: translateY(-5px);
}


.time-slot.selected {
    background: var(--accent-color);

    color: var(--white-color);

    border-color: var(--accent-color);
}



/* ====================================
            ACTION BUTTONS
==================================== */

.booking-actions {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 50px;
}


.booking-actions .btn {
    min-width: 170px;

    padding: 15px 35px;
}


.prev-step {
    background: transparent;

    border: 1px solid var(--accent-color);

    color: var(--accent-color);
}


.prev-step:hover {
    background: var(--accent-color);

    color: var(--white-color);
}


.next-step {
    background: var(--accent-color);

    color: var(--white-color);
}


.next-step:hover {
    opacity: .9;

    transform: translateY(-3px);
}

/* ====================================
        CUSTOMER INFORMATION
==================================== */

.customer-form {
    max-width: 900px;

    margin: auto;

    background: var(--white-color);

    padding: 50px;

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-soft);
}


.customer-form label {
    display: block;

    margin-bottom: 12px;

    font-weight: 500;

    color: var(--heading-color);
}


.customer-form .form-control {
    height: 55px;

    border-radius: var(--radius-medium);

    border: 1px solid rgba(0, 0, 0, .15);

    padding: 0 18px;

    transition: var(--transition);
}


.customer-form textarea.form-control {
    height: auto;

    padding: 18px;

    resize: vertical;

    min-height: 140px;
}


.customer-form .form-control:focus {
    border-color: var(--accent-color);

    box-shadow:
        0 0 0 0.25rem rgba(201, 162, 126, .2);
}



/* ====================================
        BOOKING SUMMARY
==================================== */

.booking-summary {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 35px;
}


.summary-card,
.confirmation-info {

    background: var(--white-color);

    padding: 45px;

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-soft);
}


.summary-card h3,
.confirmation-info h3 {

    margin-bottom: 30px;
}


.summary-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px 0;

    border-bottom:
        1px solid rgba(0, 0, 0, .08);
}


.summary-item span {

    color: var(--text-color);
}


.summary-item strong {

    color: var(--heading-color);

    font-weight: 600;
}


/* Price Highlight */

.summary-item.total {

    border-bottom: none;

    margin-top: 15px;

    padding-top: 25px;

    border-top:
        2px solid var(--accent-color);
}


.summary-item.total strong {

    color: var(--accent-color);

    font-size: 1.25rem;
}



/* Confirmation Text */

.confirmation-info p {

    line-height: 1.8;

    margin-bottom: 35px;
}



/* Confirm Button */

.confirm-btn {

    width: 100%;

    height: 58px;

    font-size: 1rem;

    background: var(--accent-color);

    color: var(--white-color);

    border: none;

    border-radius: var(--radius-medium);

    transition: var(--transition);
}


.confirm-btn:hover {

    transform: translateY(-3px);

    opacity: .92;
}



/* ====================================
            FUTURE STATES
==================================== */


/*
    For Django Integration

    .booking-success
    .booking-error
    .booking-loading

    These states will be added later
    when backend API is connected.
*/


/* ====================================
            LUXURY DETAILS
==================================== */


/* Smooth button interactions */

.booking-actions .btn,
.confirm-btn,
.booking-service-card,
.time-slot {

    transition:
        all .35s ease;
}


/* Premium card hover */

.customer-form:hover,
.summary-card:hover,
.confirmation-info:hover {

    box-shadow:
        0 25px 50px rgba(0, 0, 0, .08);
}


/* Remove browser autofill yellow */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {

    -webkit-text-fill-color:
        var(--heading-color);

    transition:
        background-color 9999s;
}


/* ====================================
    SPECIALIST STEP
==================================== */

.specialists-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;

    margin-top: 30px;

}


.specialist-card {

    background: #fff;

    border: 2px solid transparent;

    border-radius: 24px;

    padding: 25px;

    text-align: center;

    cursor: pointer;

    transition: all .3s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,.05);

}


.specialist-card:hover {

    transform: translateY(-8px);

    border-color: rgba(198, 162, 111, .4);

}


.specialist-card.active {

    border-color: var(--accent-color);

    box-shadow: 0 15px 40px rgba(0,0,0,.08);

}


.specialist-card img {

    width: 90px;

    height: 90px;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 18px;

}


.specialist-card h4 {

    margin-bottom: 8px;

    font-size: 1.1rem;

}


.specialist-card p {

    margin-bottom: 12px;

    color: #777;

    font-size: .95rem;

}


.specialist-rating {

    display: inline-block;

    padding: 6px 14px;

    border-radius: 30px;

    background: #f8f8f8;

    font-size: .9rem;

    font-weight: 600;

}


.any-specialist {

    width: 90px;

    height: 90px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #d4b483,
        #b99167
    );

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 2rem;

}