/* ============================================
   QUIZ - Paleta principal #1b4f72
   ============================================ */
:root {
  --brand: #1b4f72;
  --brand-dark: #143a55;
  --brand-light: #e8f0f6;
  --accent-red: #c0392b;
  --text: #1b4f72;
  --muted: #5b6b78;
  --border: #c9c0c0;
  --border-active: #1b4f72;
  --bg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.quiz-header { background: var(--brand); }
.brand-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
}
.brand-mark { width: 32px; height: 32px; }

/* Main */
.quiz-wrap {
  flex: 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Steps */
.step { display: none; animation: fadeIn .35s ease-out; }
.step.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Intro */
.intro-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
  margin: 8px 0 14px;
}
.intro-sub {
  text-align: center;
  color: #2c3e50;
  font-size: .95rem;
  margin: 0 auto 24px;
  max-width: 640px;
}
.intro-sub strong { color: var(--brand); }

/* Progress */
.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin: 18px auto 6px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: #e0c3c3;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
  transition: width .35s ease;
}
.nav-arrow {
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: #b8b0b0;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.nav-arrow:not(:disabled):hover { color: var(--brand); }
.nav-arrow:disabled { cursor: default; }

.step-counter {
  text-align: center;
  color: var(--accent-red);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 22px;
}

/* Question */
.question {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 auto 28px;
  max-width: 720px;
}
.accent { color: var(--accent-red); }

/* Options grid */
.options {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.options.grid-3 { grid-template-columns: repeat(3, 1fr); }
.options.grid-2 { grid-template-columns: repeat(2, 1fr); }

.opt {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 10px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: all .2s ease;
  font-family: inherit;
  min-height: 56px;
}
.opt:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
}
.opt.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Capture */
.step-capture { text-align: center; padding-top: 10px; }
.capture-icon { display: flex; justify-content: center; margin-bottom: 14px; }
.capture-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 8px 0 16px;
}
.capture-sub {
  color: #2c3e50;
  font-size: .95rem;
  max-width: 560px;
  margin: 0 auto 24px;
}
.capture-sub strong { color: var(--brand); }

.capture-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.capture-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--brand);
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.capture-form input:focus { border-color: var(--brand); }
.capture-form input::placeholder { color: #95a0aa; }

.cta-submit {
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.cta-submit:hover { background: var(--brand-dark); }

/* Result */
.step-result { text-align: center; padding-top: 40px; }
.loader {
  width: 42px; height: 42px;
  border: 4px solid var(--brand-light);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 24px auto 0;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.quiz-footer {
  background: var(--brand);
  color: #fff;
  padding: 24px 20px 18px;
  text-align: center;
  font-size: .78rem;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-company { margin: 6px 0; }
.footer-disclaimer {
  max-width: 1100px;
  margin: 10px auto 0;
  opacity: .9;
  font-size: .72rem;
}

/* Responsive */
@media (max-width: 720px) {
  .options.grid-3 { grid-template-columns: 1fr 1fr; }
  .intro-title { font-size: 1.15rem; }
  .question { font-size: 1.05rem; }
  .opt { font-size: .82rem; padding: 14px 8px; }
}
@media (max-width: 460px) {
  .options.grid-3 { grid-template-columns: 1fr; }
  .options.grid-2 { grid-template-columns: 1fr; }
  .footer-links { gap: 20px; }
}

/* ============================================
   Overrides v2 - layout de cabeçalho dos passos
   ============================================ */
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.step-counter {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}
.nav-group { display: flex; gap: 8px; }

/* Form de captura */
.capture-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 720px;
  margin: 0 auto;
}
.capture-form label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 14px;
}
.capture-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9c0c0;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s;
}
.capture-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(27, 79, 114, .15);
}
.cta-submit {
  margin-top: 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}
.cta-submit:hover { background: var(--brand-dark); }


/* ============================================
   Overrides v3 - barra de progresso bicolor
   ============================================ */
.progress-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 640px;
  margin: 8px auto 6px;
}
.progress-bar {
  flex: 1;
  height: 8px;
  background: #d63031; /* vermelho de fundo */
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  max-width: 480px;
}
.progress-fill {
  display: block;
  height: 100%;
  background: var(--brand); /* azul/verde da marca */
  border-radius: 99px;
  transition: width .35s ease;
}
.step-counter {
  display: block;
  text-align: center;
  color: #d63031;
  font-weight: 700;
  font-size: 14px;
  margin: 6px 0 18px;
}
.nav-arrow {
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  color: #b8b0b0;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}
.nav-arrow:not(:disabled):hover { color: var(--brand); }
.nav-arrow:disabled { opacity: .45; cursor: default; }
.nav-group { display: contents; }
