/* AEO Diagnostic Quiz Funnel Styles */
#eos-quiz-widget-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
}

#eos-quiz-widget-root * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 1. Launch Button Styling */
#eos-quiz-widget-root .eos-quiz-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669) !important; /* Premium Emerald green matching site theme */
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 14px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

#eos-quiz-widget-root .eos-quiz-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 28px -5px rgba(16, 185, 129, 0.5) !important;
}

#eos-quiz-widget-root .eos-quiz-btn:active {
  transform: translateY(0) scale(1) !important;
}

#eos-quiz-widget-root .eos-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

#eos-quiz-widget-root .eos-pulse-dot::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  animation: eos-pulse 1.8s infinite ease-in-out;
}

@keyframes eos-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* 2. Modal Container Styling */
#eos-quiz-widget-root .eos-quiz-modal-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 460px;
  max-width: calc(100vw - 48px);
  animation: eos-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes eos-slide-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 3. Card & Premium Styling */
#eos-quiz-widget-root .eos-quiz-card {
  background: #ffffff !important; /* Solid high-contrast background to block out background text */
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.dark #eos-quiz-widget-root .eos-quiz-card {
  background: #0f172a !important; /* Solid dark background */
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* 4. Header Styling */
#eos-quiz-widget-root .eos-quiz-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #f8fafc !important;
}

.dark #eos-quiz-widget-root .eos-quiz-header {
  border-color: #1e293b !important;
  background: #1e293b !important;
}

#eos-quiz-widget-root .eos-quiz-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #10b981 !important; /* Emerald green accent */
}

#eos-quiz-widget-root .eos-quiz-close-btn {
  background: transparent !important;
  border: none !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  cursor: pointer;
  transition: color 0.2s !important;
}

#eos-quiz-widget-root .eos-quiz-close-btn:hover {
  color: #ef4444 !important; /* High contrast red on hover */
}

/* 5. Body & Elements Styling */
#eos-quiz-widget-root .eos-quiz-body {
  padding: 24px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
}

.dark #eos-quiz-widget-root .eos-quiz-body {
  background: #0f172a !important;
}

#eos-quiz-widget-root .eos-quiz-progress-bar {
  width: 100% !important;
  height: 6px !important;
  background-color: #f1f5f9 !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

.dark #eos-quiz-widget-root .eos-quiz-progress-bar {
  background-color: #334155 !important;
}

#eos-quiz-widget-root .eos-quiz-progress-fill {
  height: 100% !important;
  background: #10b981 !important; /* Emerald fill */
  border-radius: 9999px !important;
  transition: width 0.3s ease !important;
}

#eos-quiz-widget-root .eos-quiz-progress-text {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  margin-bottom: 16px !important;
}

#eos-quiz-widget-root .eos-quiz-question {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  color: #0f172a !important;
  margin-bottom: 24px !important;
}

.dark #eos-quiz-widget-root .eos-quiz-question {
  color: #ffffff !important;
}

#eos-quiz-widget-root .eos-quiz-subtext {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 20px !important;
  line-height: 1.6 !important;
}

.dark #eos-quiz-widget-root .eos-quiz-subtext {
  color: #cbd5e1 !important;
}

/* 6. Answer Options Buttons */
#eos-quiz-widget-root .eos-quiz-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

#eos-quiz-widget-root .eos-quiz-option-btn {
  width: 100% !important;
  text-align: left !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease !important;
}

.dark #eos-quiz-widget-root .eos-quiz-option-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

#eos-quiz-widget-root .eos-quiz-option-btn:hover {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
  color: #059669 !important;
}

/* 7. Lead Forms */
#eos-quiz-widget-root .eos-quiz-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

#eos-quiz-widget-root .eos-form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#eos-quiz-widget-root .eos-form-group label {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  letter-spacing: 0.5px !important;
}

#eos-quiz-widget-root .eos-form-group input {
  padding: 12px 16px !important;
  font-size: 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  background: #ffffff !important;
  color: #1e293b !important;
}

.dark #eos-quiz-widget-root .eos-form-group input {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

#eos-quiz-widget-root .eos-form-group input:focus {
  border-color: #10b981 !important;
}

#eos-quiz-widget-root .eos-form-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 4px 0 !important;
}

#eos-quiz-widget-root .eos-form-checkbox input {
  cursor: pointer !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: #10b981 !important;
}

#eos-quiz-widget-root .eos-form-checkbox label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer !important;
}

.dark #eos-quiz-widget-root .eos-form-checkbox label {
  color: #cbd5e1 !important;
}

#eos-quiz-widget-root .eos-quiz-submit-btn {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

#eos-quiz-widget-root .eos-quiz-submit-btn:hover {
  background: #059669 !important;
}

#eos-quiz-widget-root .eos-quiz-submit-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* 8. Results View styling */
#eos-quiz-widget-root .text-center {
  text-align: center !important;
  align-items: center !important;
}

#eos-quiz-widget-root .eos-quiz-score-badge {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  margin: 0 auto 20px !important;
  border: 5px solid #e2e8f0 !important;
}

#eos-quiz-widget-root .eos-quiz-score-badge span {
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#eos-quiz-widget-root .eos-quiz-score-badge small {
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  margin-top: 4px !important;
  width: 70px !important;
}

#eos-quiz-widget-root .eos-quiz-score-badge.red {
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}
#eos-quiz-widget-root .eos-quiz-score-badge.amber {
  border-color: #fde047 !important;
  color: #ca8a04 !important;
}
#eos-quiz-widget-root .eos-quiz-score-badge.green {
  border-color: #86efac !important;
  color: #16a34a !important;
}

#eos-quiz-widget-root .eos-quiz-result-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

.dark #eos-quiz-widget-root .eos-quiz-result-title {
  color: #ffffff !important;
}

#eos-quiz-widget-root .eos-quiz-result-desc {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

.dark #eos-quiz-widget-root .eos-quiz-result-desc {
  color: #cbd5e1 !important;
}

#eos-quiz-widget-root .eos-quiz-result-cta-btn {
  display: inline-block !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
  margin-bottom: 16px !important;
  transition: transform 0.2s !important;
}

#eos-quiz-widget-root .eos-quiz-result-cta-btn:hover {
  transform: scale(1.03) !important;
}

#eos-quiz-widget-root .eos-quiz-restart-btn {
  background: transparent !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
}

#eos-quiz-widget-root .eos-quiz-restart-btn:hover {
  color: #64748b !important;
  text-decoration: underline !important;
}

/* 9. Check Your Visibility Reopen Button */
.check-visibility-btn {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1.5px solid #0d1117;
  border-radius: 99px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #10b981; /* Premium Emerald green text */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  width: fit-content;
  text-transform: lowercase; /* Matches the screenshot design */
}

.check-visibility-btn:hover {
  background: #0d1117;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}


