/* ===== Á ĐÔNG — LANDING PAGE TUYỂN SINH (khối 6–9, AEON Tân Phú) ===== */
/* Kế thừa design system từ style.css. File này chỉ bổ sung phần riêng của landing. */

/* ---------- Header rút gọn ---------- */
.header-tuyensinh .header-inner { justify-content: space-between; gap: 10px; }
.header-tuyensinh .brand img { height: 42px; }
.header-tuyensinh .brand-text { display: none; }

.lp-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lp-hotline { display: flex; align-items: center; gap: 8px; color: var(--navy-900); font-weight: 700; white-space: nowrap; }
.lp-hotline .ic {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-gradient); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-hotline .ic svg { width: 18px; height: 18px; }
.lp-hotline-txt { display: none; line-height: 1.15; }
.lp-hotline-txt small { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.lp-hotline-txt strong { font-size: 15px; }

.lp-cta.btn { padding: 12px 18px; font-size: 12.5px; }
.lp-cta-short { display: inline; }
.lp-cta-long { display: none; }

@media (min-width: 480px) { .header-tuyensinh .brand-text { display: block; } }
@media (min-width: 560px) {
  .lp-hotline-txt { display: block; }
  .lp-cta-short { display: none; }
  .lp-cta-long { display: inline; }
  .lp-cta.btn { padding: 13px 24px; font-size: 13.5px; }
}
@media (max-width: 479px) { .header-tuyensinh .brand img { height: 38px; } }

/* ---------- Hero landing ---------- */
.lp-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  padding: 54px 0 70px;
}
.lp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,37,69,0.90) 0%, rgba(11,37,69,0.94) 55%, rgba(11,37,69,0.97) 100%),
    url('../images/thay-co-hoc-sinh.jpg') center/cover no-repeat;
  opacity: 1;
}
.lp-hero .container { position: relative; z-index: 2; }
/* Mobile: xếp dọc, thứ tự = tiêu đề → FORM → chi tiết phụ (đưa form lên sát fold) */
.lp-hero-grid { display: grid; gap: 26px; }
.lp-hero-head { order: 1; }
.lp-hero-formcol { order: 2; }
.lp-hero-extra { order: 3; }
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,199,94,0.14);
  border: 1px solid rgba(240,199,94,0.4);
  color: var(--gold-300);
  font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.lp-hero-badge svg { width: 15px; height: 15px; }
.lp-hero h1 { color: var(--white); font-size: clamp(28px, 5vw, 46px); margin-bottom: 16px; line-height: 1.2; }
.lp-hero h1 em { font-style: normal; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lp-sub { color: rgba(255,255,255,0.85); font-size: 16.5px; max-width: 540px; margin-bottom: 22px; }
.lp-hero-loc {
  display: inline-flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 26px;
  font-size: 14.5px; color: rgba(255,255,255,0.9); max-width: 520px;
}
.lp-hero-loc .ic { flex-shrink: 0; color: var(--gold-300); margin-top: 1px; }
.lp-hero-loc strong { color: var(--gold-300); font-weight: 700; }

.lp-hero-points { display: flex; flex-direction: column; gap: 11px; margin: 0 0 4px; }
.lp-hero-points li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: rgba(255,255,255,0.92); }
.lp-hero-points .ic {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-gradient); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
}
.lp-hero-points .ic svg { width: 15px; height: 15px; }

@media (min-width: 940px) {
  .lp-hero { padding: 70px 0 84px; }
  /* Desktop: nội dung bên trái (tiêu đề trên, chi tiết dưới), form bên phải trải 2 hàng */
  .lp-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: "head form" "extra form";
    column-gap: 48px; row-gap: 22px; align-items: start;
  }
  .lp-hero-head { grid-area: head; }
  .lp-hero-formcol { grid-area: form; align-self: center; }
  .lp-hero-extra { grid-area: extra; }
}

/* Form card trong hero */
.lp-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-soft); position: relative; }
.lp-form-card .lp-form-top { text-align: center; margin-bottom: 18px; }
.lp-form-card .lp-form-top h2 { font-size: 22px; margin-bottom: 6px; }
.lp-form-card .lp-form-top p { font-size: 13.5px; margin: 0; }
.lp-form-card .lp-form-top .flag {
  display: inline-block; background: var(--gold-gradient); color: var(--navy-900);
  font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
@media (min-width: 520px) { .lp-form-card { padding: 32px 30px; } }

/* ---------- Thanh tin cậy (trust bar) ---------- */
.trust-bar { background: var(--cream); border-bottom: 1px solid var(--border-soft); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy-900); color: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
}
.trust-item .ic svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-family: 'Playfair Display', serif; color: var(--navy-900); font-size: 18px; line-height: 1.15; }
.trust-item span { font-size: 13px; color: var(--ink-soft); }
@media (min-width: 800px) { .trust-grid { grid-template-columns: repeat(4, 1fr); padding: 30px 0; } }

/* ---------- Nỗi lo phụ huynh ---------- */
.pain-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.pain-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-card);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pain-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -22px rgba(11,37,69,0.28); }
.pain-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold-gradient); }
.pain-card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-900); color: var(--gold-300);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.pain-card .ic svg { width: 26px; height: 26px; }
.pain-card h3 { font-size: 18px; margin-bottom: 8px; }
.pain-card p { font-size: 14.5px; margin: 0; }
.pain-solve {
  margin-top: 40px; text-align: center;
  background: var(--navy-900); color: #fff;
  border-radius: var(--radius-lg); padding: 34px 26px;
}
.pain-solve h3 { color: #fff; font-size: clamp(20px, 3vw, 26px); margin-bottom: 10px; }
.pain-solve p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 20px; }
@media (min-width: 680px) { .pain-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Badge "Phù hợp khối 6–9" trên program card ---------- */
.program-card .grade-badge {
  position: absolute; right: 16px; top: 16px;
  background: var(--gold-gradient); color: var(--navy-900);
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; z-index: 2;
}
.program-card .top { position: relative; }

/* ---------- Ưu đãi đăng ký sớm ---------- */
.offer-section { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.offer-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(240,199,94,0.35);
  border-radius: var(--radius-lg); padding: 40px 26px;
}
.offer-card .flag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-gradient); color: var(--navy-900);
  font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 18px;
}
.offer-card .flag svg { width: 16px; height: 16px; }
.offer-card h2 { color: #fff; font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 14px; }
.offer-card p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 8px; }
.offer-placeholder {
  margin: 22px auto; max-width: 560px;
  border: 1.5px dashed rgba(240,199,94,0.5); border-radius: var(--radius-md);
  padding: 18px 20px; color: rgba(255,255,255,0.85); font-size: 14.5px; background: rgba(240,199,94,0.06);
}
.offer-placeholder strong { color: var(--gold-300); }

/* Đồng hồ đếm ngược */
.countdown { display: none; justify-content: center; gap: 12px; margin: 24px 0 8px; }
.countdown.is-active { display: flex; }
.cd-box {
  min-width: 66px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-md);
  padding: 12px 8px; text-align: center;
}
.cd-box strong { display: block; font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold-300); line-height: 1; }
.cd-box span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,0.6); }
@media (max-width: 420px) { .cd-box { min-width: 58px; } .cd-box strong { font-size: 24px; } }

/* ---------- Cơ sở gần nhất ---------- */
.near-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: 1fr;
}
/* Chặn grid blowout do iframe bản đồ (min-width mặc định của grid item) */
.near-card > * { min-width: 0; }
.near-card .near-body { padding: 30px 26px; }
.near-card .badge-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-gradient); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 14px;
}
.near-card .badge-tag svg { width: 14px; height: 14px; }
.near-card h3 { font-size: 22px; margin-bottom: 10px; }
.near-card .addr { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.near-card .addr .ic { flex-shrink: 0; color: var(--gold-500); margin-top: 2px; }
.near-card .near-note { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; }
.near-card .near-note .ic { flex-shrink: 0; color: var(--gold-500); margin-top: 1px; }
.near-card .map-embed { width: 100%; min-height: 300px; height: 100%; border: 0; filter: grayscale(15%); }
@media (min-width: 820px) { .near-card { grid-template-columns: 1fr 1fr; } .near-card .near-body { padding: 40px 40px; } }

/* ---------- Cảm nhận phụ huynh / học sinh ---------- */
.testi-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.testi-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-card);
  padding: 28px 26px; position: relative;
}
.testi-card .quote-mark { font-family: 'Playfair Display', serif; font-size: 54px; color: var(--gold-500); line-height: .4; display: block; margin-bottom: 14px; }
.testi-card p { font-size: 15px; color: var(--ink); font-style: italic; min-height: 66px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.testi-card .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: var(--gold-300); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.testi-card .who strong { display: block; font-size: 14.5px; color: var(--navy-900); }
.testi-card .who span { font-size: 12.5px; color: var(--ink-soft); }
.testi-empty { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; font-style: italic; }
@media (min-width: 720px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Multi-select chips (môn học) ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip label {
  display: inline-block; cursor: pointer; user-select: none;
  font-size: 13px; font-weight: 600; color: var(--navy-900);
  background: var(--cream); border: 1.5px solid rgba(11,37,69,0.14);
  border-radius: 999px; padding: 8px 14px; transition: all .18s ease;
}
.chip label:hover { border-color: var(--gold-500); }
.chip input:checked + label { background: var(--gold-gradient); border-color: transparent; color: var(--navy-900); }
.chip input:focus-visible + label { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Nhãn nhóm (thay <label> mồ côi) cho nhóm checkbox môn học */
.lp-group-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 7px; }

/* Nhãn "(không bắt buộc)" cho các trường không bắt buộc */
.opt-hint { font-weight: 500; color: var(--ink-soft); font-size: 12px; }

/* Thông báo lỗi khi gửi lead thất bại (mất mạng / endpoint lỗi) */
.form-submit-err {
  display: none; margin-top: 12px; text-align: center;
  font-size: 13px; color: #C0392B; font-weight: 600;
}
.form-submit-err.is-visible { display: block; }

/* Dòng trấn an bảo mật dưới nút gửi */
.form-privacy {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--ink-soft); margin-top: 8px;
}
.form-privacy svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--gold-500); }

/* Nút gọi trong panel thành công */
.form-success .success-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--navy-900); color: var(--navy-900); font-weight: 700;
  font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em;
}
.form-success .success-call svg { width: 16px; height: 16px; }
.form-success .success-call:hover { background: var(--navy-900); color: #fff; }
.form-success:focus { outline: none; }

/* ---------- Thanh CTA dính (mobile) ---------- */
.lp-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-soft); box-shadow: 0 -6px 24px -12px rgba(11,37,69,0.35);
}
.lp-stickybar a { flex: 1; padding: 14px 10px; font-size: 13px; }
.lp-stickybar .sb-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  border: 2px solid var(--navy-900); color: var(--navy-900); background: #fff;
}
.lp-stickybar .sb-call svg { width: 17px; height: 17px; }
@media (max-width: 860px) {
  .lp-stickybar { display: flex; }
  body.has-stickybar { padding-bottom: 74px; }
  .back-to-top { bottom: 84px; }
}
.lp-stickybar.is-hidden { transform: translateY(120%); transition: transform .3s ease; }

/* ---------- Footer rút gọn ---------- */
.footer-tuyensinh .footer-top { padding: 54px 0 34px; }
.footer-tuyensinh .footer-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
.footer-tuyensinh .footer-brand .brand { justify-content: center; }
.footer-tuyensinh .footer-brand p { margin-left: auto; margin-right: auto; }
.footer-tuyensinh .lp-foot-contact { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-tuyensinh .lp-foot-contact a, .footer-tuyensinh .lp-foot-contact span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: rgba(255,255,255,0.72); }
.footer-tuyensinh .lp-foot-contact a:hover { color: var(--gold-300); }
.footer-tuyensinh .lp-foot-contact .ic { color: var(--gold-300); }
.footer-tuyensinh .lp-foot-contact .ic svg { width: 17px; height: 17px; }
@media (min-width: 760px) {
  .footer-tuyensinh .footer-grid { grid-template-columns: 1.3fr 1fr; text-align: left; align-items: start; }
  .footer-tuyensinh .footer-brand .brand { justify-content: flex-start; }
  .footer-tuyensinh .footer-brand p { margin-left: 0; }
  .footer-tuyensinh .lp-foot-contact { align-items: flex-start; }
}

/* Section đăng ký cuối trang (dùng nền navy) */
.lp-final-form .form-card { max-width: 560px; margin: 0 auto; }

/* Nút CTA nhãn dài không tràn ngang trên màn hình nhỏ */
@media (max-width: 480px) {
  main .btn { white-space: normal; max-width: 100%; }
}
