/* ----------------------------------------------------
   Interview Folder Styles - Slate Blue Theme
   Professional tone for audit interviewing skills assessment
---------------------------------------------------- */

:root {
  --brand-interview-primary: #2b5c82;
  --brand-interview-secondary: #1e4060;
  --brand-interview-accent: #3a7aaa;
  --brand-interview-light: #6aafd4;
}

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

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

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

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

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

/* Submit button */
.submit-btn {
  background: var(--brand-interview-primary) !important;
}

.submit-btn:hover {
  background: var(--brand-interview-secondary) !important;
}

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

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

/* 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-interview-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.25rem; }
.quiz-step .step-context { color: #555; font-style: italic; margin-bottom: 1.5rem; }
.quiz-step .step-intro { margin-bottom: 1.5rem; }
.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-interview-accent); }
.quiz-question input[type="radio"],
.quiz-question input[type="checkbox"] { margin-right: 0.4rem; }

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

/* Video step */
.video-wrap { margin: 1.5rem 0; }
.video-wrap iframe { width: 100%; max-width: 560px; height: 315px; border: none; }
.video-note { font-size: 0.9rem; color: #555; margin-top: 0.5rem; }
.video-observe-list { margin: 1rem 0; padding-left: 1.2rem; }

/* 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-interview-primary); }
.submit-section .subscribe-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; }
.submit-section .subscribe-row label { font-weight: normal; margin: 0; }
.submit-section .privacy-note { font-size: 0.85rem; color: #666; margin-top: 1.5rem; }

/* Submit spinner */
.quiz-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result page — score card */
.result-scores {
  background: var(--brand-interview-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: 160px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.result-score-bar {
  display: block;
  height: 100%;
  background: var(--brand-interview-light);
  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;
}
