/* ----------------------------------------------------
   Innovation Folder Styles — Blue Theme
   Innovation Quotient Evaluation
---------------------------------------------------- */

:root {
  --brand-innov-primary:   #1e5799;
  --brand-innov-secondary: #154070;
  --brand-innov-accent:    #2980b9;
  --brand-innov-light:     #6ab3d9;
}

/* Hero section headings */
.hero h1,
.hero h2,
.hero-title {
  color: var(--brand-innov-primary) !important;
}

/* Section headings */
.section h2 {
  color: var(--brand-innov-primary) !important;
}

/* Card headings */
.card h3 {
  color: var(--brand-innov-primary) !important;
}

/* Primary buttons */
.btn-primary {
  background: var(--brand-innov-primary) !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--brand-innov-secondary) !important;
  color: #fff !important;
  text-decoration: underline !important;
}

/* Link colors within content sections */
.section a:not(.btn-primary):not(.btn-secondary):not(.btn-pdf):not(.btn-paypal):not(.card):not(.iso-tile) {
  color: var(--brand-innov-primary) !important;
}

.section a:not(.btn-primary):not(.btn-secondary):not(.btn-pdf):not(.btn-paypal):not(.card):not(.iso-tile):hover {
  color: var(--brand-innov-secondary) !important;
}

/* Q1 gate on index page */
.q1-section {
  background: #f0f6fc;
  border: 1px solid #c8dff0;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.q1-section legend {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.q1-section label {
  display: block;
  padding: 0.35rem 0;
  cursor: pointer;
}
.q1-section input[type="radio"] {
  margin-right: 0.5rem;
}

/* Quiz layout */
.quiz-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem;
}
.quiz-progress-wrap {
  margin-bottom: 1.5rem;
}
.quiz-progress {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--brand-innov-primary);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}
.quiz-step-counter {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Step visibility */
.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-step h2 { margin-bottom: 0.5rem; }

/* Quote block */
.quiz-quote {
  border-left: 4px solid var(--brand-innov-accent);
  padding: 0.75rem 1.25rem;
  margin: 0 0 1.75rem;
  background: #f0f6fc;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #333;
}
.quiz-quote cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.85rem;
  color: #555;
}

.quiz-step .step-instruction {
  color: #444;
  margin-bottom: 1.5rem;
}

/* Question fieldsets */
.quiz-question {
  border: none;
  padding: 1.2rem 0;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
}
.quiz-question:last-of-type { border-bottom: none; }
.quiz-question legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
  float: none;
  width: 100%;
}
.quiz-question label {
  display: block;
  padding: 0.3rem 0;
  cursor: pointer;
}
.quiz-question label:hover { color: var(--brand-innov-accent); }
.quiz-question input[type="radio"],
.quiz-question input[type="checkbox"] { margin-right: 0.4rem; }

.none-label {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #ddd;
  color: #555;
}

/* Navigation */
.quiz-nav { display: flex; gap: 1rem; margin-top: 2rem; align-items: center; }
.quiz-error { color: #c0392b; font-size: 0.9rem; margin-top: 0.75rem; min-height: 1.2em; }

/* Submit step */
.submit-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.submit-section input[type="text"],
.submit-section input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.submit-section input:focus {
  outline: none;
  border-color: var(--brand-innov-primary);
}
.submit-section .optional-note {
  font-size: 0.85rem;
  color: #666;
  font-weight: normal;
}
.submit-section .privacy-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1.5rem;
}

/* Result page — score card */
.result-scores {
  background: var(--brand-innov-primary);
  color: #fff;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}
.result-scores h2 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 0.75rem;
}
.result-score-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.result-score-label {
  font-size: 0.95rem;
  opacity: 0.9;
}
.result-score-bar-wrap {
  width: 140px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.result-score-bar {
  display: block;
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 0.6s ease;
  width: 0%;
}
.result-score-value {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 5rem;
  text-align: right;
}
.result-score-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* No-RD page */
.no-rd-box {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}
.no-rd-box img {
  flex-shrink: 0;
  max-width: 140px;
}
.no-rd-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-innov-primary);
  margin-bottom: 1rem;
}
