/* ─────────────────────────────────────────
   quiz-us-products — clean / neutral design
   ───────────────────────────────────────── */

:root:not([data-theme=dark]), [data-theme=light] {
  --primary: #042da3;
  --primary-hover: #042da3;
  --font-family: "PT Sans", -apple-system, system-ui, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-family);
  background: #ffffff;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  /* centraliza o layout verticalmente na viewport */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */

.pt-0 { padding-top: 0 !important; }

/* main ocupa o espaço restante e centraliza o quiz */
main.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.quiz {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: unset;
  margin: 0 auto;
  /* padding vertical garante breathing room em telas pequenas */
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
}

/* ── Logo ── */

.quiz .quiz-header .logo {
  text-align: center;
  padding-bottom: 2.2rem;
}

.quiz .quiz-header .logo img {
  max-width: 150px;
  height: auto;
}

/* ── Title ── */

.quiz-title {
  font-size: 1.7rem;
  line-height: 2.1rem;
  color: #1a1a1a;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.6rem 0;
  padding: 0;
  border: none;
}

/* ── Subtitle / time_lead ── */

.quiz .time_lead {
  color: #9e9e9e;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.2px;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Steps ── */

.quiz .step { display: none; width: 100%; }
.quiz .step.active { display: block; }

/* ── Fieldset / question ── */

.quiz .step fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.quiz .step fieldset legend {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  text-align: center;
  margin-bottom: 1.8rem;
  padding: 0;
}

/* ── Grid — YES / NO empilhados verticalmente, largura total ── */

.quiz .step fieldset .grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* ── Answer buttons — clean neutral, full-width, generosos ── */

.quiz-answer-btn {
  border-radius: 50px !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  color: #3d3d3d !important;
  border: 1.5px solid #dedede;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 0 !important;
  padding: 1.15em 0 !important;
  width: 100%;
  text-align: center;
  display: block;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.quiz-answer-btn:hover,
.quiz-answer-btn:focus-within {
  background: #f5f5f5 !important;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.11);
  transform: translateY(-1px);
}

.quiz-answer-btn input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.quiz-answer-btn span {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  display: block;
  text-align: center;
  color: #3d3d3d;
}

/* ── Footer ── */

.quiz-footer {
  width: 100%;
  padding: 0;
  flex-shrink: 0; /* nunca cresce, fica colado ao bottom */
}

.quiz-footer .credits {
  padding: 1.4em 0.5em 0.2em 0.5em;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #c0c0c0;
}

.quiz-footer .footer-nav {
  text-align: center;
  margin-bottom: 10px;
}

.quiz-footer .footer-nav a {
  margin: 0 10px;
  opacity: 0.5;
  font-size: 11px;
  color: #555555;
  text-decoration: none;
}

.quiz-footer .footer-nav a:hover { opacity: 0.85; }

/* ── Desktop ── */

@media (min-width: 480px) {
  .quiz-title { font-size: 1.95rem; line-height: 2.4rem; }
  .quiz .step fieldset legend { font-size: 1.15rem; }
  .quiz-answer-btn { font-size: 1.3rem !important; padding: 1.2em 0 !important; }
  .quiz-answer-btn span { font-size: 1.2rem !important; }
  /* manter empilhado mesmo em desktop */
  .quiz .step fieldset .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
}
