﻿/* =====================================================
   Honi Design – Landing Page v3 (Match Design Mockup)
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── Variables ─────────────────────────────────────── */
:root {
  --navy:        #1e3a8a;
  --navy-dark:   #0f2461;
  --blue:        #2563eb;
  --blue-light:  #60a5fa;
  --orange:      #f97316;
  --orange-dark: #ea580c;
  --green:       #22c55e;
  --gray-bg:     #f4f6fb;
  --gray-border: #e0e7ef;
  --text:        #1e2d3d;
  --text-sub:    #5a6a7a;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(26,58,110,.10);
  --shadow-sm:   0 2px 10px rgba(26,58,110,.06);
  --trans:       .25s ease;
}

/* ─── Reset ─────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Inter',sans-serif;color:var(--text);line-height:1.6;background:var(--white)}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button,input,select,textarea{font-family:inherit;outline:none}

/* ─── Flat icon system ──────────────────────────────── */
.flat-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .82rem; line-height: 1;
  flex-shrink: 0; vertical-align: middle;
}
.flat-icon i, .flat-icon svg {
  font-size: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.flat-icon.fi-blue   { background: #2563eb; }
.flat-icon.fi-orange { background: #f97316; }
.flat-icon.fi-green  { background: #22c55e; }
.flat-icon.fi-red    { background: #ef4444; }
.flat-icon.fi-purple { background: #8b5cf6; }
.flat-icon.fi-pink   { background: #ec4899; }
.flat-icon.fi-slate  { background: #64748b; }

/* ─── Utility ────────────────────────────────────────── */
.container { max-width:1200px;margin:0 auto;padding:0 20px }
.btn       { display:inline-flex;align-items:center;gap:7px;padding:11px 22px;border-radius:var(--radius);font-weight:600;font-size:.9rem;cursor:pointer;border:none;transition:all var(--trans) }
.btn-outline { background:transparent;border:1.5px solid var(--orange);color:var(--orange);padding:9px 20px;font-size:.85rem }
.btn-outline:hover { background:var(--orange);color:#fff }

/* ─── HEADER ──────────────────────────────────────────
   Matches: white bg, logo left, nav pills center, phone right
   ─────────────────────────────────────────────────── */
.header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0; gap: 20px;
  min-height: 72px;
}

/* ── Logo ── */
.logo {
  display: flex; align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Nav pills ── */
.nav-pills {
  display: flex; gap: 20px;
  align-items: center; justify-content: center;
  flex: 1;
}
.nav-pill {
  display: flex; align-items: center; gap: 9px;
  cursor: default; transition: opacity var(--trans);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--trans);
}
.nav-pill:hover { opacity: .85; background: #f0f4ff; border-color: #e0e7ff; }
.nav-pill-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-pill-icon .flat-icon { width: 34px; height: 34px; border-radius: 50%; font-size: .88rem; }
.nav-pill-text small  { display: block; color: #7a8499; font-size: .7rem; font-weight: 600; line-height: 1.2; }
.nav-pill-text strong { color: #12204b; font-weight: 900; font-size: .8rem; line-height: 1.2; }

/* ── Phone block ── */
.header-phone {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.phone-icon-wrap {
  width: 52px; height: 52px;
  background: #fff;
  border: 3px solid #2563eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: ring 2.8s infinite;
  flex-shrink: 0;
}
.phone-icon-wrap .flat-icon { width: 34px; height: 34px; border-radius: 50%; font-size: .95rem; }
@keyframes ring{0%,90%,100%{transform:rotate(0)}93%{transform:rotate(-16deg)}96%{transform:rotate(16deg)}98%{transform:rotate(-8deg)}}
.phone-num  { font-size: 1.38rem; font-weight: 900; color: #2563eb; display: block; line-height: 1.1; letter-spacing: .01em; }
.phone-sub  { font-size: .76rem; color: #4a5568; font-weight: 600; }

.hamburger { display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:4px }
.hamburger span { width:24px;height:2.5px;background:var(--navy);border-radius:2px;display:block;transition:all .3s }

/* ─── HERO ──────────────────────────────────────────────
   Matches: light blue-gray bg, 2 columns: content + form
   ────────────────────────────────────────────────────── */
.hero {
  background: #eef2fb;
  padding: 36px 0 52px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 44px;
  align-items: center;
  position: relative; z-index: 1;
}

/* Cột ảnh hero – tự stretch bằng chiều cao form */
.hero-inner { align-items: start; }
.hero-image-col {
  align-self: stretch;
  display: flex;
}
.hero-image-col .hero-image-wrap {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(26,58,110,.18);
  position: relative;
}
.hero-image-col .hero-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Tag bar */
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .7px; text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-tag i { font-size: .65rem; color: #2563eb; }

/* Titles */
.hero-title-1 {
  font-size: 2.85rem; font-weight: 900;
  color: #101b49; line-height: 1.0;
  letter-spacing: -.035em; text-transform: uppercase;
}
.hero-title-2 {
  font-size: 3rem; font-weight: 900;
  color: #2563eb; line-height: 1.0;
  letter-spacing: -.035em;
  margin-bottom: 14px; text-transform: uppercase;
}

/* Subtitle */
.hero-subtitle { font-size: .94rem; color: #4a5568; margin-bottom: 22px; font-weight: 500; }
.hero-subtitle strong { color: #f97316; font-weight: 800; }

/* Horizontal bullets */
.hero-bullets { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-bullet {
  display: flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 14px;
  min-width: 115px;
  box-shadow: 0 2px 8px rgba(26,58,110,.05);
}
.hero-bullet .flat-icon { width: 32px; height: 32px; border-radius: 8px; font-size: .82rem; flex-shrink: 0; }
.hero-bullet strong { display: block; font-size: .8rem; font-weight: 700; color: #1e2d3d; line-height: 1.2; }
.hero-bullet span   { display: block; font-size: .7rem; color: #6b7280; }

/* Hero image */
.hero-image-wrap {
  position: relative; margin-top: 8px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,58,110,.14);
}
.hero-image-wrap img { width: 100%; display: block; }
.hero-content { position: relative; }

/* ─── FORM ──────────────────────────────────────────────
   Matches: white card, rounded, header + form fields
   ────────────────────────────────────────────────────── */
.hero-form-wrap {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(20,35,78,.12);
  overflow: hidden;
  border: 1px solid #e8edf5;
  align-self: start;
}

.form-header {
  background: #1e3a8a;
  padding: 16px 22px 14px;
  display: flex; align-items: center; gap: 12px;
}
.form-header-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-header-icon .flat-icon { width: 42px; height: 42px; border-radius: 11px; font-size: 1rem; background: rgba(255,255,255,.2); }
.form-header h3   { color: #fff; font-size: .96rem; font-weight: 800; letter-spacing: .2px; margin: 0; }
.form-header-sub  { font-size: .72rem; color: rgba(255,255,255,.75); margin-top: 2px; }

.form-body { padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-field { position: relative; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 11px 9px 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .82rem;
  color: var(--text);
  background: #fafbfd;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-field textarea { height: 78px; resize: none; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff; outline: none;
}
.form-field > .flat-icon {
  position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 5px; font-size: .65rem;
  pointer-events: none;
}
.form-field.textarea-field > .flat-icon { top: 10px; transform: none; }

/* Select arrow */
.form-field-select { position: relative; }
.form-field-select select { appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer; }
.form-select-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: .65rem; pointer-events: none; }

/* Submit button */
.form-submit-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff; border: none; border-radius: 9px;
  font-size: .92rem; font-weight: 800;
  cursor: pointer; transition: all var(--trans);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px; letter-spacing: .4px;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.form-submit-btn:hover { background: linear-gradient(135deg,#1d4ed8,#1e40af); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.45); }
.form-submit-btn i { font-size: .88rem; }

/* Commit line */
.form-commit { text-align: center; font-size: .76rem; color: #6c7289; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 2px; }
.form-commit i { color: #2563eb; font-size: .73rem; }
.form-commit span strong { color: var(--orange); }

/* Toast */
#form-toast { display: none; padding: 9px 14px; border-radius: 8px; font-size: .82rem; font-weight: 500; margin-top: 4px; text-align: center; }
#form-toast.success { background: #e8f7ef;color:#1a7a40;border:1px solid #b7e0c7 }
#form-toast.error   { background:#fdecea;color:#c0392b;border:1px solid #f5b7b1 }

/* Trust badges */
.form-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid #f0f4fb;
}
.form-trust-item {
  display: flex; align-items: center; gap: 4px;
  font-size: .68rem; color: #6b7280; font-weight: 500;
}
.form-trust-item i { color: #2563eb; font-size: .68rem; }

/* ─── SECTION COMMON ──────────────────────────────────── */
.section-title {
  font-size: 1.48rem; font-weight: 800;
  text-align: center; color: var(--navy);
  letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.section-sub {
  text-align: center; color: var(--text-sub);
  font-size: .84rem; margin-top: 8px; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}

/* ─── PACKAGES ─────────────────────────────────────── */
.packages-section { padding: 56px 0 44px; background: #f0f4fb; }

.pkg-title { font-size: 1.65rem; gap: 10px; color: var(--navy); }
.pkg-title-emoji { font-size: 1.4rem; }
.pkg-subtitle {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 10px 0 32px;
  font-size: .84rem; font-weight: 600; color: #4a5568; flex-wrap: wrap;
}
.pkg-subtitle i { margin-right: 4px; }
.pkg-sub-div { width: 1px; height: 16px; background: #d1d5db; flex-shrink: 0; }

/* Grid */
.packages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* ── Card ── */
.package-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #e8edf5;
  box-shadow: 0 2px 12px rgba(26,58,110,.07);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,58,110,.15);
}

/* Top section – solid color bg, no image */
.pkg-top {
  padding: 20px 22px 22px;
  position: relative;
  border-radius: 16px 16px 0 0;
}
.pkg-top.c-orange { background: #f97316; }
.pkg-top.c-blue   { background: #2563eb; }
.pkg-top.c-green  { background: #16a34a; }

/* Top layout: name+qty left | badge+price right */
.pkg-top-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* Left: name + qty */
.pkg-name-block {}
.pkg-name {
  font-size: 1.4rem; font-weight: 900;
  color: #fff; line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.pkg-qty {
  font-size: .84rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
}

/* Right: Chỉ từ badge + price */
.pkg-price-block {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 2px;
  flex-shrink: 0;
}
.pkg-chitu-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  color: #1e2d3d;
  background: rgba(255,255,255,.95);
  letter-spacing: .1px;
  margin-bottom: 2px;
}
.pkg-price {
  font-size: 2rem; font-weight: 900;
  color: #fff; line-height: 1;
  white-space: nowrap;
}

/* Body */
.pkg-body {
  padding: 16px 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
  background: #fff;
}

/* Qty info line in body */
.pkg-qty-info {
  font-size: .84rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
}
.pkg-qty-info i { font-size: .76rem; }
.pkg-qty-info.c-orange { background: #fff4ec; color: #ea580c; }
.pkg-qty-info.c-blue   { background: #eff6ff; color: #2563eb; }
.pkg-qty-info.c-green  { background: #f0fdf4; color: #16a34a; }

/* Features */
.pkg-features { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pkg-features li { display: flex; align-items: center; gap: 9px; font-size: .83rem; color: #374151; font-weight: 500; }
.pkg-check { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; color: #fff; flex-shrink: 0; }
.pkg-check.c-orange { background: #ea580c; }
.pkg-check.c-blue   { background: #2563eb; }
.pkg-check.c-green  { background: #16a34a; }

/* CTA button */
.pkg-cta {
  width: 100%; padding: 11px 16px;
  border-radius: 10px; border: 2px solid;
  font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: all var(--trans);
  background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: .3px; font-family: inherit;
}
.pkg-cta.c-orange { border-color: #ea580c; color: #ea580c; background: transparent; }
.pkg-cta.c-orange:hover { background: #ea580c; color: #fff; }
.pkg-cta.c-blue   { border-color: #2563eb; color: #2563eb; background: transparent; }
.pkg-cta.c-blue:hover   { background: #2563eb; color: #fff; }
.pkg-cta.c-green  { border-color: #16a34a; color: #16a34a; background: transparent; }
.pkg-cta.c-green:hover  { background: #16a34a; color: #fff; }
.pkg-cta-arrow {
  width: auto; height: auto;
  background: none !important;
  border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem;
}

/* Footer bar - single white card with 3 sections */
.packages-footer {
  display: flex; align-items: stretch;
  margin-top: 20px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(26,58,110,.06);
  overflow: hidden;
}
.pkg-footer-item {
  display: flex; align-items: center; gap: 14px;
  flex: 1; padding: 16px 22px;
  border-right: 1px solid #e8edf5;
  transition: background .18s ease;
}
.pkg-footer-item:last-child { border-right: none; }
.pkg-footer-item:hover { background: #fafbff; }
.pkg-footer-icon {
  font-size: 1.6rem; flex-shrink: 0;
  line-height: 1; display: flex; align-items: center;
}
.pkg-footer-icon.fi-blue   { color: #2563eb; }
.pkg-footer-icon.fi-orange { color: #f97316; }
.pkg-footer-icon.fi-purple { color: #64748b; }
.pkg-footer-text { display: flex; flex-direction: column; gap: 2px; }
.pkg-footer-text strong { font-size: .88rem; font-weight: 700; color: #1e2d3d; }
.pkg-footer-text span   { font-size: .75rem; color: #64748b; }


/* ─── Section title with dashes ──────────────────────── */
.section-title-dash {
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
  margin-bottom: 28px;
}
.dash-line {
  flex: 1; max-width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb);
  border-radius: 2px;
  display: block;
}
.section-title-dash .dash-line:last-child {
  background: linear-gradient(90deg, #2563eb, transparent);
}

/* ─── PRODUCTS ────────────────────────────────────────── */
.products-section { padding: 48px 0; background: #f4f6fb; }
.products-section .section-title-dash { margin-bottom: 20px; }

/* Section heading with dash decoration */
.section-title-deco {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 6px;
}
.section-title-deco::before,
.section-title-deco::after {
  content: '';
  flex: 1; max-width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb);
  border-radius: 2px;
}
.section-title-deco::after { background: linear-gradient(90deg, #2563eb, transparent); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.product-card {
  background: #fff; border-radius: 12px;
  padding: 16px 8px 12px;
  text-align: center;
  transition: all var(--trans);
  box-shadow: 0 2px 8px rgba(26,58,110,.06);
  cursor: pointer; border: 1px solid transparent;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dbeafe; }
.product-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg,#eef3fb,#dce8ff);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 1.2rem; color: var(--blue); overflow: hidden;
}
.product-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-icon-wrap .flat-icon { width: 32px; height: 32px; border-radius: 8px; font-size: .82rem; }
.product-name { font-size: .68rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.products-more { text-align: center; margin-top: 4px; }

/* ─── WHY US ──────────────────────────────────────────── */
.why-section { padding: 56px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 28px; }
.why-card {
  text-align: center; padding: 24px 12px;
  border-radius: 14px; transition: all var(--trans);
}
.why-card:hover { background: #f0f5ff; transform: translateY(-3px); }
.why-icon {
  width: 60px; height: 60px;
  border-radius: 18px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}
.why-icon .flat-icon { width: 60px; height: 60px; border-radius: 18px; font-size: 1.3rem; }
.why-icon.wh-blue   .flat-icon { background: #2563eb; }
.why-icon.wh-orange .flat-icon { background: #f97316; }
.why-icon.wh-green  .flat-icon { background: #22c55e; }
.why-icon.wh-purple .flat-icon { background: #8b5cf6; }
.why-icon.wh-red    .flat-icon { background: #ef4444; }
.why-title { font-size: .86rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.why-desc  { font-size: .74rem; color: var(--text-sub); line-height: 1.55; }

/* ─── PROCESS ─────────────────────────────────────────── */
.process-section { padding: 56px 0; background: var(--gray-bg); }
.process-grid { display: flex; align-items: flex-start; gap: 0; position: relative; }
.process-step { flex: 1; text-align: center; position: relative; padding: 0 8px; }
.process-step:not(:last-child)::after {
  content: '→'; position: absolute;
  right: -14px; top: 24px;
  font-size: 1.3rem; color: #93c5fd; font-weight: 700; z-index: 1;
}
.process-num {
  width: 50px; height: 50px;
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900;
  margin: 0 auto 10px;
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}
.process-icon-wrap {
  width: 40px; height: 40px; background: #fff;
  border-radius: 11px; box-shadow: var(--shadow-sm);
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.process-icon-wrap .flat-icon { width: 32px; height: 32px; border-radius: 9px; font-size: .88rem; }
.process-title { font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.process-desc  { font-size: .72rem; color: var(--text-sub); line-height: 1.5; }

/* ─── FOOTER BAR ──────────────────────────────────────── */
.footer-bar {
  background: linear-gradient(135deg,#0f2461 0%,#1e3a8a 100%);
  padding: 22px 0;
}
.footer-bar-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.footer-item { display: flex; align-items: center; gap: 12px; }
.footer-item-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-item-icon .flat-icon { width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; }
.footer-item-text strong { font-size: .84rem; font-weight: 700; color: #fff; display: block; }
.footer-item-text span   { font-size: .68rem; color: rgba(255,255,255,.65); }

/* ─── Floating ────────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 24px; right: 22px;
  width: 40px; height: 40px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 50%; font-size: 1rem;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
  transition: all var(--trans); z-index: 999;
}
#scroll-top:hover { background: var(--orange-dark); transform: translateY(-2px); }
#scroll-top.show  { display: flex; }

.zalo-btn { position: fixed; bottom: 74px; right: 18px; z-index: 998; }
.zalo-btn a {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,104,255,.35);
  transition: all var(--trans); animation: pulse 2s infinite;
  overflow: hidden; background: transparent;
}
.zalo-btn a:hover { transform: scale(1.1); }
.zalo-btn a img { width: 56px; height: 56px; display: block; border-radius: 50%; object-fit: cover; }
@keyframes pulse{0%,100%{box-shadow:0 4px 16px rgba(0,104,255,.4)}50%{box-shadow:0 4px 30px rgba(0,104,255,.7)}}

/* ─── Spinner ─────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Animate ─────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

/* ── Tablet rộng (≤1024px) ─────────────────────────── */
@media(max-width:1024px){
  .container { padding: 0 18px; }
  .header-inner { gap: 12px; }
  .logo-img { height: 46px; }
  .nav-pills { gap: 10px; }
  .nav-pill { padding: 5px 8px; }
  .nav-pill-text small  { font-size: .65rem; }
  .nav-pill-text strong { font-size: .72rem; }
  .phone-num { font-size: 1.15rem; }
  .hero-inner { grid-template-columns: 1fr 380px; gap: 28px; }
  .packages-grid { grid-template-columns: repeat(3,1fr); gap: 16px; }
  .products-grid { grid-template-columns: repeat(5,1fr); gap: 10px; }
  .why-grid { grid-template-columns: repeat(4,1fr); gap: 16px; }
}

/* ── Tablet (≤768px) ───────────────────────────────── */
@media(max-width:768px){
  /* Header */
  .header-inner {
    padding: 10px 0; gap: 10px;
    flex-wrap: wrap; position: relative;
  }
  .logo { flex-shrink: 0; }
  .logo-img { height: 40px; }
  .header-phone { gap: 8px; }
  .phone-icon-wrap { width: 40px; height: 40px; border-width: 2px; }
  .phone-icon-wrap .flat-icon { width: 28px; height: 28px; font-size: .8rem; }
  .phone-num { font-size: 1.05rem; }
  .phone-sub { display: none; }
  .hamburger { display: none; }
  .nav-pills  { display: none !important; }

  /* Hero */
  .hero { padding: 20px 0 28px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }
  .hero-image-col {
    order: 2;
    align-self: auto;
    max-height: 260px;
  }
  .hero-image-col .hero-image-wrap img { max-height: 260px; object-fit: cover; }
  .hero-form-wrap {
    order: 1;
    max-width: 100%;
    width: 100%;
  }
  .form-row { grid-template-columns: 1fr 1fr; gap: 7px; }

  /* Packages */
  .packages-section { padding: 36px 0 28px; }
  .pkg-title { font-size: 1.3rem; }
  .packages-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .pkg-product-img { width: 70px; height: 62px; }
  .pkg-price { font-size: 1.5rem; }

  /* Products */
  .products-section { padding: 32px 0; }
  .products-grid { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .product-card { padding: 12px 6px 10px; }
  .product-icon-wrap { width: 42px; height: 42px; }
  .product-name { font-size: .64rem; }

  /* Why */
  .why-section { padding: 36px 0; }
  .why-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .why-card { padding: 20px 10px; }

  /* Footer */
  .footer-bar { padding: 18px 0; }
  .footer-bar-inner { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .footer-item-text strong { font-size: .78rem; }
  .footer-item-text span   { font-size: .64rem; }

  /* Section titles */
  .section-title { font-size: 1.2rem; }
  .pkg-subtitle  { gap: 10px; font-size: .78rem; }
}

/* ── Mobile (≤480px) ───────────────────────────────── */
@media(max-width:480px){
  .container { padding: 0 14px; }
  .logo-img { height: 36px; }
  .header-inner { min-height: 58px; }
  .phone-num { font-size: .95rem; }
  .phone-icon-wrap { width: 36px; height: 36px; }

  /* Hero */
  .hero { padding: 16px 0 24px; }
  .hero-inner { gap: 14px; }
  .hero-image-col { max-height: 220px; }
  .hero-image-col .hero-image-wrap img { max-height: 220px; }

  /* Form */
  .form-header { padding: 12px 16px; }
  .form-header h3 { font-size: .88rem; }
  .form-body { padding: 12px 14px 14px; gap: 7px; }
  .form-row { grid-template-columns: 1fr; gap: 7px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: .8rem; padding: 8px 10px 8px 34px; }
  .form-submit-btn { font-size: .86rem; padding: 11px; }
  .form-trust { gap: 8px; }
  .form-trust-item { font-size: .64rem; }

  /* Packages */
  .packages-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .pkg-title { font-size: 1.15rem; }
  .pkg-subtitle { flex-direction: column; gap: 6px; }
  .pkg-sub-div { display: none; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .product-card { padding: 18px 12px 14px; }
  .product-icon-wrap { width: 52px; height: 52px; border-radius: 12px; }
  .product-name { font-size: .72rem; }

  /* Why */
  .why-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .why-card { padding: 18px 8px; }
  .why-icon { width: 48px; height: 48px; border-radius: 14px; }
  .why-icon .flat-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.1rem; }
  .why-title { font-size: .8rem; }
  .why-desc  { font-size: .7rem; }

  /* Footer */
  .footer-bar-inner { grid-template-columns: 1fr; gap: 8px; }
  .footer-item { justify-content: center; }

  /* Section */
  .section-title { font-size: 1.1rem; gap: 6px; }
  .dash-line { max-width: 40px; }

  /* Floating buttons */
  .zalo-btn { bottom: 68px; right: 14px; }
  #scroll-top { right: 14px; bottom: 20px; width: 36px; height: 36px; }
}

/* ── Mobile nhỏ (≤380px) ───────────────────────────── */
@media(max-width:380px){
  .logo-img { height: 32px; }
  .phone-num { font-size: .88rem; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .footer-bar-inner { grid-template-columns: 1fr; }
  .packages-grid { max-width: 100%; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── Admin toolbar responsive ──────────────────────── */
@media(max-width:600px){
  #admin-toolbar { padding: 0 12px; height: 40px; font-size: .7rem; }
  .at-badge { display: none; }
  .at-link { padding: 3px 8px; font-size: .7rem; }
  .at-logout { padding: 3px 8px; font-size: .7rem; }
  body.admin-mode { padding-top: 40px; }
  body.admin-mode .header { top: 40px; }
}


/* ─── ADMIN TOOLBAR ────────────────────────────────────
   Thanh admin nổi phía trên cùng khi đăng nhập
   ────────────────────────────────────────────────────── */
#admin-toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 44px;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
}

.at-left, .at-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.at-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239,68,68,.2);
  border: 1px solid rgba(239,68,68,.45);
  color: #fca5a5;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .5px;
  margin-right: 8px;
}
.at-badge i { font-size: .65rem; }

.at-link {
  color: rgba(255,255,255,.82);
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  text-decoration: none;
}
.at-link:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.at-link i { font-size: .72rem; }

.at-logout {
  color: #fca5a5;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(239,68,68,.4);
  background: rgba(239,68,68,.1);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  text-decoration: none;
  font-size: .78rem;
}
.at-logout:hover {
  background: rgba(239,68,68,.25);
  border-color: rgba(239,68,68,.7);
  color: #fff;
}
.at-logout i { font-size: .72rem; }

/* Push body down when admin toolbar is shown */
body.admin-mode { padding-top: 44px; }
body.admin-mode .header { top: 44px; }

/* ─── INLINE EDIT BUTTON ───────────────────────────────
   Nút ✏️ nhỏ cạnh tiêu đề section
   ────────────────────────────────────────────────────── */
.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(37,99,235,.12);
  border: 1.5px solid rgba(37,99,235,.3);
  color: #2563eb;
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s;
  margin-left: 6px;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
}
.edit-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}

/* ─── EDIT MODAL ───────────────────────────────────────
   Modal popup chỉnh sửa nội dung inline
   ────────────────────────────────────────────────────── */
.edit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10,18,40,.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeModal .18s ease;
}
.edit-modal.open {
  display: flex;
}
@keyframes fadeModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.edit-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  animation: slideModal .22s ease;
  overflow: hidden;
}
@keyframes slideModal {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.edit-modal h3 {
  margin: 0;
  padding: 18px 22px 16px;
  font-size: 1rem;
  font-weight: 800;
  color: #1e2d3d;
  border-bottom: 1px solid #eef2f8;
  background: linear-gradient(135deg, #f8faff, #eff4ff);
  display: flex;
  align-items: center;
  gap: 8px;
}
.edit-modal h3::before {
  content: '✏️';
  font-size: .9rem;
}

#edit-modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.em-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.em-field label {
  font-size: .76rem;
  font-weight: 600;
  color: #374151;
}
.em-field input {
  padding: 9px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .85rem;
  color: #1e2d3d;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  background: #fafbfd;
}
.em-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
  outline: none;
}
.em-field small {
  font-size: .7rem;
  color: #9ca3af;
}

.edit-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #eef2f8;
  background: #fafbff;
}

.btn-cancel {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: #6b7280;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.btn-cancel:hover { background: #f3f4f6; border-color: #d1d5db; color: #374151; }

.btn-save {
  padding: 9px 24px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  box-shadow: 0 3px 12px rgba(37,99,235,.3);
}
.btn-save:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-save:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.edit-notif {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  margin-right: auto;
}
.edit-notif.success { background: #e8f7ef; color: #166534; }
.edit-notif.error   { background: #fef2f2; color: #b91c1c; }

/* ─── Hero Upload Button ───────────────────────────────
   Nút thay ảnh hero (chỉ hiện khi admin đăng nhập)
   ────────────────────────────────────────────────────── */
.hero-image-wrap { position: relative; }

.hero-upload-btn {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.hero-upload-btn:hover {
  background: rgba(37,99,235,.85);
  border-color: rgba(37,99,235,.6);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.hero-upload-btn i { font-size: .72rem; }

