/* ============================================================
VARDA CREDIT – style.css
Brand: #003A79 (navy) | #F47920 (amber)
============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #003A79;
  --navy-dark:   #002857;
  --amber:       #F47920;
  --amber-light: #FEF3E8;
  --cream:       #FAF8F4;
  --white:       #FFFFFF;
  --slate:       #1A2B3C;
  --muted:       #6B7B8D;
  --border:      #E2E8F0;
  --success-bg:  #EAF7EF;
  --success-bd:  #A8D5B5;
  --success-tx:  #1A4A2B;
  --error-bg:    #FEF2F2;
  --error-bd:    #FECACA;
  --error-tx:    #7F1D1D;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--slate);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVIGATION ---- */
.nav {
  background: var(--navy);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.logo-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  padding: 6px 14px;
  font-family: 'Be Vietnam Pro', serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-pill span { color: var(--amber); }
.nav-sep {
  color: rgba(255,255,255,0.3);
  font-size: 18px;
}
.nav-hotline {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-hotline strong { color: #fff; }
.nav-hotline i { font-size: 16px; }
.nav-cta {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: #fff;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  margin-left: auto;
}
.mobile-menu {
  display: none;
  background: var(--navy-dark);
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 14px;
}
.mobile-menu p strong { color: #fff; }
.mobile-menu button {
  width: 100%;
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 560px;
  overflow: hidden;
}
.hero-left {
  position: relative;
  background: var(--navy);
  padding: 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.hero-left::after {
  content: '';
  position: absolute;
  right: -64px;
  top: 0;
  bottom: 0;
  width: 128px;
  background: var(--navy);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  z-index: 2;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-h1 {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 40px;
  line-height: 1.18;
  color: #fff;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-h1 em {
  color: var(--amber);
  font-style: normal;
}
.hero-lead {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  margin-bottom: 30px;
  line-height: 1.75;
}
.hero-lead strong { color: rgba(255,255,255,0.92); }
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 34px;
}
.hero-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.feat-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s, opacity 0.2s;
  width: fit-content;
}
.hero-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.hero-btn i { font-size: 18px; }
.hero-legal {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  margin-top: 22px;
  line-height: 1.65;
  max-width: 460px;
}
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 45%);
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--amber);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 22px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.22);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  margin-top: 3px;
}

/* ---- SECTION SHELL ---- */
.section {
  padding: 68px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}
.section-header { margin-bottom: 40px; }

/* ---- PRODUCT CARDS ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.prod-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 18px;
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
  outline: none;
}
.prod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.22s;
}
.prod-card:hover::before,
.prod-card:focus-visible::before {
  background: var(--amber);
}
.prod-card:hover,
.prod-card:focus-visible {
  border-color: rgba(244,121,32,0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,58,121,0.09);
}
.prod-icon {
  width: 44px;
  height: 44px;
  background: var(--amber-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.prod-icon i {
  font-size: 22px;
  color: var(--amber);
}
.prod-tag {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 5px;
}
.prod-name {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.prod-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.55;
}
.prod-highlights {
  list-style: none;
  font-size: 12px;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.prod-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.prod-highlights li::before {
  content: '✓';
  color: var(--amber);
  font-weight: 700;
  font-size: 11px;
  margin-top: 1px;
  flex-shrink: 0;
}
.prod-legal {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* ---- SPLIT LAYOUT ---- */
.split-bg {
  background: var(--white);
  padding: 64px 0;
}
.split-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.split-left { min-width: 0; }

/* ---- WHY GRID ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.why-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}
.why-num {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 5px;
  line-height: 1;
}
.why-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.why-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- ACCORDION ---- */
.accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.acc-item.open {
  border-color: rgba(244,121,32,0.4);
  background: var(--white);
}
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  outline: none;
}
.acc-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px var(--amber);
  border-radius: 10px;
}
.acc-icon {
  font-size: 18px;
  color: var(--amber);
  flex-shrink: 0;
}
.acc-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.acc-item.open .acc-arrow {
  transform: rotate(180deg);
}

/* ACCORDION BODY - ĐÃ SỬA: Dùng max-height transition thay vì hidden */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 18px 0 48px;
}
.acc-item.open .acc-body {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 0 18px 18px 48px;
}

.acc-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-body li {
  font-size: 14px;
  color: var(--slate);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.acc-body li::before {
  content: '→';
  color: var(--amber);
  flex-shrink: 0;
}
.acc-legal {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}

/* ---- FORM ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: sticky;
  top: 80px;
}
.form-title {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}
.form-group { margin-bottom: 15px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.req { color: #C0392B; }
.form-optional { font-size: 11px; color: var(--muted); font-weight: 400; }
.form-input,
.form-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--slate);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,58,121,0.08);
}
.form-input.error,
.form-select.error {
  border-color: #E74C3C;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7B8D' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}
.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--amber-light);
  border: 1px solid rgba(244,121,32,0.22);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
.consent-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--amber);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-text {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.65;
  cursor: pointer;
}
.consent-text a {
  color: var(--navy);
  text-decoration: underline;
}
.form-error {
  background: var(--error-bg);
  border: 1px solid var(--error-bd);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--error-tx);
  margin-bottom: 14px;
}
.submit-btn {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.submit-btn:hover { background: var(--navy-dark); }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.submit-btn i { font-size: 18px; }
.form-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.55;
}
.badge-row {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.badge {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge i { font-size: 13px; color: var(--amber); }

/* ---- SUCCESS ---- */
.success-msg {
  background: var(--success-bg);
  border: 1px solid var(--success-bd);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 0;
}
.success-msg i {
  font-size: 44px;
  color: #27AE60;
  display: block;
  margin-bottom: 12px;
}
.success-msg p {
  font-size: 15px;
  color: var(--success-tx);
  font-weight: 500;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 32px 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-brand {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}
.footer-brand span { color: var(--amber); }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-hotline {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  font-family: 'Be Vietnam Pro', serif;
}
.footer-hotline-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  display: block;
  margin-bottom: 7px;
  transition: color 0.2s;
}
a.footer-link:hover { color: var(--amber); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 22px;
}
.footer-legal {
  font-size: 11px;
  line-height: 1.85;
  color: rgba(255,255,255,0.42);
  font-style: italic;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  margin-top: 16px;
}

/* ============================================================
RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-layout {
    grid-template-columns: 1fr 360px;
    gap: 36px;
  }
}

/* Mobile - ĐÃ SỬA: Comment bị thiếu dấu đóng */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 12px 20px; }
  .nav-hotline { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu.open { display: block; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-right { height: 220px; order: -1; }
  .hero-left {
    padding: 36px 24px 40px;
    order: 1;
  }
  .hero-left::after { display: none; }
  .hero-h1 { font-size: 28px; }
  .hero-btn { width: 100%; justify-content: center; }
  .hero-img-overlay {
    background: linear-gradient(180deg, rgba(0,58,121,0.2) 0%, transparent 100%);
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 16px 20px;
  }
  .stat-item:last-child { border-bottom: none; }

  /* Section */
  .section { padding: 44px 20px; }
  .section-title { font-size: 24px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Split */
  .split-bg { padding: 44px 0; }
  .split-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 20px;
  }
  .form-card { position: static; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  footer { padding: 36px 20px 24px; }
}

@media (max-width: 480px) {
  .hero-left { padding: 28px 18px 36px; }
  .hero-h1 { font-size: 24px; }
  .hero-lead { font-size: 14px; }
  .form-card { padding: 24px 18px; }
  .badge-row { flex-direction: column; }
  .badge { width: fit-content; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}
.btn-cta {
  display: block;
  background: var(--amber);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 768px) {
  .mobile-cta { display: block; }
}

/* ---- HONEYPOT (Anti-spam) ---- */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}