/* Estilo compartilhado dos quizzes de captura (Eitai / AtendIA).
   Mobile first. Cores da marca: indigo #5a5df8, teal #08bbb8. */

:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #1c1d2b;
  --muted: #6b6f85;
  --brand: #5a5df8;
  --brand-dark: #4346d6;
  --accent: #08bbb8;
  --line: #e3e5f0;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12131c;
    --card: #1c1e2c;
    --text: #f1f2f8;
    --muted: #a3a7bd;
    --line: #2c2f42;
  }
}

:root[data-theme="dark"] {
  --bg: #12131c;
  --card: #1c1e2c;
  --text: #f1f2f8;
  --muted: #a3a7bd;
  --line: #2c2f42;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.brand {
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .3px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 6px 24px rgba(20, 22, 60, .06);
}

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; }
p  { margin: 0 0 12px; }
.muted { color: var(--muted); }

.progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .25s ease;
}
.step-label { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }

.options { display: grid; gap: 10px; margin-top: 16px; }

.option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
}
.option:hover, .option:focus-visible { border-color: var(--brand); outline: none; }
.option:active { transform: scale(.99); }

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--brand-dark); outline: none; }
.btn[disabled] { opacity: .6; cursor: default; }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-ghost:hover { background: rgba(90, 93, 248, .08); }

.back {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  padding: 0;
  margin-bottom: 12px;
  cursor: pointer;
}

form .field { margin-bottom: 14px; }
label.lbl { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}
input:focus { border-color: var(--brand); outline: none; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--muted);
  margin: 6px 0 4px;
}
.consent input { margin-top: 4px; }

.error { color: #d33a4b; font-size: .9rem; min-height: 1.2em; margin-top: 8px; }

.band-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 187, 184, .14);
  color: #057c7a;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.awareness {
  border-left: 4px solid var(--accent);
  background: rgba(8, 187, 184, .07);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}
.awareness strong { display: block; margin-bottom: 6px; color: var(--text); }
.awareness p { margin: 0; color: var(--muted); }

.tips { padding-left: 20px; margin: 12px 0 0; }
.tips li { margin-bottom: 8px; }

.score-bar {
  display: flex;
  gap: 6px;
  margin: 12px 0 4px;
}
.score-bar span {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}
.score-bar span.on { background: linear-gradient(90deg, var(--brand), var(--accent)); }

.fine { font-size: .78rem; color: var(--muted); margin-top: 16px; text-align: center; }

.hidden { display: none !important; }

.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (min-width: 640px) {
  .wrap { padding-top: 48px; }
  .card { padding: 32px 28px; }
  h1 { font-size: 1.9rem; }
}
