/* =========================================================
 * MUSK - CÂU HỎI THƯỜNG GẶP
 * Nội dung theo Row/Column Flatsome, nền tràn full width
 * ========================================================= */

.musk-faq {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #10131c;
}

.musk-faq,
.musk-faq *,
.musk-faq *::before,
.musk-faq *::after {
  box-sizing: border-box;
}

/* =========================================================
 * LAYOUT TRONG COLUMN
 * ========================================================= */

.musk-faq__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 100px 0px 50px 0px;
}

/* =========================================================
 * HEADER
 * ========================================================= */

.musk-faq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.musk-faq__intro {
  max-width: 720px;
  margin: 10px auto 0;
  color: #29394f;
  font-weight: 400;
  line-height: 1.6;
}

/* =========================================================
 * DANH SÁCH FAQ
 * ========================================================= */

.musk-faq__list {
  width: 100%;
}

/* =========================================================
 * ITEM
 * ========================================================= */

.musk-faq__item {
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(90, 124, 173, 0.1);
}

.musk-faq__question-heading {
  margin: 0;
}

/* =========================================================
 * CÂU HỎI
 * ========================================================= */

.musk-faq__question {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  min-height: 82px;
  margin: 0 !important;
  padding: 21px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #10131c !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.025em;
  text-align: left !important;
  text-transform: none !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

.musk-faq__question::before,
.musk-faq__question::after {
  display: none !important;
  content: none !important;
}

.musk-faq__question:hover {
  color: #1558f4 !important;
}

.musk-faq__question:focus-visible {
  outline: 3px solid rgba(21, 88, 244, 0.22);
  outline-offset: 5px;
}

/* =========================================================
 * SỐ THỨ TỰ
 *
 * aria-hidden ở markup: số là trang trí, trình đọc màn hình
 * chỉ cần đọc nội dung câu hỏi.
 * ========================================================= */

.musk-faq__number {
  flex: 0 0 auto;
  margin-right: 12px;
  color: #1558f4;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.musk-faq__question-text {
  display: block;
  min-width: 0;
  margin-right: auto;
  padding-right: 30px;
}

/* =========================================================
 * NÚT CỘNG / TRỪ
 * ========================================================= */

.musk-faq__toggle {
  position: relative;
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: #ffffff;
  color: #071b5e;
  box-shadow: 0 7px 20px rgba(30, 74, 140, 0.06);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.musk-faq__toggle-horizontal,
.musk-faq__toggle-vertical {
  position: absolute;
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.musk-faq__toggle-vertical {
  transform: rotate(90deg);
}

.musk-faq__item.is-active .musk-faq__toggle {
  background: #1558f4;
  color: #ffffff;
}

.musk-faq__item.is-active .musk-faq__toggle-vertical {
  opacity: 0;
  transform: rotate(90deg) scaleX(0);
}

/* =========================================================
 * CÂU TRẢ LỜI
 * ========================================================= */

.musk-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.3s ease,
    visibility 0.42s ease;
}

.musk-faq__answer-inner {
  min-height: 0;
  overflow: hidden;
}

.musk-faq__item.is-active .musk-faq__answer {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

/*
 * Khi JavaScript chưa kịp chạy,
 * vẫn hiển thị câu đầu giống hình mẫu.
 */

.musk-faq:not([data-musk-faq-ready="true"])
  .musk-faq__item:first-child
  .musk-faq__answer {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

.musk-faq:not([data-musk-faq-ready="true"])
  .musk-faq__item:first-child
  .musk-faq__toggle {
  background: #1558f4;
  color: #ffffff;
}

.musk-faq:not([data-musk-faq-ready="true"])
  .musk-faq__item:first-child
  .musk-faq__toggle-vertical {
  opacity: 0;
}

/* =========================================================
 * KHUNG TRẢ LỜI
 * ========================================================= */

.musk-faq__answer-content {
  margin: 3px 0 22px;
  padding: 31px 48px;
  border-radius: 11px;
  background: #ffffff;
  color: #242c3b;
  font-weight: 400;
  line-height: 1.75;
  box-shadow: 0 12px 34px rgba(39, 85, 145, 0.035);
}

.musk-faq__answer-content p {
  margin: 0;
}

.musk-faq__answer-content p + p {
  margin-top: 14px;
}

/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 767px) {
  .musk-faq__answer-content {
    padding: 23px 20px;
    margin-bottom: 18px;
    border-radius: 9px;
    line-height: 1.7;
  }

  .musk-faq__inner {
    padding: 50px 0;
  }

  .musk-faq__header {
    margin-bottom: 32px;
  }

  .musk-faq__intro {
    margin-top: 7px;
    line-height: 1.55;
  }

  .musk-faq__question {
    min-height: 72px;
    padding: 18px 0 !important;
    line-height: 1.45 !important;
  }

  .musk-faq__number {
    margin-right: 8px;
  }

  .musk-faq__question-text {
    padding-right: 18px;
  }

  .musk-faq__toggle {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .musk-faq__toggle-horizontal,
  .musk-faq__toggle-vertical {
    width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .musk-faq__answer,
  .musk-faq__toggle,
  .musk-faq__toggle-horizontal,
  .musk-faq__toggle-vertical {
    transition: none !important;
  }
}
