/* ─── Quiz Page — Wizard Funnel Styles ─── */

/* ─── Keyframe Animations ─── */
@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes quizDotPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ─── Page Wrapper ─── */
.quiz-page {
  min-height: 100vh;
  background: var(--green-black);
  color: var(--smoke);
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

/* ─── Header ─── */
.quiz-header {
  background: var(--spruce-green);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quiz-header img {
  height: 48px;
  width: auto;
}

.quiz-header__title {
  font-family: 'Sink', 'Inter', system-ui, sans-serif;
  font-size: 1.35rem;
  color: var(--light-fuschia);
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .quiz-header {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
  }

  .quiz-header__title {
    font-size: 1.6rem;
  }
}

/* ─── Progress Indicator ─── */
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem 0.75rem;
}

.progress__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.progress__dot--active {
  background: var(--light-fuschia);
  border-color: var(--light-fuschia);
  animation: quizDotPop 0.3s ease;
  width: 12px;
  height: 12px;
}

.progress__dot--completed {
  background: rgba(202, 243, 104, 0.45);
  border-color: var(--light-fuschia);
}

/* ─── Quiz Body / Content Area ─── */
.quiz-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 6rem;
}

/* ─── Step Container ─── */
.step {
  display: none;
}

.step--active {
  display: block;
  animation: quizFadeIn 0.3s ease both;
}

/* ─── Step Question ─── */
.step__question {
  font-family: 'Sink', 'Inter', system-ui, sans-serif;
  font-size: 1.6rem;
  color: var(--smoke);
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .step__question {
    font-size: 2rem;
  }
}

/* ─── Step Subtitle ─── */
.step__subtitle {
  font-size: 1rem;
  color: rgba(255, 253, 250, 0.65);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ─── Multi-select Hint ─── */
.multi-select-hint {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255, 253, 250, 0.5);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* ─── Option Grid ─── */
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 540px) {
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Option Card ─── */
.option-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  min-height: 44px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.option-card:hover {
  border-color: rgba(202, 243, 104, 0.45);
  background: rgba(202, 243, 104, 0.06);
  transform: translateY(-1px);
}

.option-card--selected {
  border-color: var(--light-fuschia);
  background: rgba(202, 243, 104, 0.1);
}

.option-card--selected:hover {
  border-color: var(--light-fuschia);
  background: rgba(202, 243, 104, 0.14);
}

/* ─── Option Card Content ─── */
.option-card__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--smoke);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.option-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 253, 250, 0.6);
  line-height: 1.45;
}

/* ─── Email / Name Form ─── */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.email-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 253, 250, 0.85);
}

.email-form input {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--smoke);
  min-height: 44px;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.email-form input::placeholder {
  color: rgba(255, 253, 250, 0.35);
}

.email-form input:focus {
  outline: none;
  border-color: var(--light-fuschia);
  background: rgba(202, 243, 104, 0.06);
}

.email-form button {
  background: var(--light-fuschia);
  color: var(--spruce-green);
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(202, 243, 104, 0.25);
  margin-top: 0.25rem;
}

.email-form button:hover {
  background: #d8ff78;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(202, 243, 104, 0.4);
}

.email-form button:active {
  transform: translateY(0);
}

/* ─── Results Container ─── */
.results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.results__heading {
  font-family: 'Sink', 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  color: var(--light-fuschia);
  text-align: center;
  margin-bottom: 0.5rem;
}

.results__intro {
  text-align: center;
  color: rgba(255, 253, 250, 0.7);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Result Card ─── */
.result-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border-left-width: 4px;
  transition: background 0.2s ease;
}

.result-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.result-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--smoke);
  margin-bottom: 0.35rem;
}

.result-card__body {
  font-size: 0.9rem;
  color: rgba(255, 253, 250, 0.65);
  line-height: 1.55;
}

/* Result Card Color Variants */
.result-card--bracket {
  border-left-color: var(--light-fuschia);
}

.result-card--events {
  border-left-color: var(--violet);
}

.result-card--partner {
  border-left-color: #60b4f0;
}

.result-card--social {
  border-left-color: var(--playful-pink);
}

.result-card--community {
  border-left-color: var(--yellow);
}

/* ─── Quiz Navigation ─── */
.quiz-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(1, 22, 13, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 100;
}

/* ─── Back Button ─── */
.quiz-back {
  background: none;
  border: none;
  color: rgba(255, 253, 250, 0.6);
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  cursor: pointer;
  padding: 0.625rem 0;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
  text-align: left;
}

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

.quiz-back[hidden] {
  visibility: hidden;
  pointer-events: none;
}

/* ─── Next Button ─── */
.quiz-next {
  background: var(--light-fuschia);
  color: var(--spruce-green);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  min-width: 100px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 10px rgba(202, 243, 104, 0.25);
}

.quiz-next:hover:not(:disabled) {
  background: #d8ff78;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(202, 243, 104, 0.4);
}

.quiz-next:active:not(:disabled) {
  transform: translateY(0);
}

.quiz-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ─── Mobile Adjustments ─── */
@media (max-width: 480px) {
  .quiz-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .step__question {
    font-size: 1.4rem;
  }

  .option-card {
    padding: 1rem;
  }

  .quiz-nav {
    padding: 0.75rem 1rem;
  }

  .quiz-next {
    padding: 0.75rem 1.25rem;
    min-width: 88px;
  }
}

/* ─── Desktop Layout Tweaks ─── */
@media (min-width: 768px) {
  .quiz-body {
    padding-top: 2rem;
    padding-bottom: 7rem;
  }

  .quiz-nav {
    padding: 1rem 2rem;
  }
}
