[hidden] { display: none !important; }
:root {
  --btn: #007195;
  --bg-color: #dc7b7b;
  --overlay: 0.25;
  --text: #fff;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-color);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#bg {
  position: fixed; inset: 0; z-index: 0;
  background: var(--bg-color) center / cover no-repeat;
}
#bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--overlay)); }

#progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 5; background: rgba(255,255,255,.2); opacity: 0; transition: opacity .3s; }
#progress.on { opacity: 1; }
#progress-bar { height: 100%; width: 0; background: #fff; transition: width .4s ease; }

/* grid de uma célula: tela antiga e nova se sobrepõem em vez de dividir a largura */
#stage { position: fixed; inset: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; overflow-y: auto; padding: 56px 24px 96px; }

.screen { grid-area: 1 / 1; width: 100%; max-width: 720px; margin: auto; animation: in .4s cubic-bezier(.2,.7,.2,1) .08s both; }
.screen.back { animation-name: inBack; }
.screen.out { animation: out .2s ease both; pointer-events: none; }
.screen.out.down { animation-name: outDown; }
@keyframes in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes inBack { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-16px); } }
@keyframes outDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .screen, .screen.out { animation: none; } .screen.out { display: none; } }

/* boas-vindas / agradecimento */
.center { text-align: center; }
.center .logo { max-width: 220px; width: 60%; height: auto; margin: 0 auto 32px; display: block; }
.center h1 { font-size: clamp(22px, 4.2vw, 30px); line-height: 1.25; margin: 0 0 14px; font-weight: 600; }
.center p { font-size: clamp(16px, 2.6vw, 20px); line-height: 1.5; margin: 0 auto 32px; max-width: 560px; opacity: .92; }
.hint { font-size: 13px; opacity: .85; margin-left: 12px; }
.hint b { font-weight: 600; }

/* faixa de operadoras na tela de boas-vindas */
.partners { margin-top: 44px; }
.center .partners-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin: 0 auto 16px; }
.partners-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; max-width: 640px; }
.partners-list li { display: flex; }
.partners-list img { width: 112px; height: 34px; object-fit: contain; opacity: .92; }
@media (max-width: 520px) { .partners { margin-top: 32px; } .partners-list { gap: 12px 18px; } .partners-list img { width: 84px; height: 26px; } }

/* botão */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn); color: #fff; border: 0; border-radius: 4px;
  font: inherit; font-size: 20px; font-weight: 600; padding: 10px 22px; cursor: pointer;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .choice:focus-visible, #nav button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* pergunta */
.q-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.q-num { font-size: 18px; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.q-title { font-size: clamp(22px, 4.4vw, 28px); line-height: 1.3; font-weight: 400; margin: 0; }
.q-title strong { font-weight: 700; }
.req { opacity: .9; margin-left: 2px; }
.q-desc { font-size: clamp(15px, 2.6vw, 18px); opacity: .85; margin: 6px 0 0 0; padding-left: 38px; line-height: 1.4; }
.q-body { margin: 28px 0 0 38px; }
@media (max-width: 520px) { .q-desc { padding-left: 0; } .q-body { margin-left: 0; } }

/* opções */
.choices { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.choice {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.75);
  border-radius: 4px; padding: 8px 12px; font: inherit; font-size: 19px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.choice:hover { background: rgba(255,255,255,.26); }
.choice .key {
  flex: none; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.85); border-radius: 3px;
  font-size: 12px; font-weight: 600; display: grid; place-items: center; background: rgba(0,0,0,.08);
}
.choice .lbl { flex: 1; }
.choice .tick { visibility: hidden; font-size: 16px; }
.choice[aria-checked="true"] { background: rgba(255,255,255,.3); border-color: #fff; border-width: 2px; padding: 7px 11px; }
.choice[aria-checked="true"] .tick { visibility: visible; }
.choice[aria-checked="true"] .key { background: #fff; color: #333; }

/* campos de texto */
.field {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.7);
  color: #fff; font: inherit; font-size: clamp(22px, 4.4vw, 30px); padding: 6px 0 8px; border-radius: 0; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: rgba(255,255,255,.55); }
.field:focus { border-bottom-color: #fff; box-shadow: 0 2px 0 #fff; }
textarea.field { resize: none; min-height: 90px; font-size: 24px; }

.error {
  display: inline-block; margin-top: 14px; background: #fff; color: #b3261e; font-size: 15px;
  padding: 5px 10px; border-radius: 4px; font-weight: 500;
}
.error[hidden] { display: none; }
.actions { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* navegação */
#nav { position: fixed; right: 20px; bottom: 20px; z-index: 5; display: flex; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#nav[hidden] { display: none; }
#nav button { background: var(--btn); color: #fff; border: 0; width: 40px; height: 36px; font-size: 18px; cursor: pointer; }
#nav button + button { border-left: 1px solid rgba(255,255,255,.3); }
#nav button[disabled] { opacity: .45; cursor: default; }

.footer-note { position: fixed; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 11px; opacity: .6; z-index: 2; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
