/* Enquete de e-books — Memória Forense */
:root {
  --navy:      #16283f;
  --blue:      #234a7c;
  --blue-soft: #eef3f9;
  --green:     #1fa87a;
  --green-dk:  #178061;
  --gold:      #c9a24a;
  --ink:       #1c2430;
  --muted:     #6b7280;
  --line:      #e4e8ee;
  --bg:        #f4f6f9;
  --card:      #ffffff;
  --radius:    16px;
  --shadow:    0 10px 40px rgba(22, 40, 63, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: Georgia, "Times New Roman", serif; }

a { color: var(--blue); }

/* ---------- Layout ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }

/* ---------- Cabeçalho do livro ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero img {
  width: 108px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.hero h1 { font-size: 26px; margin: 0 0 4px; line-height: 1.2; }
.hero .sub { font-size: 15px; opacity: .9; margin: 0 0 8px; }
.hero .meta { font-size: 12.5px; opacity: .75; }

.intro {
  margin: 22px 4px 8px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Cartões de pergunta ---------- */
form { margin-top: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(22,40,63,.03);
}
.card > label.q,
.q-title {
  display: block;
  font-weight: 650;
  font-size: 16px;
  margin-bottom: 4px;
}
.q-hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.req { color: var(--green-dk); }

/* Estrelas */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.stars label {
  font-size: 34px;
  color: #d7dde5;
  cursor: pointer;
  line-height: 1;
  transition: color .12s, transform .12s;
}
.stars label:hover { transform: scale(1.12); }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: var(--gold); }
.stars-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stars-val { font-size: 13px; color: var(--muted); min-width: 88px; }

/* NPS 0-10 */
.nps { display: flex; flex-wrap: wrap; gap: 6px; }
.nps input { position: absolute; opacity: 0; }
.nps label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all .12s;
  background: #fff;
}
.nps label:hover { border-color: var(--blue); }
.nps input:checked + label {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.nps-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Opções tipo pílula (rádio) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills input { position: absolute; opacity: 0; }
.pills label {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14.5px;
  transition: all .12s;
  background: #fff;
}
.pills label:hover { border-color: var(--green); }
.pills input:checked + label {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 600;
}

/* Campos texto */
textarea, input[type=text], input[type=email], select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35,74,124,.12);
}
textarea { min-height: 92px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

/* Indicação de colegas */
.indic-row { margin-bottom: 10px; }
.add-indic {
  background: none; border: 1px dashed var(--blue); color: var(--blue);
  border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 14px;
  cursor: pointer; margin-top: 4px; transition: all .12s;
}
.add-indic:hover { background: var(--blue-soft); }

.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--muted); margin-top: 12px; cursor: pointer;
}
.check input { margin-top: 3px; }

/* Bloco impressa condicional */
#bloco-impressa-valor { margin-top: 14px; display: none; }
#bloco-impressa-valor.show { display: block; }

/* Botão */
.actions { text-align: center; margin-top: 26px; }
button.submit {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 15px 44px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(31,168,122,.32);
  transition: transform .1s, background .15s;
}
button.submit:hover { background: var(--green-dk); transform: translateY(-1px); }
.privacy { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; }

/* ---------- Página de obrigado ---------- */
.thanks {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px 34px; text-align: center; margin-top: 40px;
}
.thanks .ico { font-size: 54px; }
.thanks h1 { font-size: 26px; margin: 12px 0 8px; }
.thanks p { color: var(--muted); font-size: 16px; }
.btn-link {
  display: inline-block; margin-top: 22px; padding: 12px 28px;
  background: var(--blue); color: #fff; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}

.err {
  background: #fdecec; border: 1px solid #f5c2c2; color: #a12626;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px;
}
