/* Vietnam GoEasy v534U - mobile phase 4 final visual sweep
   Scope: public mobile/tablet only. Desktop layout is intentionally untouched. */

@media (max-width: 980px) {
  html, body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  img, svg, video, canvas, iframe {
    max-width: 100%;
  }

  .container,
  .section,
  .page-hero,
  .mini-section,
  .vge-subpage-viewport-rail-v441G,
  .policy-content,
  .article-content,
  .guide-content,
  .guide-layout,
  .service-content,
  .checkout-shell,
  .order-shell,
  .payment-shell,
  .tracking-shell,
  .status-shell {
    max-width: 100%;
  }

  .container {
    padding-left: clamp(16px, 5vw, 28px);
    padding-right: clamp(16px, 5vw, 28px);
  }

  .page-hero,
  .hero,
  .section {
    scroll-margin-top: 86px;
  }

  .page-hero h1,
  .hero h1,
  h1 {
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .page-actions,
  .cta-actions,
  .card-actions,
  .form-actions,
  .summary-actions,
  .contact-actions,
  .trust-actions,
  .service-actions,
  .guide-actions,
  .airport-hero-actions,
  .vge-actions {
    gap: 10px;
  }

  .btn,
  button,
  input[type="button"],
  input[type="submit"],
  .button,
  .pill,
  .chip,
  .tab,
  .faq-page-btn,
  .service-chip,
  .source-chip,
  .guide-chip {
    min-height: 42px;
    white-space: normal;
    line-height: 1.22;
  }

  input,
  select,
  textarea,
  .form-control,
  .input,
  .field input,
  .field select,
  .field textarea {
    max-width: 100%;
    font-size: 16px;
  }

  table,
  .pricing-table,
  .fee-table,
  .comparison-table,
  .guide-table,
  .policy-table {
    width: 100%;
  }

  .table-wrap,
  .pricing-table-wrap,
  .comparison-table-wrap,
  .fee-table-wrap,
  .guide-table-wrap,
  .responsive-table,
  .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal,
  .popup,
  .dialog,
  .lightbox,
  .drawer,
  .addon-modal,
  .service-modal,
  .vge-modal,
  [role="dialog"] {
    max-width: min(94vw, 720px);
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .section,
  .mini-section,
  .page-hero,
  .hero {
    padding-top: clamp(30px, 8vw, 54px);
    padding-bottom: clamp(30px, 8vw, 54px);
  }

  .page-hero h1,
  .hero h1,
  h1 {
    font-size: clamp(30px, 8.8vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.035em;
  }

  h2,
  .section-title,
  .card-title {
    font-size: clamp(23px, 6.6vw, 32px);
    line-height: 1.14;
  }

  h3 {
    font-size: clamp(19px, 5.2vw, 24px);
  }

  p,
  li,
  .muted,
  .small,
  .policy-content p,
  .article-content p,
  .guide-content p {
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .page-actions,
  .cta-actions,
  .card-actions,
  .form-actions,
  .summary-actions,
  .contact-actions,
  .trust-actions,
  .service-actions,
  .guide-actions,
  .airport-hero-actions,
  .vge-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .page-actions .btn,
  .cta-actions .btn,
  .card-actions .btn,
  .form-actions .btn,
  .summary-actions .btn,
  .contact-actions .btn,
  .trust-actions .btn,
  .service-actions .btn,
  .guide-actions .btn,
  .airport-hero-actions .btn,
  .vge-actions .btn,
  .btn.full-mobile,
  a.btn,
  button.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .card,
  .info-card,
  .service-card,
  .trust-card,
  .guide-card,
  .policy-card,
  .source-policy-card,
  .pricing-card,
  .summary-card,
  .upload-card,
  .applicant-card,
  .faq-card,
  .article-card,
  .testimonial-card {
    border-radius: 22px;
    padding: clamp(16px, 5vw, 22px);
  }

  .grid,
  .cards-grid,
  .trust-grid,
  .service-grid,
  .guide-grid,
  .feature-grid,
  .pricing-grid,
  .addon-grid,
  .footer-grid,
  .footer-grid-3,
  .two-col,
  .three-col,
  .split-layout,
  .article-grid,
  .content-grid,
  .form-grid,
  .summary-grid {
    grid-template-columns: 1fr !important;
  }

  .modal,
  .popup,
  .dialog,
  .lightbox,
  .drawer,
  .addon-modal,
  .service-modal,
  .vge-modal,
  [role="dialog"] {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    border-radius: 22px;
  }
.whatsapp-float,
.telegram-float{
    transform: scale(.9);
    transform-origin: right bottom;
  }

  .whatsapp-text,
.telegram-text{
    display: none !important;
  }

  .vge-chatbot-widget,
  .vge-chatbot-launcher,
  #vge-chatbot-launcher,
  #chatbot-launcher,
  .chatbot-launcher {
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar,
  .nav,
  header,
  main,
  footer {
    max-width: 100vw;
  }

  .brand img,
  .footer-logo img,
  .brand-logo img {
    max-width: min(180px, 52vw);
    height: auto;
  }

  .mobile-only.btn,
  .nav-apply-btn {
    padding-left: 12px;
    padding-right: 12px;
  }

  .eyebrow,
  .badge,
  .tagline,
  .pill-label {
    max-width: 100%;
    white-space: normal;
  }

  .hero-media,
  .page-hero img,
  .article-visual img,
  .guide-hero img,
  .service-hero img,
  .airport-hero-visual img {
    border-radius: 20px;
  }

  .source-policy-card,
  .ug-source-policy,
  .source-review-policy {
    margin-top: 22px;
  }

  .source-policy-card a,
  .ug-source-policy a,
  .source-review-policy a,
  .footer a,
  .policy-content a,
  .article-content a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .faq-search,
  .search-box,
  .status-search,
  .tracking-search,
  .fee-checker,
  .visa-checker {
    width: 100%;
  }

  .faq-pagination,
  .pagination,
  .tabs,
  .filter-pills,
  .source-policy-chips,
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-pagination > *,
  .pagination > *,
  .tabs > *,
  .filter-pills > *,
  .source-policy-chips > *,
  .chips > * {
    flex: 1 1 auto;
    min-width: min(100%, 96px);
    text-align: center;
  }
}

@media (max-width: 420px) {
  body {
    padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  }

  .page-hero h1,
  .hero h1,
  h1 {
    font-size: clamp(28px, 9.8vw, 38px);
  }

  .btn,
  button,
  input[type="button"],
  input[type="submit"],
  .button {
    min-height: 46px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .card,
  .info-card,
  .service-card,
  .trust-card,
  .guide-card,
  .policy-card,
  .source-policy-card,
  .pricing-card,
  .summary-card,
  .upload-card,
  .applicant-card,
  .faq-card,
  .article-card,
  .testimonial-card {
    border-radius: 18px;
  }
.whatsapp-float,
.telegram-float{
    right: 12px !important;
  }

  .vge-chatbot-panel,
  #vge-chatbot-panel,
  .chatbot-panel {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }
}
