﻿.booking-wrapper {
    max-width:900px;
    margin:auto;
    font-family:system-ui;
    padding:1em;
}


.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(75px,1fr));
    gap: 12px;
    padding: 16px 0;
}


.day {

min-width:75px;
height:100px;

border-radius:16px;
border:1px solid #ddd;

background:white;

cursor:pointer;

transition:.2s;

}


.day span {
display:block;
font-size:.8rem;
}


.day strong {
font-size:1.5rem;
}


.day.selected {

background:var(--primary);
color:white;

transform:translateY(-4px);

}

.day.selected span{
    color:white;
}



.times {

display:grid;
grid-template-columns:
repeat(auto-fit,minmax(250px,1fr));

gap:20px;

}


.time-card {
    border-radius: 18px;
    padding: 18px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    text-align: left;
    transition: .2s;
    min-height: 110px;
    padding: 20px;
}

    .time-card.selected {
        border: 2px solid var(--primary);
        box-shadow: 0 6px 18px rgba(0,0,0,.15);
    }

.time-card:hover:not(:disabled){

border-color:var(--primary);
box-shadow:0 8px 20px #0002;

}



.time-card:disabled{

opacity:.4;
cursor:not-allowed;

}


.time {

font-size:1.25rem;
font-weight:700;

}


.spots {

color:#666;
margin-top:6px;

}


.session {

background:#f6f6f6;
padding:10px;

border-radius:12px;

margin-top:12px;

}


.session h4 {
margin:0;
}

.booking-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,.12);
    border:1px solid black;
}


.summary-info {
    display: flex;
    gap: 25px;
}


    .summary-info small {
        display: block;
        color: #777;
    }


.continue-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

@media(max-width:600px) {

    .calendar {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }


    .day {
        flex: 0 0 72px;
        scroll-snap-align: start;
    }

    .times {
        display: flex;
        flex-direction: column;
    }

    .time-card {
        width: 100%;
        min-height: 130px;
    }

    .sessions {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        position: sticky;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
    }


    .summary-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }


    .continue-button {
        width: 100%;
    }
}