/* ===========================
   PATHWAY QUIZ WIDGET
   Embedded in the landing page hero below the main CTA.
   Follows landing page palette: navy / amber / teal.
   =========================== */

/* ---- Container ---- */
.quiz-shell {
  margin: 0 auto 0;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(11, 22, 40, 0.12), 0 0 0 1px var(--border);
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  max-width: 680px;
}

/* ---- Progress bar ---- */
.quiz-progress {
  height: 4px;
  background: var(--border);
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  border-radius: 0 2px 2px 0;
}

/* ---- Steps wrapper ---- */
.quiz-steps {
  position: relative;
  min-height: 440px;
}

/* ---- Individual step ---- */
.quiz-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 40px 40px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.quiz-step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---- Step meta ---- */
.quiz-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.quiz-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
}
.quiz-step-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ---- Options grid ---- */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  align-content: start;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  user-select: none;
}
.quiz-option:hover {
  border-color: var(--teal);
  background: rgba(10, 212, 196, 0.04);
}
.quiz-option.is-selected {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 4px 16px rgba(11, 22, 40, 0.2);
}
.quiz-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(11, 22, 40, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}
.quiz-option.is-selected .quiz-option-icon {
  background: rgba(255, 255, 255, 0.15);
}
.quiz-option-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.quiz-option.is-selected .quiz-option-text {
  color: #fff;
}
.quiz-option-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.quiz-option.is-selected .quiz-option-sub {
  color: rgba(255, 255, 255, 0.65);
}

/* ---- Bottom nav ---- */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.quiz-btn {
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
  font-family: 'DM Sans', sans-serif;
}
.quiz-btn:active { transform: scale(0.97); }
.quiz-btn-next {
  background: var(--navy);
  color: #fff;
}
.quiz-btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.quiz-btn-back {
  background: transparent;
  color: var(--text-muted);
  padding: 11px 16px;
}
.quiz-btn-back:hover { color: var(--text); }

/* ---- Results screen ---- */
.quiz-results {
  padding: 36px 40px 40px;
}
.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(10, 212, 196, 0.1);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 20px;
}
.results-badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.results-headline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}
.results-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ---- Mini pathway ---- */
.pathway-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 28px;
}
.pathway-node {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  position: relative;
}
.pathway-node--start {
  background: var(--navy);
  border-color: var(--navy);
}
.pathway-node--mid {
  background: rgba(232, 168, 56, 0.08);
  border-color: rgba(232, 168, 56, 0.35);
}
.pathway-node--end {
  background: linear-gradient(135deg, var(--amber), #D4880A);
  border-color: var(--amber);
}
.node-icon {
  font-size: 20px;
  margin-bottom: 6px;
  display: block;
}
.node-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}
.pathway-node--start .node-label { color: rgba(255,255,255,0.7); }
.pathway-node--mid .node-label { color: var(--amber); }
.pathway-node--end .node-label { color: rgba(11,22,40,0.7); }
.node-time {
  font-size: 10px;
  color: var(--text-light);
  display: block;
  margin-top: 4px;
  line-height: 1.2;
}
.pathway-node--start .node-time { color: rgba(255,255,255,0.45); }
.pathway-node--mid .node-time { color: rgba(11,22,40,0.45); }
.pathway-node--end .node-time { color: rgba(11,22,40,0.5); }
.pathway-arrow {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* ---- Timeline callout ---- */
.timeline-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 212, 196, 0.07);
  border: 1px solid rgba(10, 212, 196, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
}
.timeline-icon {
  width: 36px; height: 36px;
  background: rgba(10, 212, 196, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.timeline-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Email capture ---- */
.waitlist-form { }
.waitlist-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  display: block;
}
.waitlist-row {
  display: flex;
  gap: 10px;
}
.waitlist-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.18s;
}
.waitlist-input::placeholder { color: var(--text-light); }
.waitlist-input:focus { border-color: var(--teal); }
.waitlist-btn {
  padding: 11px 22px;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.18s, transform 0.12s;
  white-space: nowrap;
}
.waitlist-btn:hover { opacity: 0.88; }
.waitlist-btn:active { transform: scale(0.97); }
.waitlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.waitlist-fine {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.4;
}

/* ---- Success state ---- */
.waitlist-success {
  display: none;
  text-align: center;
  padding: 8px 0;
}
.waitlist-success.is-visible {
  display: block;
}
.success-icon {
  width: 48px; height: 48px;
  background: rgba(10, 212, 196, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.success-headline {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.success-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Error message ---- */
.quiz-error {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #b91c1c;
  margin-top: 12px;
}
.quiz-error.is-visible { display: flex; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .quiz-shell { border-radius: 16px; }
  .quiz-step { padding: 28px 24px 32px; }
  .quiz-results { padding: 28px 24px 32px; }
  .quiz-options { grid-template-columns: 1fr; gap: 10px; }
  .quiz-option { padding: 13px 14px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-btn { width: 100%; }
  .pathway-diagram { gap: 4px; }
  .pathway-node { padding: 10px 6px; }
  .node-icon { font-size: 16px; }
}

/* ---- Related reading ---- */
.related-blogs { padding: 60px 0; }
.related-blogs .related-blogs-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.related-blogs .related-blogs-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}
.related-blogs .related-blogs-list a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}