/* --------------------------------------- */
/* AI READINESS QUIZ COMPONENTS            */
/* --------------------------------------- */

/* Trigger Button Container */
.quiz-trigger-container {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
  background: transparent;
}

/* Trigger Button */
.quiz-glow-btn {
  position: relative;
  padding: 1.25rem 2.5rem;
  background: transparent;
  color: #C4A882;
  border: 1px solid #C4A882;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  animation: quizPulseTeal 2s infinite;
}

@keyframes quizPulseTeal {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 76, 92, 0.6);
    border-color: rgba(15, 76, 92, 0.8);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(15, 76, 92, 0);
    border-color: #C4A882;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 76, 92, 0);
    border-color: #C4A882;
  }
}

.quiz-glow-btn:hover {
  animation: none;
  background: rgba(196, 168, 130, 0.1);
  box-shadow: 0 0 30px rgba(196, 168, 130, 0.4);
  transform: translateY(-3px);
  color: #d4bc9c;
  border-color: #d4bc9c;
}

/* Modal Overlay */
#quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#quiz-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.quiz-card {
  width: 95%;
  max-width: 700px;
  max-height: 85vh;
  background: #1a1a1a;
  border: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  color: #fff;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.9) translateY(20px);
}

#quiz-overlay.active .quiz-card {
  transform: scale(1) translateY(0);
}

body:not(.dark) .quiz-card {
  background: #fdfbf7;
  border-color: rgba(15, 76, 92, 0.2);
  color: #1a1a1a;
}

/* Close Button */
.quiz-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.quiz-close:hover {
  opacity: 1;
}

/* Progress Bar */
.quiz-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(196, 168, 130, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

#quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C4A882, #d4bc9c);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quiz Content */
#quiz-step-question {
  transition: opacity 0.3s ease-in-out;
}

.quiz-question-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* Quiz Options */
.quiz-option {
  display: block;
  width: 100%;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 1.05rem;
}

body:not(.dark) .quiz-option {
  background: rgba(15, 76, 92, 0.03);
  border-color: rgba(15, 76, 92, 0.1);
}

.quiz-option:hover {
  background: rgba(196, 168, 130, 0.1);
  border-color: #C4A882;
  transform: translateX(8px);
}

.quiz-option.selected {
  background: rgba(196, 168, 130, 0.2);
  border-color: #C4A882;
  box-shadow: 0 0 15px rgba(196, 168, 130, 0.2);
}

/* Result Section */
.quiz-score-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.score-red { background: rgba(220, 38, 38, 0.1); color: #ef4444; border: 1px solid rgba(220, 38, 38, 0.2); }
.score-orange { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.score-green { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }

.quiz-verdict-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #C4A882;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.quiz-verdict-message {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* Lead Form */
.quiz-lead-form {
  background: rgba(196, 168, 130, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px dashed rgba(196, 168, 130, 0.3);
}

.quiz-retake-prompt {
  margin-top: 2.5rem !important;
  display: block;
}

.quiz-lead-form input {
  width: 100%;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

body:not(.dark) .quiz-lead-form input {
  background: white;
  border-color: #ccc;
  color: #1a1a1a;
}

.quiz-submit-btn {
  width: 100%;
  padding: 1.25rem;
  background: #C4A882;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.quiz-submit-btn:hover {
  background: #d4bc9c;
  transform: scale(1.02);
}

/* Unlocked Content */
.quiz-unlocked {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility */
.quiz-hidden { display: none !important; }

/* Responsive fixes */
@media (max-width: 640px) {
  .quiz-card {
    padding: 2rem 1.5rem;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .quiz-verdict-title { font-size: 1.8rem; }
}
/* --------------------------------------- */
/* RICH DIAGNOSTIC REPORT (V2)             */
/* --------------------------------------- */

.result-score-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #111;
  border: 1px solid rgba(92, 184, 196, 0.3);
  padding: 0.75rem 2rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(92, 184, 196, 0.15);
}

body:not(.dark) .result-score-pill {
  background: #fdfbf7;
  border-color: rgba(15, 76, 92, 0.2);
}

.radar-chart-svg {
  filter: drop-shadow(0 0 10px rgba(92, 184, 196, 0.3));
}

/* Gap Analysis Cards */
.gap-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

body:not(.dark) .gap-card {
  background: white;
  border-color: rgba(15, 76, 92, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.gap-card:hover {
  border-color: rgba(196, 168, 130, 0.4);
  transform: translateY(-4px);
}

.gap-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  opacity: 0.5;
  margin-bottom: 0.25rem;
  display: block;
}

/* Roadmap Timeline */
.roadmap-step {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.roadmap-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0.75rem;
  width: 1px;
  height: calc(100% + 0.5rem);
  background: rgba(196, 168, 130, 0.3);
}

.roadmap-step:hover .roadmap-marker {
  border-color: #5CB8C4;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.roadmap-marker {
  width: 1.5rem;
  height: 1.5rem;
  background: #1a1a1a;
  border: 2px solid #C4A882;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

body:not(.dark) .roadmap-marker {
  background: #fdfbf7;
}

.roadmap-marker::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #C4A882;
  border-radius: 50%;
}

/* Dimension Score Bar */
.dimension-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dimension-bar-bg {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

body:not(.dark) .dimension-bar-bg {
  background: rgba(15, 76, 92, 0.05);
}

.dimension-bar-fill {
  height: 100%;
  background: #5CB8C4;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
  .quiz-card {
    padding: 2.5rem 1.25rem;
  }
}

/* Electric Halo Nucleus */
.electric-nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(92, 184, 196, 0.4) 0%, 
    rgba(92, 184, 196, 0.1) 50%, 
    transparent 75%);
  filter: url(#electric-filter);
  z-index: 1;
  pointer-events: none;
  animation: electricPulse 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.dark .electric-nucleus {
  background: radial-gradient(circle, 
    rgba(196, 168, 130, 0.2) 0%, 
    rgba(92, 184, 196, 0.15) 40%, 
    rgba(92, 184, 196, 0) 70%);
}

@keyframes electricPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; }
}

.lab-content-wrap {
  position: relative;
  z-index: 10;
}

#the-lab .quiz-glow-btn {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 1.25rem 3rem;
}

@media (max-width: 768px) {
  .electric-nucleus {
    width: 300px;
    height: 300px;
  }
}


