/* =========================================
   Find Your Therapist Quiz — Quiz Widget
   ========================================= */

.quiz-widget {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  width: 100%;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  font-family: 'Overpass', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}

/* Intro Header */
.quiz-intro-header {
  background: #fff;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.quiz-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary, #d7d7ff);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 10px;
}

.quiz-intro-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 5px;
  line-height: 1.35;
}

.quiz-intro-subtitle {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Quiz body (below header) */
.quiz-body {
  padding: 22px 24px 24px;
}

/* Progress Bar */
.quiz-progress-wrap {
  background: #eeeeff;
  border-radius: 99px;
  height: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--color-primary-darker, #bcbcff);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.quiz-step-indicator {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

/* Question */
.quiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
  line-height: 1.45;
}

.quiz-question small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: #999;
  margin-top: 3px;
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.quiz-opt {
  background: #eef5ee;
  border: 2px solid #d4ecd4;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 15px;
  font-family: 'Overpass', sans-serif;
  color: #2a3d2a;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1.4;
  width: 100%;
  font-weight: 500;
}

.quiz-opt:hover {
  background: #d9eed9;
  border-color: #a8d8a8;
}

.quiz-opt.selected {
  background: #a6de9b;
  border-color: #7ec97e;
  font-weight: 700;
  color: #1a2e1a;
}

.quiz-opt:active {
  transform: scale(0.98);
}

/* Multi-select Next button */
.quiz-next-btn {
  margin-top: 14px;
  background: var(--color-primary-darker, #bcbcff);
  color: #333;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 14px;
  font-family: 'Overpass', sans-serif;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.quiz-next-btn:disabled {
  background: #e4e4e4;
  color: #aaa;
  cursor: not-allowed;
}

.quiz-next-btn:not(:disabled):hover {
  background: #aaaae8;
}

/* Screen transitions — JS uses display:none/block directly */
.quiz-screen {
  animation: quizFadeIn 0.22s ease both;
}

@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Result Screen */
.quiz-match-label {
  font-size: 13px;
  color: #888;
  margin: 0 0 3px;
}

.quiz-match-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 14px;
  line-height: 1.3;
}

.quiz-match-card {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.quiz-match-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
  border: 3px solid #d7d7ff;
}

.quiz-match-creds {
  font-size: 12px;
  color: #999;
  margin: 0 0 6px;
  line-height: 1.4;
}

.quiz-match-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.55;
  margin: 0;
}

/* Trust signals */
.quiz-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.quiz-trust-row span {
  font-size: 11.5px;
  color: #08b54f;
  font-weight: 700;
  background: #e6faea;
  padding: 4px 10px;
  border-radius: 99px;
}

/* Lead capture form */
.quiz-capture-form {
  display: flex;
  flex-direction: column;
}

.quiz-capture-form .wbs-form-subscribe-input {
  margin-bottom: 10px;
}

.quiz-capture-form .wbs-form-subscribe-input:last-of-type {
  margin-bottom: 14px;
}

.quiz-secondary-action {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
  margin-bottom: 0;
}

.quiz-secondary-action a {
  color: var(--color-primary-darker, #bcbcff);
  font-weight: 700;
  text-decoration: none;
}

.quiz-secondary-action a:hover {
  text-decoration: underline;
}

/* =========================================
   Standalone /quiz page layout
   ========================================= */

.quiz-page-section {
  background-color: var(--color-primary, #d7d7ff);
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.quiz-page-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.quiz-page-left {
  padding-top: 20px;
}

.quiz-page-left h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 0 0 16px;
  font-family: 'Overpass', sans-serif;
}

.quiz-page-left h1 span {
  text-decoration: underline;
}

.quiz-page-left p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 24px;
  font-family: 'Overpass', sans-serif;
}

.quiz-page-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-page-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #333;
  font-family: 'Overpass', sans-serif;
  font-weight: 500;
}

.quiz-page-bullets li::before {
  content: '';
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: url('../images/tick-mark.webp') no-repeat center / contain;
}

.quiz-page-right {
  max-width: 480px;
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .quiz-page-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quiz-page-left h1 {
    font-size: 1.6rem;
  }

  .quiz-page-right {
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .quiz-widget {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .quiz-question {
    font-size: 0.98rem;
  }

  .quiz-opt {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  .quiz-match-name {
    font-size: 1.15rem;
  }

  .quiz-trust-row {
    flex-direction: column;
    gap: 6px;
  }

  .quiz-page-section {
    padding: 40px 16px;
  }
}
