html {
    scroll-behavior: smooth;
}

:root {
    --font1: 'Plus Jakarta Sans', sans-serif;
    --preto: #1D1D1D;
    --amarelo: #FFCF00;
    --azul: #1b98e0;
    --azul2: #13293d;
}

body {
    padding: 0;
    background-color: #ddd;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font1);
    color: var(--preto);
}

a {
    text-decoration: none;
    transition: all .25s ease;
}

img {
    border: 0;
    vertical-align: top;
}

p {
    line-height: 160%;
    font-size: 15px;
}

h2 {
    font-size: 39px;
    margin: 0 0 20px;
}

.extra-field {
    display: none;
}

/* ── Quiz layout ── */

.quizz {
    width: 90%;
    max-width: 1100px;
    position: relative;
    margin: 70px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p1Quiz {
    background-color: #FFF;
    min-height: 527px;
    box-sizing: border-box;
    padding: 30px 40px;
    margin: 40px 0;
    border-radius: 20px 0 0 20px;
    flex: 1;
}

.p2Quiz {
    width: 50%;
    max-width: 530px;
    transition: all .15s ease;
    min-height: 620px;
    border-radius: 20px;
    box-sizing: border-box;
    padding: 80px 20px 20px 60px;
    background-color: var(--cor-primaria);
}

.infoP2Quiz {
    width: 250px;
}

.infoP2Quiz h2 {
    font-weight: 600;
    line-height: 110%;
    color: #FFF;
    display: block;
    margin: 0 0 20px 0;
}

.infoP2Quiz h2 strong {
    color: rgba(255, 255, 255, .7);
}

.infoP2Quiz p {
    color: #FFF;
    font-size: 17px;
    max-width: 165px;
}

.modx {
    width: 380px;
    position: absolute;
    bottom: 0;
    right: -30px;
}

/* ── Valor / range ── */

.valor {
    text-align: center;
}

.holdaValor {
    color: #838383;
    background-color: #F0F0F0;
    font-weight: 800;
    letter-spacing: -1px;
    padding: 4px 20px;
    border-radius: 30px;
    margin: 0 0 0 auto;
    display: table;
}

input[type="range"] {
    display: block;
    margin-top: 20px;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--azul2), var(--azul));
}

input[type="range"]::-webkit-slider-thumb {
    box-shadow: var(--azul) 0 0 15px;
    transition: 300ms;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--azul2);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transition: 300ms;
    background-color: var(--azul);
    transform: scale(1.5);
}

/* ── Páginas ── */

.paginasX {
    display: none;
}

.pagAtiva {
    display: block !important;
}

.qP1 #pagx1 { display: block; }
.qP2 #pagx2 { display: none; }
.qP3 #pagx3 { display: none; }

.qP1 .mod2, .qP1 .iPQ2, .qP1 .mod3, .qP1 .iPQ3, .qP2 .mod1, .qP2 .iPQ1, .qP2 .mod3, .qP2 .iPQ3, .qP3 .mod2,
.qP3 .iPQ2, .qP3 .mod1, .qP3 .iPQ1 {
    display: none;
}

/* ── Inputs ── */

.quizz input[type=text],
.quizz input[type=email] {
    -webkit-appearance: none;
    width: 100%;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
    font-size: 15px;
    font-family: var(--font1), sans-serif;
    outline: none;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid #838383;
    background-color: #FFF;
    color: #333;
    padding: 10px 15px;
}

.formulario input::-webkit-input-placeholder,
.formulario input:-moz-placeholder,
.formulario input::-moz-placeholder,
.formulario input:-ms-input-placeholder {
    color: #777;
}

.umSelect select {
    -webkit-appearance: none;
    position: relative;
    z-index: 99;
    width: 100%;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
    font-size: 15px;
    font-family: var(--font1), sans-serif;
    outline: none;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid #838383;
    background-color: transparent;
    color: #333;
    padding: 10px 15px;
}

.umSelect {
    position: relative;
}

.umSelect i {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 0;
    font-size: 18px;
}

/* ── Linhas do quiz ── */

.linhaQuiz {
    display: flex;
    margin: 0 0 5px 0;
    box-sizing: border-box;
    padding: 5px 5px 5px 15px;
    align-items: center;
    justify-content: space-between;
}

.lLabel {
    width: calc(50% - 5px);
    text-align: right;
}

.lLabel b {
    font-weight: normal;
    font-size: 14px;
    color: #838383;
}

.lCont {
    width: calc(50% - 5px);
}

/* ── Botão ── */

.butFormQ {
    border-radius: 30px;
    min-height: 49px;
    font-size: 14px;
    box-sizing: border-box;
    padding: 0 20px;
    width: fit-content;
    min-width: 350px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-weight: 700;
    margin: 20px auto 0 auto;
}

.butFormQ i {
    font-size: 17px;
    margin: 0 0 -2px 5px;
}

.quizz .butFormQ,
.qP3 .butFormQ {
    color: #FFF !important;
}

.quizz .butFormQ {
    background-color: var(--cor-primaria);
}

/* ── Consultando / loading ── */

.loadingMais {
    font-size: 30px !important;
}

.consultando {
    background-color: #ffffff;
    border: 2px dashed var(--cor-primaria);
    color: var(--cor-primaria) !important;
}

.consultando i.loadingMais {
    color: var(--cor-primaria);
    font-size: 20px;
}

.qP1 .consultando {
    border: 1px dashed #fff;
    color: #fff !important;
}

.qP2 .consultando {
    border: 1px dashed var(--azul2);
    color: var(--azul2) !important;
}

.qP3 .consultando {
    border: 1px dashed var(--amarelo);
    color: var(--amarelo) !important;
}

/* ── Radios ── */

.radios {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.radioButton {
    width: calc(50% - 8px);
    display: flex;
    border: 2px solid var(--cor-primaria);
    color: #666 !important;
    border-radius: 30px;
    background-color: white;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.radioButton span {
    width: 100%;
    border-radius: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 0;
}

.radioButton input[type="radio"] {
    display: none;
}

.radioButton:hover,
.radioButton input[type="radio"]:checked + span {
    background-color: var(--cor-primaria);
    color: #fff !important;
}

.radioButton input[type="radio"]:checked + label {
    background-color: var(--azul);
    color: #FFF;
}

.radioButton input[type="radio"]:checked + span {
    -webkit-animation-duration: .4s;
    -webkit-animation-name: selecionar;
    -webkit-animation-delay: 0s;
    -webkit-animation-fill-mode: forwards;
}

@-webkit-keyframes selecionar {
    0%   { box-shadow: 0px 0px 16px 10px rgba(27, 152, 224, .6); }
    100% { box-shadow: 0px 0px 0px 0px rgba(27, 152, 224, .6); }
}

/* Variante cartão */

.q_cartao .radioButton {
    border: 2px solid var(--azul2);
    color: var(--azul2);
}

.q_cartao .radioButton:hover,
.q_cartao .radioButton input[type="radio"]:checked + span,
.q_cartao .radioButton input[type="radio"]:checked + label {
    background-color: var(--azul2);
    color: #FFF;
}

/* Variante benefício */

.q_beneficio .radioButton {
    border: 2px solid var(--amarelo);
    color: var(--azul2) !important;
}

.q_beneficio .radioButton:hover,
.q_beneficio .radioButton input[type="radio"]:checked + span,
.q_beneficio .radioButton input[type="radio"]:checked + label {
    background-color: var(--amarelo);
    color: #484848;
}

/* ── qP3 overrides ── */

.qP3 .infoP2Quiz p {
    max-width: 165px;
    color: #484848;
}

.qP3 #tipoSolicita li.ativo {
    color: #FFF !important;
}

/* ── Parcelas ── */

#parcelas {
    display: none;
}

.aparece {
    display: flex !important;
}

.radioParcela {
    flex-wrap: wrap;
}

.radioParcela .radioButton {
    width: calc(25% - 8px);
}

/* ── Aceite ── */

.valido {
    margin: 0 5px -4px 0 !important;
}

.aceite {
    color: #888;
    font-size: 11px;
    margin: 10px 0 0 0;
    position: relative;
    text-align: center;
}

.aceite a {
    color: #666;
    text-decoration: underline;
}

.aceite span {
    display: block;
    margin: 0 auto;
    max-width: 250px;
}

/* ── Footer ── */

.footerQuizz {
    color: #999;
    font-size: 12px;
    margin: 60px auto 20px auto;
    width: 90%;
    max-width: 900px;
    padding: 30px 0;
}

.footerQuizz a {
    color: #999;
    margin: 0;
    padding: 0 10px;
}

.footerQuizz a:hover {
    text-decoration: underline;
}

.linhaF1q,
.linhaF3q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linhaF2q {
    text-align: center;
    margin: 10px 0;
    width: 100%;
}

.logoQuiz2 {
    width: 110px;
    opacity: .5;
    margin: 0 10px 0 0;
    filter: grayscale(1);
}

/* ── Loading overlay ── */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    z-index: 9999;
}

#loading-overlay .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loading-overlay .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.spinner-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 1);
    border-top: 2px solid var(--cor-primaria);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.some {
    display: none !important;
}

/* ── Tipo Solicita tabs ── */

#tipoSolicita {
    list-style: none;
    padding: 4px;
    margin: 0 0 24px 0;
    display: flex;
    background-color: #f2f2f2;
    border-radius: 40px;
}

#tipoSolicita li {
    list-style: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 6px;
    border-radius: 30px;
    background-color: transparent;
    color: #555;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-break: break-word;
    user-select: none;
}

#tipoSolicita li.ativo {
    background-color: var(--cor-primaria);
    color: #fff;
    font-weight: 600;
    margin: -4px;
}


/* CSS OBRIGATÓRIO PARA O HONEYPOT FUNCIONAR */
.extra-field {
    position: absolute; 
    left: -9999px;     
    top: -9999px;      
    visibility: hidden; 
    opacity: 0;        
    height: 0;
    width: 0;
}

/* CSS PARA O AUTOCOMPLETE DE EMAIL */
.lCont {
    position: relative; /* Necessário para posicionar a lista */
}
.email-autocomplete-list {
    position: absolute;
    top: 100%; /* Logo abaixo do input */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Oculto por padrão */
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}
.email-autocomplete-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.email-autocomplete-list li:last-child {
    border-bottom: none;
}
.email-autocomplete-list li:hover, .email-autocomplete-list li:active {
    background-color: #f9f9f9;
    color: var(--cor-primaria, #000);
}
.email-autocomplete-list li strong {
    font-weight: 600;
}

/* CSS PARA OS BOTÕES DE SELEÇÃO DE EMAIL */
.email-opt-container {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}
.email-opt-btn {
    flex: 1;
    text-align: center;
    cursor: pointer;
    background: #FFF;
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
}
.email-opt-btn:hover {
    border-color: #bbb;
}
.email-opt-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.email-opt-btn span {
    display: block;
    font-weight: bold;
    color: #555;
    font-size: 14px;
    width: 100%;
}
/* Estado Checado: Simula o visual do botão ativo */
.email-opt-btn input:checked + span {
    color: #fff;
}
.email-opt-btn:has(input:checked) {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* Fallback para browsers antigos que não suportam :has */
.email-opt-btn input:checked + span {
        /* A cor do texto muda, mas o fundo depende do :has ou JS se for muito antigo. 
        Para garantir, usamos um span com background se necessario, mas o CSS moderno cobre a maioria. */
}
/* Forçando cor de fundo no span caso :has falhe (opcional, mas :has tem bom suporte atual) */


.discc { font-size: 11px; margin: 30px auto 0 auto; max-width: 800px; display: block; text-align: center;}


/* ── Responsivo ── */

@media screen and (max-width: 1000px) {
    .quizz {
        max-width: 400px;
        flex-wrap: wrap;
        margin: 15px auto 0 auto;
    }

    .p1Quiz {
        width: 100%;
        max-width: 100%;
        padding: 15px 20px 265px 18px;
        order: 2;
        margin: 0;
        border-radius: 0 0 15px 15px;
    }

    .p2Quiz {
        width: 100%;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
        order: 1;
        padding: 18px 10px 13px 18px;
        min-height: 0;
    }

    .infoP2Quiz {
        width: 100%;
    }

    .infoP2Quiz h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .infoP2Quiz p {
        font-size: 14px;
        margin: 0;
        max-width: 100% !important;
    }

    .linhaQuiz {
        padding: 5px 0;
        flex-wrap: wrap;
    }

    .lLabel {
        width: 100%;
        text-align: left;
    }

    .lLabel b {
        display: block;
        margin: 0 0 5px 0;
    }

    .lCont {
        width: 100%;
    }

    .aceite {
        height: 0;
        font-size: 12px;
    }

    .aceite span {
        position: absolute;
        max-width: 200px;
        z-index: 999;
        text-align: left;
        top: 10px;
        left: 0;
    }

    .holdaValor {
        margin: -25px 0 0 auto;
    }

    .modx {
        width: 250px;
        right: -3vw;
    }

    .butFormQ {
        padding: 0 10px;
        min-width: 0;
        width: 100%;
        margin: 10px 0 0 0;
    }

    .linhaF1q {
        display: block;
        text-align: center;
    }

    .logoQuiz2 {
        margin: 0 auto 10px auto;
        display: block;
    }

    .qP3 .infoP2Quiz p {
        max-width: 100%;
    }

    .qP3 .aceite span {
        max-width: 150px;
    }
}