/* =========================================
   PÁGINA NOVA 1 — CONFIGURAÇÕES GERAIS
   ========================================= */

:root {
  /* CORES */
  --fundo-pagina: #f2f4eb;
  --fundo-conteudo: #ffffff;
  --cor-texto: #171717;
  --cor-texto-suave: #858585;
  --cor-borda-campo: #eeeeee;
  --cor-verde-botao: #0066CC;
  --cor-verde-hover: #9d0e45;
  --cor-borda-outras: #0066CC;

  /* LARGURA DO CONTEÚDO */
  --largura-conteudo: 430px;

  /* CAMPOS */
  --raio-campo: 12px;
  --altura-campo: 44px;
  --espaco-entre-campos: 9px;
  --tamanho-texto-pergunta: 12px;

  /* BOTÃO */
  --raio-botao: 22px;
  --altura-botao: 40px;

  /* MASCOTE */
  --tamanho-mascote: 100px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--fundo-pagina);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fundo-pagina);
  color: var(--cor-texto);
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================================
   ÁREA PRINCIPAL
   ========================================= */

.pagina-pesquisa {
  position: relative;
  width: 100%;
  max-width: var(--largura-conteudo);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12px 18px 100px;
  overflow: visible;
  background: var(--fundo-conteudo);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* =========================================
   TEXTO SUPERIOR
   ========================================= */

.texto-topo {
  margin: 0;
  color: var(--cor-texto-suave);
  text-align: center;
  font-size: 13.5px;
  line-height: 18px;
  font-weight: 400;
}

/* =========================================
   MASCOTE
   ========================================= */

.mascote-area {
  width: 100%;
  height: 155px;
  padding-top: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mascote {
  display: block;
  width: var(--tamanho-mascote);
  height: var(--tamanho-mascote);
  object-fit: contain;
}

.mascote-fallback {
  font-size: 82px;
  line-height: 1;
}

/* =========================================
   FORMULÁRIO
   ========================================= */

.formulario-pesquisa {
  width: 100%;
  margin-top: 0;
}

.campo-pergunta {
  display: block;
  width: 100%;
  margin: 0 0 var(--espaco-entre-campos);
}

.campo-pergunta input {
  display: block;
  width: 100%;
  height: var(--altura-campo);
  padding: 0 15px;
  border: 1px solid var(--cor-borda-campo);
  border-radius: var(--raio-campo);
  outline: none;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 15.2px;
  font-weight: 300;
  box-shadow: 0 1px 4px rgb(0 0 0 / 3%);
  transition: border-color .2s, box-shadow .2s;
}

.campo-pergunta input::placeholder {
  color: #777;
  opacity: 1;
}

.campo-pergunta input:focus {
  border-color: #5c5e5d;
  box-shadow: 0 0 0 2px rgb(19 174 97 / 10%);
}





/* =========================================
   BOTÃO ENVIAR
   ========================================= */

.botao-enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--altura-botao);
  margin: 2px 0 0;
  padding: 14px 16px;
  border: none;
  border-radius: var(--raio-botao);
  background: var(--cor-verde-botao);
  color: #fff;
  font-family: inherit;
  font-size: 15.2px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}



.botao-enviar:disabled {
  opacity: .65;
  cursor: wait;
}

/* =========================================
   FAQ
   ========================================= */

.link-faq {
  display: block;
  margin-top: 20px;
  color: #111;
  text-align: center;
  text-decoration: none;
  font-size: 15.2px;
  line-height: 20px;
}

.link-faq:hover {
  text-decoration: underline;
}



/* =========================================
   RODAPÉ
   ========================================= */

.rodape-pagina {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.botao-outras {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--cor-borda-outras);
  border-radius: 22px;
  background: #fff;
  color: #0066CC;
  text-align: center;
  text-decoration: none;
  font-size: 15.2px;
  font-weight: 400;
}

.botao-outras:hover {
  background: #f8fbfd;
}

.bandeira {
  display: block;
  width: 65px;
  height: 29px;
  object-fit: contain;
}

.bandeira-fallback {
  font-size: 30px;
  line-height: 30px;
}

/* A barra preta era apenas uma simulação.
   Ela não deve aparecer na página real. */

.barra-navegacao-celular {
  display: none !important;
}

/* =========================================
   AVISO DE SUCESSO
   ========================================= */

.aviso-sucesso {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 10px;
  background: #157347;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 16%);
}

.aviso-sucesso[hidden],
[hidden] {
  display: none !important;
}

/* Acessibilidade */

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

/* =========================================
   PERSONALIZAÇÃO PARA PC
   ========================================= */

@media (min-width: 700px) {
  :root {
    --largura-conteudo: 430px;
    --tamanho-mascote: 90px;
    --altura-campo: 46px;
    --tamanho-texto-pergunta: 12px;
  }

  .pagina-pesquisa {
    padding: 18px 24px 110px;
  }

  .mascote-area {
    height: 170px;
    padding-top: 25px;
  }

  .rodape-pagina {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }
}

/* =========================================
   PERSONALIZAÇÃO PARA CELULAR
   ========================================= */

@media (max-width: 699px) {
  :root {
    --largura-conteudo: 100%;
    --tamanho-mascote: 60px;
    --altura-campo: 60px;
    --tamanho-texto-pergunta: 12px;
  }

  body {
    padding: 0;
  }

  .pagina-pesquisa {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 92dvh;
    padding: 8px 10px 100px;
  }

  .mascote-area {
    height: 300px;
    padding-top: 100px;
  }

  .rodape-pagina {
    right: 10px;
    bottom: 15px;
    left: 10px;
  }

  .botao-outras {
    min-height: 48px;
  }
}

/* =========================================
   AVISO SUPERIOR DO APLICATIVO
   ========================================= */

:root {
  /* MUDE ESTA COR PARA VERDE QUANDO QUISER */
  --cor-aviso-app: #287cff;

  --fundo-aviso-app: #ffffff;
  --borda-aviso-app: #d9d9d9;
}

/* Faixa no topo */
.aviso-app {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  width: 100%;
  min-height: 82px;
  padding: 12px 20px;

  background: var(--fundo-aviso-app);
  border: 1px solid var(--borda-aviso-app);
  border-bottom: 4px solid #eeeeee;

  color: var(--cor-aviso-app);
  font-family: Arial, Helvetica, sans-serif;
}

/* Ícone de download */
.aviso-app__icone {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;

  color: var(--cor-aviso-app);
}

/* Texto do aviso */
.aviso-app__texto {
  display: block;
  flex: 1;

  color: var(--cor-aviso-app);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

/* Ajustes para celular */
@media (max-width: 600px) {
  .aviso-app {
    min-height: 76px;
    gap: 8px;
    padding: 5px 14px;
  }

  .aviso-app__texto {
    font-size: 13px;
    line-height: 1.3;
  }

  .aviso-app__icone {
    flex-basis: 26px;
  }

  .aviso-app__icone svg {
    width: 21px;
    height: 26px;
  }
}
/* Mantém os ícones alinhados dentro dos campos */
.campo-com-icone {
    position: relative;
    width: 100%;
}

.campo-com-icone input {
    box-sizing: border-box;
    width: 100%;
    padding-right: 44px;
}

/* Ícones escondidos por padrão */
.icone-campo {
    display: none;

    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;
    padding: 4px;

    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;
    color: #858585;
    cursor: pointer;
}

/* Mostra o ícone quando o campo está selecionado */
.campo-com-icone:focus-within .icone-campo {
    display: flex;
}

/* Mesmo tamanho e aparência para os dois ícones */
.icone-campo svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== PERSONALIZAÇÃO DA JANELA ===== */
:root {
    --modal-largura: 260px;
    --modal-fundo: #ffffff;
    --modal-texto: #111111;
    --modal-texto-secundario: #666666;
    --modal-azul: #0066ff;
    --modal-divisoria: #dedede;
    --modal-raio: 9px;
    --modal-sombra: 0 4px 18px rgba(0, 0, 0, 0.18);

    --modal-titulo-tamanho: 14px;
    --modal-mensagem-tamanho: 11px;
    --modal-botao-tamanho: 12px;
    --modal-espaco-superior: 23px;
}

/* Fundo atrás da janela */
.modal-erro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.12);
}

/* Respeita o atributo hidden */
.modal-erro[hidden] {
    display: none !important;
}

/* Caixa principal */
.modal-erro__conteudo {
    width: min(var(--modal-largura), 100%);
    box-sizing: border-box;
    overflow: hidden;
    background: var(--modal-fundo);
    color: var(--modal-texto);
    border-radius: var(--modal-raio);
    box-shadow: var(--modal-sombra);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

/* Título */
.modal-erro__conteudo h2 {
    margin: 0;
    padding: var(--modal-espaco-superior) 12px 7px;
    font-size: var(--modal-titulo-tamanho);
    font-weight: 400;
    line-height: 1.3;
}

/* Mensagem */
.modal-erro__conteudo p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--modal-texto-secundario);
    font-size: var(--modal-mensagem-tamanho);
    line-height: 1.4;
}

/* Botões de ação */
.modal-erro__acao {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 9px 12px;
    border: 0;
    border-top: 1px solid var(--modal-divisoria);
    border-radius: 0;
    background: var(--modal-fundo);
    color: var(--modal-azul);
    font-family: inherit;
    font-size: var(--modal-botao-tamanho);
    font-weight: 400;
    cursor: pointer;
}

.modal-erro__acao:hover {
    background: #f6f8fc;
}

.modal-erro__acao:focus-visible {
    outline: 2px solid var(--modal-azul);
    outline-offset: -3px;
}

/* ===== CELULAR ===== */
@media (max-width: 900px) {
    :root {
        --modal-largura: 260px;
        --modal-titulo-tamanho: 14px;
        --modal-mensagem-tamanho: 11px;
        --modal-botao-tamanho: 12px;
        --modal-espaco-superior: 23px;
    }

    .modal-erro {
        padding: 14px;
    }
}

/* ===== TELAS MAIORES ===== */
@media (min-width: 601px) {
    :root {
        --modal-largura: 280px;
    }
}