/*
 * Qualificação de leads — formulário de cadastro (.gq-form) e pop-up de perguntas (.gq-modal).
 *
 * Autossuficiente: não depende de Bootstrap, Tailwind nem do CSS do site, e é o mesmo arquivo
 * nos dois projetos. Tudo em px (o site muda o font-size do <html>) e com prefixo gq-.
 * As regras ficam sempre dentro de .gq-form / .gq-modal para vencer os estilos globais.
 */

/* As fontes vêm daqui para o arquivo não depender do <head> de cada projeto.
   Formulário: Open Sans + Lato (botão). Pop-up: Inter. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Lato:wght@900&family=Open+Sans:wght@400;600;700&display=swap');

/* ==========================================================================
   Base: tipografia explícita na raiz e reset de tudo o que está dentro
   ========================================================================== */

.gq-form,
.gq-modal {
    box-sizing: border-box;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-align: left;
    text-indent: 0;
    text-shadow: none;
    white-space: normal;
    color: #252A33;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.gq-form *,
.gq-form *::before,
.gq-form *::after,
.gq-modal *,
.gq-modal *::before,
.gq-modal *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: inherit;
    text-decoration: none;
    text-indent: 0;
    text-shadow: none;
    color: inherit;
    vertical-align: baseline;
    float: none;
    min-width: 0;
    max-width: none;
    opacity: 1;
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Sem "Arial" nas listas: o site registra uma fonte própria com esse nome */
.gq-form,
.gq-form *,
.gq-form *::before,
.gq-form *::after {
    font-family: 'Open Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.gq-modal,
.gq-modal *,
.gq-modal *::before,
.gq-modal *::after {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* O site tem button:hover{opacity:.5;transform:scale(1.1)} global */
.gq-form button:hover,
.gq-form a:hover,
.gq-modal button:hover,
.gq-modal a:hover {
    opacity: 1;
    transform: none;
}

/* Regras de display abaixo não podem "reexibir" o que está com o atributo hidden */
.gq-form [hidden],
.gq-modal [hidden],
.gq-modal[hidden] {
    display: none !important;
}

.gq-form .gq-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@keyframes gq-gira {
    to { transform: rotate(360deg); }
}

@keyframes gq-entra {
    from { opacity: 0; transform: translate3d(12px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes gq-entra-volta {
    from { opacity: 0; transform: translate3d(-12px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes gq-pop {
    0% { opacity: 0; transform: scale(.6); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Formulário (etapa 1)

   As medidas acompanham a largura do painel (unidade cqi), nas proporções do
   layout aprovado; o primeiro valor de cada par é o piso usado no celular e
   nos navegadores sem container queries. O teto de cada clamp() é a medida de
   um painel de 700px: é a largura que ele chega a ter no hero do projeto completo.
   ========================================================================== */

.gq-form {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #CDCED2;
    box-shadow: none;
    container-type: inline-size;
    container-name: gq-form;
}

/* Encaixe "anexo": o painel fica colado embaixo de outro bloco (hero do projeto completo),
   então só os cantos de baixo são arredondados. O contêiner leva o mesmo raio para a sombra dele acompanhar. */
.gq-anexo,
.gq-anexo .gq-form {
    border-radius: 0 0 8px 8px;
}

.gq-form .gq-form__corpo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
    row-gap: clamp(12px, 2.8cqi, 20px);
    width: 100%;
    padding: 18px;
    padding: clamp(18px, 5.4cqi, 38px);
}

.gq-form .gq-field {
    display: block;
    width: 100%;
}

.gq-form .gq-input {
    display: block;
    width: 100%;
    height: 48px;
    height: clamp(48px, 8.6cqi, 60px);
    padding: 0 14px;
    padding: 0 clamp(14px, 3cqi, 21px);
    border: 1px solid #E1E1E3;
    border-radius: 4px;
    border-radius: clamp(4px, 1cqi, 7px);
    background: #FFFFFF;
    font-size: 16px; /* 16px evita o zoom automático do iOS ao focar */
    font-size: clamp(16px, 3cqi, 21px);
    font-weight: 600;
    line-height: 22px;
    line-height: clamp(22px, 3.9cqi, 27px);
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    color: #252A33;
    caret-color: #9A1A28;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.gq-form .gq-input::placeholder {
    font-size: 13px;
    font-size: clamp(13px, 2.99cqi, 21px);
    font-weight: 400;
    line-height: 22px;
    line-height: clamp(22px, 3.9cqi, 27px);
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #6B7280;
    opacity: 1;
}

.gq-form .gq-input:focus {
    border-color: #252A33;
    box-shadow: 0 0 0 3px rgba(37, 42, 51, .16);
}

/* Preenchimento automático do navegador: mantém o campo branco */
.gq-form .gq-input:-webkit-autofill,
.gq-form .gq-input:-webkit-autofill:hover,
.gq-form .gq-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #252A33;
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
    box-shadow: 0 0 0 1000px #FFFFFF inset;
}

.gq-form .gq-input.is-invalid {
    border-color: #C0392B;
}

.gq-form .gq-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .2);
}

.gq-form .gq-whats {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 48px;
    height: clamp(48px, 8.6cqi, 60px);
    border-radius: 4px;
    border-radius: clamp(4px, 1cqi, 7px);
    transition: box-shadow .15s ease;
}

.gq-form .gq-whats:focus-within {
    box-shadow: 0 0 0 3px rgba(37, 42, 51, .16);
}

.gq-form .gq-whats__tag {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 12px;
    padding: 0 clamp(12px, 3cqi, 21px);
    border: 1px solid #E1E1E3;
    border-right-width: 0;
    border-radius: 4px 0 0 4px;
    border-radius: clamp(4px, 1cqi, 7px) 0 0 clamp(4px, 1cqi, 7px);
    background: #9CA0A8;
    font-size: 11.5px;
    font-size: clamp(11.5px, 2.77cqi, 19.5px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #FFFFFF;
    cursor: text;
    -webkit-user-select: none;
    user-select: none;
    transition: border-color .15s ease;
}

.gq-form .gq-whats__input {
    flex: 1 1 0%;
    width: auto;
    height: 100%;
    border-left-width: 0;
    border-radius: 0 4px 4px 0;
    border-radius: 0 clamp(4px, 1cqi, 7px) clamp(4px, 1cqi, 7px) 0;
}

.gq-form .gq-whats__input:focus,
.gq-form .gq-whats__input.is-invalid:focus {
    box-shadow: none; /* o anel de foco fica no grupo inteiro (etiqueta + campo) */
}

/* A borda do grupo muda inteira (etiqueta + campo) onde o navegador tem :has() */
.gq-form .gq-whats:has(.gq-whats__input:focus) .gq-whats__tag {
    border-color: #252A33;
}

.gq-form .gq-whats:has(.gq-whats__input.is-invalid) .gq-whats__tag {
    border-color: #C0392B;
}

.gq-form .gq-whats:has(.gq-whats__input.is-invalid):focus-within {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .2);
}

.gq-form .gq-error {
    display: block;
    margin-top: 6px;
    padding: 0 2px;
    font-size: 12px;
    font-size: clamp(12px, 2.5cqi, 17.5px);
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    color: #9A2A1F; /* tom mais escuro do vermelho de erro: legível sobre o painel cinza */
}

.gq-form .gq-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    height: clamp(56px, 12cqi, 84px);
    margin-top: 2px;
    margin-top: clamp(2px, 1.3cqi, 9px);
    padding: 0 8px;
    border-radius: 4px;
    border-radius: clamp(4px, 1cqi, 7px);
    background: #9A1A28 linear-gradient(90deg, #722B33 0%, #9A1A28 46%, #9A1A28 100%);
    font-size: 17px;
    font-size: clamp(17px, 4.26cqi, 30px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    transition: filter .15s ease;
}

.gq-form .gq-btn,
.gq-form .gq-btn * {
    font-family: 'Lato', 'Open Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.gq-form .gq-btn__label {
    display: block;
    white-space: nowrap;
}

@media (hover: hover) {
    .gq-form .gq-btn:hover {
        filter: brightness(1.1);
        color: #FFFFFF;
    }
}

.gq-form .gq-btn:active {
    filter: brightness(.94);
}

.gq-form .gq-btn:focus-visible {
    outline: 3px solid #252A33;
    outline-offset: 2px;
}

.gq-form .gq-btn.is-loading {
    cursor: progress;
    pointer-events: none;
    filter: none;
}

.gq-form .gq-btn.is-loading .gq-btn__label {
    visibility: hidden; /* some o texto, fica o tamanho do botão */
}

.gq-form .gq-btn__spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
}

.gq-form .gq-btn.is-loading .gq-btn__spinner {
    display: block;
    animation: gq-gira .7s linear infinite;
}

.gq-form .gq-hint,
.gq-form .gq-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-height: clamp(40px, 8.4cqi, 59px);
    padding: 8px 10px;
    border-radius: 4px;
    border-radius: clamp(4px, 1.2cqi, 8.5px);
    background: rgba(255, 255, 255, .65);
    font-size: 12.5px;
    font-size: clamp(12.5px, 2.99cqi, 21px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #7E1421;
}

/* A seta vai dentro do texto: se a frase quebrar em duas linhas, ela acompanha a primeira */
.gq-form .gq-hint__texto {
    display: block;
    text-wrap: balance;
}

.gq-form .gq-hint__seta {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin: -.14em .6em 0 0;
    vertical-align: middle;
}

.gq-form .gq-feedback {
    display: block;
    padding: 11px 12px;
}

.gq-form .gq-feedback__frase {
    display: inline-block;
}

.gq-form .gq-feedback.is-ok {
    background: #DFF3EA;
    color: #136A49;
}

.gq-form .gq-feedback.is-erro {
    background: #FBE7E4;
    color: #9A2A1F;
}

.gq-form .gq-privacy {
    display: block;
    padding: 0 2px;
    font-size: 11px;
    font-size: clamp(10.5px, 2.34cqi, 16.5px);
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    text-wrap: balance;
    color: #4B5563;
}

.gq-form .gq-privacy a,
.gq-form .gq-privacy a:visited {
    color: #4B5563;
    text-decoration: underline;
    text-decoration-thickness: max(1px, .09em);
    text-underline-offset: .18em;
    white-space: nowrap; /* o link não se parte entre duas linhas */
    cursor: pointer;
}

.gq-form .gq-privacy a:hover,
.gq-form .gq-privacy a:focus {
    color: #252A33;
    text-decoration: underline;
}

.gq-form .gq-privacy a:focus-visible {
    outline: 2px solid #252A33;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Até 449px de painel a linha de privacidade ainda pode quebrar em duas (em 10.5px, no Windows,
   só cabe inteira de 440px para cima): se vai quebrar, não precisa encolher */
@container gq-form (max-width: 449px) {
    .gq-form .gq-privacy {
        font-size: 11px;
    }
}

/* Painel estreito (celular pequeno ou coluna apertada): o número inteiro e o texto do botão precisam caber.
   A regra por largura de tela cobre os navegadores sem container queries. */
@media (max-width: 359px) {
    .gq-form .gq-form__corpo {
        padding: 14px;
    }

    .gq-form .gq-input {
        padding: 0 12px;
    }

    .gq-form .gq-whats__tag {
        padding: 0 9px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .gq-form .gq-btn {
        font-size: 15px;
    }
}

@container gq-form (max-width: 300px) {
    .gq-form .gq-form__corpo {
        padding: 14px;
    }

    .gq-form .gq-input {
        padding: 0 12px;
    }

    .gq-form .gq-whats__tag {
        padding: 0 9px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .gq-form .gq-btn {
        font-size: 15px;
    }
}

/* Tela com menos de 320px (dobrável fechado, página ampliada): margens mínimas para o número e o
   texto do botão caberem. Fica depois do @container de 300px: as regras têm o mesmo peso e vale a última. */
@media (max-width: 319px) {
    .gq-form .gq-form__corpo {
        padding: 10px;
    }

    .gq-form .gq-input {
        padding: 0 8px;
    }

    .gq-form .gq-whats__tag {
        padding: 0 5px;
        font-size: 10px;
    }

    .gq-form .gq-btn {
        font-size: 14px;
    }
}

/* ==========================================================================
   Pop-up (etapa 2) — celular: tela cheia
   ========================================================================== */

.gq-modal {
    /* Ritmo e tipografia. Estes valores valem onde não há unidade dvh;
       logo abaixo eles passam a acompanhar a altura e a largura da tela. */
    --gq-pad-x: 24px;
    --gq-pad-top: 16px;
    --gq-pad-bottom: 20px;
    --gq-bar-h: 8px;
    --gq-bar-mt: 12px;
    --gq-count-mt: 18px;
    --gq-title-mt: 8px;
    --gq-title-mb: 18px;
    --gq-option-h: 50px;
    --gq-option-gap: 10px;
    --gq-control-h: 52px;
    --gq-row-gap: 16px;
    --gq-cta-h: 54px;
    --gq-foot-pt: 12px;
    --gq-check: 80px;
    --gq-fim-mt: 36px;
    --gq-fim-title-mt: 22px;

    --gq-fs-nota: 15px;   /* aviso do topo, Voltar e rótulos */
    --gq-fs-conta: 14px;  /* "Pergunta X de 6" */
    --gq-fs-titulo: 24px;
    --gq-fs-campo: 17px;
    --gq-fs-opcao: 16px;
    --gq-fs-botao: 17px;
    --gq-fs-dica: 14px;
    --gq-fs-fim: 26px;
    --gq-fs-texto: 17px;
    --gq-fs-link: 16px;

    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: #FFFFFF;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: manipulation;
    opacity: 0;
    transition: opacity .2s ease;
}

/* Sem dvh, top/bottom:0 já acompanha a área visível; 100vh no iOS antigo passaria da tela.
   Com dvh, espaços e alturas seguem a altura visível (a barra do navegador conta) e as
   fontes seguem a largura: em 390x844 o resultado é o do layout aprovado. */
@supports (height: 100dvh) {
    .gq-modal {
        --gq-pad-x: clamp(20px, calc(20vw - 52px), 30px); /* 20px em 360, 26px em 390, 30px de 410 para cima */
        --gq-pad-top: clamp(12px, 2.4dvh, 20px);
        --gq-pad-bottom: clamp(14px, 3.9dvh, 33px);
        --gq-bar-h: clamp(6px, 1.15dvh, 10px);
        --gq-bar-mt: clamp(8px, 2.25dvh, 19px);
        --gq-count-mt: clamp(12px, 3.4dvh, 29px);
        --gq-title-mt: clamp(4px, 1.45dvh, 12px);
        --gq-title-mb: clamp(12px, 3dvh, 25px);
        --gq-option-h: clamp(48px, 7dvh, 59px);
        --gq-option-gap: clamp(8px, 1.6dvh, 13.5px);
        --gq-control-h: clamp(48px, 6.4dvh, 54px);
        --gq-row-gap: clamp(12px, 2.6dvh, 22px);
        --gq-cta-h: clamp(50px, 7.35dvh, 62px);
        --gq-foot-pt: clamp(8px, 1.9dvh, 16px);
        --gq-check: clamp(64px, 11.4dvh, 96px);
        --gq-fim-mt: clamp(20px, 7.5dvh, 63px);
        --gq-fim-title-mt: clamp(14px, 3.7dvh, 31px);

        --gq-fs-nota: clamp(14px, 4.18vw, 17px);
        --gq-fs-conta: clamp(13px, 4.05vw, 16px);
        --gq-fs-titulo: clamp(22px, 6.87vw, 30px);
        --gq-fs-campo: clamp(16px, 4.72vw, 19px);
        --gq-fs-opcao: clamp(15px, 4.1vw, 17.5px);
        --gq-fs-botao: clamp(16px, 4.9vw, 20px);
        --gq-fs-dica: clamp(13px, 4.05vw, 16px);
        --gq-fs-fim: clamp(25px, 7.85vw, 33px);
        --gq-fs-texto: clamp(15px, 4.72vw, 19px);
        --gq-fs-link: clamp(14px, 4.44vw, 18px);

        bottom: auto;
        height: 100dvh;
    }
}

.gq-modal.is-open {
    opacity: 1;
}

.gq-modal .gq-card {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: var(--gq-pad-top) var(--gq-pad-x) var(--gq-pad-bottom);
    padding: calc(var(--gq-pad-top) + env(safe-area-inset-top, 0px)) calc(var(--gq-pad-x) + env(safe-area-inset-right, 0px)) calc(var(--gq-pad-bottom) + env(safe-area-inset-bottom, 0px)) calc(var(--gq-pad-x) + env(safe-area-inset-left, 0px));
    background: #FFFFFF;
}

/* Topo: aviso ou Voltar à esquerda, X à direita. Linha de 32px com áreas de toque de 44px. */
.gq-modal .gq-top {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
}

.gq-modal .gq-top__left {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    height: 32px;
}

.gq-modal .gq-note {
    display: block;
    font-size: var(--gq-fs-nota);
    font-weight: 400;
    line-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #5F6672;
}

.gq-modal .gq-back {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    height: 44px;
    margin: -6px 0 -6px -10px;
    padding: 0 12px 0 10px;
    border-radius: 8px;
    background: transparent;
    font-size: var(--gq-fs-nota);
    font-weight: 400;
    line-height: 1;
    color: #5F6672;
    cursor: pointer;
    touch-action: manipulation;
    transition: color .15s ease, background-color .15s ease;
}

.gq-modal .gq-back__seta {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 14px;
    margin-right: 10px;
}

.gq-modal .gq-close {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -6px -14px -6px 8px;
    border-radius: 50%;
    background: transparent;
    color: #8B93A1;
    cursor: pointer;
    touch-action: manipulation;
    transition: color .15s ease, background-color .15s ease;
}

.gq-modal .gq-close__x {
    display: block;
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .gq-modal .gq-back:hover,
    .gq-modal .gq-close:hover {
        background: #F3F4F6;
        color: #252A33;
    }
}

.gq-modal .gq-back:focus-visible,
.gq-modal .gq-close:focus-visible {
    outline: 2px solid #252A33;
    outline-offset: -2px;
    color: #252A33;
}

.gq-modal .gq-progress {
    display: block;
    flex: 0 0 var(--gq-bar-h);
    width: 100%;
    height: var(--gq-bar-h);
    margin-top: var(--gq-bar-mt);
    border-radius: 999px;
    background: #ECEDF0;
    overflow: hidden;
}

.gq-modal .gq-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #9A1A28;
    transition: width .3s ease, background-color .3s ease;
}

.gq-modal.is-done .gq-progress__bar {
    background: #1E9466;
}

/* Todas as telas ocupam a mesma célula: o cartão fica com a altura da maior e não "pula" ao trocar */
.gq-modal .gq-steps {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    min-height: 0;
}

.gq-modal .gq-step {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.gq-modal .gq-step.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: gq-entra .2s ease both;
}

.gq-modal[data-gq-dir="volta"] .gq-step.is-active {
    animation-name: gq-entra-volta;
}

.gq-modal .gq-count {
    display: block;
    flex: 0 0 auto;
    margin-top: var(--gq-count-mt);
    font-size: var(--gq-fs-conta);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7E1421;
}

.gq-modal .gq-title {
    display: block;
    flex: 0 0 auto;
    margin: var(--gq-title-mt) 0 var(--gq-title-mb);
    font-size: var(--gq-fs-titulo);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.012em;
    color: #252A33;
}

/* O conteúdo ocupa o espaço que sobra e rola se faltar altura; a folga lateral é para o anel de foco */
.gq-modal .gq-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 -4px;
    padding: 2px 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.gq-modal .gq-foot {
    display: block;
    flex: 0 0 auto;
    padding-top: var(--gq-foot-pt);
    transition: box-shadow .15s ease;
}

/* Ainda há conteúdo abaixo da dobra: sombra discreta sobre o rodapé */
.gq-modal .gq-step.tem-mais .gq-foot {
    box-shadow: 0 -1px 0 #ECEDF0, 0 -14px 14px -14px rgba(37, 42, 51, .18);
}

/* ---------- Pergunta 1: estado + cidade ---------- */

.gq-modal .gq-rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--gq-row-gap);
}

.gq-modal .gq-row {
    display: block;
}

.gq-modal .gq-label {
    display: block;
    margin-bottom: 10px;
    font-size: var(--gq-fs-nota);
    font-weight: 600;
    line-height: 1.25;
    color: #363C47;
}

.gq-modal .gq-control {
    display: block;
    width: 100%;
    height: var(--gq-control-h);
    padding: 0 20px;
    border: 2px solid #E2E3E7;
    border-radius: 12px;
    background-color: #FFFFFF;
    font-size: var(--gq-fs-campo);
    font-weight: 400;
    line-height: 22px;
    text-align: left;
    color: #252A33;
    caret-color: #9A1A28;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.gq-modal .gq-control::placeholder {
    font-weight: 400;
    line-height: 22px;
    color: #8D939D;
    opacity: 1;
}

.gq-modal .gq-control:focus {
    border-color: #252A33;
    box-shadow: 0 0 0 4px rgba(37, 42, 51, .1);
}

.gq-modal .gq-select {
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M2 2l4 4 4-4' stroke='%238B93A1' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 19px center;
    background-size: 12px 8px;
    line-height: normal;
    cursor: pointer;
}

.gq-modal .gq-select.is-empty {
    color: #8D939D;
}

.gq-modal .gq-select option {
    background-color: #FFFFFF;
    font-weight: 400;
    color: #252A33;
}

.gq-modal .gq-next,
.gq-modal .gq-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--gq-cta-h);
    padding: 0 16px;
    border-radius: 14px;
    font-size: var(--gq-fs-botao);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    transition: background-color .15s ease, opacity .15s ease;
}

.gq-modal .gq-next {
    background: #252A33;
}

.gq-modal .gq-next:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Os estados do link repetem a cor: o Bootstrap pinta a:hover de azul */
.gq-modal .gq-primary,
.gq-modal .gq-primary:visited,
.gq-modal .gq-primary:hover,
.gq-modal .gq-primary:focus,
.gq-modal .gq-primary:active {
    background: #9A1A28;
    color: #FFFFFF;
    text-decoration: none;
}

@media (hover: hover) {
    .gq-modal .gq-next:not(:disabled):hover {
        background: #363C47;
    }

    .gq-modal .gq-primary:hover {
        background: #861623;
    }
}

.gq-modal .gq-next:not(:disabled):active {
    background: #1B1F27;
}

.gq-modal .gq-primary:active {
    background: #7E1421;
}

.gq-modal .gq-next:focus-visible,
.gq-modal .gq-primary:focus-visible {
    outline: 3px solid rgba(37, 42, 51, .45);
    outline-offset: 2px;
}

/* Carregando (só aparece se a pergunta de região for a última): o texto dá lugar ao spinner */
.gq-modal .gq-next.is-loading {
    pointer-events: none;
}

.gq-modal .gq-next.is-loading .gq-next__label {
    visibility: hidden;
}

.gq-modal .gq-next.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: gq-gira .7s linear infinite;
}

/* ---------- Perguntas 2 a 6: opções ---------- */

.gq-modal .gq-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--gq-option-gap);
}

.gq-modal .gq-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--gq-option-h);
    padding: 8px 16px 8px 18px;
    border: 2px solid #E2E3E7;
    border-radius: 14px;
    background: #FFFFFF;
    font-size: var(--gq-fs-opcao);
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    color: #252A33;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .15s ease, border-color .15s ease;
}

/* Texto normal e texto em negrito na mesma célula: a caixa já nasce com a altura do negrito.
   O negrito leva um aperto mínimo entre as letras para ocupar a mesma largura do texto normal:
   marcar a opção não muda as quebras de linha. */
.gq-modal .gq-option__text {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    overflow-wrap: break-word;
    text-wrap: balance; /* opção longa quebra em duas linhas parecidas, sem palavra sozinha */
}

.gq-modal .gq-option__text > span,
.gq-modal .gq-option__text::after {
    grid-column: 1;
    grid-row: 1;
}

.gq-modal .gq-option__text::after {
    content: attr(data-text);
    font-weight: 600;
    letter-spacing: -.012em;
    visibility: hidden;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* O círculo marcado cresce por transform: nada em volta se mexe */
.gq-modal .gq-option__radio {
    position: relative;
    display: block;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin: 0 1px 0 10px;
    border: 2px solid #C9CCD2;
    border-radius: 50%;
    background: #FFFFFF;
    transition: border-color .15s ease, transform .15s ease;
}

.gq-modal .gq-option__radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: #9A1A28;
    transform: scale(0);
    transition: transform .15s ease;
}

@media (hover: hover) {
    .gq-modal .gq-option:hover {
        border-color: #B4B8C1;
        background: #FAFAFB;
    }
}

.gq-modal .gq-option:active {
    background: #F3F4F6;
}

.gq-modal .gq-option:focus-visible {
    outline: 2px solid #252A33;
    outline-offset: 2px;
}

.gq-modal .gq-option.is-selected,
.gq-modal .gq-option.is-selected:hover,
.gq-modal .gq-option.is-selected:active {
    border-color: #9A1A28;
    background: #F7E6E8;
    font-weight: 600;
    letter-spacing: -.012em;
}

.gq-modal .gq-option.is-selected .gq-option__radio {
    border-color: #9A1A28;
    transform: scale(1.2);
}

.gq-modal .gq-option.is-selected .gq-option__radio::after {
    transform: scale(1);
}

/* Última resposta sendo gravada: o rádio vira indicador de carregando */
.gq-modal .gq-option.is-loading .gq-option__radio {
    border-color: rgba(154, 26, 40, .25);
    border-top-color: #9A1A28;
    background: transparent;
    animation: gq-gira .7s linear infinite;
}

.gq-modal .gq-option.is-loading .gq-option__radio::after {
    display: none;
}

.gq-modal .gq-step.is-busy .gq-option {
    pointer-events: none;
}

.gq-modal .gq-step.is-busy .gq-option:not(.is-selected) {
    opacity: .55;
}

.gq-modal .gq-tip {
    display: block;
    padding: 2px 0;
    font-size: var(--gq-fs-dica);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    color: #8D939D;
}

/* ---------- Conclusão ---------- */

.gq-modal .gq-fim {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.gq-modal .gq-fim__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--gq-fim-mt);
    text-align: center;
}

.gq-modal .gq-check {
    display: flex;
    flex: 0 0 var(--gq-check);
    align-items: center;
    justify-content: center;
    width: var(--gq-check);
    height: var(--gq-check);
    border-radius: 50%;
    background: #E2F3EB;
    color: #1E9466;
}

.gq-modal .gq-step.is-active .gq-check {
    animation: gq-pop .42s cubic-bezier(.2, .9, .3, 1.2) .08s both;
}

.gq-modal .gq-check__icone {
    display: block;
    width: 42%;
    height: 42%;
}

.gq-modal .gq-fim__title {
    display: block;
    max-width: 100%;
    margin-top: var(--gq-fim-title-mt);
    font-size: var(--gq-fs-fim);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-wrap: balance; /* nome comprido: duas linhas equilibradas, sem "!" sozinho */
    overflow-wrap: break-word;
    color: #252A33;
}

/* Largura em em: as quebras de linha ficam as do layout aprovado em qualquer tamanho de fonte */
.gq-modal .gq-fim__text {
    display: block;
    width: 100%;
    max-width: 18em;
    margin-top: 18px;
    font-size: var(--gq-fs-texto);
    font-weight: 400;
    line-height: 1.36;
    text-align: center;
    color: #5F6672;
}

.gq-modal .gq-fim__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gq-modal .gq-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 8px 0 -10px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    font-size: var(--gq-fs-link);
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #5F6672;
    cursor: pointer;
    touch-action: manipulation;
}

@media (hover: hover) {
    .gq-modal .gq-link:hover {
        color: #252A33;
    }
}

.gq-modal .gq-link:focus-visible {
    outline: 2px solid #252A33;
    outline-offset: 0;
}

/* Títulos recebem foco só por script (leitor de tela anuncia a nova pergunta) */
.gq-modal .gq-card:focus,
.gq-modal .gq-title:focus,
.gq-modal .gq-fim__title:focus {
    outline: 0;
}

/* Celular largo / paisagem ainda em tela cheia: a coluna de conteúdo não estica demais */
@media (max-width: 767px) {
    .gq-modal .gq-card > * {
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }
}

/* ==========================================================================
   Pop-up — tablet e desktop: cartão centralizado sobre a página escurecida
   ========================================================================== */

@media (min-width: 768px) {
    .gq-modal {
        --gq-pad-x: 36px;
        --gq-pad-top: 24px;
        --gq-pad-bottom: 28px;

        --gq-fs-nota: 16px;
        --gq-fs-conta: 15px;
        --gq-fs-titulo: 26px;
        --gq-fs-campo: 18px;
        --gq-fs-opcao: 17px;
        --gq-fs-botao: 18px;
        --gq-fs-dica: 15px;
        --gq-fs-fim: 30px;
        --gq-fs-texto: 18px;
        --gq-fs-link: 17px;

        align-items: center;
        padding: 24px;
        background: rgba(22, 26, 33, .62);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    .gq-modal .gq-card {
        flex: 0 0 auto;
        width: 480px;
        height: auto;
        min-height: 0;
        min-height: min(660px, 100%);
        max-height: 100%; /* = altura da tela menos os 48px de respiro do fundo */
        padding: var(--gq-pad-top) var(--gq-pad-x) var(--gq-pad-bottom);
        border-radius: 22px;
        box-shadow: 0 32px 80px rgba(9, 12, 18, .4), 0 6px 18px rgba(9, 12, 18, .18);
        transform: translate3d(0, 10px, 0);
        transition: transform .24s ease;
    }

    .gq-modal.is-open .gq-card {
        transform: none;
    }
}

@supports (height: 100dvh) {
    @media (min-width: 768px) {
        .gq-modal {
            --gq-pad-top: clamp(16px, 3.1dvh, 28px);
            --gq-pad-bottom: clamp(16px, 3.6dvh, 32px);
        }
    }
}

/* Tablet: cartão um pouco maior, com a letra do celular grande */
@media (min-width: 768px) and (max-width: 1099px) {
    .gq-modal {
        --gq-pad-x: 40px;
        --gq-fs-nota: 17px;
        --gq-fs-conta: 16px;
        --gq-fs-titulo: 28px;
        --gq-fs-campo: 19px;
        --gq-fs-opcao: 17.5px;
        --gq-fs-botao: 19px;
        --gq-fs-dica: 16px;
        --gq-fs-fim: 31px;
        --gq-fs-texto: 19px;
        --gq-fs-link: 18px;
    }

    .gq-modal .gq-card {
        width: 540px;
        min-height: min(700px, 100%);
    }
}

/* Notebook baixo ou tablet deitado com a barra do navegador: menos respiro em volta do cartão */
@media (min-width: 768px) and (max-height: 699px) {
    .gq-modal {
        padding: 12px;
    }
}

/* ==========================================================================
   Pop-up — pouca altura (celular pequeno com a barra do navegador, ou deitado):
   aperta o ritmo para as 6 opções caberem sem rolar
   ========================================================================== */

@media (max-height: 599px) {
    .gq-modal {
        --gq-pad-top: 12px;
        --gq-pad-bottom: 14px;
        --gq-bar-h: 6px;
        --gq-bar-mt: 8px;
        --gq-count-mt: 12px;
        --gq-title-mt: 4px;
        --gq-title-mb: 12px;
        --gq-option-h: 46px;
        --gq-option-gap: 8px;
        --gq-control-h: 48px;
        --gq-row-gap: 12px;
        --gq-cta-h: 48px;
        --gq-foot-pt: 10px;
        --gq-check: 56px;
        --gq-fim-mt: 10px;
        --gq-fim-title-mt: 12px;

        --gq-fs-nota: 14px;
        --gq-fs-conta: 12px;
        --gq-fs-titulo: 20px;
        --gq-fs-campo: 16px;
        --gq-fs-opcao: 15px;
        --gq-fs-botao: 16px;
        --gq-fs-dica: 13px;
        --gq-fs-fim: 22px;
        --gq-fs-texto: 15px;
        --gq-fs-link: 14px;
    }

    .gq-modal .gq-option {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .gq-modal .gq-label {
        margin-bottom: 6px;
    }

    .gq-modal .gq-fim__text {
        max-width: none;
        margin-top: 6px;
    }
}

/* Baixo e largo (celular deitado): estado e cidade lado a lado, opções em duas colunas.
   De 520px de altura para cima (notebook com a tela ampliada, tablet deitado) as 6 opções
   cabem empilhadas: vale a coluna única das outras telas. */
@media (max-height: 519px) and (min-width: 520px) {
    .gq-modal .gq-rows {
        grid-template-columns: 148px minmax(0, 1fr);
        column-gap: 12px;
    }

    .gq-modal .gq-options {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 8px;
    }

    /* coluna estreita: menos margem interna para o texto caber em uma linha */
    .gq-modal .gq-option {
        padding-right: 12px;
        padding-left: 14px;
    }

    .gq-modal .gq-option__radio {
        margin-left: 8px;
    }
}

@media (min-width: 768px) and (max-height: 599px) {
    .gq-modal {
        --gq-pad-top: 16px;
        --gq-pad-bottom: 16px;
        padding: 12px;
    }
}

/* Cartão largo só enquanto as opções estão em duas colunas */
@media (min-width: 768px) and (max-height: 519px) {
    .gq-modal {
        --gq-pad-x: 28px;
    }

    .gq-modal .gq-card {
        width: 680px;
        min-height: 0;
    }
}

/* Celular deitado com a barra do navegador à vista (menos de 360px de altura): margens mínimas,
   para as 3 linhas de opções caberem; o que ainda faltar rola dentro da pergunta */
@media (max-height: 359px) {
    .gq-modal {
        --gq-pad-top: 8px;
        --gq-pad-bottom: 10px;
        --gq-bar-h: 5px;
        --gq-bar-mt: 4px;
        --gq-count-mt: 8px;
        --gq-title-mt: 2px;
        --gq-title-mb: 8px;
        --gq-option-h: 44px;
        --gq-option-gap: 6px;
        --gq-control-h: 44px;
        --gq-cta-h: 44px;
        --gq-foot-pt: 6px;
        --gq-check: 44px;
        --gq-fim-mt: 4px;
        --gq-fim-title-mt: 6px;
        --gq-fs-titulo: 18px;
        --gq-fs-fim: 20px;
    }

    .gq-modal .gq-top,
    .gq-modal .gq-top__left {
        flex-basis: 28px;
        height: 28px;
    }

    .gq-modal .gq-note {
        line-height: 28px;
    }

    .gq-modal .gq-back,
    .gq-modal .gq-close {
        margin-top: -8px;
        margin-bottom: -8px;
    }

    .gq-modal .gq-option {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .gq-modal .gq-label {
        margin-bottom: 4px;
    }

    .gq-modal .gq-link {
        margin-top: 2px;
    }
}

@media (min-width: 768px) and (max-height: 359px) {
    .gq-modal {
        --gq-pad-top: 10px;
        --gq-pad-bottom: 10px;
        padding: 6px;
    }
}

/* Teclado virtual aberto (classe posta pelo JS): mesma compactação, para o botão continuar à vista.
   Só de 360px de altura para cima: abaixo disso já vale a compactação maior do celular deitado. */
@media (min-height: 360px) {
    .gq-modal.is-teclado {
        --gq-pad-top: 12px;
        --gq-pad-bottom: 12px;
        --gq-bar-mt: 8px;
        --gq-count-mt: 12px;
        --gq-title-mt: 4px;
        --gq-title-mb: 12px;
        --gq-control-h: 48px;
        --gq-row-gap: 12px;
        --gq-cta-h: 48px;
        --gq-foot-pt: 10px;
        --gq-fs-titulo: 20px;
    }

    .gq-modal.is-teclado .gq-label {
        margin-bottom: 6px;
    }
}

/* Teclado aberto e pouca altura à vista (celular deitado, tela de 320x568): em vez de espremer só os
   campos, a pergunta inteira rola e o campo em foco fica inteiro à vista (classe posta pelo JS) */
.gq-modal.is-apertado .gq-step.is-active {
    margin: 0 -4px;
    padding: 0 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.gq-modal.is-apertado .gq-body {
    flex-shrink: 0;
}

/* ==========================================================================
   Página travada enquanto o pop-up está aberto
   ========================================================================== */

html.gq-lock,
html.gq-lock body {
    overflow: hidden !important;
}

/* ==========================================================================
   Menos movimento
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .gq-modal,
    .gq-modal .gq-card,
    .gq-modal .gq-progress__bar,
    .gq-modal .gq-option,
    .gq-modal .gq-option__radio,
    .gq-modal .gq-option__radio::after,
    .gq-form .gq-input,
    .gq-form .gq-whats,
    .gq-form .gq-whats__tag,
    .gq-form .gq-btn {
        transition: none;
    }

    .gq-modal .gq-card {
        transform: none;
    }

    .gq-modal .gq-step.is-active,
    .gq-modal .gq-step.is-active .gq-check {
        animation: none;
    }
}
