/* ==========================================
   FONTES LOCAIS – NOWAY
========================================== */
@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   RESET BASE
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================
   BANNER HERO
========================================== */
.banner-hero {
    width: 100vw;
    overflow: hidden;
    display: block;
}

.banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-mobile {
    display: none;
}

@media (max-width: 768px) {
    .banner-desktop {
        display: none;
    }
    .banner-mobile {
        display: block;
    }
}

/* ==========================================
   SEÇÃO DESCRIÇÃO
========================================== */
.banner-hero {
    position: relative;
    z-index: 1;
}

.secao-descricao {
    position: relative;
    z-index: 2;
    margin-top: -50px;
    margin-bottom: -50px;
    padding-top: 100px;
    padding-bottom: 100px;
}

.descricao-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    z-index: 0;
    display: block;
}

.secao-descricao .container {
    position: relative;
    z-index: 1;
}

.descricao-texto {
    font-family: 'Noway', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #003087;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.descricao-texto:last-child {
    margin-bottom: 0;
}

.destaque {
    background-color: #FFD100;
    padding: 2px 6px;
    border-radius: 2px;
}

.destaque--bold {
    font-weight: 700;
}

@media (max-width: 768px) {
    .secao-descricao {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .descricao-texto {
        font-size: 1.05rem;
    }
}

/* ==========================================
   SEÇÃO FASES
========================================== */
.secao-fases {
    position: relative;
    z-index: 1;
    display: block;
}

.fases-img {
    width: 100%;
    height: auto;
    display: block;
}

.fases-mobile {
    display: none;
}

@media (max-width: 768px) {
    .fases-desktop {
        display: none;
    }
    .fases-mobile {
        display: block;
    }
}

/* ==========================================
   SEÇÃO FORMULÁRIO
========================================== */
.secao-formulario {
    position: relative;
    z-index: 3;
    margin-top: -150px;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

.formulario-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    z-index: 0;
    display: block;
}

.secao-formulario .container {
    position: relative;
    z-index: 1;
}

.secao-formulario__corpo {
    padding-bottom: 60px;
}

/* Título imagem */
.titulo-formulario {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
}

/* Campos */
.spam-check {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.campo-grupo {
    margin-bottom: 14px;
    position: relative;
}

.campo-grupo--check {
    margin-bottom: 20px;
}

.campo-label {
    display: block;
    font-family: 'Noway', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
}

.campo-input {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 10px 12px;
    font-family: 'Noway', sans-serif;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: box-shadow 0.2s;
}

.campo-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.campo-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.5);
}

.campo-input.is-invalid {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5);
}

.campo-erro {
    display: none;
    font-family: 'Noway', sans-serif;
    font-size: 0.78rem;
    color: #ffcc00;
    margin-top: 3px;
}

.campo-grupo.invalido .campo-erro {
    display: block;
}

.campo-grupo.invalido .campo-input {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5);
}

/* Checkbox customizado */
.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.check-input {
    display: none;
}

.check-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 3px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.check-input:checked + .check-box {
    background: #FFD100;
}

.check-input:checked + .check-box::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #003087;
    border-bottom: 2px solid #003087;
    transform: rotate(-45deg) translateY(-1px);
}

.check-texto {
    font-family: 'Noway', sans-serif;
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.5;
}

.campo-erro--check {
    margin-top: 6px;
    margin-left: 28px;
}

.campo-grupo--check.invalido .campo-erro--check {
    display: block;
}

/* Botão */
.btn-cadastrar {
    width: 100%;
    background: #FFD100;
    border: none;
    border-radius: 3px;
    padding: 14px;
    font-family: 'Noway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #003087;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-cadastrar:hover {
    background: #f0c400;
}

.btn-cadastrar:active {
    transform: scale(0.98);
}

.btn-cadastrar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mensagem de retorno */
.form-mensagem {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 3px;
    font-family: 'Noway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

.form-mensagem--sucesso {
    background: rgba(255, 209, 0, 0.15);
    color: #FFD100;
    border: 1px solid #FFD100;
}

.form-mensagem--erro {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
    border: 1px solid #ff6b7a;
}

/* Rodapé */
.secao-formulario__rodape {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
}

.rodape-linha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-rodape {
    height: 70px;
    width: auto;
}

.redes-sociais {
    display: flex;
    gap: 12px;
}

.rede-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.rede-link:hover {
    background: #FFD100;
    color: #003087;
}

.link-regulamento {
    display: inline-block;
    font-family: 'Noway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.link-regulamento:hover {
    color: #FFD100;
}

/* ==========================================
   MODAL REGULAMENTO
========================================== */
.modal-regulamento {
    background: #ffffff;
    border: none;
    border-radius: 6px;
    overflow: hidden;
}

.modal-regulamento__header {
    background: #003087;
    border-bottom: 3px solid #FFD100;
    padding: 20px 24px;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.modal-regulamento__titulo {
    font-family: 'Noway', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.btn-fechar-modal {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-fechar-modal:hover {
    opacity: 1;
}

.modal-regulamento__corpo {
    padding: 28px 28px 20px;
    font-family: 'Noway', sans-serif;
    color: #1a1a2e;
    line-height: 1.75;
}

.reg-intro {
    font-size: 0.95rem;
    color: #444;
    border-left: 4px solid #FFD100;
    padding-left: 14px;
    margin-bottom: 24px;
}

.reg-titulo {
    font-family: 'Noway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #003087;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 22px;
    margin-bottom: 6px;
}

.modal-regulamento__corpo p,
.modal-regulamento__corpo li {
    font-size: 0.9rem;
    color: #333;
}

.reg-lista {
    padding-left: 20px;
    margin-bottom: 0;
}

.reg-lista li {
    margin-bottom: 6px;
}

.modal-regulamento__footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 14px 24px;
    justify-content: flex-end;
}

.btn-fechar-regulamento {
    background: #003087;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 10px 28px;
    font-family: 'Noway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-fechar-regulamento:hover {
    background: #FFD100;
    color: #003087;
}

/* Responsivo */
@media (max-width: 768px) {
    .secao-formulario {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .titulo-formulario {
        max-width: 100%;
        width: auto;
        height: auto;
        margin: 100px auto 30px;
    }

    .secao-formulario__corpo {
        padding-bottom: 40px;
    }
    .formulario-bg {
        object-fit: cover;
    }
}

