@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

html, body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-weight: 400;
    background-color: #e40c79;
}

.row>* {
    padding-right: 0;
    padding-left: 0;
}

.data {
    background-color: #000;
    color: #fff;
    text-align: center;
    height: 42px;
    width: 90%;
}

.data h2 {
    font-weight: 900;
    font-size: 60px;
    font-style: italic;
    line-height: 35px;
    margin: 0;
}

.data-subtitle {
    font-weight: 500;
    font-size: 30px;
    font-style: italic;
    margin: 0;
    color: #fff;
}

label {
    font-weight: 500;
    color: #fff;
    font-size: 36px;

}

input {
    width: 100%;
    height: 45px;
}

.title {
    font-size: 33px;
    font-style: italic;
    font-weight: 400;
    color: #000;
}

.title span {
    font-weight: 700;
}

.btn-enviar {
    color: #fff;
    background-color: #000;
    font-size: 23px;
    font-weight: 900;
    text-align: end;
    border: none;
    padding: 10px 20px;
    width: 157px;
    cursor: pointer;
    position: relative;
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
    width: 100%;
}

.form h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

#sucesso {
    display: block;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 300ms ease, transform 300ms ease;
}

#sucesso p {
    font-size: 23px;
    font-weight: 300;
    color: #fff;
    text-align: center;
    margin: 0;
}

#sucesso p span {
    font-weight: 900;
}

/* Estado visível com transição suave */
#sucesso.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ações na mensagem de sucesso */
.sucesso-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-sucesso {
    display: inline-block;
    background: #ff3b8d;
    color: #fff;
    border: 2px solid #ff3b8d;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    text-decoration: none;
}

.btn-sucesso:hover {
    background: #e52b7a;
    color: #fff;
    border-color: #e52b7a;
}

.programacao {
    align-items: end;
}

.programacao h3 {
    font-weight: 700;
    font-size: 43px;
    color: #fff;
    font-style: bold;
    margin: 0;
    line-height: 30px;

}

.texto-resumo {
    font-size: 20px;
    color: #fff;
    font-weight: 400;
    font-style: normal;
    margin-top: 40px;
    margin-bottom: 40px;
}

.programacao p {
    font-weight: 500;
    font-size: 33px;
    color: #fff;
    margin: 0;
    font-style: medium;
}

.separador {
    width: 20%;
    height: 1px;
    background-color: #000;
    margin-top: 20px;
    margin-bottom: 20px;
}

#footer {
    color: #000;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}



@media screen and (min-width: 1300px) {
    .container {
        max-width: 1000px;
    }

}


@media (max-width: 767px) {
    .img-desktop {
        display: none ! important;
    }

    .img-mobile {
        display: block ! important;
    }

    #banner-principal-mobile {
        display: block ! important;
    }

    .row>* {
        padding-right: calc(var(--bs-gutter-x) * .0);
        padding-left: calc(var(--bs-gutter-x) * .0);
    }

    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    /* .row {
        margin-right: 0;
        margin-left: 0;
    } */

    label {
        font-size: 20px;
    }

    input {
        font-size: 20px;
    }

    .data-subtitle {
        font-size: 20px;
    }

    .title {
        font-size: 20px;
    }

    .programacao h3 {
        font-size: 20px;
    }

    .programacao p {
        font-size: 15px;
    }

    .separador {
        width: 10%;
    }

    /* #sucesso {
        display: block;
        height: 80px;
    } */

    .data {
        margin-top: 20px;
    }
}

/* Overlay suave para destacar sucesso */
body.overlay-active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1000;
    pointer-events: none;
}

#sucesso.on-top {
    position: relative;
    z-index: 1001;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.alert-toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 360px;
    max-width: calc(100% - 32px);
    z-index: 1050;
}

.alert {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.alert+.alert {
    margin-top: 8px;
}

/* ===== Ajustes de escala e responsividade para reduzir tamanhos ===== */
@media (min-width: 768px) {

    /* Banner menos alto em telas grandes */
    #banner-principal img {
        width: 100%;
        max-width: 1440px;
        height: auto;
        max-height: 100vh;
        display: block;
    }

    /* Tipografia e espaçamentos mais contidos */
    label {
        font-size: clamp(16px, 1.4vw, 20px);
    }

    input {
        height: 40px;
        font-size: clamp(14px, 1.2vw, 16px);
        margin: 0 auto;
        display: block;
    }

    .title {
        font-size: clamp(18px, 3vw, 30px);
        margin-left: 10px;
    }

    .title h2 {
        font-size: clamp(18px, 3vw, 30px);
        margin-left: 10px;
    }

    .data-subtitle {
        font-size: clamp(16px, 2vw, 22px);
    }

    .programacao h3 {
        font-size: clamp(18px, 2.4vw, 28px);
    }

    .programacao p {
        font-size: clamp(16px, 2vw, 22px);
    }

    #footer {
        font-size: clamp(18px, 2.5vw, 22px);
    }

    .btn-enviar {
        font-size: clamp(14px, 1.8vw, 18px);
    }
}

/* Centraliza o bloco do formulário dentro do container em telas médias/grandes */
@media (min-width: 768px) {
    .container>.mt-4 {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* (Revertido) Mantém o container-fluid do banner em largura total */

/* Estado de loading do botão OK */
.btn-enviar.loading {
    opacity: 0.9;
    pointer-events: none;
}

.btn-enviar.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: -2px;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}