/* =============================================
   TIẾP SỨC MÙA THI – Main Stylesheet
   Design: Dark Navy + Orange Accent
   ============================================= */

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

:root {
  --navy:       #0D1B3E;
  --navy-dark:  #060F24;
  --navy-mid:   #152347;
  --orange:     #FF6B00;
  --orange-hot: #FF8C2A;
  --orange-glow:rgba(255,107,0,.35);
  --white:      #FFFFFF;
  --gray-100:   #F5F7FA;
  --gray-300:   #CBD5E0;
  --gray-500:   #718096;
  --text:       #1A202C;
  --radius:     16px;
  --radius-sm:  8px;
  --shadow:     0 8px 40px rgba(0,0,0,.18);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.28);
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Be Vietnam Pro', sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--gray-100); }

/* =============================================
   LANDING PAGE
   ============================================= */
.landing-body { background: var(--navy-dark); color: var(--white); overflow-x: hidden; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, #1a3a7a 0%, var(--navy-dark) 70%);
  z-index: 0;
}

.hero__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 500px at 80% 50%, var(--orange-glow), transparent 60%),
    radial-gradient(circle 300px at 20% 80%, rgba(0,80,200,.2), transparent 60%);
}

/* Floating particles */
.hero__particles { position: absolute; inset: 0; pointer-events: none; }

/* Header */
.site-header {
  position: relative; z-index: 10;
  padding: 1.5rem 2.5rem;
}

.logo {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; letter-spacing: .05em;
}
.logo__fpt  { color: var(--orange); }
.logo__poly { color: var(--white); }

/* Hero content */
.hero__content {
  position: relative; z-index: 5;
  flex: 1; display: flex; align-items: center;
  padding: 2rem 2.5rem 4rem;
  max-width: 1200px; margin: 0 auto; width: 100%;
  gap: 3rem;
}

.hero__text { flex: 1; max-width: 560px; }

.hero__badge {
  display: inline-block;
  background: rgba(255,107,0,.15);
  border: 1px solid rgba(255,107,0,.4);
  color: var(--orange-hot);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  padding: .35rem .9rem; border-radius: 100px;
  margin-bottom: 1.25rem;
  animation: fadeInUp .6s ease both;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900; line-height: .9;
  letter-spacing: -.01em;
  color: var(--white);
  animation: fadeInUp .6s .1s ease both;
}
.hero__title em {
  font-style: italic;
  color: var(--orange);
  display: block;
  -webkit-text-stroke: 2px var(--orange);
  text-shadow: 0 0 60px var(--orange-glow);
}

.hero__sub {
  margin-top: 1.25rem;
  font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.75);
  animation: fadeInUp .6s .2s ease both;
}

.hero__features {
  list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.75rem;
  animation: fadeInUp .6s .3s ease both;
}
.hero__features li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.feat-icon { font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .08em;
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}

.btn--hero {
  background: var(--orange);
  color: var(--white);
  font-size: 1.15rem; padding: 1rem 2.25rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: 0 0 40px var(--orange-glow);
  animation: fadeInUp .6s .4s ease both;
  position: relative; overflow: hidden;
}
.btn--hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn--hero:hover {
  background: var(--orange-hot);
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--orange-glow), 0 12px 30px rgba(255,107,0,.4);
}

.btn__arrow { transition: transform var(--transition); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--orange); color: var(--white);
  font-size: 1rem; padding: .85rem 2rem; border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(255,107,0,.35);
}
.btn--primary:hover { background: var(--orange-hot); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,107,0,.45); }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn--full { width: 100%; justify-content: center; }

.btn--outline {
  background: transparent; color: var(--orange);
  border: 2px solid var(--orange);
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-size: 1rem;
}
.btn--outline:hover { background: var(--orange); color: var(--white); }

/* Hero KOL decoration */
.hero__kols-preview {
  flex: 1; position: relative; min-height: 400px;
  display: none;
}
@media (min-width: 900px) { .hero__kols-preview { display: block; } }

.hero__glow {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,.2), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.4); font-size: .8rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* How it works */
.how-it-works {
  background: var(--navy);
  padding: 5rem 1.5rem;
}

.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 900;
  color: var(--white); text-align: center; margin-bottom: 3rem; letter-spacing: .02em;
}
.section-title em { color: var(--orange); font-style: italic; }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}

.step-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 2rem;
  animation: fadeInUp .6s var(--delay) ease both;
  transition: var(--transition);
}
.step-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }

.step-card__num {
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 900;
  color: rgba(255,107,0,.2); line-height: 1; margin-bottom: .75rem;
}
.step-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.step-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .5rem; }
.step-card p  { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.65; }

.cta-center { text-align: center; margin-top: 3rem; }

.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.4);
  text-align: center; padding: 1.5rem; font-size: .85rem;
}

/* =============================================
   WIZARD PAGES
   ============================================= */
.wizard-body {
  background: var(--gray-100);
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem 4rem;
}

.wizard-wrap {
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.wizard-wrap--wide { max-width: 860px; }

/* Progress bar */
.progress-bar {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}

.progress-bar__back {
  color: var(--orange); font-size: .9rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: var(--transition);
}
.progress-bar__back:hover { color: var(--orange-hot); }

.progress-steps {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0;
}

.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
}

.progress-step__dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  background: var(--gray-300); color: var(--gray-500);
  transition: var(--transition);
}
.progress-step.active .progress-step__dot {
  background: var(--orange); color: var(--white);
  box-shadow: 0 0 20px rgba(255,107,0,.4);
}
.progress-step.done .progress-step__dot {
  background: #22C55E; color: var(--white);
}
.progress-step__label { font-size: .72rem; color: var(--gray-500); }
.progress-step.active .progress-step__label { color: var(--orange); font-weight: 600; }
.progress-step.done  .progress-step__label { color: #22C55E; }

.progress-line {
  width: 60px; height: 2px; background: var(--gray-300);
  margin: -14px .25rem 0;
  flex-shrink: 0;
}
.progress-line--done { background: #22C55E; }

/* Wizard Card */
.wizard-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.5rem;
  animation: fadeInUp .4s ease both;
}

.wizard-card__header { margin-bottom: 2rem; }
.wizard-card__header h1 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; color: var(--navy); }
.wizard-card__header p  { color: var(--gray-500); margin-top: .4rem; line-height: 1.5; }

/* Forms */
.wizard-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.required { color: var(--orange); }

.form-input {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition); outline: none; color: var(--text);
  background: var(--white); width: 100%;
}
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,0,.15); }
.form-input--error { border-color: #E53E3E; }
.form-hint { font-size: .78rem; color: var(--gray-500); }

.form-alert {
  padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500;
}
.form-alert--error   { background: #FFF5F5; border: 1px solid #FEB2B2; color: #C53030; }
.form-alert--success { background: #F0FFF4; border: 1px solid #9AE6B4; color: #276749; }

.form-info {
  background: #EBF8FF; border: 1px solid #BEE3F8; border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-size: .85rem; color: #2B6CB0;
  display: flex; align-items: flex-start; gap: .5rem;
}

/* KOL Grid */
.kol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kol-card { display: block; cursor: pointer; position: relative; }
.kol-card__radio { position: absolute; opacity: 0; pointer-events: none; }

.kol-card__inner {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kol-card:hover .kol-card__inner {
  border-color: var(--orange); box-shadow: 0 4px 20px rgba(255,107,0,.15);
}
.kol-card--selected .kol-card__inner {
  border-color: var(--orange);
  background: #FFF7EF;
  box-shadow: 0 0 0 3px rgba(255,107,0,.2);
}

.kol-card__check {
  position: absolute; top: .75rem; right: .75rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gray-300); color: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  transition: var(--transition);
  z-index: 1;
}
.kol-card--selected .kol-card__check {
  background: var(--orange); color: var(--white);
}

/* Avatar tỉ lệ 3:4 */
.kol-card__avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 2px solid #f0f0f0;
  background: #f5f5f5;
  transition: var(--transition);
}
.kol-card--selected .kol-card__avatar { border-color: var(--orange); }
.kol-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.kol-card__info { text-align: center; padding: 1rem; flex: 1; }
.kol-card__name { display: block; font-size: .95rem; font-weight: 700; color: var(--navy); }
.kol-card__title { display: block; font-size: .75rem; color: var(--gray-500); margin-top: .25rem; }
.kol-card__quote {
  font-size: .8rem; color: var(--gray-500); margin-top: .6rem; line-height: 1.5;
  font-style: italic;
}

/* =============================================
   RESULT PAGE
   ============================================= */
.wizard-body--result { background: var(--navy-dark); }

.wizard-wrap--result {
  max-width: 1100px;
}

.result-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: fadeInUp .5s ease both;
}
@media (max-width: 768px) {
  .result-wrap { grid-template-columns: 1fr; }
}

.result-preview {
  background: var(--navy);
  padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}

.result-badge {
  background: rgba(255,107,0,.2); border: 1px solid rgba(255,107,0,.4);
  color: var(--orange-hot); font-size: .85rem; font-weight: 600;
  padding: .4rem 1rem; border-radius: 100px;
}

.result-image {
  width: 100%; border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

.result-image-placeholder {
  background: rgba(255,255,255,.05); border: 2px dashed rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  color: rgba(255,255,255,.5); display: flex; flex-direction: column; gap: 1rem;
}

.result-actions {
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}

.result-actions__title {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 900;
  color: var(--navy); margin-bottom: .5rem;
}

/* Action buttons */
.btn--action {
  display: flex; align-items: center; gap: 1rem;
  border: none; cursor: pointer; text-decoration: none;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  transition: var(--transition); width: 100%;
}
.btn--action strong { display: block; font-size: .9rem; font-weight: 700; }
.btn--action small  { display: block; font-size: .75rem; opacity: .75; }
.btn__icon { font-size: 1.4rem; flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

.btn--download { background: var(--orange); color: var(--white); }
.btn--download:hover { background: var(--orange-hot); transform: translateY(-2px); }

.btn--zalo { background: #0068FF; color: var(--white); }
.btn--zalo:hover { background: #0055CC; transform: translateY(-2px); }

.btn--share { background: #1877F2; color: var(--white); }
.btn--share:hover { background: #166FE5; transform: translateY(-2px); }

.btn--restart { background: var(--gray-100); color: var(--navy); }
.btn--restart:hover { background: var(--gray-300); transform: translateY(-2px); }

.zalo-form { background: #F0F7FF; border-radius: var(--radius-sm); padding: 1.25rem; margin-top: .5rem; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE – MOBILE FIRST
   ============================================= */

/* ---- Tablet (≤768px) ---- */
@media (max-width: 768px) {
  /* Hero */
  .hero__title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero__sub { font-size: .95rem; }
  .hero__features { gap: 1rem; }
  .btn--hero { font-size: 1rem; padding: .9rem 1.75rem; }

  /* Wizard */
  .wizard-body { padding: 1.25rem .75rem 3rem; }
  .wizard-card { padding: 1.5rem; border-radius: 12px; }
  .wizard-card__header h1 { font-size: 1.4rem; }

  /* KOL Grid – 2 cột đều nhau */
  .kol-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .kol-card__info { padding: .75rem; }
  .kol-card__name { font-size: .85rem; }
  .kol-card__title { font-size: .7rem; }
  .kol-card__quote { font-size: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Progress bar */
  .progress-line { width: 24px; }
  .progress-step__dot { width: 30px; height: 30px; font-size: .75rem; }
  .progress-step__label { font-size: .65rem; }

  /* Result */
  .result-wrap { grid-template-columns: 1fr; border-radius: 12px; }
  .result-preview { padding: 1.25rem; }
  .result-actions { padding: 1.25rem; }
  .result-actions__title { font-size: 1.2rem; }
  .btn--action { padding: .85rem 1rem; }
  .btn--action strong { font-size: .85rem; }
}

/* ---- Mobile nhỏ (≤480px) ---- */
@media (max-width: 480px) {
  /* Header */
  .site-header { padding: 1rem 1.25rem; }
  .logo { font-size: 1.1rem; }

  /* Hero */
  .hero__content { padding: 1.25rem 1.25rem 2.5rem; gap: 1.5rem; }
  .hero__badge { font-size: .72rem; padding: .3rem .75rem; }
  .hero__title { font-size: clamp(2.8rem, 16vw, 4.5rem); }
  .hero__title em { -webkit-text-stroke: 1px var(--orange); }
  .hero__sub { font-size: .875rem; margin-top: 1rem; }
  .hero__features { gap: .75rem; margin-top: 1.25rem; }
  .hero__features li { font-size: .8rem; }
  .btn--hero { font-size: .95rem; padding: .85rem 1.5rem; margin-top: 1.5rem; width: 100%; justify-content: center; }

  /* How it works */
  .how-it-works { padding: 3rem 1rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .step-card { padding: 1.25rem; }
  .step-card__num { font-size: 2.5rem; }

  /* Wizard */
  .wizard-body { padding: 1rem .75rem 2.5rem; }
  .wizard-wrap { gap: 1rem; }
  .wizard-card { padding: 1.25rem; }
  .wizard-card__header { margin-bottom: 1.25rem; }
  .wizard-card__header h1 { font-size: 1.25rem; }
  .wizard-card__header p { font-size: .85rem; }

  /* Form */
  .form-input { padding: .75rem .875rem; font-size: .95rem; }
  .btn--primary { font-size: .95rem; padding: .85rem 1.5rem; }

  /* KOL Grid – giữ 2 cột, thu nhỏ padding */
  .kol-grid { gap: .6rem; }
  .kol-card__info { padding: .6rem .5rem; }
  .kol-card__name { font-size: .8rem; }
  .kol-card__title { font-size: .65rem; margin-top: .15rem; }
  .kol-card__quote { font-size: .7rem; margin-top: .4rem; -webkit-line-clamp: 2; }
  .kol-card__check { width: 20px; height: 20px; top: .5rem; right: .5rem; font-size: .65rem; }

  /* Progress */
  .progress-bar { gap: .5rem; }
  .progress-bar__back { font-size: .8rem; }
  .progress-line { width: 16px; }
  .progress-step__dot { width: 28px; height: 28px; font-size: .7rem; }
  .progress-step__label { font-size: .6rem; }

  /* Result page */
  .wizard-body--result { padding: 0; }
  .wizard-wrap--result { padding: 0; }
  .result-wrap { border-radius: 0; box-shadow: none; }
  .result-preview { padding: 1rem; gap: .75rem; }
  .result-badge { font-size: .75rem; }
  .result-actions { padding: 1rem; gap: .75rem; }
  .result-actions__title { font-size: 1.1rem; }
  .btn--action { padding: .8rem .875rem; border-radius: 12px; }
  .btn--action strong { font-size: .82rem; }
  .btn--action small { font-size: .7rem; }
  .btn__icon { width: 34px; height: 34px; font-size: 1.1rem; }
}
