/* =========================================================================
   PROTEÇÃO DE CABEÇALHO E LOGO (Cores restauradas para o padrão do site)
   ========================================================================= */
.area-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none;
}

.logo-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-imagem {
    height: 40px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
}

.logo-com-mouse {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marca:hover .logo-com-mouse {
    opacity: 1;
}

.texto-logo {
    font-weight: 700;
    color: #002244;
    font-size: 1.1rem;
    line-height: 1.2;
}

.texto-logo small {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.botao-destaque-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #005ca9 !important;
    border: 1px solid #005ca9;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.botao-destaque-nav:hover {
    background: #005ca9;
    color: #ffffff !important;
}

/* =========================================================================
   ESTILOS ESPECÍFICOS E OTIMIZAÇÕES MOBILE DO FORMULÁRIO DE SIMULAÇÃO
   ========================================================================= */

.progresso-rolagem {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    height: 4px;
    width: 0%;
    background: var(--gradiente-laranja, linear-gradient(90deg, #f37021, #ff8c00));
    box-shadow: 0 0 10px rgba(243, 112, 33, 0.5);
    transition: opacity 0.2s ease, width 0.1s linear;
    opacity: 0;
}

.cabecalho-site {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cabecalho-site.rolado {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.links-navegacao-simulacao {
    display: flex !important;
    align-items: center !important;
}

.secao-formulario {
    padding-top: 130px !important;
    padding-bottom: 60px;
    background: var(--cinza-claro, #f8fafc);
    min-height: 100vh;
}

.conteiner-formulario {
    background: var(--branco-puro, #ffffff);
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--borda-raio, 16px);
    box-shadow: var(--sombra-cartao, 0 10px 30px rgba(0, 0, 0, 0.05));
    overflow: hidden;
}

.cabecalho-form {
    background: var(--gradiente-jornada, linear-gradient(135deg, #003366, #005ca9));
    padding: 40px;
    color: #ffffff;
    text-align: center;
}

.subtitulo-form {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.9;
}

.cabecalho-form h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.cabecalho-form h1 span {
    color: var(--laranja-brilhante, #f37021);
}

.aviso-rapido {
    font-size: 0.95rem !important;
    opacity: 0.85;
    margin-top: 5px;
    margin-bottom: 25px;
}

.perfil-destaque {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 28px 22px;
    margin: 0 auto;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.moldura-foto {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
}

.foto-thaina {
    width: 260px;
    height: 330px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #f37021;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mensagem-apresentacao-nova {
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.corpo-form {
    padding: 40px;
}

.alerta-lgpd {
    background: rgba(0, 92, 169, 0.05);
    border-left: 4px solid var(--azul-caixa, #005ca9);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--texto-suave, #475569);
    transition: all 0.3s ease;
}

.alerta-lgpd strong {
    display: block;
    color: var(--azul-profundo, #002244);
    margin-bottom: 10px;
    font-size: 1rem;
}

.obs-importante {
    background: rgba(243, 112, 33, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #c2410c;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 4px solid #f37021;
}

.grupo-radio {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.espaco-radio {
    margin-top: 5px;
}

.grupo-radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--azul-profundo, #002244);
}

.grupo-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #f37021;
    cursor: pointer;
}

.titulo-sessao {
    color: var(--azul-profundo, #002244);
    font-size: 1.3rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.titulo-sem-margem {
    margin-top: 0;
}

.grade-campos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.campo-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.campo-largo {
    grid-column: 1 / -1;
}

.campo-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--texto-principal, #1e293b);
}

.campo-form label:not(:has(+ .dica-campo)) {
    margin-bottom: auto;
}

.dica-campo {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: -4px;
    margin-bottom: auto;
}

.campo-form input {
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px !important;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    width: 100%;
}

.campo-form input:focus {
    outline: none;
    border-color: #005ca9;
    box-shadow: 0 0 0 4px rgba(0, 92, 169, 0.1);
}

.select-escondido {
    position: absolute !important;
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #f37021;
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.15);
}

.custom-select-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-trigger span.placeholder {
    color: #94a3b8;
}

.seta-select {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    fill: #005ca9;
}

.custom-select-wrapper.open .seta-select {
    transform: rotate(180deg);
    fill: #f37021;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #002244;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.custom-option:hover {
    background-color: #f37021;
    color: #ffffff;
}

.custom-option.selected {
    background-color: rgba(243, 112, 33, 0.1);
    color: #f37021;
    font-weight: 600;
}

.area-aviso {
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    color: #C2410C;
    font-weight: 500;
}

.botao-enviar-zap {
    width: 100%;
    margin-top: 30px;
    font-size: 1.1rem;
    padding: 18px;
}

.botao-enviar-zap svg {
    width: 24px;
    height: 24px;
}

#sessao-companheiro {
    display: none;
    background: rgba(0, 92, 169, 0.02);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid rgba(0, 92, 169, 0.1);
}

/* =========================================================================
   ESTILOS DE VALIDAÇÃO (ERRO)
   ========================================================================= */
.erro-campo {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

div.erro-campo {
    border: 1px solid #ef4444 !important;
}

/* =========================================================================
   AJUSTES FINOS PARA CELULAR (MOBILE)
   ========================================================================= */
@media (max-width: 768px) {
    .secao-formulario {
        padding-top: 130px !important;
        padding-bottom: 40px;
    }

    .conteiner-formulario {
        border-radius: 12px;
    }

    .cabecalho-form {
        padding: 25px 18px;
    }

    .foto-thaina {
        width: 210px;
        height: 270px;
    }

    .perfil-destaque {
        padding: 20px 14px;
        max-width: 100%;
    }

    .cabecalho-form h1 {
        font-size: 1.5rem;
    }

    .corpo-form {
        padding: 20px 16px;
    }

    .grade-campos {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grupo-radio {
        flex-direction: column;
        gap: 12px;
    }

    .area-logo {
        gap: 8px !important;
    }

    .logo-imagem {
        height: 32px !important;
    }

    .area-logo .texto-logo {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .area-logo .texto-logo small {
        display: block !important;
        font-size: 0.55rem !important;
        letter-spacing: 0.2px;
        margin-top: 2px;
    }

    .botao-destaque-nav {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    .botao-destaque-nav svg {
        width: 14px;
        height: 14px;
    }
}