/* ============ Layout 2 cột ============ */
.check {
  max-width: 1440px;
  margin: 0 auto;
  padding: 74px 150px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: 30px;
  align-items: start;
}

/* Chữ xám nhỏ: Cabin 22px 600 -> 16.5px */
.label {
  font-family: "Cabin", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 17.25px;
  color: #878787;
  text-transform: uppercase;
}

/* ============ Cột trái ============ */
.check-left { padding-top: 10px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Cabin", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 17.25px;
  color: #878787;
}
.back svg { width: 18px; height: 18px; }

.note-title {
  margin-top: 14px;
  font-family: "Crimson Pro", serif;
  font-size: clamp(28px, 2.6vw, 37.5px);
  font-weight: 700;
  color: #C47785;
}

.note-text {
  margin-top: 13px;
  max-width: 360px;
  font-family: "Cabin", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 13.5px;
  color: #20201F;
}

/* ============ Card & nút ============ */
.card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
}
.card-body { padding: 0 21px; }

.btn-dark { background: #272727; color: #FFF; padding: 7.5px 18px; }
.btn-dark:hover { box-shadow: 0 6px 16px rgba(39, 39, 39, 0.3); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============ Intro ============ */
.dass-title {
  margin-top: 12px;
  font-family: "Crimson Pro", serif;
  font-size: clamp(36px, 4.17vw, 60px);   /* 80px -> 60px */
  font-weight: 700;
  line-height: 0.825;                      /* 66px / 80px */
  color: #6F5BD3;
}

.dass-desc {
  margin-top: 22px;
  font-family: "Cabin", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 17.25px;
  color: #20201F;
}

.scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 41px 0 33px;
  padding: 22px 8px 18px;
  border: 1px solid #272727;
  text-align: center;
}
.scale div { padding: 0 6px; }
.scale b {
  display: block;
  font-family: "Crimson Pro", serif;
  font-size: 34.5px;                       /* 46px -> 34.5px */
  font-weight: 600;
  line-height: 1.2;
  color: #20201F;
}
.scale span {
  display: block;
  margin-top: 6px;
  font-family: "Crimson Pro", serif;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 15.75px;
  color: #20201F;
}

/* ============ Quiz ============ */
.q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -6px;
}
.q-meta .label,
.q-exit {
  line-height: 49.5px;                     /* 66px -> 49.5px */
  text-transform: none;
}
.q-exit {
  background: none;
  border: none;
  font-family: "Cabin", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: #4A4949;
  text-decoration: underline;
  text-decoration-skip-ink: auto;
  text-underline-position: from-font;
  cursor: pointer;
}

.q-title {
  margin-bottom: 26px;
  font-family: "Crimson Pro", serif;
  font-size: clamp(24px, 2.6vw, 37.5px);   /* 50px -> 37.5px */
  font-weight: 700;
  line-height: 1;                          /* 100% */
  color: #6F5BD3;
}

.opt {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 63px;
  margin-bottom: 10px;
  padding: 8px 15px;
  background: #FAF2DC;
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: left;
  font-family: "Crimson Pro", serif;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 15.75px;
  color: #20201F;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.opt:hover { border-color: rgba(111, 91, 211, 0.5); }
.opt .num {
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  margin-right: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  font-size: 30px;                         /* 40px -> 30px */
  font-weight: 600;
  line-height: 1;
}
.opt.sel { background: #EFEBFC; border-color: #6F5BD3; }
.opt.sel .num { background: #6F5BD3; color: #fff; }

.q-nav { display: flex; margin-top: 22px; }
#qNext { margin-left: auto; }

/* ============ Result ============ */
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack .card { padding: 32px 58px; }
.stack .tiles-card { padding: 45px 58px 43px; }

.result-level {
  margin-top: 14px;
  font-family: "Crimson Pro", serif;
  font-size: clamp(44px, 4.17vw, 60px);    /* 80px -> 60px */
  font-weight: 700;
  line-height: 0.825;                      /* 66px / 80px */
  color: #272727;
}

.support-note {
  margin-top: 22px;
  font-family: "Crimson Pro", serif;
  font-size: clamp(24px, 2.34vw, 33.75px); /* 45px -> 33.75px */
  font-weight: 700;
  line-height: 1;
  color: #272727;
}
.support-sub {
  margin-top: 14px;
  font-family: "Cabin", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #878787;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px 13px;
  margin-top: 18px;
}

.tile {
  height: 154px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;                   /* giữ ngắt dòng \n trong tên ô */
  border: 1.5px solid rgba(39, 39, 39, 0.60);
  border-radius: 15px;                     /* 20px -> 15px */
  font-family: "Crimson Pro", serif;
  font-size: clamp(19px, 1.82vw, 26.25px); /* 35px -> 26.25px */
  font-weight: 700;
  line-height: 1;
  color: #272727;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tile:hover { transform: translateY(-3px); }
.tile.on { box-shadow: 0 0 0 3px #6F5BD3; }
.tile[data-c="p"] { background: #FFD4DC; }  /* hồng nhạt */
.tile[data-c="m"] { background: #C7E6D5; }  /* mint */
.tile[data-c="o"] { background: #FF936F; }  /* cam */
.tile[data-c="r"] { background: #EDA7B4; }  /* hồng đậm */
.tile[data-c="c"] { background: #F5F6EA; }  /* kem */

/* ============ Popup hoạt động ============ */
.stack .pop { padding: 41px 58px 45px; animation: fade 0.3s ease; }

.pop-title {
  font-family: "Crimson Pro", serif;
  font-size: clamp(24px, 2.34vw, 33.75px); /* 45px -> 33.75px */
  font-weight: 700;
  line-height: 1;
  color: #272727;
}

.pop textarea {
  width: 100%;
  min-height: 90px;
  margin-top: 16px;
  padding: 0 0 10px;
  border: none;
  border-bottom: 1.5px solid #E6E4D8;
  outline: none;
  resize: vertical;
  background: transparent;
  font-family: "Cabin", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #272727;
}
.pop textarea::placeholder { color: #878787; }
.pop textarea:focus { border-bottom-color: #6F5BD3; }

.pop-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.pop-status { font-size: 14px; font-weight: 600; color: #878787; }

.video-wrap {
  position: relative;
  margin-top: 16px;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #3D3355;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ ≤ 1439px ============ */
@media (max-width: 1439px) {
  .check { padding-left: 120px; padding-right: 120px; }
}
/* ============ ≤ 1200px ============ */
@media (max-width: 1200px) {
  .check { padding-left: 80px; padding-right: 80px; }
  .stack .card, .stack .tiles-card, .stack .pop { padding-left: 40px; padding-right: 40px; }
}
/* ============ ≤ 1024px ============ */
@media (max-width: 1024px) {
  .check { grid-template-columns: 1fr; padding: 50px 60px 80px; gap: 28px; }
  .note-text { max-width: 480px; font-size: 15px; line-height: 17px; }
}
/* ============ ≤ 768px ============ */
@media (max-width: 768px) {
  .check { padding: 40px 40px 70px; }
  .card { padding: 30px 24px; }
  .card-body { padding: 0; }
  .stack .card, .stack .tiles-card, .stack .pop { padding: 28px 24px; }
  .scale { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .opt .num { margin-right: 20px; }
}
/* ============ ≤ 480px ============ */
@media (max-width: 480px) {
  .check { padding: 30px 20px 60px; }
  .card { padding: 24px 18px; border-radius: 18px; }
  .stack .card, .stack .tiles-card, .stack .pop { padding: 24px 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { height: 120px; }
  .opt { font-size: 15px; }
  .opt .num { width: 30px; height: 30px; font-size: 24px; margin-right: 14px; }
  .btn-dark { font-size: 14px; }
}