/* ==========================================================================
   Sunme — FAQ (G3; G5C thiết kế lại: panel đỏ + thẻ accordion riêng biệt
   + dải cam kết bento, theo phong cách mảng miếng ảnh F)
   Kicker "05 / HỎI ĐÁP" (đánh số lại G5C), nền tint + divider.
   Section có id="faq" (menu "Hỏi đáp" link tới /#faq),
   scroll-margin-top để header cố định không che tiêu đề khi nhảy anchor.
   Bố cục 2 cột (5/12 + 7/12): trái = panel đỏ gradient (kicker + H2
   trắng + intro + khối liên hệ + nút Nhắn Zalo + Hotline), phải =
   5 thẻ accordion trắng riêng biệt (khoảng cách rõ, bóng mềm).
   Dưới: dải "Sunme cam kết" 3 ô bento — ô giữa nền đỏ gradient làm
   điểm nhấn, 2 ô bên nền tint. Xếp 1 cột ở <= 1024px (xem responsive.css).
   Accordion: câu đầu mở sẵn, chỉ mở một câu cùng lúc, đáp án nở bằng
   grid-template-rows (không cắt chữ), icon + xoay 45° khi mở.
   ========================================================================== */

.sunme-faq {
  scroll-margin-top: 100px;
}

.sunme-faq-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-32);
  align-items: start;
}

/* --- Panel đỏ trái --- */
.sunme-faq-panel {
  background: var(--grad-cta);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-cta);
  /* G5J: padding 40 cho chênh ~2px. G5N (+1px toàn thang chữ): panel
     dài thêm 18px so với cột phải (516 vs 502) nên về 32 để cân lại
     (500 vs 502, chênh −2px — đo lại bằng g5j-measure.mjs).
     G5S-8 (thang chữ mới: H2 -1, lead -1, link -1): panel ngắn lại
     12px so với cột phải (488 vs 500) nên về 40 — nhưng đáy panel
     lại thừa 6px (7039 vs 7033) nên padding-bottom về 32 (đáy chênh
     −2px, trong dung sai ≤5px của g5j-faq; đo lại bằng g5s-type.mjs
     + g5s-faq.mjs). */
  padding: var(--space-40) var(--space-40) var(--space-32);
  color: var(--white);
}

.sunme-faq-panel .sunme-section-head {
  margin-bottom: 0;
}

/* G5J — cân đáy 2 cột desktop: panel đo được 548px, cột accordion
   497px (chênh 67px sau khi gộp hotline). Cắt 66px qua 8 chỗ nhỏ
   (padding, divider, các margin/gap) để đáy 2 cột cùng 1 đường; không
   thêm khối vào cột phải. Đo lại sau sửa: xem g5j-measure.mjs. */
.sunme-faq-panel .sunme-kicker {
  margin-bottom: var(--space-8);
}

.sunme-faq-panel .sunme-section-head h2 {
  margin-bottom: var(--space-12);
}

.sunme-faq-divider {
  height: 1px;
  background-color: var(--line-on-dark);
  margin: var(--space-12) 0;
}

.sunme-faq-help-title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-lead); /* G5S-8: tiêu đề box trợ giúp FAQ = 17px */
  font-weight: 700;
  color: var(--white);
}

.sunme-faq-help-text {
  color: var(--white-75);
  font-size: var(--fs-card);
  /* G5S-8: margin-bottom 12 -> 16 (+4px) để đáy panel cân với cột phải
     (chênh -1px sau khi padding-bottom về 32; đo bằng g5s-faq.mjs). */
  margin: 0 0 var(--space-16);
}

.sunme-faq-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.sunme-faq-contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.sunme-faq-contact-row .sunme-icon-box {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-sm);
  background-color: var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.sunme-faq-contact-row .sunme-icon-box .lucide {
  width: 20px;
  height: 20px;
}

.sunme-faq-contact-row small {
  display: block;
  font-size: 14px; /* G5S-8: 13.5 -> 14 (nhãn nhỏ) */
  color: var(--white-75);
}

.sunme-faq-contact-row a {
  font-weight: 700;
  font-size: var(--fs-lead); /* G5S-8: 18 -> 17 (link liên hệ FAQ) */
  color: var(--white);
  text-decoration: none;
}

.sunme-faq-contact-row a:hover {
  color: var(--red-pale);
  text-decoration: none;
}

.sunme-help-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

/* --- Accordion: 5 thẻ trắng riêng biệt --- */
.sunme-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.sunme-faq-item {
  background-color: var(--white);
  border: 1px solid var(--red-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.sunme-faq-item:hover {
  box-shadow: var(--shadow-lift);
}

.sunme-faq-item.is-open {
  box-shadow: var(--shadow-soft);
  border-color: var(--border-faq-open);
}

.sunme-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-16);
  text-align: left;
  background: none;
  border: 0;
  padding: var(--space-16) var(--space-24);
  cursor: pointer;
  font-family: inherit;
}

.sunme-faq-num {
  flex: none;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--red);
  background-color: var(--red-soft);
  border-radius: var(--radius-xs);
  padding: var(--space-6) var(--space-8);
}

.sunme-faq-text {
  flex: 1;
  font-size: var(--fs-lead); /* G5S-8: 17.5 -> 17 (câu hỏi FAQ) */
  font-weight: 700;
  color: var(--ink-heading);
  line-height: 1.4;
}

.sunme-faq-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background-color: var(--red-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  /* G5E: DIWE icon accordion +/- transition all .3s. */
  transition: transform 300ms ease-out,
    background-color var(--transition-base),
    color var(--transition-base);
}

.sunme-faq-icon .lucide {
  width: 18px;
  height: 18px;
}

.sunme-faq-item.is-open .sunme-faq-icon {
  transform: rotate(45deg);
  background-color: var(--red);
  color: var(--white);
}

/* Đáp án: nở bằng grid-template-rows, không dùng max-height cố định
   nên đáp án dài không bao giờ bị cắt. Thuộc tính hidden (JS gắn sau
   khi đóng xong) cần display:none vì rule display:grid dưới đây thắng
   giá trị mặc định của trình duyệt. */
.sunme-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms ease-out;
}

.sunme-faq-a[hidden] {
  display: none;
}

.sunme-faq-item.is-open .sunme-faq-a {
  grid-template-rows: 1fr;
}

.sunme-faq-a-inner {
  overflow: hidden;
}

.sunme-faq-a p {
  margin: 0;
  padding: 0 var(--space-24) var(--space-24) var(--space-64);
  color: var(--ink-body);
  font-size: var(--fs-card); /* G5S-8: 16.5 -> 16 (trả lời FAQ) */
  line-height: var(--lh-body);
}

/* --- Dải "Sunme cam kết": 3 ô bento --- */
.sunme-faq-commit {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-32);
  margin-top: var(--space-40);
}

.sunme-faq-commit-head {
  margin-bottom: var(--space-24);
}

.sunme-faq-commit-head h3 {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-lead); /* G5S-8: tiêu đề cam kết FAQ = 17px */
  font-weight: 700;
}

.sunme-faq-commit-head p {
  color: var(--ink-body);
  font-size: var(--fs-card);
  margin: 0;
}

.sunme-faq-commit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

.sunme-faq-commit-item {
  background-color: var(--bg-tint);
  border-radius: var(--radius);
  padding: var(--space-16) var(--space-24);
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.sunme-faq-commit-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.sunme-faq-commit-item .sunme-icon-box {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius-md);
  background-color: var(--red-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.sunme-faq-commit-item .sunme-icon-box .lucide {
  width: 22px;
  height: 22px;
}

.sunme-faq-commit-item strong {
  display: block;
  font-size: var(--fs-lead); /* G5S-8: 17.5 -> 17 (tiêu đề mục cam kết) */
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: var(--space-4);
}

.sunme-faq-commit-item p {
  margin: 0;
  font-size: var(--fs-card); /* G5S-8: 15.5 -> 16 */
  color: var(--ink-body);
  line-height: 1.5;
}

/* Ô giữa: nền đỏ gradient làm điểm nhấn bento. */
.sunme-faq-commit-item--accent {
  background: var(--grad-cta);
  box-shadow: var(--shadow-cta);
}

.sunme-faq-commit-item--accent .sunme-icon-box {
  background-color: var(--white-10);
  color: var(--white);
}

.sunme-faq-commit-item--accent strong {
  color: var(--white);
}

.sunme-faq-commit-item--accent p {
  color: var(--white-80);
}

/* F-commit-border 01/12: viền đỏ tươi 1px cho 2 card nhạt "Sunme cam kết"; card giữa (accent) đỏ sẵn giữ nguyên */
.sunme-faq-commit-item:not(.sunme-faq-commit-item--accent) { border: 1px solid var(--red); }
