/* ============================================================
   ORGANIZATIONAL QUIZ - extracted from style.css
   (css-reshape Phase 4, 2026-08-10)
   Loaded ONLY via extraCss front matter by: ai-architects-s06-quiz,
   hr-automation, hr-intro (uses .form-group lead form).
   These pages are Hebrew-only; RTL is hardcoded in the rules.
   ============================================================ */

/* ── ORGANIZATIONAL QUIZ STYLE ── */
.quiz-section {
  padding: 60px 0 90px;
  background: var(--bg);
}
.quiz-container {
  max-width: 680px;
  margin: 0 auto;
}
.quiz-progress-wrapper {
  background: var(--border);
  height: 4px;
  width: 100%;
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.quiz-progress-bar {
  background: #3b82f6; /* Modern Blue Accent */
  height: 100%;
  transition: width 0.3s ease;
}
.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
@media (max-width: 600px) {
  .quiz-card {
    padding: 32px 20px;
  }
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
  animation: quizFadeIn 0.4s ease;
}
.quiz-question {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 28px;
  line-height: 1.4;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-option {
  text-align: right;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--black);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}
.quiz-option:hover {
  border-color: #3b82f6;
  background: var(--white);
}
.quiz-option.selected {
  border-color: var(--black);
  background: var(--white);
  font-weight: 700;
}
.quiz-other-input {
  margin-top: 4px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  display: none;
}
.quiz-other-input.visible {
  display: block;
}

/* Spinner for calculation step */
.quiz-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

/* Lead Gate */
.quiz-lead-teaser {
  text-align: center;
  margin-bottom: 32px;
}
.quiz-teaser-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.quiz-lead-teaser h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.quiz-lead-teaser p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.6;
}

.quiz-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--mid);
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 17px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.form-group input:focus {
  border-color: var(--black);
  background: var(--white);
}
.form-group input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

/* NOTE: .quiz-submit-btn / .approach-grid-hr / .approach-col live in
   style.css (shared funnel components - workshop .md pages use them too) */

/* quiz-scoped: was a second global `fadeIn` that silently overrode the page-load fade */
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── SUITABILITY QUIZ RESULTS SCREEN ── */
.quiz-result-profile {
  display: none;
  animation: quizFadeIn 0.4s ease;
}
.quiz-result-profile.active {
  display: block;
}
.profile-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 20px 0;
  text-align: right;
}
.profile-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--light);
}
.profile-badge--c {
  border-color: var(--black);
  color: var(--black);
  background: var(--white);
}
.quiz-result-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.3;
}
.quiz-result-diagnosis {
  font-size: 17px;
  color: var(--black);
  line-height: 1.7;
  margin-bottom: 24px;
}
.quiz-result-cta-text {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 20px;
}
.quiz-reveal-hidden {
  display: none;
}
.quiz-reveal-hidden.revealed {
  display: block;
  animation: quizFadeIn 0.4s ease;
}
.quiz-reveal-gate {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
}
.quiz-reveal-prompt {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 16px;
}
.quiz-result-success-msg {
  display: none;
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  color: var(--black);
  margin-top: 12px;
  animation: quizFadeIn 0.3s ease;
}
.quiz-result-success-msg.visible {
  display: block;
}
