Pular para o conteúdo
Quiz* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }body { height: 100vh; background: #ffffff; display: flex; justify-content: center; align-items: center; }/* CONTAINER CENTRAL */ .quiz { width: 100%; max-width: 500px; padding: 20px; text-align: center; }/* PROGRESSO */ .progress-bar { width: 100%; height: 6px; background: #eee; border-radius: 10px; margin-bottom: 25px; overflow: hidden; }.progress { height: 100%; width: 0%; background: #28a745; transition: 0.4s; }/* PERGUNTA */ .question { font-size: 24px; font-weight: bold; margin-bottom: 25px; color: #333; }/* BOTÕES */ .btn { width: 100%; padding: 16px; margin: 10px 0; border: none; border-radius: 12px; font-size: 17px; font-weight: bold; cursor: pointer; background: #28a745; color: white; transition: 0.2s; }.btn:hover { transform: scale(1.03); background: #218838; }/* RESULTADO */ .result h2 { color: #28a745; margin-bottom: 15px; }.result p { margin-bottom: 20px; color: #555; }/* ANIMAÇÃO */ .fade { animation: fadeIn 0.3s ease; }@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
Você precisa de dinheiro rápido? 💸
const quiz = [ { question: “Você está negativado? 😔”, answers: [“Sim”, “Não”] }, { question: “Qual valor você precisa? 💰”, answers: [“Até R$1.000”, “R$1.000 a R$5.000”, “Mais de R$5.000”] }, { question: “O que você procura?”, answers: [“Empréstimo”, “Cartão de crédito”, “Os dois”] }, { question: “Quer aprovação ainda hoje? ⚡”, answers: [“Sim, agora”, “Ainda hoje”] } ];let current = 0;function next() { current++; updateProgress();if (current { html += ``; });document.getElementById(“answers”).innerHTML = html; } else { showResult(); } }function updateProgress() { let percent = (current / quiz.length) * 100; document.getElementById(“progress”).style.width = percent + “%”; }function showResult() { document.querySelector(“.quiz”).innerHTML = `

Aprovado! 🎉

Encontramos opções ideais para você 👇

`; }function redirect() { window.location.href = “https://SEU-LINK-AQUI.com”; }