/* Typeform-style quiz: centered column, one question per screen, soft entrance
   animation, big tappable options. Shares brand tokens from base.css. */

.quiz-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 40px;
}

.quiz-header {
  margin-bottom: 22px;
}

.quiz {
  width: 100%;
  max-width: 440px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.quiz-card {
  animation: quiz-in 0.32s ease both;
}

@keyframes quiz-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-progress {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 7px;
}

.quiz-track {
  height: 6px;
  background: #e7e0d6;
  border-radius: 4px;
  overflow: hidden;
}

.quiz-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.35s ease;
}

.quiz-question {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: var(--green-dark);
  margin: 24px 0 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--green-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease,
    background 0.15s ease, box-shadow 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--green);
}

.quiz-option:active {
  transform: scale(0.99);
}

.quiz-option-letter {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef2ec;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-option.is-selected {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 6px 0 var(--green-shadow);
}

.quiz-option.is-selected .quiz-option-letter {
  background: var(--white);
  color: var(--green);
}

.quiz-back {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.quiz-back:hover {
  color: var(--green);
}

/* Country picker (select question). 16px font keeps iOS from zooming on focus. */
.quiz-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--green-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
  margin-bottom: 14px;
}

.quiz-select:focus {
  outline: none;
  border-color: var(--green);
}

.quiz-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  font-family: var(--sans);
  background: var(--green);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--green-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease;
}

.quiz-continue:hover {
  transform: translateY(-1px);
}

.quiz-continue:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--green-shadow);
}

.quiz-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Completion screen */
.quiz-done {
  text-align: center;
}

/* Result screen — soft pulsing icon for the "careful" (review) state. */
.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef2ec;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 4px;
  animation: result-pulse 1.8s ease-in-out infinite;
}

@keyframes result-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(93, 117, 93, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(93, 117, 93, 0);
  }
}

.quiz-done-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--green-dark);
  margin: 16px 0 10px;
}

.quiz-done-sub {
  color: var(--green);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 auto 26px;
  max-width: 340px;
}

.quiz-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--green);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--green-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.quiz-cta:hover {
  transform: translateY(-1px);
}

.quiz-cta:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--green-shadow);
}

/* Two equal CTA buttons on the result screen, stacked with a small gap. */
.quiz-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Calm fade-in for the no-CTA screens (reject + citizenship gate). No slide, no pulse, no confetti. */
.quiz-result--reject,
.quiz-result--ineligible {
  animation: result-fade 0.5s ease both;
}

@keyframes result-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.quiz-reject-intro {
  color: var(--green);
  font-size: 15px;
  line-height: 1.55;
  max-width: 360px;
  margin: 4px auto 14px;
}

.quiz-reject-points {
  list-style: none;
  text-align: left;
  max-width: 360px;
  margin: 0 auto 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-reject-points li {
  position: relative;
  padding-left: 20px;
  color: var(--green-dark);
  font-size: 15px;
  line-height: 1.5;
}

.quiz-reject-points li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.quiz-reject-outro {
  color: var(--green);
  font-size: 15px;
  line-height: 1.55;
  max-width: 360px;
  margin: 0 auto;
}

/* Respect users who ask for less motion: no card slide, no icon pulse. */
@media (prefers-reduced-motion: reduce) {
  .quiz-card,
  .quiz-result--reject,
  .quiz-result--ineligible,
  .result-icon {
    animation: none;
  }
}

/* Lead form (fit / review): the visitor leaves their own contact and we reach out. */
.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 6px auto 0;
  text-align: left;
}

.quiz-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  color: var(--green-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
}

.quiz-input:focus {
  outline: none;
  border-color: var(--green);
}

/* Honeypot: parked off-screen, never shown to humans. */
.quiz-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--green);
  cursor: pointer;
}

.quiz-consent input {
  margin-top: 2px;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.quiz-consent a {
  color: var(--green);
  text-decoration: underline;
}

.quiz-submit {
  margin-top: 2px;
}

.quiz-form-error {
  color: #b23b2e;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

/* intl-tel-input widget: fill the field width, and render the dial code as a
   distinct boxed segment on the left (a separate "box" from the number input). */
.iti {
  width: 100%;
}

.quiz-contact .iti__selected-country {
  background: #f1eee8;
  border-right: 1.5px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
}

.quiz-contact .iti__selected-country:hover,
.quiz-contact .iti__selected-country[aria-expanded='true'] {
  background: #e9e4db;
}

.quiz-contact .iti__selected-country-primary {
  padding: 0 9px;
}

/* RU channel toggle (WhatsApp / Telegram). */
.quiz-channel {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.quiz-channel-btn {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.quiz-channel-btn.is-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
