html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.container {
    padding: 18px 35px;
}

.br-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: none
}

.header-logo {
    padding-left: 0;
}

.header-logo a {
    pointer-events: visible;
    width: 66.66;
    height: 30.75;
}

.header-logo img {
    background: #ffffff;
    width: 106.66px;
    height: 43.99px;
}

.header-opcoes {
    display: flex;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    width: 700px;
}

.dividerSpan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 15px;
}

.header-opcoes span {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 50%;
}

.wrapper-entrar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin: 5px;
}


.wrapper-entrar button {
    background-color: #1351B4;
    color: #ffffff;
    border-radius: 50px;
    width: 70%;
}

.nav {
    display: inline-flex;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1px;
}

.nav-item a {
    color: #1351B4;
    font-size: 14px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.nav-item :hover {
    color: #1351B4;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.header-barra {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


@media (max-width: 390px) {
    .wrapper-entrar button {
        background-color: #1351B4;
        color: #ffffff;
        border-radius: 50px;
        width: 100%;
    }

    .wrapper-entrar {
        width: 100%;
    }

    .wrapper-entrar span,
    .wrapper-entrar i {
        display: none;
    }
}

@media (max-width: 590px) {
    .br-header {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        box-shadow: none
    }

    .header-logo {
        padding-left: 0;
    }

    .header-logo a {
        pointer-events: visible;
        width: 66.66;
        height: 30.75;
    }

    .header-logo img {
        background: #ffffff;
        width: 56.66px;
        height: 23.99px;
    }

    .header-opcoes {
        display: none;
    }

    .wrapper-entrar {
        width: 100%;
    }

    .wrapper-entrar span,
    .wrapper-entrar i {
        display: none;
    }

    .header-barra {
        display: none;
    }

    .wrapper-entrar button {
        background-color: #1351B4;
        color: #ffffff;
        border-radius: 50px;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .br-header {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        box-shadow: none
    }

    .header-logo {
        padding-left: 0;
    }

    .header-logo a {
        pointer-events: visible;
        width: 66.66;
        height: 30.75;
    }

    .header-logo img {
        background: #ffffff;
        width: 56.66px;
        height: 23.99px;
    }

    .header-opcoes {
        display: none;
    }

    .wrapper-entrar {
        width: 100%;
    }

    .header-barra {
        display: none;
    }

    .wrapper-entrar button {
        background-color: #1351B4;
        color: #ffffff;
        border-radius: 50px;
        width: 95%;
    }
}

@media (max-width: 1190px) {
    .br-header {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        box-shadow: none
    }

    .wrapper-entrar button {
        width: 95%;
    }

    .header-opcoes {
        display: none !important;
    }

    .wrapper-entrar {
        width: 100%;
    }

    .header-barra {
        display: none;
    }
}

@media (min-width: 1200px) {
    .br-header {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        box-shadow: none
    }

    .wrapper-entrar button {
        width: 100% !important;
    }

    .header-opcoes {
        display: flex;
    }

    .wrapper-entrar {
        width: 130%;
        margin-left: -22%;
    }
}

@media (min-width: 1390px) {
    .br-header {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        box-shadow: none
    }

    .wrapper-entrar button {
        width: 60%;
    }

    .header-opcoes {
        display: flex;
    }

    .wrapper-entrar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: end;
        width: 120%;

    }

    .header-barra {
        display: none;
    }
}

.wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0px 0px 5px;
    color: #1351B4;
}

.wrapper-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.br-header-services {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 88px;
}

.br-header-services i {
    font-size: 24px;
    margin-right: 15px;
    color: #1351B4;

}

.br-header-services span {
    font-family: 'Poppins', serif;
    font-size: 24px;
    margin-right: 15px;
}

@media (max-width:700px) {
    .br-header-services span {
        font-family: 'Poppins', serif;
        font-size: 14px;
        margin-right: 10px;
    }

    /* Tipografia Mobile - Ajustes para melhor legibilidade e hierarquia */
    .br-header-corpo p {
        font-size: 20px;
        line-height: 1.4;
    }

    .instituicao,
    .instituicao span,
    .br-header-comunicado span {
        font-size: 18px;
        line-height: 1.4;
    }

    .comunicado ul {
        font-size: 16px;
        line-height: 1.5;
    }

    .barra p {
        font-size: 16px;
        line-height: 1.4;
    }

    .inscricoes p,
    .detalhes p,
    .detalhes li {
        font-size: 15px;
        line-height: 1.5;
    }

    .compartilhe,
    .Publicado {
        font-size: 13px;
        line-height: 1.4;
    }
}

.br-header-pesquisa {
    background: #f5f4f4;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 20px 14px 20px;
    height: 92px;
    box-shadow: 0 2px 5px #b6b4b4;
}

.header-pesquisa {
    border: 1px solid #cecbcb;
    background: #ffffff;
    display: flex;
    border-radius: 5px;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 100%;
}

.header-pesquisa input {
    padding: 0px 0px 0px 32px;
    border: none;
    width: 100%;
    font-size: 30px;
}

.header-pesquisa input::placeholder {
    font-size: 18px;
    color: #7e7b7b;
}

.header-pesquisa input:focus {
    border-color: #ffffff;
    font-size: 18px;
    color: #7e7b7b;
    outline: none;
    /* Remove o contorno azul padrão do navegador */
}

.header-pesquisa button {
    border: none;
    font-size: 18px;
    color: #1351B4;
    background: #ffffff;
}

.header-pesquisa span {
    border: none;
    text-decoration: none;
    font-size: 20px;
    color: #1351B4;
}

.br-header-corpo p {
    margin-top: 40px;
    color: #1351B4;
    font-family: "Poppins" Arial, Helvetica, serif;
    font-size: 24px;
    font-weight: 500;
}

.br-header-corpo span {
    height: 1px;
    color: #1351B4;

}

.compartilhe {
    font-size: 14px;
    padding: 20px 0px 20px 0px;
    color: #1351B4;

}

.Publicado {
    font-size: 14px;
    padding: 0px 0px 20px 0px;
    color: #1351B4;
}

.compartilhe i {
    margin-left: 20px;
}

.br-header-corpo img {
    border-radius: 10px;
    width: 100%;
}

.instituicao {
    font-size: 20px;
    padding: 0px 0px 20px 0px;
    color: #1351B4;
}

.instituicao span {
    font-size: 20px;
    padding: 0px 0px 20px 0px;
    color: #000000;
    font-weight: 700;
}

.br-header-comunicado span {
    font-size: 20px;
    color: #1351B4;
}

.comunicado {
    margin-bottom: 20px;
}

.comunicado ul {
    margin-top: 20px;
    font-size: 18px;
}

.cadastro-user {
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-primary2 {
    margin-bottom: 30px;
}

.inscricoes {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inscricoes p {
    font-size: 16px;
    color: #1351B4;
}

.detalhes span {
    color: #000000;
    margin-top: 15px;
}

.detalhes li {
    color: #000000;
    margin-top: 5px;
}

.detalhes p {
    margin-top: 10px;
    font-size: 16px;
}

.barra {
    border-left: 4px solid #1351B4;
    /* azul */
}

.barra p {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    font-weight: 500;
    font-style: italic;
    font-size: 18px;
    color: #1351B4;
}

.br-header-footer {
    background: #324f7e;
    font-size: larger;
    color: #ffffff;
    height: auto;
}

#info-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.br-header-footer a {
    font-size: small;
    color: #ffffff;
}

.termos {
    display: inline-flex;
    flex-direction: column;
    background: #f9fafb;
    margin: 25px 0;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #d0d0d0;
    width: 100%;
}

.form-check label {
    margin: 5px 10px 5px 0;
}

.termos-1 {
    display: flex;
    padding: 10px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    border-radius: 10px;
    margin-top: 10px;
}

.info i {
    color: #1351B4;
    font-size: small;
}

.info {
    font-size: small;
    color: #7e7b7b;
}

.regiao i {
    font-size: 24px;
    font-weight: 600;
    color: #1351B4;
}

.regiao p {
    font-size: 15px;
    color: #1351B4;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    margin: 10px 0px 10px 0px;
}

.form-control {
    width: 25%;
}

.form-control input {
    color: #ffffff;
}

.form input::placeholder {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: #d0d0d0;
}

/* ==================================================
   UX/UI Enhancements: Checkbox, CEP & ConsultarBtn
   ================================================== */

/* 1. Checkbox Termos */
.terms-checkbox-wrapper {
    background-color: #f8fafc;
    border: 1.5px solid #d0d7de;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 15px 0 10px 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.terms-checkbox-wrapper:hover {
    background-color: #f0f4f9;
    border-color: #1351B4;
    box-shadow: 0 2px 8px rgba(19, 81, 180, 0.12);
}

.custom-terms-checkbox {
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid #8c939d;
    transition: all 0.2s ease;
}

.custom-terms-checkbox:focus {
    border-color: #1351B4;
    box-shadow: 0 0 0 0.25rem rgba(19, 81, 180, 0.25);
}

.custom-terms-checkbox:checked {
    background-color: #1351B4;
    border-color: #1351B4;
}

.custom-terms-label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #24292f;
    font-weight: 500;
    user-select: none;
    display: block;
    margin: 0;
}

/* 2. Container e Alinhamento do CEP + ConsultarBtn */
.cep-search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
    flex-wrap: wrap;
}

.cep-search-container .form-control {
    width: 260px;
    max-width: 100%;
    height: 42px;
    margin: 0;
    font-size: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
}

.cep-search-container .form-control:focus {
    border-color: #1351B4;
    box-shadow: 0 0 0 0.25rem rgba(19, 81, 180, 0.25);
}

.consultar-btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.consultar-btn-wrapper .btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* 3. Mensagem / Tooltip ConsultarBtn */
.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1351B4;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1351B4 transparent transparent transparent;
}

.custom-tooltip.show-tooltip {
    visibility: visible;
    opacity: 1;
}

/* 4. Responsividade */
@media (max-width: 576px) {
    .cep-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cep-search-container .form-control {
        width: 100%;
    }

    .consultar-btn-wrapper {
        width: 100%;
    }

    .consultar-btn-wrapper .btn {
        width: 100%;
    }

    .custom-tooltip {
        left: 0;
        transform: none;
        white-space: normal;
        width: 100%;
        text-align: center;
        bottom: calc(100% + 8px);
    }

    .custom-tooltip::after {
        left: 50%;
        transform: translateX(-50%);
    }
}