:root{
  --bg-page:#eef9ff;
  --hero-bg: linear-gradient(120deg, #F2F7FA, #C7EAFF);
  --navy:#03123a;
  --text:#000000;
  --text-soft:#5d6876;
  --white:#ffffff;
  --btn-dark:#1f284c;
  --btn-border:#7e8a99;
  --card-bg:#ffffff;
  --card-blue: linear-gradient(135deg, #E2F2FF, #D4ECFF);
  --line:#d4d9df;
  --purple:#4a1e58;
  --blue:#1f71ef;
  --shadow-card:0 14px 34px rgba(10,27,52,0.12);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Inter", Arial, Helvetica, sans-serif;
}

body{
  background:var(--bg-page);
  color:var(--text);
  min-height:100vh;
}

button,
input{
  font-family:inherit;
}

.quiz-page{
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:48px 16px;
}

.quiz-shell{
  width:100%;
  max-width:560px;
}

.quiz-box,
.resultado{
  width:100%;
  background: #ffffff;
  border:1px solid #dbe3eb;
  border-radius:14px;
  padding:18px 18px 20px;
  position:relative;
  box-shadow:0 16px 40px rgba(10, 27, 52, 0.08);
}

.quiz-close{
  position:absolute;
  top:10px;
  right:12px;
  border:none;
  background:transparent;
  color:#b3b7bd;
  font-size:30px;
  cursor:pointer;
  line-height:1;
}

.quiz-mini-kicker{
  font-size:15px;
  font-weight:600;
  letter-spacing:0.6px;
  text-transform:uppercase;
  color:#8a919b;
  margin-bottom:6px;
}

.quiz-title{
  font-size:16px;
  font-weight:800;
  color:#111111;
  margin-bottom:4px;
}

.quiz-subtitle{
  font-size:12px;
  color:#9aa1aa;
  margin-bottom:12px;
}

.quiz-line{
  width:100%;
  height:1px;
  background:#bfd5f2;
  margin-bottom:16px;
}

.quiz-question{
  font-size:16px;
  font-weight:700;
  color:#1c2430;
  margin-bottom:8px;
}

.quiz-helper{
  font-size:12px;
  color:#7e8794;
  margin-bottom:14px;
}

.opcoes{
  display:grid;
  gap:7px;
  margin-bottom:14px;
}

.opcao{
  width:100%;
  min-height:40px;
  border:1px solid #c9d9ea;
  background:#f8fbff;
  border-radius:8px;
  padding:10px 12px;
  text-align:left;
  font-size:12px;
  color:#5f6874;
  cursor:pointer;
  transition:0.22s ease;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.opcao:hover{
  border-color:#9fc2e8;
  background:#ffffff;
  transform:translateY(-1px);
}

.opcao.selecionada{
  background:linear-gradient(90deg,rgba(143, 196, 255, 0.35) 0%, rgba(239, 190, 255, 0.33) 50%, rgba(181, 233, 255, 1) 100%);
  border-color:#d8b8e6;
  color:#4f5966;
  box-shadow:0 6px 14px rgba(192, 153, 225, 0.12);
}

.opcao-check{
  width:16px;
  height:16px;
  min-width:16px;
  border-radius:4px;
  border:1px solid #c7d4e3;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  color:transparent;
  transition:0.2s ease;
}

.opcao.selecionada .opcao-check{
  background:#081327;
  border-color:#081327;
  color:#ffffff;
}

.quiz-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
}

.quiz-step{
  font-size:12px;
  color:#9aa1aa;
}

.quiz-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-left:auto;
  align-items:center;
}

.quiz-btn-link{
  border:none;
  background:transparent;
  color:#7a88a0;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:0;
}

.quiz-btn-link::before{
  content:"←";
  font-size:12px;
}

.quiz-btn-next{
  min-height:26px;
  padding:0 14px;
  border:none;
  border-radius:999px;
  background:#081327;
  color:#ffffff;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:0.2s ease;
}

.quiz-btn-next:disabled{
  opacity:0.45;
  cursor:not-allowed;
}

.resultado{
  text-align:center;
  padding-top:22px;
  padding-bottom:22px;
}

.resultado-icon-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
}

.resultado-sparkles{
  color:#9b59ff;
  font-size:14px;
  line-height:1;
}

.resultado-icon{
  width:72px;
  height:60px;
  border-radius:6px;
  background:#081327;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  font-size:22px;
}

.resultado h2{
  font-size:17px;
  font-weight:700;
  color:#111111;
  margin-bottom:8px;
}

.resultado-texto{
  font-size:13px;
  line-height:1.5;
  color:#9aa1aa;
  max-width:360px;
  margin:0 auto 14px;
}

.resultado-curso-box{
  width:100%;
  max-width:370px;
  margin:0 auto 14px;
  background:linear-gradient(90deg, #F0D7FF, #E3B3FF, #86BAFF, #E7E9ED);
  border:1px solid #c8dbf5;
  border-radius:10px;
  padding:10px 12px;
  text-align:left;
}

.resultado-curso-box strong{
  display:block;
  font-size:13px;
  color:#111111;
  margin-bottom:4px;
}

.resultado-curso-box span{
  display:block;
  font-size:11px;
  color:#000000;
  line-height:1.45;
}

.resultado-acoes{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.resultado-btn{
  min-height:22px;
  padding:6px 14px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  border:none;
}

.resultado-btn-primario{
  background:#081327;
  color:#ffffff;
}

.resultado-btn-secundario{
  background:#ffffff;
  color:#7c8796;
  border:1px solid #d5dce4;
}

.escondido{
  display:none !important;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.25);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:16px;
  z-index:1000;
}

.modal-conteudo{
  position:relative;
  width:100%;
  max-width:360px;
  background:#f7f9fc;
  border:1px solid #e4ebf3;
  border-radius:12px;
  padding:22px 18px 24px;
  box-shadow:0 20px 45px rgba(4, 30, 66, 0.22);
}

.fechar{
  position:absolute;
  top:10px;
  right:12px;
  border:none;
  background:transparent;
  color:#9aa4b2;
  font-size:26px;
  cursor:pointer;
}

.modal-conteudo h3{
  font-size:20px;
  color:#111111;
  margin-bottom:14px;
}

.formulario{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.formulario input{
  height:42px;
  padding:0 12px;
  border:1px solid #d4e0ec;
  border-radius:8px;
  outline:none;
  background:#ffffff;
}

.formulario input:focus{
  border-color:#1473e6;
}

.btn-cadastro{
  height:42px;
  border:none;
  border-radius:999px;
  background:#081327;
  color:#ffffff;
  font-weight:700;
  cursor:pointer;
}

#mensagemCadastro{
  margin-top:12px;
  font-size:13px;
  font-weight:700;
  min-height:18px;
}

@media (max-width:640px){
  .quiz-page{
    padding:22px 10px;
  }

  .quiz-box,
  .resultado{
    padding:14px 14px 16px;
  }
}