﻿
.pageBooking-section {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.appointment-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: -20px;
}

    .appointment-section h1 {
        font-size: 42px;
        color: var(--primary-text-color);
    }

/* Seção personalizada para informações e reserva */
.custom-section {
    display: flex;
    gap: 20px;
    padding: 40px;
    box-sizing: border-box;
}



/* Bloco retangular para a mensagem de reserva */
.rectangle-40 {
    width: 40%;
    height: 100%;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 0 30px 12px 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content:center;
}

.rectangle-40-booking {
    width: 40%;
    height: 100%;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}


/* Bloco retangular para informações do kartódromo */
.rectangle-60 {
    width: 60%;
}

/* Informações do kartódromo */
.kartodromo-infos {
    display: flex;
    align-items: center;
    max-height: 150px;
    background-color: #F4F4F4;
    border-radius: 5px;
    width: 100%;
    padding: 10px;
}


.kartodromo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto; 
}

.kartodromo-company-infos {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.kartodromo-company-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.kartodromo-company-logo {
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    background-color: white;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    display: flex;
    overflow: hidden;
    padding: 10px;
}

.logo-kartodromo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    display: block;
}

.kartodromo-phone {
    font-size: 22px;
    margin: 5px;
}

.kartodromo-SocialName {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.0;
    color: var(--text-color);
}

.kartodromo-CityState {
    font-size: 22px;
    margin: 0;
    line-height: 1.0;
}

.kartodromo-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-left: auto;
    margin: 5px;
    align-items:center;
    justify-content: center;
}

.social-logo {
    width: 25px;
}

/* Detalhes do agendamento (horário, bateria, vagas, preço) */
.booking-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 11px;
    margin-bottom: 10px;
    max-width: 100%;
}

.details-section {
    display: flex;
    margin-left: 40px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

    .details-section span {
        font-size: 25px;
        white-space: nowrap;
        margin-left: -20px;
    }

.details-bold {
    font-weight: bold;
    color: var(--text-color);
}

.sizeButton {
    margin-left: 40px;
}

.sizeButton2 {
    display: none;
}


.no-bookings {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    font-size: 22px;
    font-weight: bold;
    height: 35vh;
}

@media (min-width: 1374px) and (max-width: 1600px) {

    .details-section {
        width: 60%;
    }
}


@media (min-width: 1150px) and (max-width: 1374px) {
    .no-bookings {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .booking-details {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

        .booking-details.space-left {
            padding-left: 50px;
        }

        .booking-details span {
            font-size: 18px;
        }


    .details-section {
        display: grid;
        grid-template-columns: 1fr 1fr 3fr;
        gap: 10px;
        width: 100%;
        margin-left: 0;
    }

    .span2 {
        grid-column: 2 / -1;
    }

    .span3, .span4 {
        margin-top: 5px;
    }

    .sizeButton2 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .sizeButton {
        display: none;
    }
}


@media (min-width: 768px) and (max-width: 1150px) {
    .appointment-section h1 {
        font-size: 35px;
    }

    .custom-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .rectangle-40, .rectangle-60, .rectangle-40-booking {
        width: 100%;
    }

    .rectangle-40 {
        padding: 0 30px 5px 30px;
    }


        .rectangle-40 h3 {
            font-size: 20px;
        }

    .kartodromo-SocialName {
        font-size: 20px;
    }

    .kartodromo-phone, .kartodromo-CityState {
        font-size: 16px;
    }

    .reserve-button {
        padding: 10px 40px;
        font-size: 18px;
    }

    .no-bookings {
        font-size: 18px;
        margin-bottom: 50px;
    }
    .details-section {
        gap: 50px;
        width: 50%; 
    }
}

    @media (max-width: 768px) {
        .appointment-section h1 {
            font-size: 31px;
        }

        .custom-section {
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }

        .rectangle-40-booking {
            margin-top: -100px
        }

        .rectangle-40, .rectangle-60, .rectangle-40-booking {
            width: 100%;
        }

        .rectangle-40 {
            padding: 0 30px 5px 30px;
        }

            .rectangle-40 h3 {
                font-size: 20px;
            }  
            

        .kartodromo-SocialName {
            font-size: 18px;
        }

        .kartodromo-phone, .kartodromo-CityState {
            font-size: 16px;
        }


        .reserve-button {
            padding: 10px 40px;
            font-size: 18px;
        }

        .no-bookings {
            font-size: 18px;
            margin-bottom: 50px;
        }

        .booking-details {
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 10px;
        }


            .booking-details.space-left {
                padding-left: 35px;
            }

            .booking-details span {
                font-size: 18px;
            }

        .details-section {
            display: grid;
            grid-template-columns: 1.5fr 1fr 3fr;
            gap: 10px;
            width: 100%;
            margin-left: 0;
        }

        .span2 {
            grid-column: 2 / -1;
        }

        .span3, .span4 {
            margin-top: 5px;
        }

        .sizeButton2 {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .sizeButton {
            display: none;
        }

        .kartodromo-company-logo {
            min-width: 80px;
            min-height: 80px;
            max-width: 80px;
            max-height: 80px;
        }
    }
