/* ==========================================================================
   Quick Match Quiz — New Red Bell & Daily Job Alerts Funnel Design
   ========================================================================== */

#job-quiz,
.quiz-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px 22px 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--font-sans, "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
}

@media (min-width: 640px) {
  #job-quiz,
  .quiz-card {
    padding: 28px 28px 24px;
  }
}

/* Header: Stepper on left, Quick Match badge on right */
.quiz-header {
  margin-bottom: 18px;
}

.quiz-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-header-stepper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quiz-step-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-step-text {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  line-height: 1;
}

.quiz-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.quiz-back-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.quiz-back-btn.hidden {
  display: none !important;
}

/* 4-pill progress indicators */
.quiz-pill-progress {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quiz-pill {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background-color 0.25s ease;
}

.quiz-pill.active {
  background: #dc2626;
}

/* Quick Match pill badge */
.quiz-quick-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
}

.quiz-qm-icon {
  width: 12px;
  height: 12px;
  fill: #dc2626;
  flex-shrink: 0;
}

/* Steps 1-3: Question and Options */
.quiz-question-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 12px 0 6px 0;
  letter-spacing: -0.02em;
}

.quiz-question-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 18px 0;
  line-height: 1.45;
}

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

.quiz-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.quiz-option-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.quiz-option-btn:active {
  transform: translateY(0);
  background: #f1f5f9;
}

.quiz-option-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.quiz-option-btn:hover .quiz-option-radio {
  border-color: #dc2626;
}

.quiz-option-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s ease;
}

.quiz-option-btn:hover .quiz-option-radio-dot {
  opacity: 1;
  transform: scale(1);
}

.quiz-option-text {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.quiz-option-chevron {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
  width: 16px;
  height: 16px;
  display: block;
}

.quiz-option-btn:hover .quiz-option-chevron {
  color: #0f172a;
  transform: translateX(3px);
}

/* Step 4: Hero Design from image */
.quiz-step4-wrap {
  text-align: center;
  padding-top: 4px;
}

.quiz-hero-illustration-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 12px;
  text-align: center;
}

.quiz-hero-illustration {
  width: 100%;
  max-width: 440px;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.quiz-hero-headline {
  font-family: var(--font-sans, "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  text-align: center;
  margin: 0 0 14px 0;
  letter-spacing: -0.03em;
}

@media (max-width: 640px) {
  .quiz-hero-headline {
    font-size: 27px;
  }
}

.quiz-hero-headline-red {
  color: #dc2626;
  display: inline-block;
}

.quiz-hero-desc {
  font-family: var(--font-sans, "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
  text-align: center;
  max-width: 430px;
  margin: 0 auto 20px;
}

.quiz-hero-desc strong {
  color: #0f172a;
  font-weight: 700;
}

/* Red CTA Button with bell icon on left and arrow on right */
.quiz-btn-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 22px;
  background: #dc2626;
  color: #ffffff !important;
  border: none;
  border-radius: 16px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
  box-sizing: border-box;
  text-decoration: none;
}

.quiz-btn-submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(220, 38, 38, 0.42);
  color: #ffffff !important;
}

.quiz-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.quiz-btn-left-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-btn-bell-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  stroke: #ffffff;
}

.quiz-btn-label {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.quiz-btn-arrow-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  stroke: #ffffff;
  transition: transform 0.18s ease;
}

.quiz-btn-submit:hover .quiz-btn-arrow-icon {
  transform: translateX(3px);
}

/* Trust Microcopy Bar with 3 items separated by vertical lines */
.quiz-microcopy-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 16px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

.quiz-microcopy-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.quiz-microcopy-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #64748b;
}

.quiz-microcopy-divider {
  width: 1px;
  height: 13px;
  background: #cbd5e1;
  display: inline-block;
}

/* Secondary Link */
.quiz-footer-links {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.quiz-hero-link-continue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
  transition: color 0.15s ease;
}

.quiz-hero-link-continue u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-hero-link-continue:hover {
  color: #b91c1c;
}

.quiz-hero-link-continue svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
  stroke: currentColor;
}

.quiz-hero-link-continue:hover svg {
  transform: translateX(3px);
}

/* Success & Blocked views */
.quiz-state-view {
  text-align: center;
  padding: 10px 0;
}

.quiz-success-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.14);
}

.quiz-success-badge svg {
  width: 30px;
  height: 30px;
  stroke: #059669;
}

.quiz-blocked-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.14);
}

.quiz-blocked-badge svg {
  width: 30px;
  height: 30px;
  stroke: #d97706;
}

.quiz-blocked-steps {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0 20px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.45;
}

.quiz-blocked-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.quiz-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d97706;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.quiz-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}

.quiz-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.quiz-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
