/* ================= AL HAYAT — Quiz (navy + dourado) ================= */
:root {
  --bg-deep: #0a0f1a;
  --card-1: #16305a;
  --card-2: #0f2547;
  --box: #0d2748;
  --box-2: #102c52;
  --line: #27456e;
  --line-soft: rgba(255,255,255,.08);
  --gold: #d4af6e;
  --gold-bright: #e7c989;
  --gold-grad: linear-gradient(135deg, #e7c989 0%, #d4af6e 45%, #b8923f 100%);
  --txt: #f3f5f9;
  --txt-soft: #aab3c5;
  --txt-mute: #7a8398;
  --ok: #4cc38a;
  --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--txt); min-height: 100vh;
  background: radial-gradient(130% 90% at 50% -10%, rgba(212,175,110,.10), transparent 55%), var(--bg-deep);
}
.gold { color: var(--gold-bright); }

/* ---------- barra de progresso (topo) ---------- */
.q-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 30;
  background: rgba(255,255,255,.06);
}
.q-progress span { display: block; height: 100%; width: 8%; background: var(--gold-grad);
  border-radius: 0 4px 4px 0; transition: width .45s cubic-bezier(.3,.9,.3,1); }

/* ---------- centralização + card ---------- */
.q-shell {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 18px 22px; gap: 20px;
}

/* ---------- logo topo ---------- */
.q-header { display: flex; align-items: center; gap: 11px; }
.q-logo { width: 40px; height: 40px; }
.q-logo-name { font-family: var(--display); font-weight: 700; letter-spacing: 3px; font-size: 1.2rem; color: var(--txt); }
.q-logo-name span { color: var(--gold); font-size: .6em; letter-spacing: 4px; }
.q-card {
  width: 100%; max-width: 560px;
  background: linear-gradient(165deg, var(--card-1), var(--card-2));
  border: 1px solid rgba(212,175,110,.22); border-radius: 26px;
  padding: 38px 30px 30px; box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.q-screen { display: none; animation: qFade .4s ease; }
.q-screen.active { display: block; }
@keyframes qFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- TELA INICIAL ---------- */
.q-badge {
  display: block; width: fit-content; margin: 0 auto 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-bright);
  border: 1px solid rgba(212,175,110,.4); padding: 8px 18px; border-radius: 30px;
}
.q-welcome { text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 2px; color: var(--txt-soft); }
.q-bigbrand {
  text-align: center; font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1;
  letter-spacing: 1px; margin: 2px 0 26px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.q-info {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--box); border: 1px solid var(--line-soft); border-radius: 15px;
  padding: 15px 16px; margin-bottom: 12px;
}
.q-info p { color: var(--txt-soft); font-size: .95rem; line-height: 1.5; }
.q-info strong { color: var(--txt); }
.q-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(76,195,138,.15); display: flex; align-items: center; justify-content: center;
}
.q-check svg { width: 15px; height: 15px; fill: none; stroke: var(--ok); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.q-tags { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 20px 0; }
.q-tags span {
  font-size: .84rem; font-weight: 500; color: var(--txt-soft);
  border: 1px solid var(--line); border-radius: 30px; padding: 8px 15px;
}
.q-instruction { text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--txt); margin-bottom: 20px; }

/* ---------- PERGUNTAS ---------- */
.q-qhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.q-etapa { font-size: .8rem; font-weight: 600; color: var(--txt-soft); border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; }
.q-question { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.3; margin-bottom: 8px; text-align: center; }
.q-help { color: var(--txt-soft); font-size: .95rem; margin-bottom: 22px; text-align: center; }

/* opções centralizadas (estilo elegibilidade) */
.q-option-c {
  display: block; width: 100%; text-align: center; padding: 17px 18px; margin: 0;
  border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 1.02rem; font-weight: 600;
  background: var(--box); border: 1.5px solid var(--line); color: var(--txt);
  transition: border-color .18s, background .18s, transform .12s;
}
.q-option-c:hover { border-color: var(--gold); background: var(--box-2); }
.q-option-c:active { transform: scale(.99); }
.q-option-c.selected { border-color: var(--gold); background: rgba(212,175,110,.12); }
.q-option-c.q-reject { color: #f0a6a6; border-color: rgba(224,80,80,.35); background: rgba(224,80,80,.08); }
.q-option-c.q-reject:hover { border-color: rgba(224,80,80,.7); background: rgba(224,80,80,.14); }
.q-option-c.q-good { color: #8fe0b8; border-color: rgba(76,195,138,.4); background: rgba(76,195,138,.09); }
.q-option-c.q-good:hover { border-color: rgba(76,195,138,.8); background: rgba(76,195,138,.16); }

/* tela de recusa */
.q-badge-red { color: #f0a6a6; border-color: rgba(224,80,80,.45); }
.q-title-red { color: #e86b6b; }
.q-criterios { background: var(--box); border: 1px solid var(--line-soft); border-radius: 15px; padding: 18px 20px; margin-top: 18px; }
.q-criterios ul { margin: 0; padding-left: 20px; }
.q-criterios li { color: var(--txt-soft); font-size: .95rem; line-height: 1.5; margin-bottom: 10px; }
.q-criterios li:last-child { margin-bottom: 0; }
.q-options { display: grid; gap: 11px; }
.q-option {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 16px 17px; border-radius: 14px; cursor: pointer;
  background: var(--box); border: 1.5px solid var(--line); color: var(--txt);
  font-size: 1rem; font-family: inherit; transition: border-color .18s, background .18s, transform .12s;
}
.q-option:hover { border-color: var(--gold); background: var(--box-2); }
.q-option:active { transform: scale(.99); }
.q-emoji { font-size: 1.3rem; }
.q-mark {
  width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: #1a1206; transition: all .18s;
}
.q-option:hover .q-mark { border-color: var(--gold); }
.q-option.selected { border-color: var(--gold); background: rgba(212,175,110,.1); }
.q-option.selected .q-mark { background: var(--gold-grad); border-color: var(--gold); }
.q-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.q-option.selected .q-mark svg { opacity: 1; }

/* ---------- BOTÕES ---------- */
.q-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 16px 22px; border: none; border-radius: 30px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.05rem; transition: filter .2s, transform .15s, opacity .2s;
}
.q-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.q-btn-primary { background: var(--gold-grad); color: #1a1206; }
.q-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.q-back {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
  color: var(--txt-mute); font-family: inherit; font-size: .92rem; margin-bottom: 16px; padding: 4px 0;
}
.q-back:hover { color: var(--txt); }
.q-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; }
.q-note { text-align: center; color: var(--txt-mute); font-size: .82rem; margin-top: 14px; }
.q-result-ico { font-size: 3.4rem; text-align: center; margin-bottom: 10px; }

/* ---------- RODAPÉ ---------- */
.q-foot { text-align: center; color: var(--txt-mute); font-size: .78rem; line-height: 1.7; max-width: 560px; padding: 0 10px; }
.q-foot a { color: var(--gold-bright); text-decoration: none; }
.q-foot a:hover { text-decoration: underline; }
.q-foot-top { color: var(--txt-soft); margin-bottom: 4px; }

/* ---------- CARD DE OFERTA (tela final honesta) ---------- */
.q-offer { background: var(--box); border: 1px solid rgba(212,175,110,.2); border-radius: 16px; padding: 20px 18px; margin-top: 18px; text-align: left; }
.q-offer-title { text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--gold-bright); margin-bottom: 12px; }
.q-offer p { color: var(--txt-soft); font-size: .95rem; line-height: 1.55; margin-bottom: 12px; }
.q-offer strong { color: var(--txt); }
.q-offer-line { display: flex; gap: 10px; align-items: flex-start; }
.q-offer-line span:first-child { font-size: 1.1rem; flex-shrink: 0; }
.q-warn { display: flex; gap: 10px; align-items: flex-start; background: rgba(76,195,138,.08); border: 1px solid rgba(76,195,138,.25); border-radius: 12px; padding: 13px 14px; margin-top: 4px; }
.q-warn span { font-size: 1.1rem; flex-shrink: 0; }
.q-warn p { color: var(--txt-soft); font-size: .88rem; line-height: 1.5; margin: 0; }
.q-warn strong { color: #8fe0b8; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 420px) {
  .q-card { padding: 30px 20px 24px; border-radius: 22px; }
  .q-bigbrand { font-size: 2.7rem; }
  .q-welcome { font-size: 1.25rem; }
  .q-question { font-size: 1.3rem; }
}
