/* ================================================
   ĐÀO TẠO AI THỰC CHIẾN 1:1 — Custom Styles
   style.css
   ================================================ */

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #F7F8FC; }
::-webkit-scrollbar-thumb { background: linear-gradient(#7C3AED, #2563EB); border-radius: 3px; }

/* ----- Brand Gradient Utilities ----- */
.gradient-text {
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg { background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%); }

/* ----- Buttons ----- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,58,237,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #7C3AED;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 14px;
  border: 2px solid #7C3AED;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-secondary:hover { background: rgba(124,58,237,0.07); transform: translateY(-2px); }

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #10B981;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-green:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,0.3); }

/* ----- Scroll Animations ----- */
[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate][data-delay="100"] { transition-delay: 0.1s; }
[data-animate][data-delay="150"] { transition-delay: 0.15s; }
[data-animate][data-delay="200"] { transition-delay: 0.2s; }
[data-animate][data-delay="250"] { transition-delay: 0.25s; }
[data-animate][data-delay="300"] { transition-delay: 0.3s; }
[data-animate][data-delay="350"] { transition-delay: 0.35s; }
[data-animate][data-delay="400"] { transition-delay: 0.4s; }
[data-animate][data-delay="500"] { transition-delay: 0.5s; }

/* ----- Sticky Header ----- */
#site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ----- Nav Links ----- */
.nav-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #475569;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #7C3AED, #2563EB);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: #7C3AED; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #7C3AED; }
.nav-link.active::after { width: 100%; }

/* ----- Section Label Chip ----- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(37,99,235,0.1) 100%);
  color: #7C3AED;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 0.875rem;
}

/* ----- Icon Gradient Circle ----- */
.icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(37,99,235,0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 1.75rem; height: 1.75rem; color: #7C3AED; }

/* ----- Cards ----- */
.pain-card {
  background: white;
  border-radius: 18px;
  padding: 1.75rem;
  border: 2px solid #F1F5F9;
  transition: all 0.3s ease;
}
.pain-card:hover { border-color: #7C3AED; box-shadow: 0 10px 35px rgba(124,58,237,0.13); transform: translateY(-4px); }

.benefit-card {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #F1F5F9;
  transition: all 0.3s ease;
}
.benefit-card:hover { box-shadow: 0 14px 40px rgba(124,58,237,0.14); transform: translateY(-5px); }

.testimonial-card {
  background: white;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #F1F5F9;
  transition: all 0.3s ease;
}
.testimonial-card:hover { box-shadow: 0 14px 40px rgba(124,58,237,0.13); transform: translateY(-4px); }

/* ----- Persona Tabs ----- */
.tab-btn {
  padding: 0.6875rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #64748B;
  background: white;
  border: 2px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}
.tab-btn:hover:not(.active) { border-color: #7C3AED; color: #7C3AED; }
.tab-btn.active { background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%); color: white; border-color: transparent; box-shadow: 0 4px 15px rgba(124,58,237,0.3); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ----- Timeline ----- */
.timeline-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
  position: relative;
  z-index: 2;
}

/* ----- Pricing Cards ----- */
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  border: 2px solid #E8EDF5;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card:hover { border-color: #7C3AED; box-shadow: 0 14px 45px rgba(124,58,237,0.13); transform: translateY(-5px); }
.pricing-card.featured {
  border-color: #7C3AED;
  background: linear-gradient(135deg, rgba(124,58,237,0.04) 0%, rgba(37,99,235,0.04) 100%);
  box-shadow: 0 8px 30px rgba(124,58,237,0.12);
}
.pricing-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1.125rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ----- FAQ Accordion ----- */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #1E293B;
  transition: color 0.2s ease;
}
.faq-question:hover { color: #7C3AED; }
.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #7C3AED;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item { border-bottom: 1px solid #E2E8F0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer.open { max-height: 400px; }
.faq-answer-inner { padding-bottom: 1.25rem; color: #64748B; line-height: 1.75; font-size: 0.9375rem; }

/* ----- Form ----- */
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1E293B;
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #1E293B;
  background: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus { border-color: #7C3AED; box-shadow: 0 0 0 4px rgba(124,58,237,0.1); }
.form-input.error, .form-textarea.error { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.08); }
.form-textarea { resize: vertical; min-height: 100px; }
.field-error { color: #EF4444; font-size: 0.8125rem; margin-top: 0.375rem; display: none; }
.field-error.show { display: block; }

/* Honeypot — bots fill this, humans don't see it */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tabindex: -1; }

/* ----- Toast ----- */
#toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transform: translateY(-90px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; pointer-events: all; }
#toast.success { background: #10B981; color: white; }
#toast.error { background: #EF4444; color: white; }

/* ----- Floating Contact ----- */
#floating-contact {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
@media (min-width: 640px) { #floating-contact { bottom: 2rem; } }

.float-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.float-btn:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(0,0,0,0.22); }

.float-btn-label {
  position: absolute;
  right: calc(100% + 0.625rem);
  top: 50%;
  transform: translateY(-50%);
  background: #1E293B;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.float-btn-label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1E293B;
}
.float-btn:hover .float-btn-label { opacity: 1; }

/* ----- Mobile Sticky CTA ----- */
#mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 39;
  background: white;
  border-top: 1px solid #E8EDF5;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.625rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (min-width: 640px) { #mobile-sticky-cta { display: none !important; } }
#mobile-sticky-cta .btn-primary { flex: 1; font-size: 0.9rem; padding: 0.75rem 1rem; border-radius: 12px; }
#mobile-sticky-cta .btn-green { padding: 0.75rem 1rem; border-radius: 12px; }

/* ----- Mobile Menu Drawer ----- */
#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 100vw);
  background: white;
  z-index: 60;
  padding: 1.5rem;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  overflow-y: auto;
}
#mobile-menu.open { transform: translateX(0); }
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 59;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#menu-overlay.open { opacity: 1; pointer-events: all; }

/* ----- Hero Section ----- */
.hero-section {
  background: linear-gradient(160deg, #FAFAFE 0%, #F0F5FF 60%, #F5F0FF 100%);
  overflow: hidden;
  position: relative;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-glow-1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 350px; height: 350px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
}

/* ----- Trainer Section ----- */
.trainer-section { background: linear-gradient(135deg, #F8F7FF 0%, #F0F5FF 100%); }
.trainer-img {
  display: block;
  width: 260px;
  height: 347px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(124,58,237,0.2);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
@media (min-width: 768px) { .trainer-img { width: 300px; height: 400px; } }

/* ----- Check List ----- */
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-icon-wrap {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon-wrap svg { width: 0.75rem; height: 0.75rem; color: white; }

/* ----- Stars ----- */
.stars { color: #F59E0B; font-size: 1.125rem; letter-spacing: 0.05em; }

/* ----- Trust Bar ----- */
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: #CBD5E1; flex-shrink: 0; }

/* ----- Outcome List ----- */
.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid #F1F5F9;
}
.outcome-item:last-child { border-bottom: none; }
.outcome-num {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(37,99,235,0.12));
  color: #7C3AED;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ----- Section spacing utility ----- */
.section-py { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .section-py { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 1024px) { .section-py { padding-top: 6.5rem; padding-bottom: 6.5rem; } }

/* ----- Container ----- */
.container-main {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container-main { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-main { padding: 0 2rem; } }

/* ----- Contact quick-link buttons ----- */
.contact-quick-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: white;
  border: 2px solid #E2E8F0;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 600;
  color: #1E293B;
  font-size: 0.9375rem;
}
.contact-quick-btn:hover { border-color: #7C3AED; box-shadow: 0 6px 20px rgba(124,58,237,0.12); transform: translateY(-2px); }
.contact-quick-btn .icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ----- Messenger, Zalo, Phone colors ----- */
.messenger-btn { background: #0A7CFF; }
.zalo-btn { background: #006AF5; }
.phone-btn { background: #10B981; }

/* Pulse animation for floating buttons */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.float-btn-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-ring 2s ease-out infinite;
}
