body {
    font-family: "PoppinsRegular";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f8f8;
    min-width: 375px;
    font-size: larger;
}



/* Estilo da topbar */
#topbar {
    display: none;
    /* Oculta inicialmente */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #031241;
    color: #ffffff;
    /* Ajuste conforme seu design */
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    /* Garante que fique sobre os demais elementos */
    text-align: center;
    font-size: 1.3em;
}

/* Estilo do botão vermelho */
#futureButton {
    background-color: #ec8a16;
    color: #fff;
    padding: 8px 24px;
    font-size: 0.8em;
    cursor: pointer;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    font-family: "PoppinsRegular";
    font-weight: bold;
}

#countdown {
    background-color: #ec1616;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.8em;
    border-radius: 15px;
    border: none;
}
.container-flex{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}
.container_total {
    display: flex;
    flex-direction: column;
    max-width: 1920px;
    margin: 0 auto;
    background-color: #ffffff;
}

.container_pagina_principal {
    background-image: url("../assets/background_primeira_tela.png");
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.container_navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;

    & .navbar_logo {
        color: white;
        text-decoration: none;
        width: 30%;

        & img {
            width: 100%;
        }
    }

    & .navbar_info {
        display: flex;
        flex-direction: row;
        gap: 25px;
        width: 100%;
        justify-content: flex-end;
        padding: 0;

        & li {
            list-style: none;
        }

        & a {
            color: white;
            text-decoration: none;
        }

        & a:hover {
            color: #ffc300;
        }
    }
}

.container_info_pagina_principal {
    padding: 20px;
    display: flex;
    flex-direction: row;
}

.container_texto {
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 40%;
    word-wrap: break-word;
    overflow-wrap: break-word;

    & p {
        font-size: 1.6em;
        margin: 0;
    }

    & h2 {
        font-size: 4.2em;
        margin-top: 35px;
        margin-bottom: 35px;
        text-shadow: 2px 2px 4px black;
    }

    & .destaque_final {
        text-align: center;
    }

    & .destaque {
        font-size: larger;
        color: #ffe86f;
        font-weight: bold;
    }

    & .ia-dev {
        background-color: #ffffff3a;
        border-radius: 20px;
        padding: 20px;
        font-size: 1.1em;
        color: #fff;
        margin-top: 30px;
        max-width: 670px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.329);
    }

    & .container_icones {
        display: flex;
        justify-content: space-around;
        text-align: center;
        align-items: center;
        margin-top: 20px;
        margin-bottom: 20px;

        & img {
            width: 70px;
        }

        & .container_icone {
            display: flex;
            flex-direction: column;
            width: 60px;
            text-align: center;
            align-items: center;

            & p {
                margin: 0;
                font-size: 12px;
                text-align: center;
            }
        }
    }
}

.container_video {
    max-width: 400px;
    margin-right: 25px;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    & .container_video_info {
        display: flex;
        position: absolute;
        text-align: center;
        align-items: end;
        height: 580px;


        color: white;
        border-radius: 25px;
        margin-bottom: 75px;
        z-index: 1001;

        & h2 {
            margin: 0;
            font-size: 3rem;
            font-weight: bold;
        }

        & p {
            margin: 0;
            font-size: 1rem;
        }

        & img {
            width: 300px;
        }
    }

    & .overlay-video {
        width: 100%;
    }
}

.container_formulario {
    width: 30%;
    height: 670px;
    max-height: 830px;
    background-color: #031241;
    padding: 20px;
    border-radius: 25px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;

    & .modalidade {
        background-color: red;
        border-radius: 15px;
        color: white;
        width: 98%;
        padding: 5px;
        font-weight: normal;
        text-align: center;
        margin-bottom: 25px;
        font-size: 0.8em;
    }

    & .container_formulario_info_inicial {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 90%;
    }

    & .formulario {
        width: 90%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    & input {
        font-family: "PoppinsRegular";
        padding: 20px;
        border: none;
        font-size: 0.8em;
        border-radius: 10px;
        outline: none;
    }

    & small {
        font-size: 12px;
    }

    & .botao_entrar_turma {
        background-color: #ec8a16;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 15px;
        font-size: 1em;
        font-family: "PoppinsRegular";
        font-weight: 600;
        cursor: pointer;
    }

    & .banner {
        & img {
            width: 100%;
            margin-top: 12px;
        }
    }
}

@media (max-width: 1570px) {
    .container_texto {
        & h2 {
            font-size: 3.5em;
        }
    }
}

@media (max-width: 1450px) {
    .container_formulario{
        max-height: 850px;
    }
}
@media (max-width: 1100px) {
    .container_info_pagina_principal {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .container_texto,
    .container_video,
    .container_formulario {
        width: 80%;
    }

    .container_navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;

        & .navbar_info {
            justify-content: center;
        }
    }

    .container_video {
        top: 0;
    }
}

/* Ajustes para celulares */
@media (max-width: 900px) {
    .container_info_pagina_principal {
        flex-direction: column;
        align-items: center;
    }

    .container_texto,
    .container_video,
    .container_formulario {
        width: 90%;
    }


    .container_navbar {
        & .navbar_info {
            justify-content: center;
        }
    }

    .container_video {
        margin: auto;
    }
    .container-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Ajustes para telas médias */

@media (max-width: 800px) {
    .container-flex {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    .texto_topbar{
        display: none;
    }

}

/* Ajustes para telas pequenas */
@media (max-width: 600px) {
    .container_info_pagina_principal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .container_texto,
    .container_video,
    .container_formulario {
        width: 90%;

        & .banner {
            & img {
                width: 90%;
            }
        }
    }

    .container_navbar {
        & .navbar_info {
            display: flex;
        }

        & a {
            margin: 0;
            padding: 0;
            font-size: 12px;
        }
    }

    .container_texto {
        width: 100%;
        padding: 0;

        & h2 {
            font-size: 35px;
        }
    }

    .container_icones {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container_video {
        & .container_video_info {
            position: relative;
            top: 20px;
            height: auto;
        }
    }

    .container_formulario {
        width: 100%;
        padding: 20px 0;

        &.container_formulario_info_inicial {
            flex-direction: column;
        }
    }
}

@media (max-width: 480px) {
    .container_icones {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .container_video {
        & .container_video_info {
            position: relative;
            top: 20px;
        }
    }
    .container-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    #countdown, #futureButton{
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .container_video {
        & .container_video_info {
            position: relative;
            top: 20px;
        }
    }
}

@media (max-width: 360px) {
    .container_video {
        & .container_video_info {
            position: relative;
            top: 20px;
        }
    }
}

@media (max-width: 320px) {
    .container_video {
        & .container_video_info {
            position: relative;
            top: 20px;
        }
    }

    .whatsapp-button {
        width: 60%;
    }

}

/* Fonte importada do GoogleFonts */
@font-face {
    font-family: "PoppinsRegular";
    src: url("../assets/Fonts/Poppins/Poppins-Regular.ttf");
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin-left: 15px;
    background-color: #29a71a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 16px;
    z-index: 1500;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
    text-decoration: none;
}

.whatsapp-button i {
    font-size: 20px;
    margin-right: 10px;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
    color: #fff;
    text-decoration: none;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: #e74c3c;
    /* cor de fundo do toast (vermelho) */
    color: #fff;
    padding: 16px 24px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

legend {
    font-size: 1rem;
}

.toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centraliza os botões horizontalmente */
    align-items: center; /* alinha verticalmente os botões */
    max-width: 100%; /* limita o contêiner ao tamanho da tela */
}

/* Oculta os inputs */
.toggle input {
    width: 0;
    height: 0;
    position: absolute;
    left: -9999px;
}

.toggle input + label {
    flex: 1 1 auto; /* ajusta automaticamente a largura */
    white-space: nowrap; /* evita quebra de texto interno */
    margin: 0;
    padding: 0.75rem 2rem;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    border: solid 1px #DDD;
    background-color: #FFF;
    font-size: 1rem;
    line-height: 140%;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
    color: #474747;
}

/* Bordas arredondadas para simular um botão */
.toggle input:first-of-type + label {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.toggle input:last-of-type + label {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.toggle input:hover + label {
    border-color: #213140;

    cursor: pointer;

}

.toggle input:checked + label {
    background-color: #ec8a16;
    color: #FFF;
    box-shadow: 0 0 10px rgba(102, 179, 251, 0.5);
    border-color: #ec8a16;
    z-index: 1;
}

.toggle input:focus + label {
    outline: dotted 1px #CCC;
    outline-offset: 0.45rem;
}

/* Responsividade para telas menores */
@media (max-width: 800px) {
    .toggle input + label {
        flex: 1 1 100%; /* botões empilham verticalmente em telas pequenas */
        border-radius: 6px !important; /* arredonda todos os botões ao empilhar */
        border: 1px solid #DDD !important;
        margin-bottom: 5px; /* espaçamento vertical entre botões */
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .toggle input + label {
        flex: 1 1 100%; /* botões empilham verticalmente em telas pequenas */
        border-radius: 6px !important; /* arredonda todos os botões ao empilhar */
        border: 1px solid #DDD !important;
        margin-bottom: 5px; /* espaçamento vertical entre botões */
    }
}

/* Status Helper */
.status {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

.status span {
    font-weight: 600;
    color: #B6985A;
}

.status span:first-of-type {
    display: inline;
}

.status span:last-of-type {
    display: none;
}

/* Troca de exibição na responsividade */
@media (max-width: 800px) {
    .status span:first-of-type {
        display: none;
    }
    
    .status span:last-of-type {
        display: inline;
    }
}