:root {
  --teal: #00bbc1;
  --teal-escuro: #008aa1;
  --laranja: #ffab51;
  --texto: #00323b;
  --fundo: #eefafb;
  --borda: #bfe6e9;
  --erro: #b42318;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Cabeçalho */
.topo { background: var(--teal); color: var(--texto); border-radius: 0 0 26px 26px; padding: 20px 0 44px; }
.topo-int { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.pilula { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: 8px 22px; margin-bottom: 18px; min-height: 60px; }
.pilula img { display: block; height: 44px; width: auto; }
.topo h1 { margin: 0 0 8px; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.topo p { margin: 0; font-weight: 500; }

.conteudo { max-width: 560px; margin: -22px auto 0; padding: 0 16px 40px; position: relative; }

/* Cartões */
.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 18px; padding: 18px; margin: 0 0 14px; }
.cartao.destaque { border: 2px solid var(--laranja); }
.pergunta { display: block; margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.ajuda { margin: 0 0 10px; font-size: .9rem; color: #1f5a64; }
.parte { margin-top: 16px; }
.parte-nome { margin: 0 0 8px; font-weight: 600; font-size: .95rem; }
.parte-nome span { font-weight: 400; color: #1f5a64; }

/* Campos (16px evita zoom no iPhone) */
input[type="text"], input[type="password"], input[type="date"], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--texto);
  background: #fff; border: 1.5px solid var(--borda); border-radius: 12px; appearance: none;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #6b8f95; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--teal-escuro); box-shadow: 0 0 0 3px rgba(0, 187, 193, .35); }
.invalido { border-color: var(--erro) !important; }

/* Botões de 1 a 5 e de opção */
.escolha { display: flex; gap: 8px; }
.nota {
  flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 4px; font: inherit; font-size: 1.1rem; font-weight: 700;
  color: var(--texto); background: #fff; border: 1.5px solid var(--borda); border-radius: 12px; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.opcoes .nota { font-size: 1rem; }
.nota[aria-pressed="true"] { background: var(--teal); border-color: var(--teal-escuro); color: var(--texto); }
.nota:focus-visible, .enviar:focus-visible, .botao:focus-visible { outline: 3px solid var(--texto); outline-offset: 2px; }
.legenda { display: flex; justify-content: space-between; gap: 16px; margin: 8px 2px 0; font-size: .85rem; color: #1f5a64; }

/* Mensagens */
.erro { margin: 8px 0 0; color: var(--erro); font-size: .92rem; font-weight: 600; }
.erro-geral { text-align: center; margin: 0 0 12px; }
.aviso { background: #fff3e3; border: 1px solid var(--laranja); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: .92rem; }

/* Enviar */
.enviar {
  display: block; width: 100%; min-height: 56px; padding: 0 20px; font: inherit; font-size: 1.1rem; font-weight: 800;
  color: var(--texto); background: var(--laranja); border: 0; border-radius: 16px; cursor: pointer; touch-action: manipulation;
}
.enviar:disabled { opacity: .65; cursor: progress; }
.rodape { margin: 12px 0 0; text-align: center; font-size: .85rem; color: #1f5a64; }

/* Armadilha */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }


@media (min-width: 600px) {
  .topo { padding-top: 28px; }
  .topo h1 { font-size: 1.9rem; }
}

/* Chamada para o site */
.chamada { display: flex; flex-direction: column; gap: 10px; background: #00323b; border: 3px solid var(--laranja); border-radius: 18px; padding: 20px; margin: 0 0 14px; }
.chamada p, .chamada h2 { margin: 0; }
.chamada-linha { color: var(--laranja); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chamada-titulo { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; }
.chamada-texto { color: #d9f4f5; font-size: 15px; }
.chamada-botao {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px;
  background: var(--laranja); color: var(--texto); font-size: 17px; font-weight: 800; text-decoration: none;
  border-radius: 14px; touch-action: manipulation;
}
.chamada-botao:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.chamada-url { text-align: center; color: #a9d9dc; font-size: 13px; }
.chamada-botao.grande { min-height: 58px; font-size: 19px; border-radius: 16px; }
.chamada-botao.grande:focus-visible { outline-color: var(--texto); }

/* Agradecimento */
.chamada-duas { flex-direction: row; align-items: center; gap: 12px; }
.chamada-col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 0; min-width: 0; }
.chamada-duas img { flex: none; width: auto; height: 150px; border-radius: 12px; }
#obrigado .chamada-botao { margin-top: 4px; }
.obrigado-url { margin: 12px 0 0; text-align: center; color: #3d5a60; font-size: 14px; }
#titulo-obrigado { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
#titulo-obrigado:focus { outline: none; }
