/* ===========================================================
   /quiz — Qual sua fase na jornada HERO
   Usa tokens de hero.css (navy #071739, dourado #a68768, verde)
   =========================================================== */

.qpage { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 22px 60px; min-height: 100vh; }

/* topo */
.qtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 8px; }
.qtop .back {
  font-size: 13px; color: rgba(234,227,209,0.75); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(234,227,209,0.16); transition: background 0.16s ease; cursor: pointer; background: none;
}
.qtop .back:hover { background: rgba(234,227,209,0.08); }
.qtop .tb { display: flex; align-items: center; gap: 9px; }
.qtop .brasao { width: 32px; height: 32px; border-radius: 9px; background: rgba(7,23,57,0.5); border: 1px solid rgba(200,166,126,0.4); display: flex; align-items: center; justify-content: center; padding: 5px; }
.qtop .brasao img { width: 100%; height: auto; display: block; }
.qtop .word { height: 14px; width: auto; display: block; }

/* progresso */
.qprog { display: flex; gap: 6px; margin: 22px 0 6px; }
.qprog span { height: 4px; flex: 1; border-radius: 4px; background: rgba(234,227,209,0.14); transition: background 0.3s ease; }
.qprog span.on { background: var(--dourado-claro); }

/* cabeçalho */
.qhead { text-align: center; padding: 20px 0 24px; }
.qhead .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dourado-claro); margin-bottom: 12px; }
.qhead h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px,7vw,38px); line-height: 1.14; color: var(--branco); text-wrap: balance; }
.qhead .qsub { margin: 14px auto 0; max-width: 44ch; font-size: 15px; line-height: 1.6; color: rgba(234,227,209,0.76); text-wrap: balance; }

/* animação step */
.qstep { animation: qfade 0.4s ease; }
@keyframes qfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .qstep { animation: none; } }

/* opções de objetivo */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 15px; cursor: pointer;
  background: rgba(234,227,209,0.05); border: 1px solid rgba(234,227,209,0.14); color: var(--creme);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent; font-family: inherit;
}
.opt:hover, .opt:focus-visible { background: rgba(234,227,209,0.09); border-color: rgba(200,166,126,0.5); transform: translateY(-2px); outline: none; }
.opt .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, #3d5b47 0%, #2c4735 100%);
  border: 1px solid rgba(200,166,126,0.42);
  color: var(--dourado-claro);
  display: flex; align-items: center; justify-content: center;
}
.opt .ic svg { width: 24px; height: 24px; display: block; }
.opt:hover .ic, .opt:focus-visible .ic { border-color: var(--dourado-claro); }
.opt .tx { flex: 1; min-width: 0; }
.opt .tt { display: block; font-size: 15.5px; font-weight: 600; color: var(--branco); line-height: 1.25; }
.opt .ss { display: block; font-size: 12.5px; color: rgba(234,227,209,0.64); margin-top: 3px; line-height: 1.3; }
.opt .cv { color: var(--dourado-claro); opacity: 0.75; font-size: 18px; }

/* formulário */
.qform { display: flex; flex-direction: column; gap: 22px; }
.q { }
.q .qlabel { font-size: 15px; font-weight: 600; color: var(--branco); margin-bottom: 10px; }
.q .qlabel .req { color: var(--dourado-claro); }
.q .hint { font-size: 12.5px; color: rgba(234,227,209,0.58); margin-bottom: 10px; margin-top: -4px; }

.inp {
  width: 100%; padding: 13px 15px; border-radius: 12px; font-size: 15px; font-family: inherit;
  background: rgba(234,227,209,0.06); border: 1px solid rgba(234,227,209,0.16); color: var(--creme);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.inp::placeholder { color: rgba(234,227,209,0.4); }
.inp:focus { outline: none; border-color: rgba(200,166,126,0.6); background: rgba(234,227,209,0.09); }
textarea.inp { resize: vertical; min-height: 74px; line-height: 1.5; }
.inp.err { border-color: #e07a7a; }
.err-msg { color: #e79a9a; font-size: 12.5px; margin-top: 6px; display: none; }
.err-msg.show { display: block; }

/* chips (radio / check) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 10px 15px; border-radius: 999px; font-size: 13.5px; font-family: inherit; cursor: pointer;
  background: rgba(234,227,209,0.05); border: 1px solid rgba(234,227,209,0.16); color: rgba(234,227,209,0.85);
  transition: all 0.14s ease; -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: rgba(200,166,126,0.5); }
.chip.sel { background: rgba(200,166,126,0.2); border-color: var(--dourado-claro); color: var(--branco); font-weight: 600; }

/* ações */
.qactions { display: flex; gap: 10px; margin-top: 8px; }
.qbtn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: transform 0.15s ease, background 0.15s ease; -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.qbtn:active { transform: translateY(1px); }
.qbtn.prim { background: linear-gradient(135deg, #bd9a6d 0%, #a68768 100%); color: #10230f; box-shadow: 0 8px 22px rgba(166,135,104,0.3); }
.qbtn.prim:hover { background: linear-gradient(135deg, #c8a67e 0%, #b09372 100%); }
.qbtn.wa { background: linear-gradient(135deg, #2fbe6a 0%, #1fa855 100%); color: #fff; box-shadow: 0 8px 22px rgba(31,168,85,0.3); }
.qbtn.wa svg { width: 20px; height: 20px; }
.qbtn.ghost { flex: 0 0 auto; background: transparent; color: var(--creme); border: 1px solid rgba(234,227,209,0.2); }
.qbtn.ghost:hover { background: rgba(234,227,209,0.07); }

/* resultado */
.qresult { text-align: center; }
.qresult .rbrasao { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; background: rgba(7,23,57,0.5); border: 1px solid rgba(200,166,126,0.4); display: flex; align-items: center; justify-content: center; padding: 10px; }
.qresult .rbrasao img { width: 100%; height: auto; }
.qresult .rfoco { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dourado-claro); margin-bottom: 10px; }
.qresult h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(23px,6vw,30px); color: var(--branco); text-wrap: balance; margin-bottom: 14px; }
.qresult .rtext { font-size: 15.5px; line-height: 1.65; color: rgba(234,227,209,0.85); max-width: 46ch; margin: 0 auto 8px; text-wrap: balance; }
.qresult .rbox {
  margin: 22px auto 0; max-width: 480px; padding: 22px; border-radius: 16px; text-align: left;
  background: rgba(61,91,71,0.24); border: 1px solid rgba(166,194,151,0.22);
}
.qresult .rbox .rb-t { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dourado-claro); margin-bottom: 12px; }
.qresult .rbox .rb-line { font-size: 13.5px; color: rgba(234,227,209,0.82); padding: 5px 0; display: flex; gap: 8px; }
.qresult .rbox .rb-line b { color: var(--creme); font-weight: 600; flex-shrink: 0; }
/* bloco de presente (ebook) */
.rbonus {
  margin: 18px auto 0; max-width: 480px; padding: 20px; border-radius: 16px; text-align: left;
  background: radial-gradient(130% 130% at 0% 0%, rgba(166,135,104,0.2) 0%, rgba(166,135,104,0) 62%), rgba(166,135,104,0.07);
  border: 1px solid rgba(200,166,126,0.45);
}
.rbonus .rb-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dourado-claro); margin-bottom: 12px; }
.rbonus .rb-book { display: flex; align-items: center; gap: 13px; }
.rbonus .rb-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, #3d5b47 0%, #2c4735 100%);
  border: 1px solid rgba(200,166,126,0.42); color: var(--dourado-claro);
  display: flex; align-items: center; justify-content: center;
}
.rbonus .rb-ico svg { width: 24px; height: 24px; display: block; }
.rbonus .rb-txt { min-width: 0; }
.rbonus .rb-nome { display: block; font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--branco); line-height: 1.2; }
.rbonus .rb-sub { display: block; font-size: 12.5px; color: rgba(234,227,209,0.66); margin-top: 2px; }
.rbonus .rb-desc { font-size: 13.5px; line-height: 1.55; color: rgba(234,227,209,0.8); margin-top: 13px; }
.rbonus .rb-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 15px; padding: 13px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  background: transparent; color: var(--creme); border: 1px solid rgba(200,166,126,0.6);
  transition: background 0.16s ease;
}
.rbonus .rb-btn:hover { background: rgba(200,166,126,0.14); }

.qresult .ractions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; max-width: 420px; margin-left: auto; margin-right: auto; }
.qresult .rnote { font-size: 12px; color: rgba(234,227,209,0.5); margin-top: 14px; }

.qfoot { text-align: center; padding-top: 30px; }
.qfoot a { color: var(--dourado-claro); text-decoration: none; font-weight: 600; font-size: 13px; }
