:root {
  --red: #df164d;
  --red-dark: #a90d37;
  --red-light: #fff1f5;
  --black: #171216;
  --gray-900: #2c252a;
  --gray-700: #655d63;
  --gray-500: #968d94;
  --gray-300: #e4dfe2;
  --gray-100: #faf8f9;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(58, 24, 42, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--gray-900);
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(223, 22, 77, 0.08),
      transparent 32rem
    ),
    var(--gray-100);
  font-family: "DM Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(223, 22, 77, 0.35);
  outline-offset: 3px;
}

.page {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(228, 223, 226, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font-family: "Montserrat", sans-serif;
  font-size: 0.91rem;
  font-weight: 800;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 7px 17px rgba(223, 22, 77, 0.27);
}

.secure {
  color: var(--gray-700);
  font-size: 0.74rem;
  font-weight: 700;
}

.quiz-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 32px;
  min-height: 700px;
  padding: 40px 5vw 55px;
}

.intro-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(29, 13, 21, 0.13), rgba(29, 13, 21, 0.84)),
    url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=1200&q=85")
    center / cover;
  box-shadow: var(--shadow);
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(22, 10, 17, 0.83), transparent 63%),
    linear-gradient(120deg, rgba(223, 22, 77, 0.22), transparent 52%);
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: clamp(26px, 5vw, 58px);
  color: var(--white);
}

.eyebrow,
.question-tag {
  display: inline-block;
  color: var(--red);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.intro-panel .eyebrow {
  color: #ffb6c8;
}

.intro-content h1 {
  margin: 14px 0 18px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.intro-content h1 strong {
  display: block;
  color: #ffb6c8;
}

.intro-content > p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.7;
}

.intro-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  color: #fff;
  font-size: 0.87rem;
}

.intro-cta span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: 0.76rem;
}

.quiz-card {
  align-self: center;
  width: 100%;
  min-height: 600px;
  padding: clamp(25px, 4vw, 45px);
  background: var(--white);
  border: 1px solid rgba(228, 223, 226, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-area {
  margin-bottom: 38px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 700;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: #f0eaed;
  border-radius: 30px;
}

#progressFill {
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: inherit;
  transition: width 0.4s ease;
}

.quiz-step {
  display: none;
  animation: stepIn 0.4s ease both;
}

.quiz-step.active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-step h2 {
  max-width: 650px;
  margin: 11px 0;
  color: var(--black);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.description {
  max-width: 590px;
  margin-bottom: 25px;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.62;
}

.quiz-step label:not(.consent) {
  display: block;
  margin: 16px 0 7px;
  color: var(--gray-900);
  font-size: 0.79rem;
  font-weight: 700;
}

.text-input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  color: var(--black);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  outline: none;
  transition: 0.22s ease;
}

.text-input::placeholder {
  color: #aaa3a8;
}

.text-input:focus {
  background: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(223, 22, 77, 0.1);
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.answer-button {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 100px;
  padding: 15px;
  text-align: left;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.answer-button:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 11px 24px rgba(223, 22, 77, 0.1);
}

.answer-button.selected {
  color: var(--red-dark);
  background: var(--red-light);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(223, 22, 77, 0.08);
}

.answer-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--red);
  background: #fff3f6;
  border-radius: 50%;
  font-size: 0.87rem;
  font-weight: 800;
}

.answer-button strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.84rem;
  line-height: 1.3;
}

.answer-button small {
  display: block;
  color: var(--gray-700);
  font-size: 0.73rem;
  line-height: 1.35;
}

.primary-button,
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 27px;
  padding: 0 22px;
  color: var(--white);
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-button {
  width: 100%;
  background: linear-gradient(110deg, var(--red-dark), var(--red));
  box-shadow: 0 11px 24px rgba(223, 22, 77, 0.22);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 29px rgba(223, 22, 77, 0.3);
}

.primary-button span,
.whatsapp-button span {
  font-size: 1.2rem;
}

.error {
  min-height: 17px;
  margin-top: 6px;
  color: #c31445;
  font-size: 0.74rem;
  font-weight: 700;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 19px;
  color: var(--gray-700);
  font-size: 0.75rem;
  line-height: 1.5;
}

.consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--red);
}

.consent a,
.footer a {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-button {
  display: none;
  margin-top: 22px;
  color: var(--gray-500);
  background: transparent;
  font-size: 0.79rem;
  font-weight: 700;
}

.back-button.visible {
  display: block;
}

.result-step {
  text-align: center;
}

.result-symbol {
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  margin: 0 auto 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(223, 22, 77, 0.24);
  font-size: 1.5rem;
}

.result-step h2 {
  margin-right: auto;
  margin-left: auto;
}

.result-description {
  margin-right: auto;
  margin-left: auto;
}

.result-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 590px;
  margin: 23px auto 0;
  padding: 15px;
  text-align: left;
  background: var(--red-light);
  border: 1px solid rgba(223, 22, 77, 0.13);
  border-radius: 13px;
}

.result-box > span {
  color: var(--red);
  font-weight: 900;
}

.result-box p {
  color: var(--gray-700);
  font-size: 0.82rem;
  line-height: 1.5;
}

.whatsapp-button {
  width: min(100%, 385px);
  margin-right: auto;
  margin-left: auto;
  background: linear-gradient(110deg, #128957, #20b970);
  box-shadow: 0 11px 24px rgba(31, 168, 108, 0.23);
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 29px rgba(31, 168, 108, 0.3);
}

.disclaimer {
  max-width: 500px;
  margin: 17px auto 0;
  color: var(--gray-500);
  font-size: 0.7rem;
  line-height: 1.5;
}

.privacy-section {
  padding: 65px 5vw;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
}

.privacy-content {
  width: min(850px, 100%);
  margin: 0 auto;
}

.privacy-content h2 {
  margin: 10px 0 18px;
  color: var(--black);
  font-family: "Montserrat", sans-serif;
  font-size: 1.95rem;
  letter-spacing: -0.04em;
}

.privacy-content p {
  margin-bottom: 13px;
  color: var(--gray-700);
  font-size: 0.83rem;
  line-height: 1.72;
}

.privacy-content .privacy-date {
  margin-top: 24px;
  color: var(--gray-500);
  font-size: 0.72rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 5vw;
  color: var(--gray-500);
  background: var(--gray-100);
  font-size: 0.72rem;
}

.footer a {
  color: var(--gray-700);
}

@media (max-width: 1000px) {
  .quiz-wrapper {
    grid-template-columns: 1fr;
    padding-top: 25px;
  }

  .intro-panel {
    min-height: 480px;
  }

  .quiz-card {
    align-self: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 65px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 0.79rem;
  }

  .secure {
    max-width: 105px;
    text-align: right;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .quiz-wrapper {
    display: block;
    padding: 14px 13px 34px;
  }

  .intro-panel {
    min-height: 440px;
    border-radius: 18px;
  }

  .intro-content {
    padding: 25px 21px;
  }

  .intro-content h1 {
    font-size: 2.05rem;
  }

  .intro-content > p {
    font-size: 0.88rem;
  }

  .quiz-card {
    min-height: auto;
    margin-top: 14px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .progress-area {
    margin-bottom: 31px;
  }

  .answers {
    grid-template-columns: 1fr;
  }

  .answer-button {
    min-height: 82px;
  }

  .privacy-section {
    padding: 48px 19px;
  }

  .footer {
    flex-direction: column;
    padding: 23px 19px;
  }
}