:root{
  --brand:#080C24;
  --accent:#33468f;
  --bg:#f6f8fb;
  --text:#1f2937;
  --muted:#6b7280;
  --card:#ffffff;

  /* Assinatura */
  --vb-logo-h: 48px;
  --vb-gap: 10px;
  --vb-heart: #33468f;
  --vb-text: #fff;
  --vb-bg: #000;
}

*{box-sizing:border-box}

/* ===== BASE ===== */
html, body{
  margin:0;
  padding:0;
  min-height:100vh;
}

/* ===== BODY COM FUNDO ===== */
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    linear-gradient(rgba(0,0,0,.90), rgba(0,0,0,.90)),
    url('/assets/img/background/bg-pesquisa.webp') center / cover no-repeat fixed;
}

/* ===== CONTAINER PRINCIPAL ===== */
.wrapper{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

/* ===== CARD ===== */
.card{
  width:100%;
  max-width:840px;
  background:var(--card);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  overflow:hidden;
}

/* ===== HEADER ===== */
.header{
  padding:20px 20px 0;
  text-align:center;
}

.logo{
  width:140px;
  max-width:60%;
  height:auto;
  display:block;
  margin:8px auto 6px;
}

.title{
  margin:6px 0 4px;
  font-size:clamp(22px,3.2vw,28px);
  color:var(--brand);
  letter-spacing:.2px;
  font-weight:700;
}

.subtitle{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
}

/* ===== PROGRESSO ===== */
.progress{
  width:100%;
  background:#e5e7eb;
  height:8px;
  border-radius:999px;
  overflow:hidden;
  margin:8px 0 0;
}

.progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--accent),#25336c);
  transition:width .25s ease;
}

/* ===== CONTEÚDO ===== */
.content{
  padding:24px 20px 8px;
}

.step{
  display:none;
  animation:fade .25s ease;
}

.step.active{display:block}

@keyframes fade{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

/* ===== QUESTÕES ===== */
.q-title{
  font-size:clamp(18px,2.6vw,22px);
  margin:0 0 12px;
  color:var(--text);
  font-weight:700;
}

.q-help{
  margin:-6px 0 16px;
  color:var(--muted);
  font-size:14px;
}

/* ===== NPS ===== */
.nps{
  display:grid;
  grid-template-columns:repeat(11,1fr);
  gap:8px;
  margin:12px 0 6px;
}

.nps input{display:none}

.nps label{
  background:#f3f4f6;
  color:#111827;
  text-align:center;
  padding:12px 0;
  border-radius:10px;
  cursor:pointer;
  user-select:none;
  font-weight:600;
  transition:transform .06s ease, background .2s ease;
  border:1px solid #e5e7eb;
}

.nps input:checked + label{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--vb-text);
  transform:translateY(-1px);
}

.nps-scale{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

/* ===== ESTRELAS ===== */
.stars{
  display:inline-flex;
  gap:6px;
  font-size:34px;
  line-height:1;
  color: var(--accent);
}

.star{
  cursor:pointer;
  filter:grayscale(1) opacity(.4);
  transition:transform .06s ease, filter .2s ease;
}

.star.active{filter:none}
.star:hover{transform:scale(1.06)}

/* ===== CHIPS ===== */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 4px;
}

.chip{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#111827;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:all .15s ease;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.chip[data-checked="true"]{
  background:#e9f9ee;
  border-color:#34d399;
  color:#065f46;
}

.chip input{display:none}

/* ===== CAMPOS ===== */
textarea,
input[type="text"],
input[type="email"],
input[type="tel"]{
  width:100%;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:var(--vb-text);
  font-size:16px;
  outline:none;
  transition:border .2s ease, box-shadow .2s ease;
}

textarea:focus,
input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(247,140,47,.15);
}

textarea{
  min-height:110px;
  resize:vertical;
}

/* ===== GRID ===== */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media (max-width:640px){
  .grid-2{grid-template-columns:1fr}
}

/* ===== CONSENTIMENTO ===== */
.consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:8px 0 0;
  font-size:14px;
  color:#374151;
}

.consent input{margin-top:3px}

/* ===== NAVEGAÇÃO ===== */
.nav{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  padding:14px 20px 20px;
}

.left,.right{display:flex;gap:10px}

button{
  appearance:none;
  border:0;
  border-radius:12px;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
  background:var(--brand);
  color:var(--vb-text);
  transition:transform .06s ease, opacity .2s ease, background .2s ease;
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn-outline{
  background:var(--vb-text);
  color:var(--brand);
  border:2px solid var(--brand);
}

.btn-accent{
  background:var(--accent);
  color:var(--vb-text);
}

/* ===== RODAPÉ ===== */
.kbd{
  font:12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:var(--muted);
}

.foot-note{
  text-align:center;
  color:var(--muted);
  font-size:12px;
  padding:0 20px 20px;
}

/* ===== HONEYPOT ===== */
.hp{
  position:absolute;
  left:-9999px;
  opacity:0;
  height:0;
  width:0;
  overflow:hidden;
}

/* ===== ASSINATURA VIRTUA BRASIL ===== */
.vb-signature{
  background:var(--vb-bg);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:14px 0;
  line-height:1;
}

.vb-signature a{
  display:inline-flex;
  align-items:center;
  gap:var(--vb-gap);
  text-decoration:none;
}

.vb-signature span{
  color:var(--vb-text);
  font-size:14px;
}

.vb-signature img{
  height:var(--vb-logo-h);
  display:block;
}

.vb-heart{
  --size:10px;
  width:var(--size);
  height:var(--size);
  display:inline-block;
  position:relative;
  margin:0 2px;
  background:var(--vb-heart);
  transform:rotate(-45deg);
  border-radius:2px;
  vertical-align:middle;
  animation:vbPulse 1.2s ease-in-out infinite;
}

.vb-heart::before,
.vb-heart::after{
  content:"";
  position:absolute;
  width:var(--size);
  height:var(--size);
  background:var(--vb-heart);
  border-radius:50%;
}

.vb-heart::before{top:-50%;left:0}
.vb-heart::after{top:0;left:50%}

@keyframes vbPulse{
  0%,100%{transform:rotate(-45deg) scale(1)}
  50%{transform:rotate(-45deg) scale(1.2)}
}

@media (prefers-reduced-motion:reduce){
  .vb-heart{animation:none}
}

/* ===== AÇÕES FINAIS ===== */
.actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:18px 0 6px;
}

.cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:12px;
  background:var(--accent);
  color:#111;
  font-weight:800;
  text-decoration:none;
  line-height:1.1;
}

.cta:hover{filter:brightness(1.05)}

.link-back{
  color:var(--brand);
  text-decoration:none;
  font-weight:700;
}

.link-back:hover{text-decoration:underline}

.small{
  font-size:13px;
  color:var(--muted);
}

.d-none{
    display: none;
}

/* ===== HEADER ===== */
.header{
  text-align:center;
  padding:0;
}

.header-logo{
  background:#33468f;
  padding:12px;
  text-align:center;
}

.header-content{
  padding:20px 20px 0;
}

.logo{
  width:140px;
  max-width:60%;
  height:auto;
  display:block;
  margin:0 auto;
}