/* =========================================================
   Fungo Killer — Quiz (HU) · mobile-first
   ========================================================= */
:root {
  --bg: #effdff;
  --card: #ffffff;
  --text: #4e4e4e;
  --text-soft: #7a7a7a;
  --accent: #0db9d0;
  --accent-dark: #0a9fb3;
  --accent-soft: #e3f8fb;
  --cta: #a4db28;
  --cta-dark: #93c91f;
  --error: #d93838;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(13, 185, 208, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.page__header {
  text-align: center;
  margin-bottom: 20px;
}

.page__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Depois do quiz a etiqueta vira "Gyors szállítás ide: [cidade]" em verde */
.page__eyebrow--delivery {
  background: #f1fadc;
  color: #5f8a0c;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  animation: fadeUp 0.4s ease both;
}

.page__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.page__lead {
  margin: 0;
  color: var(--text-soft);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}

/* ---------- Quiz ---------- */
.quiz__progress {
  margin-bottom: 18px;
}

.quiz__step {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.quiz__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
}

.quiz__bar-fill {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}

.quiz__question {
  display: none;
}

.quiz__question.is-active {
  display: block;
  animation: fadeUp 0.35s ease both;
}

/* Imagem de antes/depois no topo de cada pergunta */
.quiz__img {
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
}

.quiz__title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.quiz__options {
  display: grid;
  gap: 10px;
}

.quiz__option {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.quiz__option:hover,
.quiz__option:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.quiz__option:active,
.quiz__option.is-selected {
  background: var(--accent);
  color: #fff;
  transform: scale(0.99);
}

/* ---------- Loading ---------- */
.loading {
  text-align: center;
  padding: 40px 18px;
}

.loading__spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 5px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading__text {
  margin: 0;
  font-weight: 700;
}

/* ---------- Oferta / formulário ---------- */
.offer {
  text-align: center;
  animation: fadeUp 0.4s ease both;
}

.offer__product {
  width: 70%;
  max-width: 260px;
  margin: -6px auto 12px;
}

.offer__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.offer__subtitle {
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Resumo das respostas do quiz */
.result {
  margin: 0 0 18px;
  text-align: left;
}

.result__list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-sm);
  background: #f7fafa;
}

.result__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #e6eef0;
  font-size: 14px;
}

.result__list li:last-child {
  border-bottom: 0;
}

.result__list span {
  flex: none;
  color: var(--text-soft);
}

.result__list strong {
  text-align: right;
  font-weight: 700;
}

.result__text {
  margin: 0;
  font-size: 15px;
}

/* Preço: antigo riscado, selo -50%, preço de hoje em destaque */
.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.price__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.price__label {
  font-size: 13px;
  color: var(--text-soft);
}

.price__old {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration-color: #e0453a;
  text-decoration-thickness: 2px;
}

.price__new {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.price__badge {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0453a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

/* Pagamento na entrega: gatilho de confiança entre o preço e o formulário */
.cod {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f1fadc;
  color: #4a6b0a;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.cod__icon {
  flex: none;
  font-size: 24px;
}

.cod strong {
  color: #3d5a06;
}

.form {
  text-align: left;
}

.form__label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.form__input {
  width: 100%;
  height: 52px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 2px solid #dfe9eb;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* evita zoom no iOS */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 185, 208, 0.18);
}

.form__input.is-invalid {
  border-color: var(--error);
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__error {
  margin: -4px 0 12px;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}

.form__note {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.form__privacy {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.form__privacy a {
  color: var(--accent-dark);
}

/* ---------- Rodapé ---------- */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px 120px; /* espaço pro banner de cookies não cobrir */
  color: var(--text-soft);
  font-size: 13px;
}

.site-footer a,
.site-footer__link {
  color: var(--text-soft);
  text-decoration: underline;
}

.site-footer__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  animation: fadeUp 0.35s ease both;
}

.cookie__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

.cookie__text a {
  color: var(--accent-dark);
}

.cookie__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Os dois botões com o mesmo destaque (GDPR: recusar tão fácil quanto aceitar) */
.cookie__btn {
  min-height: 42px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie__btn--accept {
  background: var(--accent);
  color: #fff;
}

/* ---------- Botões ---------- */
.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn--cta {
  background: var(--cta);
  color: var(--text); /* #4E4E4E: contraste melhor que branco sobre o verde-lima */
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(164, 219, 40, 0.4);
  animation: pulse 2.2s ease-in-out infinite;
}

.btn--cta:hover {
  background: var(--cta-dark);
}

.btn--cta:active {
  transform: scale(0.98);
}

.btn--cta:disabled {
  opacity: 0.7;
  cursor: wait;
  animation: none;
}

.btn--secondary {
  background: var(--accent);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--accent-dark);
}

/* ---------- Obrigado ---------- */
.thanks {
  text-align: center;
}

.thanks__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 64px;
}

.thanks__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.thanks__text {
  margin: 0;
}

/* ---------- Política de privacidade ---------- */
.legal {
  max-width: 720px;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.legal h2 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.legal p,
.legal li {
  font-size: 15px;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: var(--accent-dark);
}

.legal__updated {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 13px;
}

/* ---------- Animações ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Telas maiores ---------- */
@media (min-width: 600px) {
  .page {
    padding-top: 48px;
  }

  .page__title {
    font-size: 28px;
  }

  .card {
    padding: 30px 28px;
  }
}
