/* =====================
   QUIZ MODAL — popup de contato interativo
   ===================== */
#quizOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
#quizOverlay.open { opacity: 1; pointer-events: all; }

#quizModal {
  background: #111;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  width: min(640px, 92vw);
  padding: 52px 56px 48px;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  max-height: 90vh;
  overflow-y: auto;
}
#quizOverlay.open #quizModal { transform: translateY(0) scale(1); }

#closeQuiz {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--g);
  transition: background .2s, color .2s;
}
#closeQuiz:hover { background: rgba(255,255,255,.1); color: var(--w); }

#quizProgress { height: 1px; background: rgba(255,255,255,.08); border-radius: 1px; margin-bottom: 40px; }
#quizBar { height: 100%; background: var(--w); border-radius: 1px; transition: width .5s cubic-bezier(.22,1,.36,1); width: 0%; }

/* Step animation */
.q-step { animation: qin .4s cubic-bezier(.22,1,.36,1); }
@keyframes qin { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }

/* Labels & text */
.q-label  { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--g); margin-bottom: 16px; display: block; }
.q-title  { font-family: 'Syne', sans-serif; font-size: clamp(22px,3.5vw,32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; color: var(--w); }
.q-sub    { font-size: 14px; color: rgba(244,243,239,.4); font-weight: 300; margin-bottom: 32px; line-height: 1.65; }

/* Options grid */
.q-options        { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.q-options.single { grid-template-columns: 1fr; }
.q-opt {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  text-align: left;
  color: var(--w);
  display: flex; align-items: center; gap: 12px;
}
.q-opt:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.q-opt.sel   { background: rgba(244,243,239,.1); border-color: rgba(244,243,239,.4); }

.q-opt-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.q-opt-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: rgba(244,243,239,.6); }
.q-opt-text { font-size: 14px; font-weight: 400; line-height: 1.4; }
.q-opt-sub  { font-size: 12px; color: rgba(244,243,239,.38); margin-top: 2px; font-weight: 300; }

/* Text input */
.q-input-wrap { margin-bottom: 28px; }
.q-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--w);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.q-input:focus { border-color: rgba(255,255,255,.28); }
.q-input::placeholder { color: rgba(244,243,239,.25); }

/* Actions row */
.q-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 14px; }
.q-back {
  background: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: 10px 20px;
  color: rgba(244,243,239,.45);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: 'DM Sans', sans-serif;
}
.q-back:hover { border-color: rgba(255,255,255,.22); color: var(--w); }
.q-next {
  background: var(--w); color: var(--k);
  border: none; border-radius: 100px;
  padding: 12px 28px;
  font-size: 14.5px; font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, transform .15s;
  margin-left: auto;
}
.q-next:hover    { background: var(--a); transform: scale(1.03); }
.q-next:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.q-counter { font-size: 12px; color: rgba(244,243,239,.28); letter-spacing: .05em; }

/* Success screen */
.q-success { text-align: center; padding: 16px 0; }
.q-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.q-success-icon svg { width: 28px; height: 28px; stroke: #4ade80; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.q-success h2 { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.q-success p  { font-size: 15px; color: rgba(244,243,239,.48); font-weight: 300; line-height: 1.7; max-width: 360px; margin: 0 auto 32px; }

.q-summary { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px 24px; margin-bottom: 28px; text-align: left; }
.q-sum-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.q-sum-row:last-child { border-bottom: none; }
.q-sum-key { color: rgba(244,243,239,.38); }
.q-sum-val { color: var(--w); font-weight: 500; }

.q-success-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--w); color: var(--k);
  border: none; border-radius: 100px;
  padding: 14px 30px;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.q-success-btn:hover { background: var(--a); transform: scale(1.03); }

/* Responsivo */
@media (max-width: 600px) {
  #quizModal { padding: 36px 24px 32px; }
  .q-options { grid-template-columns: 1fr; }
}

/* Formulário de cadastro no final do quiz */
.q-register-form {
  display: flex; flex-direction: column;
  gap: 10px; width: 100%; max-width: 360px; margin: 0 auto;
}
.q-register-form .q-input {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: var(--w); font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.q-register-form .q-input:focus { border-color: rgba(255,255,255,.3); }
.q-register-form .q-success-btn { width: 100%; justify-content: center; }
.q-success-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
