/* ==========================================================================
   Online Vle - Google Ad Manager (GAM) & AdSense Stylesheet
   ========================================================================== */

/* Container wrapper for ad slots to avoid Cumulative Layout Shift (CLS) */
.ad-wrapper {
  margin: 1.5rem auto;
  max-width: 100%;
  text-align: center;
  position: relative;
  clear: both;
}

.ad-wrapper.ad-top {
  margin: 1.5rem auto 2rem;
  max-width: 728px;
}

.ad-wrapper.ad-middle {
  margin: 2.5rem auto;
  max-width: 728px;
}

.ad-wrapper.ad-sidebar {
  margin: 1rem auto;
  max-width: 336px;
}

/* Ad Label styling (Google Ad Manager / AdSense compliance) */
.ad-label {
  display: block;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground, #737373);
  margin-bottom: 6px;
  text-align: center;
  font-weight: 600;
  user-select: none;
}

/* Ad Container */
.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-height: 250px;
  max-width: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  transition: min-height 0.2s ease;
}

@media (min-width: 768px) {
  .ad-container.ad-banner-responsive {
    min-height: 90px;
  }
}

/* Empty ad auto-collapse if configured */
.ad-container.is-collapsed {
  display: none !important;
}

/* Preview / Demo Mode Ad Box */
.ad-slot-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 250px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 16px;
  color: #4b5563;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .ad-slot-preview.ad-leaderboard {
    min-height: 90px;
    max-height: 120px;
  }
}

.ad-slot-preview .ad-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1f2937;
  background: #e5e7eb;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-slot-preview .ad-preview-unit {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  word-break: break-all;
}

.ad-slot-preview .ad-preview-sizes {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

/* ==========================================================================
   Content Gate & Interactive Quiz Dialog Overlay
   (Exact Match to Online Vle live flow)
   ========================================================================== */

body.jgd-reward-locked {
  overflow: hidden !important;
}

body.jgd-reward-locked main,
body.jgd-reward-locked article,
body.jgd-reward-locked header,
body.jgd-reward-locked footer,
body.jgd-reward-locked nav,
body.jgd-reward-locked [data-job-opps] {
  filter: blur(9px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

#jgd-reward-lock {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22vh 16px 32px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(2px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: fadeInGate 0.25s ease-out;
}

@keyframes fadeInGate {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.jgd-reward-ad-open #jgd-reward-lock {
  opacity: 0;
  pointer-events: none;
}

#jgd-reward-lock-card {
  width: min(448px, 100%);
  box-sizing: border-box;
  padding: 20px 20px 22px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 38px rgba(17, 24, 39, 0.12);
  text-align: center;
  color: #202124;
}

#jgd-reward-lock-card h2 {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
}

.jgd-reward-subtitle {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.45;
}

#jgd-reward-lock-button {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 4px;
  background: #5b35a0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.jgd-reward-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}

.jgd-reward-play::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  border-left: 18px solid #5b35a0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.jgd-reward-footnote {
  margin: 12px 0 0;
  color: #737373;
  font-size: 14px;
  line-height: 1.4;
}

.jgd-quiz-card {
  padding: 0 0 22px;
  overflow: hidden;
}

.jgd-quiz-progress {
  height: 8px;
  width: 100%;
  background: #eceff3;
}

.jgd-quiz-progress span {
  display: block;
  height: 100%;
  width: 8%;
  background: #5b35a0;
  transition: width 0.28s ease;
}

.jgd-quiz-question {
  min-height: 76px;
  padding: 28px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #202124;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 750;
}

.jgd-quiz-options {
  display: grid;
  gap: 12px;
  padding: 0 24px;
}

.jgd-quiz-option {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: #5b35a0;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
  transition: background 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.jgd-quiz-option:hover,
#jgd-reward-lock-button:hover {
  background: #4f2d8b;
}

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

.jgd-quiz-final {
  min-height: 64px;
}

.jgd-quiz-loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.jgd-quiz-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5b35a0;
  animation: jgd-bounce 1.2s infinite ease-in-out;
}

.jgd-quiz-loading-dots span:nth-child(2) { animation-delay: 0.18s; }
.jgd-quiz-loading-dots span:nth-child(3) { animation-delay: 0.36s; }

.jgd-quiz-loading-text {
  color: #5b35a0;
  font-size: 18px;
  font-weight: 600;
}

@keyframes jgd-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 520px) {
  #jgd-reward-lock { padding-top: 18vh; }
  #jgd-reward-lock-card { padding: 18px 16px 20px; }
  #jgd-reward-lock-card.jgd-quiz-card { padding: 0 0 18px; }
  #jgd-reward-lock-card h2 { font-size: 18px; }
  .jgd-quiz-question { font-size: 18px; padding: 24px 18px 14px; }
}

/* Rewarded Ad / Modal Gate Overlay */
.ad-rewarded-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ad-rewarded-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.ad-rewarded-header {
  background: #1e293b;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-rewarded-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-rewarded-timer {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-family: monospace;
}

.ad-rewarded-body {
  padding: 24px;
  text-align: center;
}

.ad-rewarded-media {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px 16px;
  margin: 16px 0;
}

.ad-rewarded-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   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;
}

