/* ==========================================================================
   AI FUNNEL PAGE
   ========================================================================== */

/* Funnel hero */
.fc-funnel-hero {
  background-color: var(--fc-bg-dark);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.fc-funnel-hero .fc-headline-xl {
  color: var(--fc-text-on-dark);
  margin-bottom: var(--fc-space-lg);
}

.fc-funnel-hero .fc-text-lg {
  color: var(--fc-text-on-dark-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--fc-space-2xl);
}

.fc-funnel-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--fc-space-md);
}

.fc-funnel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fc-text-sm);
  color: var(--fc-text-on-dark-muted);
  padding: 0.4em 1em;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--fc-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fc-funnel-badge svg {
  color: var(--fc-teal-400);
}

/* Quiz container */
.fc-quiz {
  padding: var(--fc-space-3xl) 0 var(--fc-space-4xl);
}

.fc-quiz-container {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Progress bar */
.fc-quiz-progress {
  margin-bottom: var(--fc-space-2xl);
}

.fc-quiz-progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--fc-navy-100);
  border-radius: var(--fc-radius-full);
  overflow: hidden;
}

.fc-quiz-progress-fill {
  height: 100%;
  background-color: var(--fc-amber-500);
  border-radius: var(--fc-radius-full);
  transition: width 0.5s var(--fc-ease);
}

.fc-quiz-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: var(--fc-text-sm);
  color: var(--fc-text-muted);
  margin-top: var(--fc-space-sm);
}

/* Question */
.fc-quiz-question {
  display: none;
  animation: fcFadeUp 0.4s var(--fc-ease);
}

.fc-quiz-question.is-active {
  display: block;
}

.fc-quiz-question-title {
  font-size: var(--fc-text-3xl);
  margin-bottom: var(--fc-space-sm);
}

.fc-quiz-question-subtitle {
  color: var(--fc-text-muted);
  margin-bottom: var(--fc-space-2xl);
}

/* Answer options */
.fc-quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--fc-space-md);
}

.fc-quiz-option {
  display: flex;
  align-items: center;
  gap: var(--fc-space-md);
  padding: var(--fc-space-lg) var(--fc-space-xl);
  border: 2px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  cursor: pointer;
  transition: all var(--fc-duration) var(--fc-ease);
  background: var(--fc-bg);
}

.fc-quiz-option:hover {
  border-color: var(--fc-navy-300);
  background: var(--fc-navy-50);
}

.fc-quiz-option.is-selected {
  border-color: var(--fc-amber-500);
  background: var(--fc-amber-50);
}

.fc-quiz-option-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--fc-navy-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--fc-duration) var(--fc-ease);
}

.fc-quiz-option.is-selected .fc-quiz-option-marker {
  border-color: var(--fc-amber-500);
  background-color: var(--fc-amber-500);
}

.fc-quiz-option.is-selected .fc-quiz-option-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.fc-quiz-option-text {
  font-size: var(--fc-text-base);
  font-weight: 500;
  color: var(--fc-navy-800);
}

.fc-quiz-option-desc {
  font-size: var(--fc-text-sm);
  color: var(--fc-text-muted);
  margin-top: 2px;
  font-weight: 400;
}

/* Quiz navigation */
.fc-quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--fc-space-2xl);
}

.fc-quiz-nav-back {
  font-family: var(--fc-font-heading);
  font-size: var(--fc-text-sm);
  font-weight: 600;
  color: var(--fc-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em 1em;
  transition: color var(--fc-duration) var(--fc-ease);
}

.fc-quiz-nav-back:hover {
  color: var(--fc-navy-800);
}

/* Results */
.fc-quiz-results {
  display: none;
  animation: fcFadeUp 0.5s var(--fc-ease);
}

.fc-quiz-results.is-active {
  display: block;
}

.fc-results-score {
  text-align: center;
  padding: var(--fc-space-2xl);
  margin-bottom: var(--fc-space-2xl);
}

.fc-results-score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto var(--fc-space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 6px solid var(--fc-navy-100);
  position: relative;
}

.fc-results-score-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: var(--fc-amber-500);
  border-right-color: var(--fc-amber-500);
  transform: rotate(var(--score-rotation, 0deg));
}

.fc-results-score-number {
  font-family: var(--fc-font-heading);
  font-size: var(--fc-text-4xl);
  font-weight: 800;
  color: var(--fc-navy-900);
  line-height: 1;
}

.fc-results-score-label {
  font-size: var(--fc-text-sm);
  color: var(--fc-text-muted);
  margin-top: 4px;
}

.fc-results-level {
  font-family: var(--fc-font-heading);
  font-size: var(--fc-text-2xl);
  font-weight: 700;
  margin-bottom: var(--fc-space-sm);
}

.fc-results-summary {
  color: var(--fc-text-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Dimension scores */
.fc-results-dimensions {
  display: flex;
  flex-direction: column;
  gap: var(--fc-space-lg);
  margin-bottom: var(--fc-space-2xl);
}

.fc-results-dimension {
  padding: var(--fc-space-lg);
  background: var(--fc-bg-alt);
  border-radius: var(--fc-radius-md);
}

.fc-results-dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--fc-space-sm);
}

.fc-results-dimension-name {
  font-family: var(--fc-font-heading);
  font-weight: 600;
  font-size: var(--fc-text-base);
}

.fc-results-dimension-score {
  font-family: var(--fc-font-heading);
  font-weight: 700;
  font-size: var(--fc-text-sm);
  color: var(--fc-amber-600);
}

.fc-results-dimension-bar {
  width: 100%;
  height: 6px;
  background: var(--fc-navy-200);
  border-radius: var(--fc-radius-full);
  overflow: hidden;
}

.fc-results-dimension-fill {
  height: 100%;
  border-radius: var(--fc-radius-full);
  transition: width 1s var(--fc-ease);
}

.fc-results-dimension-fill[data-level="low"] {
  background: #EF4444;
}

.fc-results-dimension-fill[data-level="medium"] {
  background: var(--fc-amber-500);
}

.fc-results-dimension-fill[data-level="high"] {
  background: var(--fc-teal-500);
}

/* Results CTA */
.fc-results-cta {
  text-align: center;
  padding: var(--fc-space-2xl);
  background: var(--fc-bg-dark);
  border-radius: var(--fc-radius-xl);
  color: var(--fc-text-on-dark);
}

.fc-results-cta .fc-headline-md {
  color: var(--fc-text-on-dark);
  margin-bottom: var(--fc-space-md);
}

.fc-results-cta p {
  color: var(--fc-text-on-dark-muted);
  margin-bottom: var(--fc-space-xl);
}


/* ==========================================================================
   QUIZ LEAD CAPTURE FORM
   ========================================================================== */

.fc-quiz-lead-capture {
  display: none;
  text-align: center;
  animation: fcFadeUp 0.5s var(--fc-ease);
}

.fc-quiz-lead-capture.is-active {
  display: block;
}

.fc-lead-capture-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--fc-space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--fc-teal-50);
  border-radius: 50%;
  color: var(--fc-teal-500);
}

.fc-quiz-lead-capture .fc-headline-md {
  margin-bottom: var(--fc-space-sm);
}

.fc-lead-capture-subtitle {
  color: var(--fc-text-muted);
  margin-bottom: var(--fc-space-2xl);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.fc-lead-form {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.fc-lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fc-space-md);
}

.fc-lead-form-field {
  margin-bottom: var(--fc-space-md);
}

.fc-lead-form-label {
  display: block;
  font-family: var(--fc-font-heading);
  font-size: var(--fc-text-sm);
  font-weight: 600;
  color: var(--fc-navy-700);
  margin-bottom: var(--fc-space-xs);
}

.fc-lead-form-input {
  display: block;
  width: 100%;
  padding: 0.75em 1em;
  font-family: var(--fc-font-body);
  font-size: var(--fc-text-base);
  color: var(--fc-navy-800);
  background-color: var(--fc-bg);
  border: 2px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  transition: border-color var(--fc-duration) var(--fc-ease),
              box-shadow var(--fc-duration) var(--fc-ease);
}

.fc-lead-form-input::placeholder {
  color: var(--fc-text-light);
}

.fc-lead-form-input:focus {
  outline: none;
  border-color: var(--fc-amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.fc-lead-form-error {
  display: none;
  padding: 0.75em 1em;
  margin-bottom: var(--fc-space-md);
  font-size: var(--fc-text-sm);
  color: #991B1B;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--fc-radius-md);
}

.fc-lead-form-submit {
  width: 100%;
  margin-bottom: var(--fc-space-md);
}

.fc-lead-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.fc-lead-form-disclaimer {
  font-size: var(--fc-text-xs);
  color: var(--fc-text-light);
  text-align: center;
  margin: 0;
}


/* ==========================================================================
   RESPONSIVE — Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
  .fc-quiz-option {
    padding: var(--fc-space-md) var(--fc-space-lg);
  }

  .fc-funnel-hero-badges {
    flex-direction: column;
    align-items: center;
  }
}


/* ==========================================================================
   RESPONSIVE — Small Mobile (480px)
   ========================================================================== */

@media (max-width: 480px) {
  .fc-quiz-question-title {
    font-size: var(--fc-text-2xl);
  }

  .fc-results-score-circle {
    width: 130px;
    height: 130px;
  }

  .fc-results-cta {
    padding: var(--fc-space-lg);
  }

  .fc-lead-form-row {
    grid-template-columns: 1fr;
  }
}
