/* ==========================================================================
   SECTIONS — khối nội dung: trust bar, pain, timeline, giá trị, giáo viên,
   thành tích, cảm nhận, quà tặng, địa điểm, form, FAQ
   ========================================================================== */

/* ---------- Trust bar: 4 con số ---------- */
.trust-bar { background: var(--ink); color: #fff; padding-block: 28px; }
.trust-bar .grid-4 { gap: 10px; }
.trust-item { text-align: center; padding: 8px 10px; border-left: 1px solid rgba(255, 255, 255, .12); }
.trust-item:first-child { border-left: 0; }
.trust-item b { display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--gold); line-height: 1.15; }
.trust-item span { font-size: 13.5px; color: rgba(255, 255, 255, .8); }
@media (max-width: 980px) { .trust-item:nth-child(3) { border-left: 0; } }
@media (max-width: 640px) { .trust-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); } .trust-item:first-child { border-top: 0; } }

/* ---------- Nỗi lo (pain points) ---------- */
.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 18px 20px;
}
.pain-item .pain-icon { font-size: 22px; line-height: 1.3; flex-shrink: 0; }
.pain-item p { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink-2); }

.pain-turn {
  margin-top: 40px;
  text-align: center;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 28px;
}
.pain-turn h3 { font-size: clamp(20px, 2.8vw, 30px); color: #fff; margin-bottom: 10px; }
.pain-turn h3 em { font-style: normal; color: var(--gold); }
.pain-turn p { color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0 auto 22px; }

/* ---------- Bảng thông tin chương trình ---------- */
.program-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; }
.program-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.program-photos img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.program-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left;
  padding: 13px 16px 13px 0;
  width: 38%;
  font-weight: 700;
  color: var(--red);
  vertical-align: top;
}
.spec-table td { padding: 13px 0; color: var(--ink-2); vertical-align: top; }
@media (max-width: 980px) { .program-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Timeline 150 phút ---------- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; }
/* Đường dọc nối các bước */
.timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 16px; bottom: 16px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--red));
  border-radius: 2px;
}
.tl-item { position: relative; display: flex; gap: 22px; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-size: 21px; font-weight: 800;
  box-shadow: 0 0 0 5px #fff, 0 6px 16px rgba(190, 30, 45, .32);
  z-index: 1;
}
.tl-body {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.tl-body h3 { margin-bottom: 6px; font-size: 18.5px; }
.tl-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tl-time {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .timeline::before { left: 21px; }
  .tl-item { gap: 14px; }
  .tl-num { width: 44px; height: 44px; font-size: 17px; }
  .tl-body { padding: 16px 18px; }
}

/* ---------- 6 giá trị ---------- */
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.value-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.value-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.value-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- 4 điểm khác biệt "THẬT" ---------- */
.real-card {
  text-align: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 30px 22px;
}
.real-card .real-icon { font-size: 40px; margin-bottom: 12px; }
.real-card h3 { color: var(--gold); font-size: 19px; text-transform: uppercase; margin-bottom: 8px; }
.real-card p { margin: 0; font-size: 14.8px; color: rgba(255, 255, 255, .85); }

/* ---------- Kết quả sau buổi học ---------- */
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}
.result-list li:last-child { border-bottom: 0; }
.result-list .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  margin-top: 1px;
}
.result-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 980px) { .result-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Giáo viên ---------- */
.teacher-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.teacher-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 800;
  margin-bottom: 14px;
}
.teacher-card h3 { font-size: 17px; margin-bottom: 2px; text-transform: uppercase; }
.teacher-role { color: var(--red); font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.teacher-card ul { list-style: none; padding: 0; margin: 0; font-size: 14.2px; color: var(--muted); }
.teacher-card li { padding: 4px 0 4px 18px; position: relative; }
.teacher-card li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* ---------- Thành tích học viên ---------- */
.score-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.score-gallery figure { margin: 0; }
/* Khoá tỉ lệ để 4 ảnh thẳng hàng dù file gốc khác kích thước */
.score-gallery img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.score-gallery figcaption { text-align: center; font-size: 14px; font-weight: 700; margin-top: 10px; }
.score-gallery figcaption span { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); }

.score-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.score-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; min-width: 620px; }
.score-table th {
  background: var(--red);
  color: #fff;
  padding: 13px 14px;
  text-align: left;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.score-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.score-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.score-table .lv { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; }
.score-table .avg { font-weight: 800; color: var(--red); }
@media (max-width: 980px) { .score-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cảm nhận học viên ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.quote-card::before {
  content: '\201C';
  position: absolute;
  top: 6px; right: 20px;
  font-size: 68px;
  line-height: 1;
  color: var(--red-soft);
  font-family: Georgia, serif;
}
.quote-card p { font-size: 15.5px; color: var(--ink-2); font-style: italic; position: relative; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote-author .qa-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid; place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.quote-author b { display: block; font-size: 15px; }
.quote-author span { font-size: 13px; color: var(--muted); }

/* ---------- Quà tặng ---------- */
.gift-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.gift-card .gift-emoji { font-size: 28px; flex-shrink: 0; }
.gift-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.gift-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.gift-card .gift-value { color: var(--red); font-weight: 800; }

.gift-total {
  margin-top: 30px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
}
.gift-total b { color: var(--gold); font-size: clamp(24px, 3.4vw, 36px); display: block; line-height: 1.2; }

/* ---------- Địa điểm + lịch ---------- */
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.venue-info li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.venue-info ul { list-style: none; padding: 0; margin: 0 0 22px; }
.venue-info li:last-child { border-bottom: 0; }
.venue-info .vi-icon { font-size: 19px; flex-shrink: 0; }
.venue-info b { display: block; }

.slot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.slot-card .sc-date { font-weight: 800; font-size: 16px; }
.slot-card .sc-time { font-size: 14px; color: var(--muted); }
.slot-card .sc-tag { background: var(--red-soft); color: var(--red); font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.slot-card .sc-tag--low { background: #fff4e5; color: #b45309; }
@media (max-width: 980px) { .venue-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Form đăng ký ---------- */
.form-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 44px; align-items: center; }
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--red);
}
.form-card h3 { text-align: center; color: var(--red); text-transform: uppercase; font-size: 21px; margin-bottom: 4px; }
.form-card .form-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.field { margin-bottom: 12px; }
.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  /* Bắt buộc >= 16px: nhỏ hơn thì Safari trên iPhone tự phóng to trang khi bấm vào ô */
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* Mũi tên cho thẻ select sau khi tắt giao diện mặc định */
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(190, 30, 45, .12);
}
.field input::placeholder { color: #9aa0ab; }
.field .err { display: none; color: var(--red); font-size: 13px; margin-top: 5px; font-weight: 600; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field.has-error .err { display: block; }

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.form-success.is-visible { display: block; }

/* Khối ghi chú chỗ nhúng form Ladipage — chỉ hiện khi bật data-dev */
.ladipage-slot {
  border: 2px dashed var(--gold);
  background: #fffbeb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 14px;
}
@media (max-width: 980px) { .form-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.faq-q:hover { background: var(--red-soft); color: var(--red); }
.faq-q .faq-mark { flex-shrink: 0; font-size: 22px; color: var(--red); transition: transform .2s ease; }
.faq-item.is-open .faq-q { background: var(--red); color: #fff; }
.faq-item.is-open .faq-q .faq-mark { color: #fff; transform: rotate(45deg); }
.faq-a { display: none; padding: 18px 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.3px; }
.faq-item.is-open .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- CTA dải giữa trang ---------- */
.cta-strip { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--ink); padding-block: 40px; }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip h3 { margin: 0; font-size: clamp(19px, 2.4vw, 26px); }
.cta-strip p { margin: 4px 0 0; font-size: 15px; opacity: .85; }
@media (max-width: 760px) { .cta-strip .container { flex-direction: column; text-align: center; } }
