/* ABISA Interactive Quiz Styles */
#abisa-quiz-app {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Progress bar */
.quiz-progress {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.quiz-progress-fill {
  height: 100%;
  background: #1E6F78;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Step label */
.quiz-step-label {
  font-size: 14px;
  font-weight: 500;
  color: #1E6F78;
  margin-bottom: 8px;
}

/* Question text */
.quiz-question {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 24px 0;
  line-height: 1.3;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Options container */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Option card */
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  color: #1a1a2e;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.quiz-option:hover {
  border-color: #1E6F78;
  box-shadow: 0 1px 4px rgba(30,111,120,0.12);
  transform: translateY(-1px);
}
.quiz-option.selected {
  background: rgba(30,111,120,0.08);
  border-color: #1E6F78;
}

/* Navigation */
.quiz-nav {
  margin-top: 20px;
}
.quiz-back {
  background: none;
  border: none;
  color: #1E6F78;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.quiz-back:hover {
  text-decoration: underline;
}

/* Contact form step */
.quiz-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quiz-contact input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.quiz-contact input:focus {
  border-color: #1E6F78;
  box-shadow: 0 0 0 3px rgba(30,111,120,0.12);
}
.quiz-submit {
  display: inline-block;
  background: #1E6F78;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s;
  margin-top: 4px;
}
.quiz-submit:hover {
  background: #175960;
}
.quiz-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Results */
.quiz-results {
  text-align: center;
}
.quiz-score-number {
  font-size: 48px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  margin: 8px 0 4px;
}
.quiz-score-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}
.quiz-score-bar-track {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}
.quiz-score-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
}
.quiz-category-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.quiz-result-desc {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 28px;
}
.quiz-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.quiz-cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}
.quiz-cta:hover { opacity: 0.9; }
.quiz-cta-orange { background: #FF8A3D; color: #fff; }
.quiz-cta-teal { background: #1E6F78; color: #fff; }

/* Transitions */
.quiz-step-container {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.quiz-step-container.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}
.quiz-step-container.fade-in {
  opacity: 0;
  transform: translateX(20px);
}
.quiz-step-container.active {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 600px) {
  .quiz-question { font-size: 20px; }
  .quiz-score-number { font-size: 40px; }
  #abisa-quiz-app { padding: 24px 12px; }
}
