/* ==========================================================================
   NiM Express — Redesign 2026
   Mobile-first stylesheet. Sections appended in the order pages are rebuilt:
   1. Design tokens
   2. Header / Nav / Menu overlay / Login popover
   ========================================================================== */

:root {
  --nx-blue: #0967b3;
  --nx-blue-dark: #054d8a;
  --nx-blue-50: #eef6fc;
  --nx-red: #e31e24;
  --nx-ink: #14181f;
  --nx-gray-700: #3d4552;
  --nx-gray-500: #6b7280;
  --nx-gray-200: #e6e9ee;
  --nx-gray-100: #f2f4f7;
  --nx-gray-50: #f8f9fb;
  --nx-white: #ffffff;

  --nx-radius-lg: 20px;
  --nx-radius-md: 14px;
  --nx-radius-sm: 10px;

  --nx-shadow-sm: 0 2px 8px rgba(20, 24, 31, 0.06);
  --nx-shadow-md: 0 12px 32px rgba(20, 24, 31, 0.12);

  --nx-header-h: 60px;
  --nx-container: 1200px;
  --nx-space-2: 8px;
  --nx-space-3: 12px;
  --nx-space-4: 16px;
  --nx-space-5: 20px;
  --nx-space-6: 24px;
  --nx-space-8: 32px;

  --nx-font: "Noto Sans Thai", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
}

@media (min-width: 1024px) {
  :root {
    --nx-header-h: 76px;
  }
}

/* --------------------------------------------------------------------- */
/* Base reset                                                             */
/* --------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--nx-font);
  color: var(--nx-ink);
  background: var(--nx-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.nx-container {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 var(--nx-space-4);
}

/* --------------------------------------------------------------------- */
/* Header / Nav                                                          */
/* --------------------------------------------------------------------- */

.nx-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nx-gray-200);
  font-family: var(--nx-font);
}

.nx-header__bar {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: var(--nx-space-3) var(--nx-space-4);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo . actions" "track track track";
  row-gap: var(--nx-space-3);
  align-items: center;
  gap: var(--nx-space-2);
}

.nx-logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .nx-header__bar {
    height: var(--nx-header-h);
    padding: 0 var(--nx-space-4);
    grid-template-areas: "logo track actions";
    row-gap: 0;
  }
}

.nx-logo img {
  height: 22px;
  width: auto;
  max-width: 34vw;
  display: block;
}

@media (min-width: 1024px) {
  .nx-logo img {
    height: 34px;
  }
}

/* Track / search --------------------------------------------------------- */

.nx-track {
  grid-area: track;
  display: flex;
  min-width: 0;
}

.nx-track__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm) 0 0 var(--nx-radius-sm);
  padding: 0 var(--nx-space-4);
  font-size: 15px;
  outline: none;
}

.nx-track__input:focus {
  border-color: var(--nx-blue);
}

.nx-track__submit {
  height: 44px;
  padding: 0 var(--nx-space-4);
  border: none;
  border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0;
  background: var(--nx-red);
  color: var(--nx-white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .nx-track__submit:hover {
    background: #b8181d;
  }
}

@media (min-width: 1024px) {
  .nx-track {
    max-width: 460px;
    width: 100%;
    margin-right: var(--nx-space-4);
  }

  .nx-track__input {
    height: 40px;
  }

  .nx-track__submit {
    height: 40px;
  }
}

/* Actions: lang / login / menu ------------------------------------------ */

.nx-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--nx-space-2);
  flex-shrink: 0;
}

.nx-lang {
  display: none;
  border: 1px solid var(--nx-gray-200);
  background: var(--nx-white);
  border-radius: 999px;
  height: 36px;
  min-width: 36px;
  padding: 0 var(--nx-space-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-gray-700);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .nx-lang:hover {
    border-color: var(--nx-blue);
    background: var(--nx-blue-50);
    color: var(--nx-blue);
  }
}

@media (min-width: 768px) {
  .nx-lang {
    display: inline-flex;
  }
}

.nx-login {
  position: relative;
  flex-shrink: 0;
}

.nx-login__toggle {
  height: 36px;
  width: 36px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-2);
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .nx-login__toggle:hover {
    background: var(--nx-ink);
  }
}

.nx-login__toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nx-login__label {
  display: none;
}

@media (min-width: 768px) {
  .nx-login__toggle {
    width: auto;
    padding: 0 var(--nx-space-4);
  }

  .nx-login__toggle svg {
    display: none;
  }

  .nx-login__label {
    display: inline;
  }
}

.nx-login__panel {
  display: none;
  position: fixed;
  left: var(--nx-space-4);
  right: var(--nx-space-4);
  bottom: var(--nx-space-4);
  background: var(--nx-white);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-md);
  padding: var(--nx-space-6);
  z-index: 600;
}

.nx-login__panel.is-open {
  display: block;
}

.nx-login__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0 0 var(--nx-space-4);
}

.nx-login__form {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

.nx-login__form input {
  height: 46px;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
  padding: 0 var(--nx-space-4);
  font-size: 15px;
  outline: none;
}

.nx-login__form input:focus {
  border-color: var(--nx-blue);
}

.nx-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-3);
}

.nx-login__row a {
  font-size: 13px;
  color: var(--nx-gray-500);
  text-decoration: none;
}

.nx-login__signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-2);
  margin-top: var(--nx-space-4);
  padding-top: var(--nx-space-4);
  border-top: 1px solid var(--nx-gray-200);
  font-size: 13px;
  color: var(--nx-gray-500);
}

.nx-login__signup a {
  color: var(--nx-blue);
  font-weight: 600;
  text-decoration: none;
}

.nx-login__submit {
  height: 46px;
  border: none;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 0 var(--nx-space-6);
}

.nx-login__close {
  position: absolute;
  top: var(--nx-space-3);
  right: var(--nx-space-3);
  width: 32px;
  height: 32px;
  border: none;
  background: var(--nx-gray-100);
  border-radius: 999px;
  color: var(--nx-gray-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .nx-login__panel {
    position: absolute;
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + var(--nx-space-2));
    width: 340px;
  }
}

.nx-menu {
  position: relative;
  flex-shrink: 0;
}

.nx-menu-preview {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: var(--nx-space-2);
  min-width: 230px;
  z-index: 800;
}

.nx-menu-preview__panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: var(--nx-radius-md);
  box-shadow: var(--nx-shadow-md);
  padding: var(--nx-space-2) 0;
  max-height: 70vh;
  overflow-y: auto;
}

.nx-menu-preview a {
  display: block;
  padding: 9px var(--nx-space-4);
  color: var(--nx-gray-700);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nx-menu-preview a:hover {
  background: var(--nx-blue-50);
  color: var(--nx-blue);
}

.nx-menu-preview a.is-active {
  color: var(--nx-blue);
  font-weight: 700;
}

.nx-menu-preview__brandgroup {
  color: var(--nx-red) !important;
  font-weight: 700 !important;
}

.nx-menu-preview__brandgroup:hover {
  color: var(--nx-red) !important;
}

@media (hover: hover) {
  .nx-menu:hover .nx-menu-preview {
    display: block;
    animation: nx-menu-preview-in 0.2s ease both;
  }
}

@keyframes nx-menu-preview-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nx-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--nx-gray-100);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nx-menu-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.nx-menu-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--nx-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nx-menu-toggle__label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-ink);
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

@media (hover: hover) {
  .nx-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    box-shadow: var(--nx-shadow-sm);
  }

  .nx-menu-toggle:hover .nx-menu-toggle__label {
    max-width: 60px;
    opacity: 1;
  }
}

.nx-menu-toggle[aria-expanded="true"] .nx-menu-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nx-menu-toggle[aria-expanded="true"] .nx-menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nx-menu-toggle[aria-expanded="true"] .nx-menu-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu overlay ------------------------------------------------------------ */

.nx-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--nx-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow-y: auto;
  font-family: var(--nx-font);
}

.nx-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nx-menu-overlay__bar {
  max-width: var(--nx-container);
  margin: 0 auto;
  height: var(--nx-header-h);
  padding: 0 var(--nx-space-4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nx-menu-overlay__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--nx-gray-100);
  color: var(--nx-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nx-menu-overlay__lang {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 var(--nx-space-6);
  display: flex;
  gap: var(--nx-space-2);
}

.nx-menu-overlay__lang a {
  border: 1px solid var(--nx-gray-200);
  border-radius: 999px;
  height: 32px;
  padding: 0 var(--nx-space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-gray-700);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nx-menu-overlay__lang {
    display: none;
  }
}

.nx-menu-overlay__nav {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: var(--nx-space-4) var(--nx-space-6) var(--nx-space-8);
  display: flex;
  flex-direction: column;
}

.nx-menu-overlay__nav a {
  padding: var(--nx-space-4) 0;
  border-bottom: 1px solid var(--nx-gray-200);
  font-size: 24px;
  font-weight: 600;
  color: var(--nx-ink);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nx-menu-overlay__nav a.is-active {
  color: var(--nx-blue);
}

@media (hover: hover) {
  .nx-menu-overlay__nav a:hover {
    color: var(--nx-blue);
    padding-left: var(--nx-space-3);
  }
}

.nx-menu-overlay__brandgroup {
  color: var(--nx-red) !important;
}

@media (hover: hover) {
  .nx-menu-overlay__brandgroup:hover {
    color: var(--nx-red) !important;
  }
}

@media (min-width: 768px) {
  .nx-menu-overlay__nav a {
    font-size: 32px;
  }
}

/* --------------------------------------------------------------------- */
/* Hero                                                                    */
/* --------------------------------------------------------------------- */

.nx-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 96px;
  background: linear-gradient(180deg, var(--nx-blue-50) 0%, var(--nx-white) 100%);
}

.nx-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.nx-hero__wave {
  position: absolute;
  left: 0;
  bottom: -40px;
  width: 200%;
  height: 220px;
  fill: var(--nx-blue-50);
  animation: nx-hero-wave 18s linear infinite;
}

@keyframes nx-hero-wave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nx-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.nx-hero__headline {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-hero__headline--red {
  color: var(--nx-red);
}

.nx-hero__headline--blue {
  color: var(--nx-blue);
}

.nx-hero__subline {
  margin: var(--nx-space-4) auto 0;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nx-space-8);
  height: 52px;
  padding: 0 var(--nx-space-8);
  border: none;
  border-radius: 999px;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: var(--nx-font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--nx-shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nx-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(9, 103, 179, 0.25);
}

.nx-hero__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-4);
  margin-top: var(--nx-space-8);
}

.nx-hero__app-stores {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
}

.nx-hero__app-stores img {
  height: 40px;
  width: auto;
  display: block;
}

.nx-hero__app-qr {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  text-decoration: none;
}

.nx-hero__app-qr__img,
.nx-hero__app-qr__text {
  display: none;
}

.nx-hero__app-qr__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  height: 40px;
  padding: 0 var(--nx-space-4);
  border-radius: 999px;
  border: 1px solid var(--nx-gray-200);
  background: var(--nx-white);
  color: var(--nx-ink);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nx-hero__app-qr__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #06c755;
}

@media (hover: hover) {
  .nx-hero__app-qr__cta:hover {
    border-color: #06c755;
    background: #eafbf1;
  }
}

@media (min-width: 768px) {
  .nx-hero__app-qr__img {
    display: block;
    width: 64px;
    height: 64px;
    border: 2px solid var(--nx-blue);
    border-radius: var(--nx-radius-sm);
    padding: 4px;
    background: var(--nx-white);
  }

  .nx-hero__app-qr__text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-blue);
    line-height: 1.5;
    text-align: left;
  }

  .nx-hero__app-qr__cta {
    display: none;
  }
}

@media (min-width: 768px) {
  .nx-hero {
    padding: 96px 0 140px;
  }

  .nx-hero__headline {
    font-size: 56px;
  }

  .nx-hero__subline {
    font-size: 18px;
    max-width: 560px;
  }
}

@media (min-width: 1200px) {
  .nx-hero__headline {
    font-size: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-hero__wave,
  .nx-areas__wave {
    animation: none;
  }
}

/* --------------------------------------------------------------------- */
/* Utility (kept for legacy JS that toggles this class)                  */
/* --------------------------------------------------------------------- */

.d-none {
  display: none !important;
}

/* --------------------------------------------------------------------- */
/* Calculator popup                                                       */
/* --------------------------------------------------------------------- */

.nx-calc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: flex-start;
  justify-content: center;
}

.nx-calc-modal.is-open {
  display: flex;
}

.nx-calc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 31, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nx-calc-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--nx-white);
  border-radius: 0;
  padding: var(--nx-space-6) var(--nx-space-4) var(--nx-space-8);
  animation: nx-calc-panel-in 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes nx-calc-panel-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .nx-calc-modal {
    align-items: flex-start;
    padding: var(--nx-space-6);
  }

  .nx-calc-modal__panel {
    height: auto;
    max-height: 92vh;
    margin-top: 4vh;
    border-radius: var(--nx-radius-lg);
    padding: var(--nx-space-8);
  }
}

.nx-calc-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--nx-gray-100);
  color: var(--nx-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nx-calc-tabs {
  display: flex;
  gap: var(--nx-space-2);
  margin-bottom: var(--nx-space-6);
  clear: both;
}

.nx-calc-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  height: 44px;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  font-family: var(--nx-font);
  font-weight: 600;
  font-size: 14px;
  color: var(--nx-gray-700);
  cursor: pointer;
}

.nx-calc-title {
  margin: 0 0 var(--nx-space-4);
  font-size: 18px;
  font-weight: 700;
  color: var(--nx-blue);
}

.nx-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-4);
  margin-bottom: var(--nx-space-6);
}

@media (min-width: 640px) {
  .nx-calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.nx-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-gray-700);
}

.nx-input {
  height: 46px;
  padding: 0 var(--nx-space-4);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
  font-family: var(--nx-font);
  font-size: 15px;
  color: var(--nx-ink);
  background: var(--nx-white);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.nx-input:focus {
  border-color: var(--nx-blue);
}

.nx-calc-loader {
  position: absolute;
  right: var(--nx-space-3);
  top: 34px;
  width: 18px;
  height: 18px;
}

.nx-calc-items__head {
  display: none;
}

@media (min-width: 640px) {
  .nx-calc-items__head {
    display: grid;
    grid-template-columns: 28px 28px minmax(0, 1fr) 100px 70px 90px;
    gap: var(--nx-space-2);
    padding: 0 var(--nx-space-2);
    margin-bottom: var(--nx-space-2);
    font-size: 12px;
    font-weight: 700;
    color: var(--nx-gray-500);
    text-align: center;
  }

  .nx-calc-items__head span:nth-child(1) {
    grid-column: 3;
  }

  .nx-calc-items__head span:nth-child(2) {
    grid-column: 4;
  }

  .nx-calc-items__head span:nth-child(3) {
    grid-column: 5;
  }

  .nx-calc-items__head span:nth-child(4) {
    grid-column: 6;
  }
}

.nx-calc-item {
  position: relative;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  padding: var(--nx-space-4);
  margin-bottom: var(--nx-space-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-3);
}

@media (min-width: 640px) {
  .nx-calc-item {
    grid-template-columns: 28px 28px minmax(0, 1fr) 100px 70px 90px;
    align-items: center;
    gap: var(--nx-space-2);
  }
}

.nx-calc-item__del {
  position: absolute;
  top: var(--nx-space-3);
  right: var(--nx-space-3);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: var(--nx-gray-100);
  color: var(--nx-red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .nx-calc-item__del {
    position: static;
    grid-column: 1;
  }
}

.nx-calc-item__order {
  display: none;
  font-weight: 700;
  color: var(--nx-gray-500);
  text-align: center;
}

@media (min-width: 640px) {
  .nx-calc-item__order {
    display: block;
    grid-column: 2;
  }
}

.nx-calc-item__dims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nx-space-2);
}

@media (min-width: 640px) {
  .nx-calc-item__dims {
    grid-column: 3;
  }
}

.nx-calc-item__dims .nx-input {
  height: 42px;
  padding: 0 var(--nx-space-2);
  text-align: center;
}

.nx-calc-item__weight,
.nx-calc-item__qty {
  height: 42px;
  padding: 0 var(--nx-space-2);
  text-align: center;
}

@media (min-width: 640px) {
  .nx-calc-item__weight {
    grid-column: 4;
  }

  .nx-calc-item__qty {
    grid-column: 5;
  }
}

.nx-calc-item__price {
  font-weight: 700;
  color: var(--nx-blue);
  text-align: center;
}

@media (min-width: 640px) {
  .nx-calc-item__price {
    grid-column: 6;
  }
}

.nx-calc-item__total {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--nx-gray-500);
  text-align: center;
}

.nx-calc-item__total label {
  color: var(--nx-blue);
  font-weight: 700;
}

.nx-calc-actions {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

@media (min-width: 640px) {
  .nx-calc-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.nx-calc-actions__right {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
}

.nx-btn-primary,
.nx-btn-secondary,
.nx-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 48px;
  padding: 0 var(--nx-space-6);
  border-radius: var(--nx-radius-sm);
  font-family: var(--nx-font);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  flex: 1;
}

@media (min-width: 640px) {
  .nx-btn-primary,
  .nx-btn-secondary,
  .nx-btn-outline {
    flex: none;
  }
}

.nx-btn-primary {
  border: none;
  background: var(--nx-blue);
  color: var(--nx-white);
}

.nx-btn-secondary {
  border: 1px solid var(--nx-gray-200);
  background: var(--nx-white);
  color: var(--nx-gray-700);
}

.nx-btn-outline {
  border: 1px dashed var(--nx-gray-200);
  background: none;
  color: var(--nx-blue);
  width: 100%;
}

@media (min-width: 640px) {
  .nx-btn-outline {
    width: auto;
  }
}

.nx-calc-result {
  margin-top: var(--nx-space-6);
  padding: var(--nx-space-4);
  border-radius: var(--nx-radius-md);
  background: var(--nx-blue-50);
}

.nx-calc-result--success {
  background: #edf9f0;
}

.nx-calc-result__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nx-space-2) 0;
  font-size: 14px;
  color: var(--nx-gray-700);
}

.nx-calc-result__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-2);
  padding: var(--nx-space-2) 0;
  font-weight: 600;
}

.nx-calc-result__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--nx-blue);
}

.nx-calc-result .val_over {
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-red);
}

.nx-calc-result__disclaimer {
  margin-top: var(--nx-space-2);
  font-size: 12px;
  color: var(--nx-gray-500);
}

.nx-calc-disclaimer-text {
  margin-top: var(--nx-space-4);
  font-size: 11px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-calc-ratecard {
  display: block;
  margin-top: var(--nx-space-6);
}

.nx-calc-ratecard img {
  width: 100%;
  border-radius: var(--nx-radius-md);
  border: 1px solid var(--nx-gray-200);
}

.nx-calc-info {
  text-align: center;
}

.nx-calc-info img {
  max-width: 100%;
  border-radius: var(--nx-radius-md);
  margin-bottom: var(--nx-space-3);
}

.nx-calc-coldchain {
  padding: var(--nx-space-8) var(--nx-space-4);
}

.nx-calc-coldchain__logo {
  max-width: 180px;
  margin: 0 auto var(--nx-space-4);
}

.nx-calc-coldchain__desc {
  max-width: 380px;
  margin: 0 auto var(--nx-space-6);
  color: var(--nx-gray-700);
  line-height: 1.6;
}

.nx-calc-coldchain__cta {
  display: inline-flex;
  text-decoration: none;
}

.nx-calc-coldchain__area {
  margin-top: var(--nx-space-8);
  text-align: left;
}

.nx-calc-coldchain__area .nx-calc-title {
  text-align: left;
}

.nx-calc-coldchain__area .nx-cc-area:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------- */
/* Why NiM Express                                                        */
/* --------------------------------------------------------------------- */

.nx-why {
  padding: 64px 0;
}

.nx-why__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.nx-why__title {
  margin: 0 0 var(--nx-space-3);
  font-size: 28px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-why__title-logo {
  display: inline-block;
  height: 22px;
  width: auto;
  vertical-align: -3px;
}

@media (min-width: 768px) {
  .nx-why__title-logo {
    height: 30px;
    vertical-align: -5px;
  }
}

.nx-why__subline {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-4);
}

@media (min-width: 768px) {
  .nx-why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-why__card {
  position: relative;
  overflow: hidden;
  padding: var(--nx-space-6);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
}

.nx-why__card--blue .nx-why__num,
.nx-why__card--blue .nx-why__icon,
.nx-why__card--blue .nx-why__card-title,
.nx-why__card--blue .nx-why__card-desc {
  position: relative;
  z-index: 1;
}

.nx-why__card--blue {
  background: var(--nx-blue);
  border-color: var(--nx-blue);
}

.nx-why__map {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-mask-image: url("../img/th-map.svg");
  mask-image: url("../img/th-map.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  z-index: 0;
}

.nx-why__num {
  position: absolute;
  top: var(--nx-space-6);
  right: var(--nx-space-6);
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-gray-200);
}

.nx-why__card--blue .nx-why__num {
  color: rgba(255, 255, 255, 0.4);
}

.nx-why__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--nx-space-4);
  color: var(--nx-blue);
}

.nx-why__card--blue .nx-why__icon {
  color: var(--nx-white);
}

.nx-why__icon svg {
  width: 100%;
  height: 100%;
}

.nx-why__card-title {
  margin: 0 0 var(--nx-space-2);
  font-size: 18px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-why__card--blue .nx-why__card-title {
  color: var(--nx-white);
}

.nx-why__card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-why__card--blue .nx-why__card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.nx-why__stat {
  display: flex;
  align-items: baseline;
  gap: var(--nx-space-2);
  margin-top: var(--nx-space-4);
  padding-top: var(--nx-space-4);
  border-top: 1px solid var(--nx-gray-200);
}

.nx-why__stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--nx-blue);
}

.nx-why__stat-label {
  font-size: 13px;
  color: var(--nx-gray-500);
}

.nx-why__card-footnote {
  margin: var(--nx-space-3) 0 0;
  font-size: 12px;
  color: var(--nx-gray-500);
}

.nx-why__card--blue .nx-why__card-footnote {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .nx-why__card--wide {
    grid-column: span 2;
  }
}

.nx-why__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
  margin: var(--nx-space-4) 0 0;
  padding: 0;
  list-style: none;
}

.nx-why__tags li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 13px;
  color: var(--nx-white);
}

.nx-why__card-link {
  display: inline-block;
  margin-top: var(--nx-space-4);
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-white);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .nx-why__title {
    font-size: 36px;
  }
}

/* --------------------------------------------------------------------- */
/* bootstrap-datepicker compatibility shim                                */
/* The plugin relies on Bootstrap's .dropdown-menu{display:none} as its   */
/* default hidden state and toggles visibility itself via jQuery          */
/* show()/hide(). We dropped Bootstrap, so restore just that base rule.   */
/* --------------------------------------------------------------------- */

.dropdown-menu {
  display: none;
  position: absolute;
  z-index: 1000;
  background: var(--nx-white);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
  box-shadow: var(--nx-shadow-md);
}

/* --------------------------------------------------------------------- */
/* Footer                                                                  */
/* --------------------------------------------------------------------- */

.nx-footer {
  background: #2b2e34;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 24px;
}

.nx-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .nx-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nx-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  }
}

.nx-footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .nx-footer__brand {
    grid-column: auto;
  }
}

.nx-footer__logo {
  height: 26px;
  width: auto;
  margin-bottom: var(--nx-space-4);
  filter: brightness(0) invert(1);
}

.nx-footer__tagline {
  max-width: 320px;
  margin: 0 0 var(--nx-space-6);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.nx-footer__social {
  display: flex;
  gap: var(--nx-space-3);
}

.nx-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--nx-gray-200);
  color: var(--nx-ink);
  transition: background-color 0.2s ease;
}

.nx-footer__social a:hover {
  background: var(--nx-white);
}

.nx-footer__social svg {
  width: 18px;
  height: 18px;
}

.nx-footer__col h4 {
  margin: 0 0 var(--nx-space-4);
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-white);
}

.nx-footer__col a {
  display: block;
  margin-bottom: var(--nx-space-3);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.nx-footer__col a:hover {
  color: var(--nx-white);
}

.nx-footer__text {
  margin: 0 0 var(--nx-space-3);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.nx-footer__text a {
  display: inline;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.nx-footer__text a:hover {
  color: var(--nx-white);
}

.nx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-4);
  margin-top: 48px;
  padding-top: var(--nx-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-footer__bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.nx-footer__partner {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-decoration: none;
}

.nx-footer__partner:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nx-footer__partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nx-white);
}

.nx-footer__partner-badge img {
  height: 16px;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------- */
/* Service areas                                                          */
/* --------------------------------------------------------------------- */

.nx-areas {
  position: relative;
  overflow: hidden;
  padding: 56px 0 96px;
  background: var(--nx-gray-100);
}

.nx-areas__wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 60px;
  fill: var(--nx-white);
}

.nx-areas__wave--top {
  top: -1px;
  animation: nx-hero-wave 16s linear infinite reverse;
}

.nx-areas__wave--bottom {
  bottom: -1px;
  animation: nx-hero-wave 18s linear infinite;
}

.nx-areas__head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 32px;
}

.nx-areas__title {
  margin: 0 0 var(--nx-space-2);
  font-size: 24px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-areas__subline {
  margin: 0;
  font-size: 15px;
  color: var(--nx-gray-500);
}

.nx-areas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--nx-space-3);
}

@media (min-width: 640px) {
  .nx-areas__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-areas__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.nx-areas__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-6) var(--nx-space-3);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  color: var(--nx-ink);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nx-areas__item svg {
  width: 26px;
  height: 26px;
  color: var(--nx-blue);
}

.nx-areas__item span {
  font-size: 14px;
  font-weight: 600;
}

.nx-areas__item:hover {
  border-color: var(--nx-blue);
  background: var(--nx-blue-50);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .nx-areas__title {
    font-size: 28px;
  }
}

/* --------------------------------------------------------------------- */
/* Drop Point recruitment                                                */
/* --------------------------------------------------------------------- */

.nx-droppoint {
  padding: 64px 0;
  background: var(--nx-white);
}

.nx-droppoint__inner {
  max-width: 640px;
  text-align: center;
}

.nx-droppoint__title {
  margin: 0 0 var(--nx-space-5);
  font-size: 24px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-droppoint__list {
  margin: 0 0 var(--nx-space-6);
  padding: 0;
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

.nx-droppoint__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--nx-space-3);
  font-size: 15px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-droppoint__list li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--nx-blue);
}

.nx-droppoint__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--nx-space-8);
  border: none;
  border-radius: 999px;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: var(--nx-font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--nx-shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nx-droppoint__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(9, 103, 179, 0.25);
}

@media (min-width: 768px) {
  .nx-droppoint__title {
    font-size: 30px;
  }
}

/* --------------------------------------------------------------------- */
/* News                                                                   */
/* --------------------------------------------------------------------- */

.nx-news {
  padding: 64px 0;
  border-top: 1px solid var(--nx-gray-200);
}

.nx-news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--nx-space-4);
  margin-bottom: var(--nx-space-6);
}

.nx-news__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-news__more {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-blue);
  text-decoration: none;
  white-space: nowrap;
}

.nx-news__more:hover {
  text-decoration: underline;
}

.nx-news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-5);
}

@media (min-width: 640px) {
  .nx-news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-news__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-news__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nx-news__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow-md);
}

.nx-news__card-img {
  aspect-ratio: 1 / 1;
  background: var(--nx-gray-100);
}

.nx-news__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-news__card-body {
  padding: var(--nx-space-4);
}

.nx-news__card-title {
  margin: 0 0 var(--nx-space-2);
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-news__card-desc {
  margin: 0 0 var(--nx-space-3);
  font-size: 13px;
  line-height: 1.6;
  color: var(--nx-gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-news__card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-blue);
}

.nx-news__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-2);
}

.nx-news__card-date {
  font-size: 12px;
  color: var(--nx-gray-500);
}

/* --------------------------------------------------------------------- */
/* Announcement bar                                                       */
/* --------------------------------------------------------------------- */

.nx-announce {
  background: var(--nx-red);
  color: var(--nx-white);
}

.nx-announce__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-2) var(--nx-space-4);
  padding: 10px var(--nx-space-6) 10px var(--nx-space-4);
  position: relative;
  font-size: 13px;
  text-align: center;
}

.nx-announce__text {
  font-weight: 600;
}

.nx-announce__link {
  color: var(--nx-white);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.nx-announce__close {
  position: absolute;
  right: var(--nx-space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--nx-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nx-announce__inner {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------- */
/* Generic inner-page hero (About, and future pages)                     */
/* --------------------------------------------------------------------- */

.nx-page-hero {
  padding: 56px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--nx-blue-50) 0%, var(--nx-white) 100%);
}

.nx-page-hero__title {
  margin: 0 0 var(--nx-space-3);
  font-size: 32px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-page-hero__subline {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

@media (min-width: 768px) {
  .nx-page-hero {
    padding: 80px 0;
  }

  .nx-page-hero__title {
    font-size: 44px;
  }

  .nx-page-hero__subline {
    font-size: 17px;
  }
}

/* --------------------------------------------------------------------- */
/* About — Why                                                           */
/* --------------------------------------------------------------------- */

.nx-about-why {
  padding: 64px 0;
}

.nx-about-why__head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto var(--nx-space-8);
}

.nx-about-why__title {
  margin: 0 0 var(--nx-space-2);
  font-size: 26px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-about-why__subline {
  margin: 0;
  font-size: 15px;
  color: var(--nx-gray-500);
}

.nx-about-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-4);
}

@media (min-width: 768px) {
  .nx-about-why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-about-why__card {
  position: relative;
  padding: var(--nx-space-6);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
}

.nx-about-why__num {
  display: block;
  margin-bottom: var(--nx-space-3);
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-blue);
}

.nx-about-why__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--nx-gray-700);
}

/* --------------------------------------------------------------------- */
/* About — Vision                                                        */
/* --------------------------------------------------------------------- */

.nx-about-vision {
  padding: 64px 0;
  background: var(--nx-gray-100);
}

.nx-about-vision__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--nx-space-8);
}

.nx-about-vision__title {
  margin: 0 0 var(--nx-space-3);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-blue);
}

.nx-about-vision__headline {
  margin: 0 0 var(--nx-space-3);
  font-size: 26px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-about-vision__statement {
  margin: 0 0 var(--nx-space-2);
  font-size: 16px;
  font-weight: 600;
  color: var(--nx-gray-700);
}

.nx-about-vision__market {
  margin: 0;
  font-size: 14px;
  color: var(--nx-gray-500);
}

.nx-about-vision__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-4);
}

@media (min-width: 640px) {
  .nx-about-vision__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-about-vision__pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-about-vision__pillar {
  padding: var(--nx-space-5) var(--nx-space-4);
  border-radius: var(--nx-radius-md);
  background: var(--nx-white);
  border: 1px solid var(--nx-gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-ink);
  text-align: center;
}

.nx-about-vision__foundation {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-3);
}

@media (min-width: 768px) {
  .nx-about-vision__foundation {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-about-vision__foundation-item {
  padding: var(--nx-space-4);
  border-radius: var(--nx-radius-md);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------------- */
/* About — Core Value (N-I-M)                                            */
/* --------------------------------------------------------------------- */

.nx-about-core {
  padding: 64px 0 80px;
}

.nx-about-core__head {
  text-align: center;
  margin: 0 auto var(--nx-space-8);
}

.nx-about-core__title {
  margin: 0 0 var(--nx-space-2);
  font-size: 26px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-about-core__subline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-gray-500);
}

.nx-about-core__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-4);
}

@media (min-width: 768px) {
  .nx-about-core__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-about-core__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-8) var(--nx-space-4);
  border-radius: var(--nx-radius-lg);
  color: var(--nx-white);
  text-align: center;
}

.nx-about-core__item--n {
  background: var(--nx-red);
}

.nx-about-core__item--i {
  background: #d9a400;
}

.nx-about-core__item--m {
  background: #0b8f96;
}

.nx-about-core__letter {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.nx-about-core__word {
  font-size: 18px;
  font-weight: 700;
}

.nx-about-core__th {
  font-size: 14px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------- */
/* About — CTA                                                           */
/* --------------------------------------------------------------------- */

.nx-about-cta {
  padding: 56px 0 80px;
}

.nx-about-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-4);
  text-align: center;
}

.nx-about-cta__text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-about-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--nx-space-8);
  border-radius: 999px;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--nx-shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nx-about-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(9, 103, 179, 0.25);
}

/* --------------------------------------------------------------------- */
/* Careers                                                                */
/* --------------------------------------------------------------------- */

.nx-careers-intro {
  padding: 0 0 48px;
}

.nx-careers-intro p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--nx-gray-700);
  text-align: center;
}

.nx-careers-benefits {
  padding: 48px 0;
  background: var(--nx-gray-100);
}

.nx-careers-benefits__title {
  margin: 0 0 var(--nx-space-6);
  font-size: 22px;
  font-weight: 700;
  color: var(--nx-ink);
  text-align: center;
}

.nx-careers-benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .nx-careers-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-careers-benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-careers-benefits__grid li {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-4);
  border-radius: var(--nx-radius-md);
  background: var(--nx-white);
  border: 1px solid var(--nx-gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-ink);
}

.nx-careers-benefits__grid svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--nx-blue);
}

.nx-careers-cta {
  padding: 48px 0;
}

.nx-careers-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-6);
  text-align: center;
}

@media (min-width: 640px) {
  .nx-careers-cta__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.nx-careers-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--nx-space-8);
  border-radius: 999px;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--nx-shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.nx-careers-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(9, 103, 179, 0.25);
}

.nx-careers-cta__hr-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-careers-cta__hr p {
  margin: 0;
  font-size: 14px;
  color: var(--nx-gray-500);
}

.nx-careers-jobs {
  padding: 48px 0 80px;
}

.nx-careers-jobs__head {
  text-align: center;
  margin: 0 auto var(--nx-space-6);
}

.nx-careers-jobs__title {
  margin: 0 0 var(--nx-space-2);
  font-size: 26px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-careers-jobs__subline {
  margin: 0;
  font-size: 14px;
  color: var(--nx-gray-500);
}

.nx-careers-jobs__list {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
  max-width: 820px;
  margin: 0 auto;
}

.nx-job {
  overflow: hidden;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  background: var(--nx-white);
}

.nx-job__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--nx-space-4) var(--nx-space-5);
  background: var(--nx-blue);
}

.nx-job__header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nx-job__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nx-white);
}

.nx-job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.nx-job__meta span {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.nx-job__body {
  padding: var(--nx-space-5);
}

.nx-job__section {
  margin-bottom: var(--nx-space-4);
}

.nx-job__section:last-child {
  margin-bottom: 0;
}

.nx-job__section h4 {
  margin: 0 0 var(--nx-space-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-blue);
}

.nx-job__section ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.nx-job__section li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-gray-700);
}

.nx-job__section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-gray-700);
}

.nx-job__apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--nx-space-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-blue);
  text-decoration: none;
}

.nx-job__apply:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------- */
/* Resume / job application form                                         */
/* --------------------------------------------------------------------- */

.nx-resume {
  padding: 48px 0 80px;
}

.nx-resume__container {
  max-width: 760px;
}

.nx-resume__card {
  padding: var(--nx-space-6);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
}

@media (min-width: 768px) {
  .nx-resume__card {
    padding: var(--nx-space-8);
  }
}

.nx-resume__card fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nx-resume__legend {
  margin: 0 0 var(--nx-space-5);
  padding: 0;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--nx-blue);
}

.nx-field--full {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--nx-space-4);
}

.nx-field--full label {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-gray-700);
}

.nx-resume__hint {
  color: var(--nx-red);
  font-weight: 400;
  font-size: 12px;
}

.nx-input--file {
  height: auto;
  padding: 10px var(--nx-space-4);
}

.nx-input--textarea {
  height: auto;
  min-height: 90px;
  padding: 12px var(--nx-space-4);
  resize: vertical;
}

.nx-resume__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: var(--nx-space-2);
  border: none;
  border-radius: 999px;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: var(--nx-font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (min-width: 640px) {
  .nx-resume__submit {
    width: auto;
    padding: 0 var(--nx-space-8);
  }
}

@media (hover: hover) {
  .nx-resume__submit:hover {
    background: var(--nx-blue-dark);
  }
}

.nx-resume__success {
  display: none;
  padding: var(--nx-space-8) var(--nx-space-4);
  text-align: center;
}

.nx-resume__success svg {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--nx-space-4);
  color: var(--nx-blue);
}

.nx-resume__success h2 {
  margin: 0 0 var(--nx-space-2);
  font-size: 22px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-resume__success p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-gray-500);
}

.nx-resume__pdf {
  margin: 0 0 var(--nx-space-4);
  font-size: 14px;
}

.nx-resume__pdf a {
  color: var(--nx-blue);
  font-weight: 600;
  text-decoration: none;
}

.nx-resume__pdf a:hover {
  text-decoration: underline;
}

.nx-resume__subhead {
  margin: var(--nx-space-2) 0 var(--nx-space-4);
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
  margin-bottom: var(--nx-space-3);
}

.nx-map-btn {
  height: 40px;
  padding: 0 var(--nx-space-4);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-white);
  color: var(--nx-ink);
  font-family: var(--nx-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .nx-map-btn:hover {
    border-color: var(--nx-blue);
    background: var(--nx-blue-50);
  }
}

.nx-map-btn--primary {
  border-color: var(--nx-blue);
  background: var(--nx-blue);
  color: var(--nx-white);
}

@media (hover: hover) {
  .nx-map-btn--primary:hover {
    background: var(--nx-blue-dark);
  }
}

.nx-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
}

.nx-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--nx-gray-200);
  border-radius: 999px;
  font-size: 13px;
  color: var(--nx-ink);
  cursor: pointer;
}

.nx-radio input[type="radio"] {
  accent-color: var(--nx-blue);
}

.nx-radio--with-input {
  border-radius: var(--nx-radius-sm);
}

.nx-radio--with-input .nx-input {
  height: 34px;
  width: 160px;
}

/* --------------------------------------------------------------------- */
/* Forgot password                                                       */
/* --------------------------------------------------------------------- */

.nx-forgot {
  padding: 48px 0 80px;
}

.nx-forgot__container {
  max-width: 440px;
}

.nx-forgot__card {
  padding: var(--nx-space-6);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
}

.nx-forgot__card fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nx-forgot__alert {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  margin-bottom: var(--nx-space-4);
  padding: var(--nx-space-3) var(--nx-space-4);
  border-radius: var(--nx-radius-sm);
  background: #fdecea;
  color: var(--nx-red);
  font-size: 13px;
}

.nx-forgot__alert svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.nx-forgot__step {
  margin-top: var(--nx-space-4);
  padding-top: var(--nx-space-4);
  border-top: 1px solid var(--nx-gray-200);
}

.nx-forgot__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-bottom: var(--nx-space-4);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-white);
  color: var(--nx-ink);
  font-family: var(--nx-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nx-forgot__step .nx-forgot__btn:last-child {
  margin-bottom: 0;
}

@media (hover: hover) {
  .nx-forgot__btn:hover {
    border-color: var(--nx-blue);
    background: var(--nx-blue-50);
  }
}

.nx-forgot__btn--primary {
  border-color: var(--nx-blue);
  background: var(--nx-blue);
  color: var(--nx-white);
}

@media (hover: hover) {
  .nx-forgot__btn--primary:hover {
    background: var(--nx-blue-dark);
  }
}

.nx-login-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-3);
  justify-content: space-between;
  margin-top: var(--nx-space-2);
  font-size: 13px;
}

.nx-login-page__links a {
  color: var(--nx-blue);
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .nx-login-page__links a:hover {
    text-decoration: underline;
  }
}

/* --------------------------------------------------------------------- */
/* Tracking                                                               */
/* --------------------------------------------------------------------- */

.nx-tracking-search {
  padding: 0 0 40px;
}

.nx-tracking-search__inner {
  max-width: 640px;
  text-align: center;
}

.nx-tracking-search__row {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

@media (min-width: 640px) {
  .nx-tracking-search__row {
    flex-direction: row;
  }
}

.nx-tracking-search__row .selectize-control {
  flex: 1;
  min-width: 0;
}

.nx-tracking-search__row .selectize-input {
  min-height: 52px;
  border: 1px solid var(--nx-gray-200) !important;
  border-radius: var(--nx-radius-sm) !important;
  box-shadow: none !important;
  font-family: var(--nx-font);
  font-size: 15px;
  align-items: center;
}

.nx-tracking-search__row .selectize-input.focus {
  border-color: var(--nx-blue) !important;
}

.nx-tracking-search__submit {
  height: 52px;
  padding: 0 var(--nx-space-8);
  border: none;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: var(--nx-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .nx-tracking-search__submit:hover {
    background: var(--nx-blue-dark);
  }
}

.nx-tracking-search__error {
  margin-top: var(--nx-space-2);
  color: var(--nx-red);
  font-size: 13px;
}

.nx-tracking-search__hint {
  margin: var(--nx-space-3) 0 0;
  font-size: 13px;
  color: var(--nx-gray-500);
}

.nx-tracking-search__servererror {
  margin: var(--nx-space-4) 0 0;
  color: var(--nx-red);
  font-size: 18px;
  text-align: center;
}

.nx-tracking-results {
  padding: 0 0 80px;
}

.nx-tracking-list {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-6);
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nx-tracking-card {
  padding: var(--nx-space-6);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
}

.nx-tracking-card__head {
  margin-bottom: var(--nx-space-3);
}

.nx-tracking-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-3);
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-tracking-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 var(--nx-space-3);
  border: 1px solid var(--nx-blue);
  border-radius: 999px;
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: var(--nx-font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nx-tracking-card__action--ghost {
  background: var(--nx-white);
  color: var(--nx-blue);
}

.nx-tracking-card__gps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
  margin-bottom: var(--nx-space-4);
}

.nx-tracking-card__error {
  margin: 0 0 var(--nx-space-4);
  color: var(--nx-red);
  font-size: 15px;
}

.nx-tracking-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-tracking-timeline__item {
  display: flex;
  gap: var(--nx-space-3);
  padding-bottom: var(--nx-space-5);
  position: relative;
}

.nx-tracking-timeline__item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--nx-gray-200);
}

.nx-tracking-timeline__item:last-child::before {
  display: none;
}

.nx-tracking-timeline__dot {
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--nx-gray-200);
}

.nx-tracking-timeline__item.is-latest .nx-tracking-timeline__dot {
  background: var(--nx-blue);
  box-shadow: 0 0 0 3px var(--nx-blue-50);
}

.nx-tracking-timeline__date {
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--nx-gray-500);
}

.nx-tracking-timeline__item.is-latest .nx-tracking-timeline__date {
  color: var(--nx-blue);
  font-weight: 600;
}

.nx-tracking-timeline__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--nx-ink);
}

.nx-tracking-timeline__desc.is-warn {
  color: var(--nx-red);
}

.nx-tracking-timeline__ref {
  font-size: 13px;
  color: var(--nx-gray-500);
}

.nx-tracking-timeline__done {
  margin-top: var(--nx-space-2);
  padding-top: var(--nx-space-4);
  border-top: 1px solid var(--nx-gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-blue);
}

/* Generic modal used by tracking's COD / GPS popups */

.nx-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: var(--nx-space-4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nx-modal.is-open {
  display: flex;
}

.nx-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 31, 0.5);
}

.nx-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: auto 0;
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
  box-shadow: var(--nx-shadow-md);
  overflow: hidden;
}

.nx-modal__close {
  position: absolute;
  top: var(--nx-space-3);
  right: var(--nx-space-3);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--nx-gray-100);
  color: var(--nx-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.nx-modal__body {
  padding: var(--nx-space-6);
}

.nx-modal__label {
  margin: 0 0 var(--nx-space-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--nx-ink);
  text-align: center;
}

.nx-modal__input {
  width: 100%;
  height: 46px;
  padding: 0 var(--nx-space-4);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
  font-family: var(--nx-font);
  font-size: 15px;
  text-align: center;
  box-sizing: border-box;
}

.nx-modal__input:focus {
  border-color: var(--nx-blue);
  outline: none;
}

.nx-modal__footer {
  padding: 0 var(--nx-space-6) var(--nx-space-6);
}

.nx-modal__confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: var(--nx-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

@media (hover: hover) {
  .nx-modal__confirm:hover {
    background: var(--nx-blue-dark);
  }
}

/* --------------------------------------------------------------------- */
/* Service points                                                        */
/* --------------------------------------------------------------------- */

.nx-service-featured {
  padding: 48px 0;
  background: var(--nx-gray-100);
}

.nx-service-featured__title {
  margin: 0 0 var(--nx-space-5);
  font-size: 22px;
  font-weight: 700;
  color: var(--nx-ink);
  text-align: center;
}

.nx-service-featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-4);
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .nx-service-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nx-service-featured__card {
  overflow: hidden;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  background: var(--nx-white);
}

.nx-service-featured__card-head {
  padding: var(--nx-space-4) var(--nx-space-5);
  background: var(--nx-blue);
}

.nx-service-featured__card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-white);
}

.nx-service-featured__card-body {
  padding: var(--nx-space-5);
}

.nx-service-featured__card-body p {
  margin: 0 0 var(--nx-space-3);
  font-size: 14px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-service-featured__gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-blue);
  text-decoration: none;
}

.nx-service-featured__gps svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nx-service-featured__gps:hover {
  text-decoration: underline;
}

.nx-service-filter {
  padding: 48px 0 80px;
}

.nx-service-filter__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-4);
  max-width: 560px;
  margin: 0 auto var(--nx-space-8);
}

.nx-service-filter__form .nx-field {
  flex: 1;
  min-width: 180px;
}

#LoadingZone {
  height: 24px;
}

/* --- Results grid: markup is generated by existing page JS (setBoxProvince),
   class names below are dictated by that script and kept as-is; only
   styled here, not renamed. --- */

.nx-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-4);
}

@media (min-width: 640px) {
  .nx-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-service-grid .grid-item {
  overflow: hidden;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  background: var(--nx-white);
}

.nx-service-grid .post-body {
  padding: 0 0 var(--nx-space-5);
}

.nx-service-grid .post-title {
  display: block;
  margin: 0 0 var(--nx-space-3) !important;
  padding: var(--nx-space-4) var(--nx-space-5);
  background: var(--nx-blue);
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-white) !important;
}

.nx-service-grid .post-body p {
  margin: 0 0 6px;
  padding: 0 var(--nx-space-5);
  font-size: 13px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-service-grid .social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  border-radius: 999px;
  background: var(--nx-blue-50);
  color: var(--nx-blue);
  vertical-align: middle;
}

.nx-service-grid .icon-map,
.nx-service-grid .icon-compass {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='10' r='3'/><path d='M12 21s7-6.5 7-11.5A7 7 0 0 0 5 9.5C5 14.5 12 21 12 21z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='10' r='3'/><path d='M12 21s7-6.5 7-11.5A7 7 0 0 0 5 9.5C5 14.5 12 21 12 21z'/></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.nx-service-grid .btn-link-info {
  color: var(--nx-blue) !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  vertical-align: middle;
}

.nx-service-grid .btn-link-info:hover {
  text-decoration: underline;
}

/* Small Bootstrap-utility shims still referenced by this page's own
   JS-generated markup (see setBoxProvince above) */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.pl-0 { padding-left: 0 !important; }

/* --------------------------------------------------------------------- */
/* Contact us                                                             */
/* --------------------------------------------------------------------- */

.nx-contact {
  padding: 48px 0 80px;
}

.nx-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-8);
}

@media (min-width: 900px) {
  .nx-contact__grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
}

.nx-contact__brand {
  margin: 0 0 var(--nx-space-4);
  font-size: 20px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-contact__address {
  margin-bottom: var(--nx-space-4);
}

.nx-contact__address h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-blue);
}

.nx-contact__address p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-contact__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: var(--nx-space-5) 0 var(--nx-space-3);
  font-size: 14px;
  color: var(--nx-ink);
}

.nx-contact__phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--nx-blue);
}

.nx-contact__phone a {
  color: inherit;
  text-decoration: none;
}

.nx-contact__phone a:hover {
  color: var(--nx-blue);
}

.nx-contact__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-blue);
  text-decoration: none;
}

.nx-contact__social svg {
  width: 18px;
  height: 18px;
}

.nx-contact__social:hover {
  text-decoration: underline;
}

.nx-contact__photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--nx-space-6);
  border-radius: var(--nx-radius-md);
}

.nx-contact__form-wrap {
  padding: var(--nx-space-6);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
}

@media (min-width: 768px) {
  .nx-contact__form-wrap {
    padding: var(--nx-space-8);
  }
}

.nx-contact__form-title {
  margin: 0 0 var(--nx-space-5);
  font-size: 16px;
  font-weight: 700;
  color: var(--nx-blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nx-contact__captcha {
  margin-bottom: var(--nx-space-4);
}

.nx-contact__captcha label {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-red);
}

.nx-contact__error {
  margin-bottom: var(--nx-space-4);
  padding: var(--nx-space-3) var(--nx-space-4);
  border-radius: var(--nx-radius-sm);
  background: #fdecea;
  color: var(--nx-red);
  font-size: 13px;
}

.nx-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-blue);
  color: var(--nx-white);
  font-family: var(--nx-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (min-width: 640px) {
  .nx-contact__submit {
    width: auto;
    padding: 0 var(--nx-space-8);
  }
}

@media (hover: hover) {
  .nx-contact__submit:hover {
    background: var(--nx-blue-dark);
  }
}

.nx-contact__success {
  padding: var(--nx-space-8) var(--nx-space-4);
  text-align: center;
}

.nx-contact__success svg {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--nx-space-4);
  color: var(--nx-blue);
}

.nx-contact__success .nx-hero__app-stores {
  justify-content: center;
  margin-top: var(--nx-space-4);
}

.nx-contact__success p + p {
  margin-top: var(--nx-space-3);
}

.nx-contact__success p {
  margin: 0;
  font-size: 15px;
  color: var(--nx-ink);
}

/* --------------------------------------------------------------------- */
/* Clear claim                                                            */
/* --------------------------------------------------------------------- */

.nx-clearclaim__hint {
  margin: 0 0 var(--nx-space-4);
  font-size: 13px;
  color: var(--nx-gray-500);
}

.nx-clearclaim__hint span {
  color: var(--nx-red);
}

.nx-clearclaim__hint-inline {
  font-weight: 400;
  color: var(--nx-red);
  font-size: 12px;
}

.nx-clearclaim__required {
  color: var(--nx-red);
}

.nx-clearclaim__notice {
  margin: var(--nx-space-2) 0 var(--nx-space-4);
  padding: var(--nx-space-3) var(--nx-space-4);
  border-radius: var(--nx-radius-sm);
  background: #fdecea;
  color: var(--nx-red);
  font-size: 12px;
  line-height: 1.6;
}

.nx-modal__dialog--wide {
  max-width: 620px;
}

/* --------------------------------------------------------------------- */
/* Claim status                                                           */
/* --------------------------------------------------------------------- */

.nx-claimstatus__search-row {
  display: flex;
  gap: var(--nx-space-3);
}

.nx-claimstatus__search-row .nx-input {
  flex: 1;
}

.nx-claimstatus__search-btn {
  flex-shrink: 0;
  padding: 0 var(--nx-space-6);
  border: none;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nx-claimstatus__search-btn:hover {
  background: var(--nx-blue-dark);
}

@media (max-width: 480px) {
  .nx-claimstatus__search-row {
    flex-direction: column;
  }
}

.nx-status-steps {
  list-style: none;
  margin: var(--nx-space-6) 0;
  padding: 0;
  position: relative;
}

.nx-status-steps__item {
  position: relative;
  padding: 0 0 var(--nx-space-6) var(--nx-space-8);
  min-height: 1px;
}

.nx-status-steps__item:last-child {
  padding-bottom: 0;
}

.nx-status-steps__item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--nx-gray-200);
}

.nx-status-steps__item:last-child::before {
  display: none;
}

.nx-status-steps__dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nx-gray-300);
}

.nx-status-steps__item.is-done .nx-status-steps__dot {
  background: var(--nx-blue);
}

.nx-status-steps__item.is-done::before {
  background: var(--nx-blue);
}

.nx-status-steps__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-gray-500);
}

.nx-status-steps__item.is-done .nx-status-steps__label {
  color: var(--nx-ink);
}

.nx-status-steps__date {
  display: block;
  font-size: 13px;
  color: var(--nx-gray-500);
  margin-top: 2px;
}

.nx-claimstatus__details {
  margin: var(--nx-space-6) 0 0;
  border-top: 1px solid var(--nx-gray-200);
}

.nx-claimstatus__row {
  display: flex;
  gap: var(--nx-space-4);
  padding: var(--nx-space-3) 0;
  border-bottom: 1px solid var(--nx-gray-200);
  font-size: 14px;
}

.nx-claimstatus__row dt {
  flex: 0 0 40%;
  color: var(--nx-gray-500);
  margin: 0;
}

.nx-claimstatus__row dd {
  flex: 1;
  margin: 0;
  color: var(--nx-ink);
  font-weight: 500;
  text-align: right;
}

@media (max-width: 480px) {
  .nx-claimstatus__row {
    flex-direction: column;
    gap: 2px;
  }

  .nx-claimstatus__row dd {
    text-align: left;
  }
}

/* --------------------------------------------------------------------- */
/* Sitemap                                                                */
/* --------------------------------------------------------------------- */

.nx-sitemap {
  padding: 48px 0 80px;
}

.nx-sitemap__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-8);
}

@media (min-width: 640px) {
  .nx-sitemap__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .nx-sitemap__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-sitemap__heading {
  margin: 0 0 var(--nx-space-3);
  font-size: 16px;
  font-weight: 700;
}

.nx-sitemap__heading a {
  color: var(--nx-ink);
}

.nx-sitemap__heading a:hover {
  color: var(--nx-blue);
}

.nx-sitemap__link {
  margin: 0 0 var(--nx-space-2);
  padding-left: var(--nx-space-3);
  font-size: 14px;
  color: var(--nx-gray-500);
}

.nx-sitemap__link a {
  color: var(--nx-gray-500);
}

.nx-sitemap__link a:hover {
  color: var(--nx-blue);
}

/* --------------------------------------------------------------------- */
/* Legal documents (privacy notice, terms of delivery)                   */
/* --------------------------------------------------------------------- */

.nx-legal {
  padding: 48px 0 80px;
}

.nx-legal__doc {
  max-width: 900px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--nx-ink);
}

.nx-legal__p {
  margin: 0 0 var(--nx-space-4);
}

.nx-legal__h2 {
  margin: var(--nx-space-6) 0 var(--nx-space-3);
  font-size: 20px;
  font-weight: 700;
  color: var(--nx-blue);
  line-height: 1.5;
}

.nx-legal__h3 {
  margin: var(--nx-space-4) 0 var(--nx-space-2);
  font-size: 16px;
  font-weight: 700;
  color: var(--nx-blue);
  line-height: 1.5;
}

.nx-legal__bullet {
  margin: var(--nx-space-1) 0 0 20px;
  padding-right: 20px;
}

.nx-legal__bullet--1 {
  margin-left: 20px;
  padding-right: 20px;
}

.nx-legal__bullet--2 {
  margin-left: 40px;
  padding-right: 40px;
}

.nx-legal__bullet--3 {
  margin-left: 60px;
  padding-right: 60px;
}

.nx-legal__bullet--4 {
  margin-left: 80px;
  padding-right: 80px;
}

.nx-legal__bullet--5 {
  margin-left: 100px;
  padding-right: 100px;
}

@media (max-width: 480px) {
  .nx-legal__bullet--3 {
    margin-left: 44px;
  }

  .nx-legal__bullet--4 {
    margin-left: 56px;
  }

  .nx-legal__bullet--5 {
    margin-left: 68px;
  }
}

.nx-legal__list {
  margin: 0 0 var(--nx-space-4);
  padding-left: var(--nx-space-5);
}

.nx-legal__doc a {
  color: var(--nx-blue);
}

.nx-legal__table {
  width: 100%;
  margin: var(--nx-space-4) 0;
  border-collapse: collapse;
  font-size: 13px;
}

.nx-legal__table th,
.nx-legal__table td {
  border: 1px solid var(--nx-gray-200);
  padding: var(--nx-space-3);
  text-align: left;
  vertical-align: top;
}

.nx-legal__table th {
  background: var(--nx-blue);
  color: #fff;
  text-align: center;
}

.nx-legal__table ul {
  margin: 0;
  padding-left: var(--nx-space-4);
}

.nx-legal__table ul p {
  margin: 0 0 var(--nx-space-1);
}

.nx-legal__table-wrap {
  margin: var(--nx-space-4) 0;
}

.nx-legal__table-wrap .nx-legal__table {
  margin: 0;
}

@media (max-width: 640px) {
  .nx-legal__table-wrap .nx-legal__table,
  .nx-legal__table-wrap .nx-legal__table thead,
  .nx-legal__table-wrap .nx-legal__table tbody,
  .nx-legal__table-wrap .nx-legal__table th,
  .nx-legal__table-wrap .nx-legal__table td,
  .nx-legal__table-wrap .nx-legal__table tr {
    display: block;
    width: auto;
  }

  .nx-legal__table-wrap .nx-legal__table tr:first-child {
    display: none;
  }

  .nx-legal__table-wrap .nx-legal__table tr {
    margin-bottom: var(--nx-space-4);
    border: 1px solid var(--nx-gray-200);
    border-radius: var(--nx-radius-sm);
    overflow: hidden;
  }

  .nx-legal__table-wrap .nx-legal__table td {
    border: none;
    border-bottom: 1px solid var(--nx-gray-200);
  }

  .nx-legal__table-wrap .nx-legal__table td:last-child {
    border-bottom: none;
  }

  .nx-legal__table-wrap .nx-legal__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--nx-space-1);
    font-weight: 700;
    color: var(--nx-blue);
  }

  /* section 6 table: show the first column's value as the card's blue
     heading instead of the generic column label, and drop the second
     column's "รายละเอียด" label -- just its value */
  .nx-legal__table-wrap .nx-legal__table--parties td:first-child {
    background: var(--nx-blue);
    color: #fff;
    font-weight: 700;
  }

  .nx-legal__table-wrap .nx-legal__table--parties td:first-child::before,
  .nx-legal__table-wrap .nx-legal__table--parties td:last-child::before {
    content: none;
  }
}

/* --------------------------------------------------------------------- */
/* Sign up (newcustomer)                                                  */
/* --------------------------------------------------------------------- */

.gllpLatlonPicker {
  margin: var(--nx-space-4) 0 0;
  border: none;
  padding: 0;
}

.gllpMap {
  width: 100%;
  max-width: 500px;
  height: 250px;
  background: var(--nx-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-gray-500);
  border-radius: var(--nx-radius-sm);
}

.hide {
  display: none !important;
}

/* --------------------------------------------------------------------- */
/* News article                                                           */
/* --------------------------------------------------------------------- */

.nx-article {
  padding: 48px 0 80px;
}

.nx-article__doc {
  max-width: 800px;
  margin: 0 auto;
}

.nx-article__cover {
  width: 100%;
  height: auto;
  border-radius: var(--nx-radius-md);
  margin: 0 0 var(--nx-space-6);
}

.nx-article__lead {
  margin: 0 0 var(--nx-space-4);
  font-size: 17px;
  font-weight: 600;
  color: var(--nx-ink);
  line-height: 1.6;
}

.nx-article__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-ink);
}

.nx-article__body img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------- */
/* Fuel surcharge notice                                                  */
/* --------------------------------------------------------------------- */

.nx-fuel-notice {
  padding: 48px 0 80px;
  background: var(--nx-gray-50);
}

.nx-fuel-notice__doc {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--nx-white);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  box-shadow: 0 14px 40px rgba(11, 42, 74, 0.08);
}

.nx-fuel-notice__header {
  padding: 36px 40px 32px;
  border-bottom: 1px solid var(--nx-gray-200);
  background: linear-gradient(135deg, #f2f8fd 0%, #ffffff 100%);
}

.nx-fuel-notice__eyebrow {
  margin: 0 0 var(--nx-space-2);
  color: var(--nx-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-fuel-notice__title {
  margin: 0;
  color: var(--nx-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.nx-fuel-notice__effective {
  display: inline-block;
  margin: var(--nx-space-5) 0 0;
  padding: 10px 16px;
  color: #074f89;
  background: #e3f2fd;
  border-radius: 999px;
  font-size: 16px;
}

.nx-fuel-notice__body {
  padding: 36px 40px 44px;
  color: var(--nx-ink);
  font-size: 17px;
  line-height: 1.8;
}

.nx-fuel-notice__body p {
  margin: 0 0 var(--nx-space-5);
}

.nx-fuel-notice__body h3 {
  margin: var(--nx-space-7) 0 var(--nx-space-3);
  color: #075c9d;
  font-size: 21px;
  line-height: 1.4;
}

.nx-fuel-notice__body ul {
  margin: 0 0 var(--nx-space-6);
  padding-left: 1.4em;
}

.nx-fuel-notice__body li + li {
  margin-top: var(--nx-space-2);
}

.nx-fuel-notice__rate-table {
  margin: 0 0 var(--nx-space-6);
}

.nx-fuel-notice__rate-table img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
}

.nx-fuel-notice__note {
  padding: 16px 18px;
  border-left: 4px solid var(--nx-red);
  background: #fff5f5;
}

.nx-fuel-notice__contact {
  margin-top: var(--nx-space-7);
  padding: 24px;
  color: var(--nx-white);
  background: #075c9d;
  border-radius: var(--nx-radius-sm);
}

.nx-fuel-notice__contact h3 {
  margin: 0 0 var(--nx-space-3);
  color: var(--nx-white);
}

.nx-fuel-notice__contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.nx-fuel-notice__contact-list a {
  color: var(--nx-white);
  font-weight: 600;
  text-decoration: none;
}

.nx-fuel-notice__contact-list a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nx-fuel-notice {
    padding: 28px 0 52px;
  }

  .nx-fuel-notice__header,
  .nx-fuel-notice__body {
    padding: 26px 20px;
  }

  .nx-fuel-notice__effective {
    border-radius: var(--nx-radius-sm);
  }

  .nx-fuel-notice__body {
    font-size: 16px;
  }

  .nx-fuel-notice__contact-list {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------- */
/* Service page (บริการของเรา)                                           */
/* --------------------------------------------------------------------- */

.nx-svc-hero {
  padding: 48px 0;
  background: linear-gradient(160deg, #0b2a4a 0%, #0967b3 55%, #054d8a 100%);
  color: var(--nx-white);
  overflow: hidden;
}

.nx-svc-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-8);
  align-items: center;
}

@media (min-width: 960px) {
  .nx-svc-hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.nx-svc-hero__eyebrow {
  margin: 0 0 var(--nx-space-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd3ff;
}

.nx-svc-hero__title {
  margin: 0 0 var(--nx-space-5);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .nx-svc-hero__title {
    font-size: 34px;
  }
}

.nx-svc-hero__lead {
  margin: 0 0 var(--nx-space-4);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.nx-svc-hero__lead--en {
  margin-top: var(--nx-space-5);
  padding-top: var(--nx-space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

.nx-svc-hero__tagline {
  color: var(--nx-red);
  font-weight: 700;
  font-style: normal;
}

.nx-svc-hero__tagline--en {
  font-size: 16px;
}

.nx-svc-hero__media {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-4);
}

.nx-svc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-md);
}

.nx-svc-hero__video {
  width: 100%;
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-md);
  background: #000;
  display: block;
}

.nx-svc-section-title {
  margin: 0 0 var(--nx-space-6);
  font-size: 22px;
  font-weight: 800;
  color: var(--nx-ink);
  text-align: center;
}

/* Feature cards ----------------------------------------------------------- */

.nx-svc-cards {
  padding: 56px 0 24px;
}

.nx-svc-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-5);
}

@media (min-width: 640px) {
  .nx-svc-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-svc-cards__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-svc-card {
  display: block;
  padding: var(--nx-space-6);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .nx-svc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nx-shadow-md);
    border-color: transparent;
  }
}

.nx-svc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--nx-space-4);
  border-radius: 999px;
  background: var(--nx-blue-50);
  color: var(--nx-blue);
}

.nx-svc-card__icon svg {
  width: 24px;
  height: 24px;
}

.nx-svc-card__title {
  margin: 0 0 var(--nx-space-2);
  font-size: 16px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-svc-card__desc {
  margin: 0 0 var(--nx-space-4);
  font-size: 13px;
  line-height: 1.6;
  color: var(--nx-gray-500);
}

.nx-svc-card__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-blue);
}

/* Service detail popups (reuse the shared .nx-modal system) ------------- */

.nx-svc-modal__title {
  margin: 0 0 var(--nx-space-4);
  font-size: 20px;
  font-weight: 800;
  color: var(--nx-ink);
}

.nx-svc-modal__cta {
  display: inline-block;
  margin-top: var(--nx-space-2);
  color: var(--nx-blue);
  font-weight: 700;
  text-decoration: none;
}

.nx-svc-modal__cta:hover {
  text-decoration: underline;
}

.nx-modal__body ol,
.nx-modal__body ul {
  padding-left: var(--nx-space-5);
}

.nx-modal__body li {
  margin-bottom: var(--nx-space-2);
}

.nx-svc-modal__note {
  padding: var(--nx-space-4);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-gray-50);
  font-size: 13px;
  line-height: 1.9;
}

.nx-svc-modal__note-sub {
  margin-left: var(--nx-space-4);
  color: var(--nx-gray-500);
}

/* Gallery + other services ---------------------------------------------- */

.nx-svc-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-4);
}

.nx-svc-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--nx-radius-sm);
}

.nx-svc-other {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-5);
}

@media (min-width: 640px) {
  .nx-svc-other {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nx-svc-other__item {
  padding-left: var(--nx-space-4);
  border-left: 3px solid var(--nx-blue);
}

.nx-svc-other__item h4 {
  margin: 0 0 var(--nx-space-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-svc-other__item h4 a {
  color: var(--nx-blue);
}

.nx-svc-other__item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--nx-gray-500);
}

.nx-svc-banner {
  padding: 0 0 64px;
}

.nx-svc-card--blue {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, #0967b3, #054d8a);
  border-color: transparent;
}

.nx-svc-card--blue .nx-svc-card__title {
  color: var(--nx-white);
}

.nx-svc-card--blue .nx-svc-card__more {
  color: var(--nx-white);
  text-decoration: underline;
}

.nx-svc-modal__img {
  width: 100%;
  height: auto;
  border-radius: var(--nx-radius-sm);
}

/* --------------------------------------------------------------------- */
/* Cold Chain / COD service pages                                        */
/* --------------------------------------------------------------------- */

.nx-cc-intro {
  padding: 40px 0;
}

.nx-cc-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .nx-cc-intro__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.nx-cc-intro__media img {
  width: 100%;
  height: auto;
  border-radius: var(--nx-radius-md);
}

.nx-cc-intro__copy p {
  margin: 0 0 var(--nx-space-4);
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-gray-700);
}

.nx-cc-section {
  padding: 32px 0;
}

.nx-cc-section__title {
  margin: 0 0 var(--nx-space-5);
  font-size: 20px;
  font-weight: 800;
  color: var(--nx-blue-dark);
}

.nx-cc-section__img {
  width: 100%;
  height: auto;
  border-radius: var(--nx-radius-md);
}

.nx-cc-conditions {
  padding: var(--nx-space-6);
  border-radius: var(--nx-radius-md);
  background: linear-gradient(160deg, #0967b3, #054d8a);
  color: var(--nx-white);
}

.nx-cc-conditions__list {
  margin: 0;
  padding-left: var(--nx-space-5);
  font-size: 14px;
  line-height: 1.8;
}

.nx-cc-conditions__list li {
  margin-bottom: var(--nx-space-4);
}

.nx-cc-conditions__list li:last-child {
  margin-bottom: 0;
}

.nx-cc-conditions__sub {
  margin: var(--nx-space-2) 0 0;
  padding-left: var(--nx-space-5);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.nx-cc-conditions__note-title {
  margin: var(--nx-space-6) 0 var(--nx-space-3);
  font-weight: 700;
  font-size: 15px;
}

.nx-cc-line {
  padding: 32px 0;
}

.nx-cc-line__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-6);
  border-radius: var(--nx-radius-md);
  background: var(--nx-blue-50);
  text-align: center;
}

.nx-cc-line__inner p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-blue-dark);
}

.nx-cc-line__badge {
  height: 36px;
  width: auto;
}

.nx-cc-area {
  margin-bottom: var(--nx-space-6);
  padding: var(--nx-space-5);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-md);
}

.nx-cc-area__zone {
  margin: 0 0 var(--nx-space-2);
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-ink);
}

.nx-cc-area__label {
  margin: 0 0 var(--nx-space-3);
  font-size: 13px;
  color: var(--nx-gray-500);
}

.nx-cc-area__list {
  margin: 0;
  padding-left: var(--nx-space-5);
  font-size: 14px;
  color: var(--nx-gray-700);
  line-height: 1.8;
}

.nx-cc-area__result {
  margin-top: var(--nx-space-4);
  overflow-x: auto;
}

.nx-cc-area__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.nx-cc-area__table th,
.nx-cc-area__table td {
  border: 1px solid var(--nx-gray-200);
  padding: var(--nx-space-2) var(--nx-space-3);
  text-align: center;
}

.nx-cc-area__table th {
  background: var(--nx-blue);
  color: var(--nx-white);
}

.nx-cc-area__spacer {
  width: 8px;
  min-width: 8px;
  padding: 0 !important;
  border-color: var(--nx-gray-200) !important;
  background: var(--nx-gray-100) !important;
}

.nx-cc-area__table th.nx-cc-area__spacer {
  background: var(--nx-blue-dark) !important;
}

/* --------------------------------------------------------------------- */
/* Nim Express Moving                                                     */
/* --------------------------------------------------------------------- */

.nx-moving__map-actions {
  display: flex;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-3);
}

.nx-moving__map {
  width: 100%;
  height: 320px;
  border-radius: var(--nx-radius-sm);
  overflow: hidden;
}

.nx-moving__condition-text {
  max-height: 50vh;
  overflow-y: auto;
  padding: var(--nx-space-4);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-sm);
  margin-bottom: var(--nx-space-4);
}

.nx-moving__condition-text h4 {
  margin: var(--nx-space-5) 0 var(--nx-space-3);
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-blue-dark);
}

.nx-moving__condition-text h4:first-child {
  margin-top: 0;
}

.nx-moving__condition-list {
  margin: 0;
  padding-left: var(--nx-space-5);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--nx-ink);
}

.nx-moving__condition-list li {
  margin-bottom: var(--nx-space-3);
}

.nx-moving__condition-sub {
  margin: var(--nx-space-2) 0 0;
  padding-left: var(--nx-space-5);
  color: var(--nx-gray-500);
}

.nx-moving__condition-actions {
  display: flex;
  gap: var(--nx-space-3);
}

.nx-moving__condition-actions button {
  flex: 1;
}

/* --------------------------------------------------------------------- */
/* Brand gateway (NiM Express / Seal Cold Chain chooser)                 */
/* --------------------------------------------------------------------- */

.nx-gate {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: var(--nx-font);
}

.nx-gate__half {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  min-height: 260px;
}

.nx-gate__half--nim {
  background: radial-gradient(120% 140% at 30% 20%, #1580d1 0%, #0967b3 45%, #043b6e 100%);
}

.nx-gate__half--seal {
  background: radial-gradient(120% 140% at 70% 80%, #17b3a6 0%, #0f8b81 45%, #06322e 100%);
}

.nx-gate__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.nx-gate__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  will-change: transform;
}

.nx-gate__half--nim .nx-gate__orb {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
}

.nx-gate__half--seal .nx-gate__orb {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%);
}

.nx-gate__orb--1 { width: 220px; height: 220px; top: -80px; left: -40px; animation: nx-gate-float-a 14s ease-in-out infinite; }
.nx-gate__orb--2 { width: 200px; height: 200px; bottom: -80px; right: -40px; animation: nx-gate-float-b 18s ease-in-out infinite; }
.nx-gate__orb--3 { width: 120px; height: 120px; top: 20%; right: 8%; animation: nx-gate-float-a 11s ease-in-out infinite reverse; }

@keyframes nx-gate-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

@keyframes nx-gate-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 16px) scale(1.05); }
}

.nx-gate__routes {
  position: absolute;
  inset: -20% -20%;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.14) 0px,
    rgba(255, 255, 255, 0.14) 2px,
    transparent 2px,
    transparent 46px
  );
  animation: nx-gate-routes 9s linear infinite;
  opacity: 0.5;
}

@keyframes nx-gate-routes {
  from { transform: translateX(0); }
  to { transform: translateX(46px); }
}

.nx-gate__frost {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg stroke='white' stroke-width='1.1' stroke-linecap='round' opacity='0.55'%3E%3Cline x1='16' y1='4' x2='16' y2='28'/%3E%3Cline x1='4' y1='16' x2='28' y2='16'/%3E%3Cline x1='7' y1='7' x2='25' y2='25'/%3E%3Cline x1='25' y1='7' x2='7' y2='25'/%3E%3Cline x1='16' y1='7' x2='13' y2='10'/%3E%3Cline x1='16' y1='7' x2='19' y2='10'/%3E%3Cline x1='16' y1='25' x2='13' y2='22'/%3E%3Cline x1='16' y1='25' x2='19' y2='22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 13px 13px;
  animation: nx-gate-frost 6s ease-in-out infinite;
}

@keyframes nx-gate-frost {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(-6px); }
}

.nx-gate__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-4);
  padding: var(--nx-space-8) var(--nx-space-4);
  text-align: center;
}

.nx-gate__eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.nx-gate__logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--nx-space-4) var(--nx-space-6);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.nx-gate__half:hover .nx-gate__logo-plate {
  transform: scale(1.05);
}

.nx-gate__logo {
  height: 40px;
  width: auto;
  display: block;
}

.nx-gate__logo--seal {
  height: 56px;
}

.nx-gate__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-3) var(--nx-space-6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: var(--nx-white);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nx-gate__half:hover .nx-gate__cta {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.9);
}

.nx-gate__arrow {
  transition: transform 0.2s ease;
}

.nx-gate__half:hover .nx-gate__arrow {
  transform: translateX(4px);
}

@media (min-width: 900px) {
  .nx-gate__eyebrow {
    font-size: 16px;
  }

  .nx-gate__logo {
    height: 72px;
  }

  .nx-gate__logo--seal {
    height: 104px;
  }

  .nx-gate__cta {
    font-size: 16px;
    padding: var(--nx-space-4) var(--nx-space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-gate__orb,
  .nx-gate__routes,
  .nx-gate__frost,
  .nx-gate__seam-path {
    animation: none;
  }
}
