/* ============================================================================
   VISALINK TRUST & CONVERSION LAYER CSS
   390px Mobile-First • Strict CSP Clean (Zero Inline Styles) • WCAG AA • 44px Tap
   ============================================================================ */

.vl-trust-wrap {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  line-height: 1.6;
  box-sizing: border-box;
}
.vl-trust-wrap *, .vl-trust-wrap *::before, .vl-trust-wrap *::after {
  box-sizing: border-box;
}
.vl-hidden {
  display: none !important;
}
.vl-mb-0 {
  margin-bottom: 0 !important;
}
.vl-bg-white {
  background: #ffffff !important;
}

/* 1. TrustBar ngay dưới Hero / Header */
.vl-trustbar {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #093915;
}
.vl-trustbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.vl-trustbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vl-trustbar-badge {
  background: #dcfce7;
  color: #093915;
  border: 1px solid #86efac;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
}
.vl-trustbar a {
  color: #093915;
  font-weight: 700;
  text-decoration: underline;
  min-height: 44px;
  padding: 4px 2px;
  display: inline-flex;
  align-items: center;
}

/* 2. UpdatedBadge (exams.json) */
.vl-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.vl-updated-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #fcd34d;
}
.vl-updated-badge.is-verified {
  background: #ecfdf5;
  color: #064e3b;
  border-color: #6ee7b7;
}
.vl-updated-badge a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* 3. Khối Kiến Thức Khảo Thí, Trường Hàng Đầu, Chẩn Đoán Nhanh & LeadForm */
.vl-conversion-hub {
  max-width: 1160px;
  margin: 22px auto;
  padding: 0 14px;
}
.vl-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .vl-hub-grid {
    grid-template-columns: 1fr;
  }
}
.vl-card {
  background: #ffffff;
  border: 1px solid #d8e6dc;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(9, 57, 21, 0.06);
  scroll-margin-top: 84px;
}
.vl-card + .vl-card {
  margin-top: 16px;
}
.vl-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #093915;
  background: #e8f8ed;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.vl-h1 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #093915;
  margin: 8px 0 10px;
  line-height: 1.26;
}
.vl-h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  color: #093915;
  margin: 4px 0 10px;
  line-height: 1.32;
}
.vl-muted-sm {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #334155;
}
.vl-action-row {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Chẩn đoán mô phỏng 3 câu */
.vl-diag-q {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}
.vl-diag-meta {
  font-size: 12px;
  font-weight: 800;
  color: #093915;
  margin-bottom: 4px;
}
.vl-diag-prompt {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.vl-diag-opt {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1.5px solid #94a3b8;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.vl-diag-opt:hover, .vl-diag-opt:focus-visible {
  border-color: #093915;
  background: #f0fdf4;
  outline: 2px solid #093915;
  outline-offset: 1px;
}
.vl-diag-opt.is-correct {
  border-color: #15803d;
  background: #dcfce7;
  color: #052e16;
}
.vl-diag-opt.is-wrong {
  border-color: #b91c1c;
  background: #fee2e2;
  color: #7f1d1d;
}
.vl-diag-exp {
  font-size: 12.5px;
  color: #064e3b;
  background: #ecfdf5;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
}

/* LeadForm chuẩn (44px touch targets) */
.vl-field {
  margin-bottom: 12px;
}
.vl-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}
.vl-input, .vl-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid #64748b;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
}
.vl-input:focus-visible, .vl-select:focus-visible {
  border-color: #093915;
  outline: 2px solid #093915;
  outline-offset: 1px;
}
.vl-minor-box {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.vl-minor-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 8px;
}
.vl-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #1e293b;
  cursor: pointer;
}
.vl-check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #093915;
}
.vl-inline-link {
  color: #093915;
  font-weight: 700;
  text-decoration: underline;
}
.vl-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.vl-turnstile-wrap {
  margin-bottom: 10px;
}
.vl-btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #b91c1c;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  scroll-margin-top: 88px;
  scroll-margin-bottom: 220px;
}
.vl-btn-primary:hover, .vl-btn-primary:focus-visible {
  background: #991b1b;
  outline: 2px solid #093915;
  outline-offset: 2px;
}
.vl-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.vl-btn-secondary {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid #093915;
  background: #ffffff;
  color: #093915;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.vl-btn-secondary:hover, .vl-btn-secondary:focus-visible {
  background: #f0fdf4;
  outline: 2px solid #093915;
  outline-offset: 2px;
}
.vl-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.vl-alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.vl-alert-ok {
  background: #f0fdf4;
  border: 1.5px solid #15803d;
  color: #052e16;
}
.vl-thank-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}
.vl-thank-sub {
  margin-top: 6px;
  font-size: 12.5px;
}
.vl-thank-cta {
  margin-top: 12px;
}
.vl-streak-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* Bảng & Danh sách trường chính thống + Khối kiến thức tĩnh */
.vl-static-guide {
  max-width: 1160px;
  margin: 18px auto;
  padding: 0 14px;
}
.vl-answer-box {
  background: #f0fdf4;
  border-left: 4px solid #093915;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 12px;
  font-size: 14px;
  color: #0f172a;
}
.vl-geo-text {
  font-size: 13.5px;
  color: #334155;
  margin: 0 0 14px;
}
.vl-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
@media (max-width: 640px) {
  .vl-feature-grid {
    grid-template-columns: 1fr;
  }
}
.vl-feature-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.vl-table-scroll {
  overflow-x: auto;
  margin: 12px 0;
}
.vl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.vl-table th, .vl-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.vl-table th {
  background: #f0fdf4;
  color: #093915;
  font-weight: 800;
}
.vl-inst-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
.vl-inst-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}
.vl-inst-item a {
  color: #093915;
  font-weight: 800;
  text-decoration: underline;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.vl-inst-role {
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}
.vl-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.vl-faq-item {
  border: 1px solid #dbe5dd;
  border-radius: 14px;
  background: #ffffff;
  padding: 4px 14px;
}
.vl-faq-item summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #093915;
  cursor: pointer;
  padding: 8px 0;
}
.vl-faq-body {
  padding: 0 0 12px;
  font-size: 13.5px;
  color: #334155;
}

/* 4. ContactDock cố định trên điện thoại */
.vl-contact-dock {
  position: fixed;
  right: 12px;
  bottom: 74px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vl-dock-btn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vl-dock-zalo {
  background: #0052cc;
  color: #ffffff;
}
.vl-dock-hotline {
  background: #b91c1c;
  color: #ffffff;
}

/* 5. CookieConsent Banner (3 nhóm — gọn gàng trên màn hình 390px) */
.vl-cookie-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-width: 560px;
  max-height: 46vh;
  overflow-y: auto;
  margin: 0 auto;
  z-index: 60;
  background: #ffffff;
  border: 2px solid #093915;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(9, 57, 21, 0.22);
  font-size: 12px;
}
.vl-ck-title {
  font-weight: 800;
  font-size: 13.5px;
  color: #093915;
}
.vl-ck-desc {
  margin: 2px 0 6px;
  color: #334155;
  font-size: 12px;
}
.vl-cookie-groups {
  display: grid;
  gap: 4px;
  margin: 6px 0 8px;
}
.vl-cookie-groups .vl-check-row {
  padding: 6px 8px;
  min-height: 40px;
  font-size: 11.5px;
}
.vl-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vl-cookie-actions button {
  flex: 1 1 105px;
  min-height: 44px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 10px;
}
.vl-ck-btn-reject {
  background: #f1f5f9;
  border: 1.5px solid #64748b;
  color: #0f172a;
}
.vl-ck-btn-save {
  background: #ffffff;
  border: 1.5px solid #093915;
  color: #093915;
}
.vl-ck-btn-accept {
  background: #093915;
  border: none;
  color: #ffffff;
}

/* 6. Footer Chuẩn 9 Học Viện */
.vl-std-footer {
  background: #093915;
  color: #ecfdf5;
  border-top: 3px solid #f5b82e;
  padding: 28px 16px 88px;
  margin-top: 28px;
  font-size: 13px;
}
.vl-std-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 820px) {
  .vl-std-footer-inner {
    grid-template-columns: 1fr;
  }
}
.vl-ft-heading {
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px;
}
.vl-ft-desc {
  margin: 0 0 10px;
  color: #ecfdf5;
  font-size: 12.5px;
}
.vl-ft-gold-link {
  color: #fde68a;
  font-weight: 800;
  text-decoration: underline;
}
.vl-ft-meta {
  font-size: 12px;
  color: #d1fae5;
  margin-top: 3px;
}
.vl-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.vl-footer-links a, .vl-link-btn {
  color: #ecfdf5;
  text-decoration: underline;
  min-height: 44px;
  padding: 6px 4px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.vl-footer-links a:hover, .vl-link-btn:hover {
  color: #fde68a;
}

/* 7. Giao diện Trang Chính Sách & 6 Học Viện Global Pack (Zero Inline Styles) */
.vl-site-shell {
  margin: 0;
  background: #f5f7f5;
  color: #0f172a;
}
.vl-top-header {
  background: linear-gradient(95deg, #093915 0%, #11692B 100%);
  color: #ffffff;
  border-bottom: 3px solid #f5b82e;
  padding: 12px 16px;
}
.vl-top-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.vl-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  min-height: 44px;
}
.vl-brand-logo {
  height: 32px;
  width: auto;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 10px;
}
.vl-back-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
}
.vl-lang-nav {
  max-width: 1160px;
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vl-lang-chip {
  color: #ecfdf5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.vl-lang-chip.is-active {
  background: #fde68a;
  color: #093915;
}
.vl-hero-section {
  max-width: 1160px;
  margin: 20px auto 8px;
  padding: 0 14px;
}
.vl-hero-card {
  background: #ffffff;
  border: 1px solid #d8e6dc;
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 10px 28px rgba(9, 57, 21, 0.06);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 820px) {
  .vl-hero-card {
    grid-template-columns: 1fr;
  }
}
.vl-mascot-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.vl-mascot-img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.vl-policy-main {
  max-width: 880px;
  margin: 24px auto;
  padding: 0 14px;
}
.vl-todo-legal-banner {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  color: #78350f;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}
.vl-policy-list {
  padding-left: 20px;
  margin: 8px 0 14px;
}
.vl-policy-list li {
  margin-bottom: 6px;
}
.vl-noscript-box {
  max-width: 1160px;
  margin: 14px auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #78350f;
  font-size: 13px;
}
