/* ── Reset (scoped) ── */
#clquiz *, #clquiz *::before, #clquiz *::after { box-sizing: border-box; margin: 0; padding: 0; }

#clquiz {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── Screens ── */
#clquiz .clquiz-screen { display: none; width: 100%; justify-content: center; }
#clquiz .clquiz-screen.clquiz-active { display: flex; }

/* ── Card ── */
#clquiz .clquiz-card {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 12px 60px rgba(26, 79, 138, 0.15);
  overflow: hidden;
}

#clquiz .clquiz-card-top-bar { height: 8px; }
#clquiz .clquiz-bar-gradient { background: linear-gradient(90deg, #1A4F8A, #E8562A); }

#clquiz .clquiz-card-body { padding: 28px 28px 34px; }

/* ── Progress ── */
#clquiz .clquiz-progress-bar-wrap {
  height: 6px;
  background: #EEF4FB;
  position: relative;
}
#clquiz .clquiz-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #1A4F8A, #E8562A);
  border-radius: 0 3px 3px 0;
  transition: width 0.4s ease;
}

/* ── Typography ── */
#clquiz .clquiz-emoji-big { font-size: 52px; line-height: 1; margin-bottom: 10px; }

#clquiz .clquiz-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 14px;
  margin-bottom: 18px;
}
#clquiz .clquiz-badge-orange { color: #E8562A; border: 2px solid #E8562A; }

#clquiz h1 {
  font-size: 30px;
  font-weight: 800;
  color: #36454F;
  line-height: 1.25;
  margin-bottom: 14px;
}
#clquiz .clquiz-text-orange { color: #E8562A; }

#clquiz .clquiz-subtitle {
  font-size: 15px;
  color: #607080;
  line-height: 1.65;
  margin-bottom: 22px;
}

#clquiz .clquiz-hint {
  text-align: center;
  color: #A0B0C0;
  font-size: 12px;
  margin-top: 10px;
}

/* ── Role pills ── */
#clquiz .clquiz-roles-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
#clquiz .clquiz-role-pill {
  background: #EEF4FB;
  color: #1A4F8A;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── Buttons ── */
#clquiz .clquiz-btn {
  display: block;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}
#clquiz .clquiz-btn-full { width: 100%; }
#clquiz .clquiz-btn-navy { background: #1A4F8A; color: #fff; }
#clquiz .clquiz-btn-navy:hover { background: #163f6e; }
#clquiz .clquiz-btn-navy:disabled { background: #C0CDD8; cursor: not-allowed; }
#clquiz .clquiz-btn-whatsapp { background: #25D366; color: #fff; margin-bottom: 4px; }
#clquiz .clquiz-btn-whatsapp:hover { background: #1eab52; }
#clquiz .clquiz-btn-outline {
  background: none;
  border: 2px solid #D8E4EE;
  color: #90A8BC;
  font-size: 13px;
  padding: 11px;
  margin-top: 6px;
}
#clquiz .clquiz-btn-outline:hover { border-color: #b0c4d4; }
#clquiz .clquiz-btn-link {
  display: block;
  text-align: center;
  color: #1A4F8A;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
}
#clquiz .clquiz-btn-link:hover { text-decoration: underline; }

#clquiz .clquiz-btn-back {
  background: none;
  border: none;
  color: #90A8BC;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* ── Quiz nav ── */
#clquiz .clquiz-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
#clquiz .clquiz-step-counter { color: #90A8BC; font-size: 13px; font-weight: 600; }

/* ── Question ── */
#clquiz #clquiz-q-text {
  font-size: 19px;
  font-weight: 700;
  color: #36454F;
  line-height: 1.35;
  margin-bottom: 20px;
}

/* ── Options ── */
#clquiz #clquiz-q-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }

#clquiz .clquiz-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #D8E4EE;
  border-radius: 12px;
  padding: 13px 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  font-family: inherit;
}
#clquiz .clquiz-option-btn:hover { border-color: #b0c4d4; }
#clquiz .clquiz-option-btn.clquiz-selected { border-color: #E8562A; background: rgba(232,86,42,0.06); }
#clquiz .clquiz-option-btn.clquiz-selected .clquiz-option-dot { background: #E8562A; }

#clquiz .clquiz-option-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #D8E4EE;
  transition: background 0.15s;
}

#clquiz .clquiz-option-text { font-size: 14px; font-weight: 500; color: #36454F; line-height: 1.4; }

/* ── Quiz fade ── */
#clquiz #clquiz-content { transition: opacity 0.22s; }
#clquiz #clquiz-content.clquiz-fading { opacity: 0; }

/* ── Result ── */
#clquiz .clquiz-result-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
#clquiz .clquiz-result-headline {
  font-size: 17px;
  font-weight: 700;
  color: #36454F;
  margin-bottom: 18px;
  line-height: 1.4;
}
#clquiz .clquiz-result-box {
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
#clquiz .clquiz-result-box p { font-size: 14px; color: #506070; line-height: 1.7; margin-bottom: 12px; }
#clquiz .clquiz-result-box p:last-child { margin-bottom: 0; }
#clquiz .clquiz-result-camp { font-size: 14px; font-weight: 700; }
#clquiz .clquiz-result-promo {
  font-size: 13px;
  color: #708090;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 16px;
}
