/* Quiz de autoavaliação (anúncios Google/Meta) — Cristiane Spinnler */
:root {
  --cream: #FBF6F1;
  --cream-soft: #F1E3D0;
  --blush: #EFC3AF;
  --gold: #C6952E;
  --gold-light: #E3B860;
  --gold-dark: #8F6A1E;
  --text: #362A25;
  --text-soft: #63514A;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #128C7E;
  --ok: #6E9A5B;
  --mid: #D08A2E;
  --high: #B5523B;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: radial-gradient(120% 80% at 50% 0%, #F7EADF 0%, var(--cream) 55%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.quiz {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 18px 16px 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.quiz-logo img { height: 34px; width: auto; display: block; }
.quiz-back {
  border: 0; background: none; color: var(--text-soft); font: inherit; font-size: 0.95rem;
  padding: 8px 4px; cursor: pointer; visibility: hidden;
}
.quiz-back.is-visible { visibility: visible; }
.quiz-progress { height: 6px; border-radius: 99px; background: var(--cream-soft); margin: 10px 0 4px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.quiz-progress.is-visible { opacity: 1; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-light), var(--gold)); border-radius: inherit; transition: width .4s ease; }
.quiz-count { font-size: 0.85rem; color: var(--text-soft); text-align: right; min-height: 1.3em; margin: 0; }

.screen { flex: 1; display: none; flex-direction: column; padding-top: 18px; animation: in .35s ease both; }
.screen.is-active { display: flex; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1, h2 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
h2 { font-size: clamp(1.65rem, 6.4vw, 2.1rem); }
p { margin: 0 0 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 0.78rem; color: var(--gold-dark); font-weight: 500; margin-bottom: 10px; }
.lead { color: var(--text-soft); font-size: 1.05rem; }

.intro-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--white); box-shadow: 0 12px 30px -14px rgba(143,106,30,.55); margin-bottom: 18px; }
.intro-list { list-style: none; padding: 0; margin: 6px 0 22px; display: grid; gap: 8px; }
.intro-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.intro-list li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--gold); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 22px;
  border: 0; border-radius: 99px; cursor: pointer;
  font: 500 1.05rem var(--font-body); text-decoration: none; text-align: center;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: var(--white); box-shadow: 0 16px 30px -16px rgba(143,106,30,.8); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--wa { background: var(--wa); color: #0B3B2E; font-weight: 600; box-shadow: 0 16px 30px -16px rgba(18,140,126,.8); }
.btn--wa:hover { background: #1EBE5A; }
.btn--ghost { background: transparent; color: var(--text-soft); text-decoration: underline; min-height: 44px; font-size: 0.95rem; }
.btn svg { width: 22px; height: 22px; flex: none; }
.fine { font-size: 0.82rem; color: var(--text-soft); text-align: center; margin-top: 12px; }

.question { font-family: var(--font-heading); font-size: clamp(1.6rem, 6.2vw, 2rem); font-weight: 600; line-height: 1.15; margin: 4px 0 6px; }
.hint { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 18px; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; min-height: 60px;
  background: var(--white); color: var(--text);
  border: 1.5px solid #EADBCB; border-radius: 16px; cursor: pointer;
  font: 400 1.02rem var(--font-body); text-align: left;
  transition: border-color .15s, background .15s, transform .1s;
}
.option:hover { border-color: var(--gold-light); }
.option:active { transform: scale(.99); }
.option.is-selected { border-color: var(--gold); background: #FCF4E6; }
.option-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D9C4AA; display: grid; place-items: center; }
.option.is-selected .option-mark { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px #FCF4E6; }
.option-emoji { font-size: 1.3rem; flex: none; }

.loading { align-items: center; justify-content: center; text-align: center; }
.spinner { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--cream-soft); border-top-color: var(--gold); animation: spin 1s linear infinite; margin-bottom: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-step { color: var(--text-soft); min-height: 1.6em; }

.result-card { background: var(--white); border-radius: 22px; padding: 24px 20px; box-shadow: 0 24px 50px -30px rgba(143,106,30,.55); margin-bottom: 18px; }
.meter { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--gold-light) 50%, var(--high)); margin: 14px 0 6px; }
.meter-dot { position: absolute; top: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--white); border: 4px solid var(--text); transform: translateY(-50%); transition: left 1s cubic-bezier(.2,.8,.2,1); left: 0; }
.meter-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-soft); }
.level { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 0.85rem; font-weight: 500; color: var(--white); margin-bottom: 10px; }
.level--1 { background: var(--ok); } .level--2 { background: var(--mid); } .level--3 { background: var(--high); }
.result-text p { color: var(--text-soft); }
.result-points { margin: 4px 0 0; padding-left: 20px; color: var(--text-soft); }
.result-points li { margin-bottom: 6px; }
.about { display: flex; gap: 14px; align-items: center; background: #F6ECE1; border-radius: 18px; padding: 14px; margin: 4px 0 18px; }
.about img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.about p { margin: 0; font-size: 0.93rem; color: var(--text-soft); }
.about strong { color: var(--text); display: block; font-size: 1rem; }
.crisis { font-size: 0.85rem; color: var(--text-soft); border-left: 3px solid var(--high); padding: 6px 0 6px 12px; margin: 0 0 18px; }
.disclaimer { font-size: 0.8rem; color: var(--text-soft); margin-top: 18px; text-align: center; }

.field { display: block; margin-bottom: 16px; font-weight: 500; }
.field input[type=text] { display: block; width: 100%; margin-top: 6px; min-height: 52px; padding: 12px 16px; border: 1.5px solid #EADBCB; border-radius: 14px; font: 400 1rem var(--font-body); color: var(--text); background: var(--white); }
.field input:focus { outline: none; border-color: var(--gold); }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 10px 16px; border: 1.5px solid #EADBCB; border-radius: 99px; background: var(--white); font-weight: 400; cursor: pointer; }
.chips input:checked + span { border-color: var(--gold); background: #FCF4E6; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.info { background: #F6ECE1; border-radius: 16px; padding: 14px 16px; font-size: 0.93rem; color: var(--text-soft); margin-bottom: 16px; }
.info p { margin: 0 0 6px; } .info p:last-child { margin: 0; }
.error { color: var(--high); font-size: 0.9rem; }

/* v2: visual (ilustrações) */
.q-figure { margin: 0 0 14px; }
.q-figure[hidden] { display: none; }
.q-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--cream-soft); }
.q-img--round { width: 112px; height: 112px; aspect-ratio: 1; border-radius: 50%; object-position: top; border: 3px solid var(--white); box-shadow: 0 12px 30px -14px rgba(143,106,30,.55); }
.is-note { text-align: center; align-items: center; }
.is-note .q-figure { display: flex; justify-content: center; }
.is-note .hint { font-size: 1.05rem; margin-bottom: 24px; }
.is-note .options { width: 100%; }
.options--grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.option--card { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; text-align: center; }
.option--card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--cream-soft); }
.option--card .option-label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px 12px; font-size: 0.95rem; line-height: 1.3; min-height: 58px; }
.option--card .option-mark { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; background: rgba(255,255,255,.9); }
.options--grid .option--card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
@media (max-height: 740px) { .q-img:not(.q-img--round) { aspect-ratio: 2 / 1; } .option:not(.option--card) { min-height: 54px; padding: 12px 16px; } }
