/* ===================== RESET & BASE ===================== */
/* Scoped to #activatietest-root where possible; html/body rules
   only activate when the quiz is the primary page content.      */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --mint: #7FDFD4;
  --mint-light: #a8ede7;
  --purple: #3B1A8B;
  --purple-btn: #4A22A8;
  --white: #ffffff;
  --font: 'Archivo', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  font-stretch: semi-expanded;
  background: var(--mint);
  color: var(--purple);
  position: relative;
}

/* ===================== SCREENS ===================== */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.screen.exit {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-stretch: semi-expanded;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 26, 139, 0.25);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--purple-btn);
  color: var(--white);
}

.btn-primary:hover {
  background: #5828c4;
}

.btn-secondary {
  background: var(--white);
  color: var(--purple);
  border: 2px solid rgba(59, 26, 139, 0.2);
}

/* ===================== STARTSCHERM ===================== */
#screen-start {
  background: var(--mint);
  align-items: center;
  justify-content: center;
}

.start-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 40px 24px;
  max-width: 680px;
}

.start-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  font-stretch: semi-expanded;
  line-height: 1.15;
  color: var(--purple);
}

.start-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--purple);
  opacity: 0.85;
}

.start-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--purple);
  opacity: 0.8;
}

/* ===================== HEADER (quiz + result) ===================== */
.quiz-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 0 0 50% 50% / 0 0 60px 60px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  z-index: 10;
}

.header-inner {
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-hjh {
  line-height: 1;
}

.logo-hjh-text {
  font-size: 0.9rem;
  font-weight: 900;
  font-stretch: semi-expanded;
  letter-spacing: 0.04em;
  color: var(--purple);
  display: block;
}

.logo-separator {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.logo-lelystad {
  display: flex;
  align-items: center;
}

/* ===================== VRAGENSCHERM ===================== */
#screen-questions {
  background: var(--mint);
}

.quiz-body {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
}

/* LEFT PANEL */
.quiz-left {
  width: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  overflow-y: auto;
}

.quiz-left-inner {
  padding: 48px 56px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

/* Progress dots */
.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple);
}

.progress-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.dot--done {
  background: var(--purple);
  color: var(--white);
  border: 2px solid var(--purple);
}

.dot--current {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
  font-weight: 800;
}

.dot--future {
  background: transparent;
  color: var(--purple);
  border: 2px solid rgba(59, 26, 139, 0.35);
  opacity: 0.7;
}

/* Question content */
.question-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.question-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.question-content.fade-in {
  opacity: 0;
  transform: translateY(-10px);
}

.question-text {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  font-stretch: semi-expanded;
  line-height: 1.25;
  color: var(--purple);
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-btn {
  background: var(--white);
  color: var(--purple);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50px;
  padding: 16px 24px;
  font-family: var(--font);
  font-stretch: semi-expanded;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.answer-btn:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 16px rgba(59, 26, 139, 0.15);
  transform: translateY(-1px);
}

.answer-btn.selected {
  background: var(--purple-btn);
  color: var(--white);
  border-color: var(--purple-btn);
}

/* RIGHT PANEL */
.quiz-right {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.img-bg {
  position: absolute;
  inset: 0;
  background: #c8c8c8;
  transition: opacity 0.4s ease;
}

.img-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.img-fg {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 75%;
  height: 90%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-50%) translateY(0px);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.38s ease;
}

.img-fg.exit-down {
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
}

.img-fg.enter-start {
  transform: translateX(-50%) translateY(90px) !important;
  opacity: 0 !important;
  transition: none !important;
}

.img-fg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Placeholder styling */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}

.img-placeholder--bg {
  background: #b0b8be;
  color: #555;
}

.img-placeholder--fg {
  background: rgba(100, 80, 160, 0.15);
  color: var(--purple);
  border: 2px dashed rgba(59, 26, 139, 0.3);
  border-radius: 8px;
}


/* ===================== RESULTAATSCHERM ===================== */
#screen-result {
  background: var(--mint);
  overflow-y: auto;
}

.result-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 48px;
  gap: 20px;
  overflow-y: auto;
}

.result-intro {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple);
}

.result-percentage {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  font-stretch: semi-expanded;
  color: var(--purple);
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-stretch: semi-expanded;
  color: var(--purple);
  line-height: 1.3;
}

.result-divider {
  width: min(480px, 80%);
  border: none;
  border-top: 1px solid rgba(59, 26, 139, 0.2);
  margin: 4px 0;
}

.result-description {
  font-size: 1rem;
  font-weight: 400;
  color: var(--purple);
  line-height: 1.7;
  max-width: 600px;
  opacity: 0.9;
}

.result-cta-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  margin-top: 4px;
}

.result-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .quiz-body {
    flex-direction: column;
  }

  .quiz-left,
  .quiz-right {
    width: 100%;
  }

  .quiz-right {
    height: 280px;
    flex-shrink: 0;
    order: -1;
  }

  .quiz-left-inner {
    padding: 32px 24px;
  }

  .header-inner {
    padding: 12px 24px;
  }
}
