@charset "UTF-8";
/* ================================
QUIZ WRAPPER
================================ */
.quiz-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

/* ================================
INTRO PANEL
================================ */
.quiz-intro {
  text-align: center;
}
.quiz-intro .quiz-title {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 700;
}
.quiz-intro .quiz-panel {
  max-width: 760px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}
.quiz-intro {
  /* meta info */
}
.quiz-intro .quiz-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.quiz-intro .quiz-meta .meta-item {
  background: #f6f8fb;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
}
.quiz-intro .quiz-meta .meta-item strong {
  color: #111;
  margin-right: 5px;
}
.quiz-intro {
  /* description */
}
.quiz-intro .quiz-panel .desc {
  margin-top: 20px;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}
.quiz-intro .quiz-panel .desc p {
  margin-bottom: 12px;
}
.quiz-intro .quiz-panel .desc h2, .quiz-intro .quiz-panel .desc h3, .quiz-intro .quiz-panel .desc h4 {
  margin-top: 20px;
  margin-bottom: 10px;
}
.quiz-intro .quiz-panel .desc ul {
  padding-left: 18px;
}
.quiz-intro .quiz-panel .desc ul li {
  margin-bottom: 6px;
}
.quiz-intro {
  /* start button */
}
.quiz-intro .quiz-start-btn {
  margin-top: 30px;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #6a5cff, #8a7cff);
  box-shadow: 0 6px 20px rgba(106, 92, 255, 0.35);
  transition: all 0.25s ease;
}
.quiz-intro .quiz-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(106, 92, 255, 0.45);
}
.quiz-intro .quiz-start-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(106, 92, 255, 0.3);
}
.quiz-intro {
  /* mobile */
}
@media (max-width: 768px) {
  .quiz-intro .quiz-panel {
    padding: 25px;
  }
  .quiz-intro .quiz-meta {
    gap: 12px;
  }
  .quiz-intro .quiz-start-btn {
    width: 100%;
  }
}

/* ================================
MAIN LAYOUT
================================ */
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: flex-start;
}

/* ================================
QUESTION AREA
================================ */
.quiz-main {
  background: #fff;
}

.quiz-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.quiz-header h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* ================================
QUESTION BOX
================================ */
.quiz-question-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 15px;
}
.quiz-question-box .question-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}
.quiz-question-box .question-text {
  margin-bottom: 10px;
}

/* ================================
OPTIONS
================================ */
.quiz-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quiz-options li {
  margin-bottom: 12px;
}
.quiz-options label {
  display: block;
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  background: white;
}
.quiz-options label:hover {
  border-color: #f39c12;
}
.quiz-options input {
  margin-right: 10px;
}

/* ================================
MARK REVIEW
================================ */
.quiz-mark {
  margin-top: 10px;
}
.quiz-mark label {
  font-size: 14px;
  cursor: pointer;
}

/* ================================
SIDEBAR
================================ */
.quiz-sidebar {
  background: #f3f3f3;
  padding: 20px;
  border-radius: 10px;
}

/* ================================
PROGRESS
================================ */
.quiz-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.quiz-progress strong {
  display: block;
  font-size: 14px;
}
.quiz-progress .done-count,
.quiz-progress .quiz-timer {
  font-size: 18px;
  font-weight: 600;
}

/* ================================
QUESTION NAV GRID
================================ */
.quiz-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

/* BUTTON NUMBER */
.quiz-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}
.quiz-nav button:hover {
  border-color: #333;
}

/* ================================
STATUS COLORS
================================ */
.quiz-nav button.done {
  background: #27ae60;
  border-color: #27ae60;
  color: white;
}

.quiz-nav button.review {
  background: #9b59b6;
  border-color: #9b59b6;
  color: white;
}

.quiz-nav button.active {
  border: 2px solid #333;
}

/* ================================
SUBMIT BUTTON
================================ */
.quiz-submit {
  width: 100%;
  border: none;
  background: #f39c12;
  color: white;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}
.quiz-submit:hover {
  background: #e68900;
}

/* ================================
LEGEND
================================ */
.quiz-legend {
  font-size: 14px;
}
.quiz-legend div {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

/* DOT */
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.dot.done {
  background: #27ae60;
}

.dot.empty {
  background: white;
  border: 1px solid #ccc;
}

.dot.review {
  background: #9b59b6;
}

/* ================================
RESPONSIVE
================================ */
@media (max-width: 900px) {
  .quiz-layout {
    grid-template-columns: 1fr;
  }
  .quiz-sidebar {
    order: -1;
  }
}
.option {
  display: block;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.option.active {
  background: #eef6ff;
  border: 1px solid #4a90e2;
}

.quiz-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.nav-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

/* câu đã làm */
.nav-item.done {
  background: #1aa34a;
  color: #fff;
  border-color: #1aa34a;
}

/* câu cần xem lại */
.nav-item.review {
  background: #9b59b6;
  color: #fff;
  border-color: #9b59b6;
}

/* câu hiện tại */
.nav-item.active {
  border: 2px solid #1aa34a;
}

.review-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.review-btn .icon {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.review-btn.active .icon {
  background: #8e44ad;
  border-color: #8e44ad;
}

.iaeb-latercheck {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.iaeb-latercheck span:last-child {
  width: 20px;
  height: 20px;
  border: 2px solid #bfbfbf;
  border-radius: 50%;
  position: relative;
}

.iaeb-latercheck span:last-child::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #8e44ad;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.2s;
}

.iaeb-latercheck.active span:last-child {
  border-color: #8e44ad;
}

.iaeb-latercheck.active span:last-child::after {
  transform: translate(-50%, -50%) scale(1);
}

.result-loading {
  text-align: center;
}

.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #6a5acd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.result-card {
  background: #f7f9ff;
  padding: 30px;
  border-radius: 12px;
}

.result-type {
  font-size: 48px;
  font-weight: bold;
  color: #6a5acd;
}

.result-desc {
  margin-top: 10px;
}

.result-chart {
  margin-top: 30px;
}

.result-content {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background: #f6f7fb;
}

.result-card {
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 40px;
  text-align: center;
}
.result-card .result-type {
  display: inline-block;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 30px;
  background: #4f46e5;
  color: #fff;
  margin-bottom: 10px;
}
.result-card h3 {
  font-size: 32px;
  margin: 5px 0 15px;
  font-weight: 700;
  color: #222;
}
.result-card .result-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}
.result-card h4 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.result-card ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
}
.result-card ul li {
  position: relative;
  padding: 8px 0 8px 26px;
  text-align: left;
  color: #444;
  font-size: 15px;
}
.result-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 13px;
  color: #22c55e;
  font-weight: bold;
}
.result-card .result-chart {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
}
.result-card .result-chart canvas {
  max-width: 420px;
  max-height: 420px;
}
.result-card .result-share {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.result-card .result-share h4 {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.result-card .share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.result-card .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s;
  line-height: 1;
  margin: 0;
}
.result-card .share-btn:hover {
  opacity: 0.85;
}
.result-card .share-btn.share-facebook {
  background: #1877f2;
}
.result-card .share-btn.share-twitter {
  background: #000;
}
.result-card .share-btn.share-linkedin {
  background: #0a66c2;
}
.result-card .share-btn.share-copy {
  background: #6b7280;
}
.result-card .share-btn.share-copy:hover {
  background: #4b5563;
}

@media (max-width: 768px) {
  .result-card {
    padding: 25px;
  }
  .result-card h3 {
    font-size: 26px;
  }
  .result-card .result-chart canvas {
    max-width: 320px;
  }
}
.campaign-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.campaign-popup .campaign-box {
  width: 520px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}
.campaign-popup .campaign-box h3 {
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 600;
}
.campaign-popup .campaign-box .campaign-content {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 22px;
}
.campaign-popup .campaign-box .keyword-highlight {
  display: inline;
  background: #fff0f0;
  color: #c62828;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  transition: background 0.2s;
}
.campaign-popup .campaign-box .keyword-highlight:hover {
  background: #ffcdd2;
}
.campaign-popup .campaign-box .kw-copy-btn {
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  transition: background 0.2s, color 0.2s;
  margin: 0;
  line-height: 1;
}
.campaign-popup .campaign-box .kw-copy-btn:hover {
  background: #b71c1c;
}
.campaign-popup .campaign-box .kw-copy-btn:focus {
  outline: none;
}
.campaign-popup .campaign-box .kw-copy-btn.copied {
  background: #2e7d32;
}
.campaign-popup .campaign-box .kw-copy-btn.copied:hover {
  background: #1b5e20;
}
.campaign-popup .campaign-box .unlock-form {
  display: flex;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.2s;
}
.campaign-popup .campaign-box .unlock-form:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.campaign-popup .campaign-box .unlock-form .unlock-code {
  flex: 1;
  height: 46px;
  border: none;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  margin-bottom: 0;
}
.campaign-popup .campaign-box .unlock-form .unlock-submit {
  height: 46px;
  padding: 0 20px;
  border: none;
  background: #4f46e5;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 0;
  margin-right: 0;
}
.campaign-popup .campaign-box .unlock-form .unlock-submit:hover {
  background: #4338ca;
}
.campaign-popup .campaign-box .unlock-form .unlock-submit:active {
  transform: scale(0.97);
}
@media (max-width: 500px) {
  .campaign-popup .campaign-box .unlock-form {
    flex-direction: column;
    border: none;
  }
  .campaign-popup .campaign-box .unlock-form .unlock-code {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  .campaign-popup .campaign-box .unlock-form .unlock-submit {
    border-radius: 8px;
  }
}

/* ============================================
   QUESTION IMAGE (frontend)
   ============================================ */
.question-image-wrap {
  margin-bottom: 16px;
  text-align: center;
}
.question-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: contain;
  background: #f0f0f0;
  display: block;
  margin: auto;
}

/* ============================================
   IMAGE OPTIONS GRID (frontend)
   ============================================ */
.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.quiz-option-img {
  position: relative;
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color .15s, box-shadow .15s;
  background: #f9f9f9;
}
.quiz-option-img:hover {
  border-color: #6a5cff;
  box-shadow: 0 4px 12px rgba(106, 92, 255, .2);
}
.quiz-option-img.selected {
  border-color: #6a5cff;
  box-shadow: 0 0 0 3px rgba(106, 92, 255, .3);
}
.quiz-option-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.quiz-option-img-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
}
.quiz-option-img-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: #6a5cff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  font-family: sans-serif;
}

/* ============================================
   LIKERT SCALE (frontend)
   ============================================ */
.quiz-likert {
  margin-top: 16px;
}
.likert-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.likert-option input {
  flex-shrink: 0;
}
.likert-option span:first-of-type {
  flex: 1;
}
.likert-badge {
  background: #eef;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* ============================================
   DISC RESULT BARS
   ============================================ */
.disc-chart {
  margin-top: 20px;
  padding: 0;
}
.disc-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.disc-bar-label {
  width: 90px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.disc-bar-label small {
  display: block;
  font-weight: 400;
  font-size: 11px;
}
.disc-bar-track {
  flex: 1;
  height: 22px;
  background: #f0f0f0;
  border-radius: 11px;
  overflow: hidden;
}
.disc-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 1s ease;
}
.disc-bar-pct {
  width: 44px;
  text-align: right;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================
   IQ RESULT DISPLAY
   ============================================ */
.iq-score-display {
  text-align: center;
  margin: 24px 0;
}
.iq-number {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
}
.iq-label {
  font-size: 20px;
  font-weight: 600;
  margin-top: 4px;
}
.iq-score-detail {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

/* ============================================
   EQ RESULT BARS
   ============================================ */
.eq-chart {
  margin-top: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.eq-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 36px 80px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eq-bar-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  padding-right: 4px;
}
.eq-bar-track {
  height: 18px;
  background: #f0f0f0;
  border-radius: 9px;
  overflow: hidden;
}
.eq-bar-fill {
  height: 100%;
  border-radius: 9px;
  transition: width 1s ease;
}
.eq-bar-score {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
}
.eq-bar-level {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* ============================================
   RESULT CHART CONTAINER
   ============================================ */
.result-chart {
  padding: 10px 0;
}
.result-chart canvas {
  max-width: 100%;
  margin: auto;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .quiz-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .disc-bar-label { width: 60px; font-size: 13px; }
  .eq-bar-row { grid-template-columns: 120px 1fr 36px 80px; }
  .eq-bar-label { font-size: 12px; }
  .iq-number { font-size: 60px; }
}
@media (max-width: 480px) {
  .quiz-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .eq-bar-row { grid-template-columns: 100px 1fr 32px 70px; gap: 6px; }
  .eq-bar-label { font-size: 11px; }
  .eq-bar-score { font-size: 12px; }
  .eq-bar-level { font-size: 11px; }
}

/*# sourceMappingURL=quiz.css.map */
