/* Vietnam GoEasy v258U public design system cleanup
   Scope: customer-facing public pages + Ads landing pages only.
   Purpose: provide one late-loading, controlled UI layer for tokens, header/nav, buttons,
   cards, forms, hero rhythm, footer, and floating contact behavior without deleting older
   patch files during this cleanup pass. */

:root {
  --vge-navy: #0b2239;
  --vge-navy-2: #12385a;
  --vge-blue: #1677c8;
  --vge-blue-dark: #0f5fa3;
  --vge-green: #1f9d63;
  --vge-red: #d64545;
  --vge-gold: #f5b84b;
  --vge-ink: #142033;
  --vge-muted: #5b6878;
  --vge-soft: #f5f8fb;
  --vge-soft-2: #eef4f9;
  --vge-line: rgba(20, 32, 51, 0.12);
  --vge-shadow-sm: 0 10px 28px rgba(15, 35, 55, 0.10);
  --vge-shadow-md: 0 18px 50px rgba(15, 35, 55, 0.14);
  --vge-radius-sm: 14px;
  --vge-radius-md: 20px;
  --vge-radius-lg: 28px;
  --vge-max: 1180px;
  --vge-focus: 0 0 0 4px rgba(22, 119, 200, 0.22);
}

html { scroll-behavior: smooth; }
body {
  color: var(--vge-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(var(--vge-max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

img, svg, video { max-width: 100%; height: auto; }

a { text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--vge-focus);
  border-radius: 10px;
}

/* Header / navigation: one predictable layer for public pages. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .nav,
.topbar .container.nav {
  min-height: 72px;
  gap: 18px;
  align-items: center;
}
.brand-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo img,
.footer-logo img,
.logo-dark {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}
.navlinks {
  align-items: center;
  gap: 14px;
}
.navlinks a:not(.btn) {
  line-height: 1.15;
  white-space: nowrap;
  font-weight: 700;
}
.navlinks .btn,
.nav-apply-btn {
  white-space: nowrap;
}
.vge-mobile-menu-button { display: none; }
.vge-mobile-menu-drawer[hidden] { display: none !important; }

/* Buttons and CTA consistency. */
.btn,
a.btn,
button.btn,
.lp-cta,
a.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(22, 119, 200, 0.16);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn:hover,
.lp-cta:hover { transform: translateY(-1px); box-shadow: var(--vge-shadow-sm); }
.btn:active,
.lp-cta:active { transform: translateY(0); }
.btn.secondary,
.lp-cta.secondary {
  box-shadow: none;
  border-color: rgba(20, 32, 51, 0.16);
}
.btn.red,
.urgent-route-card .text-link {
  border-color: rgba(214,69,69,0.12);
}
.hero-actions,
.lp-actions,
.home-hero-actions,
.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Cards / surfaces. */
.card,
.step,
.lp-box,
.lp-trust-item,
.home-route-card,
.home-cta-card,
.fee-card,
.trust-card,
.service-card,
.summary-card {
  border-radius: var(--vge-radius-md);
  border: 1px solid var(--vge-line);
  box-shadow: var(--vge-shadow-sm);
}
.card:hover,
.step:hover,
.lp-box:hover,
.home-route-card:hover {
  box-shadow: var(--vge-shadow-md);
}
.section,
.lp-section {
  padding-top: clamp(44px, 7vw, 86px);
  padding-bottom: clamp(44px, 7vw, 86px);
}
.section h2,
.lp-section h2 {
  letter-spacing: -0.025em;
}
.section-lead,
.lp-section-lead,
.muted,
.lp-muted {
  color: var(--vge-muted);
}
.eyebrow,
.lp-mini-title,
.route-tag,
.fee-badge {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

/* Hero rhythm: readable, not over-tall on mobile. */
.hero,
.lp-hero,
.service-hero,
.trust-hero {
  overflow: hidden;
}
.hero h1,
.lp-hero h1,
.service-hero h1,
.trust-hero h1 {
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero p,
.lp-hero p,
.service-hero p,
.trust-hero p {
  max-width: 760px;
}
.hero .notice,
.lp-disclaimer,
.lp-privacy-note,
.small {
  line-height: 1.55;
}

/* Forms and fee selectors: shared legibility layer. */
input,
select,
textarea {
  font: inherit;
  min-height: 44px;
}
label select,
label input,
label textarea,
.form-control,
.compact-fee-fields select {
  width: 100%;
  border: 1px solid rgba(20, 32, 51, 0.18);
  border-radius: 14px;
  background-color: #fff;
  color: var(--vge-ink);
}
.compact-fee-fields,
.form-grid,
.order-form-grid {
  gap: 14px;
}

/* Footer cleanup. */
.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid,
.footer-grid-3 {
  gap: clamp(22px, 4vw, 48px);
}

/* Floating support controls: late rule prevents overlap after previous patch layers. */
.whatsapp-float,
.vge-chatbot-toggle,
.live-staff-chat-launcher,
.live-staff-chat-button {
  z-index: 1040;
}
body.vge-any-chat-open .whatsapp-float,
body.vge-mobile-menu-open .whatsapp-float,
body.vge-any-chat-open .lp-sticky,
body.vge-mobile-menu-open .lp-sticky {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* Ads landing shared cleanup. */
.lp-page .topbar,
body:has(.lp-hero) .topbar {
  border-bottom-color: rgba(255,255,255,0.12);
}
.lp-sticky {
  z-index: 1010;
  border-top: 1px solid rgba(20,32,51,0.10);
  box-shadow: 0 -10px 28px rgba(15,35,55,0.10);
}
.lp-sticky .container {
  gap: 14px;
}

@media (max-width: 1100px) {
  .navlinks { gap: 10px; }
  .navlinks a:not(.btn) { font-size: 14px; }
  .navlinks .btn { padding-inline: 14px; }
}

@media (max-width: 900px) {
  .container { width: min(100% - 28px, var(--vge-max)); }
  .topbar .nav,
  .topbar .container.nav {
    min-height: 62px;
    justify-content: space-between;
    gap: 10px;
  }
  .brand-logo img,
  .footer-logo img,
  .logo-dark { max-height: 34px; }
  .navlinks { display: none !important; }
  .vge-mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 800;
  }
  .mobile-only.btn,
  .topbar .mobile-only {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    max-width: 118px;
    white-space: nowrap;
  }
  .vge-mobile-menu-drawer {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    z-index: 1002;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--vge-shadow-md);
    border: 1px solid rgba(20,32,51,0.10);
  }
  .vge-mobile-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .vge-mobile-menu-inner a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--vge-soft);
    color: var(--vge-ink) !important;
    font-weight: 800;
    text-decoration: none;
  }
  .hero,
  .lp-hero,
  .service-hero,
  .trust-hero {
    padding-top: 34px;
    padding-bottom: 40px;
  }
  .hero h1,
  .lp-hero h1,
  .service-hero h1,
  .trust-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.02;
  }
  .hero-actions,
  .lp-actions,
  .home-hero-actions,
  .home-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn,
  .lp-actions .lp-cta,
  .home-hero-actions .btn,
  .home-cta-actions .btn {
    width: 100%;
  }
  .section,
  .lp-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .grid.two,
  .grid.three,
  .grid.four,
  .lp-grid-2,
  .lp-grid-3,
  .footer-grid,
  .footer-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .card,
  .step,
  .lp-box,
  .home-route-card,
  .home-cta-card,
  .fee-card {
    border-radius: 18px;
  }
  .whatsapp-float {
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    min-width: 0 !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 26px rgba(31,157,99,0.24) !important;
  }
  .whatsapp-float .whatsapp-text { display: none !important; }
  .whatsapp-float .whatsapp-icon { font-size: 22px; }
  .lp-sticky {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .lp-sticky .container {
    width: min(100% - 20px, var(--vge-max));
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - 22px, var(--vge-max)); }
  .topbar .nav,
  .topbar .container.nav { min-height: 58px; }
  .brand-logo img,
  .footer-logo img,
  .logo-dark { max-height: 30px; }
  .vge-mobile-menu-button span:last-child { display: none; }
  .vge-mobile-menu-button { width: 40px; padding-inline: 0; }
  .topbar .mobile-only { max-width: 104px; font-size: 12px; }
  .vge-mobile-menu-inner { grid-template-columns: 1fr; }
  .btn,
  a.btn,
  button.btn,
  .lp-cta,
  a.lp-cta {
    min-height: 44px;
    padding: 11px 15px;
  }
  .hero h1,
  .lp-hero h1,
  .service-hero h1,
  .trust-hero h1 {
    font-size: clamp(31px, 11vw, 42px);
  }
  .section h2,
  .lp-section h2 { font-size: clamp(25px, 7vw, 34px); }
  .whatsapp-float { width: 46px !important; height: 46px !important; }
}
