/* Shared service-page corrections. Loaded after Elementor's generated rules. */
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .cta-form-band-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 64px 0 !important;
  background: #04243d;
}
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .container.cta-form-band-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(28px, 4vw, 56px) !important;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .cta-band-left {
  flex: 0.95 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 580px !important;
}
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .cta-band-right {
  flex: 1.05 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .consult-card-white {
  width: 100% !important;
  padding: 32px !important;
  border-radius: 20px;
  box-sizing: border-box;
}
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .consult-form .form-control {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px;
  font-size: 16px !important;
  box-sizing: border-box;
  scroll-margin-bottom: 100px;
}
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .consult-form .form-row-2col {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
}
body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .consult-form .btn-orange {
  white-space: normal;
  min-height: 48px;
  line-height: 1.4;
}

/* Hero photo matches the reference: a 580px cover crop on desktop.
   Tablet and mobile heights stay in wp-import-export.css. */

/* Only checkboxes are hidden. Quantity fields remain editable. */
body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-package-option input.ff-package-quantity {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 112px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 44px !important;
  font-size: 16px !important;
  box-sizing: border-box;
  scroll-margin-bottom: 100px;
}
body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-package-option > input:focus-visible + span {
  outline: 2px solid #f05828;
  outline-offset: 3px;
}

/* The original quick links stay in the document at every viewport size. */
body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-quicklinks-section:not(.is-compact) .ff-quicklinks-grid {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  align-items: stretch !important;
}
body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-quicklinks-grid > .elementor-element {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-quicklinks-section:not(.is-compact) a.ff-quicklink-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 180px !important;
  padding: 22px 18px !important;
  box-sizing: border-box;
  transform: none !important;
}
body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-quicklinks-section:not(.is-compact) :is(.ff-quicklink-title, .ff-quicklink-sub, .ff-quicklink-btn) {
  display: block !important;
}
body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-quicklinks-section:not(.is-compact) :is(.ff-quicklink-icon, .ff-quicklink-compact-label) {
  display: none !important;
}

/* Separate navigation avoids moving/re-sizing the source cards on scroll. */
.ff-shortcut-dock {
  position: fixed;
  z-index: 950;
  top: 50%;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
}
.ff-shortcut-dock[hidden] { display: none !important; }
.ff-shortcut-dock a,
.ff-shortcut-dock .ff-shortcut-tracking {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #04243d;
  color: #fff;
  box-shadow: 0 4px 12px #04243d26;
}
.ff-shortcut-dock .ff-shortcut-tracking { display: none; padding: 0; border: 0; background: #f05828; }
.ff-shortcut-dock .ff-shortcut-tracking svg { width: 26px; height: 26px; }
.ff-shortcut-dock a:is(:hover, :focus-visible, [aria-current="location"]),
.ff-shortcut-dock .ff-shortcut-hub { background: #f05828; }
.ff-shortcut-dock a:focus-visible { outline: 3px solid #f05828; outline-offset: 3px; }
.ff-shortcut-dock .ff-quicklink-icon,
.ff-shortcut-dock .ff-quicklink-icon svg { display: block; width: 26px; height: 26px; }
.ff-shortcut-dock .ff-icon-accent { stroke: #ff9d70; }
.ff-shortcut-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  width: max-content;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #04243d;
  color: #fff;
  font: 600 13px/1.4 Inter, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (hover: hover) {
  .ff-shortcut-dock a:hover .ff-shortcut-label { opacity: 1; visibility: visible; }
}
.ff-shortcut-dock a:focus-visible .ff-shortcut-label { opacity: 1; visibility: visible; }

/* Desktop rail matches the reference compact dock: 64px tiles, then each icon
   slides in from the right, top to bottom. */
@media (min-width: 1200px) {
  .ff-shortcut-dock {
    right: 18px;
    gap: 12px;
  }
  .ff-shortcut-dock > a {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    background: linear-gradient(145deg, #164463, #04243d 78%);
    box-shadow: 0 6px 18px rgba(4, 36, 61, .18), inset 0 1px 0 rgba(255, 255, 255, .1);
    animation: ff-dock-enter .5s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .ff-shortcut-dock > a:nth-child(2) { animation-delay: .06s; }
  .ff-shortcut-dock > a:nth-child(3) { animation-delay: .12s; }
  .ff-shortcut-dock > a:nth-child(4) { animation-delay: .18s; }
  .ff-shortcut-dock > a:nth-child(5) { animation-delay: .24s; }
  .ff-shortcut-dock > a.ff-shortcut-hub {
    border-color: rgba(255, 255, 255, .3);
    background: linear-gradient(145deg, #fa7847, #f05828 75%);
    box-shadow: 0 6px 18px rgba(240, 88, 40, .23), inset 0 1px 0 rgba(255, 255, 255, .25);
  }
  .ff-shortcut-dock .ff-quicklink-icon,
  .ff-shortcut-dock .ff-quicklink-icon svg {
    width: 30px;
    height: 30px;
  }
  .ff-shortcut-dock > a:is(:hover, :focus-visible) .ff-quicklink-icon {
    transform: translateY(-1px) scale(1.08);
  }
  .ff-shortcut-dock > a:is(:hover, :focus-visible) .ff-icon-draw { animation: ff-icon-draw .65s ease both; }
  .ff-shortcut-dock > a:is(:hover, :focus-visible) .ff-icon-truck { animation: ff-icon-drive .65s ease both; }
  .ff-shortcut-dock > a:is(:hover, :focus-visible) .ff-icon-road { animation: ff-icon-road .65s ease both; }
  .ff-shortcut-dock > a:is(:hover, :focus-visible) .ff-icon-keys { animation: ff-icon-tap .55s ease both; }
  .ff-shortcut-dock > a:is(:hover, :focus-visible) .ff-icon-tile { animation: ff-icon-tile .5s ease both; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-shortcut-dock > a,
  .ff-shortcut-dock > a * {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 1200px) {
  body:not(.elementor-editor-active) .elementor .page-fulfillment #bang-gia-fulfillment > .container > .e-con,
  body:not(.elementor-editor-active) .elementor .page-fulfillment #bang-gia-fulfillment ~ section > .container > .e-con {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-policy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-policy-header {
    grid-template-columns: 42px minmax(0, 1fr) 24px !important;
  }
}
@media (max-width: 1199px) {
  body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .container.cta-form-band-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    width: calc(100% - 48px) !important;
  }
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-quicklinks-section:not(.is-compact) .ff-quicklinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .ff-shortcut-dock {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    flex-direction: row;
    gap: 6px;
    padding: 8px;
    border: 1px solid #d5dee8;
    border-radius: 18px;
    background: #fffffff5;
    transform: translateX(-50%);
    box-shadow: 0 5px 20px #04243d26;
  }
  .ff-shortcut-dock a,
  .ff-shortcut-dock .ff-shortcut-tracking { width: 44px; height: 44px; border-radius: 12px; }
  .ff-shortcut-dock .ff-shortcut-tracking { display: grid; }
  .ff-shortcut-label { display: none; }
  body:has(.page-fulfillment) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.ff-dock-visible .speego-track-fab { display: none !important; }
  body.ff-dock-in-contact .speego-track-fab,
  body.ff-dock-is-editing .speego-track-fab,
  body:has(#speego-cookie-consent:not([hidden])) .ff-shortcut-dock { display: none !important; }
}
@media (max-width: 600px) {
  /* Use the phone width for the policy cards instead of a generated 358px track. */
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-policy-list {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-policy-list > .elementor-widget {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .ff-shortcut-dock {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: none;
  }
  body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .cta-form-band-section { padding: 40px 0 !important; }
  body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .container.cta-form-band-grid { width: calc(100% - 32px) !important; }
  body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .consult-card-white { padding: 24px !important; }
  body:not(.elementor-editor-active) .elementor :is(.page-fulfillment, .page-import-export) .consult-form .form-row-2col {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-quicklinks-section:not(.is-compact) .ff-quicklinks-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-policy-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
  }
  body:not(.elementor-editor-active) .elementor .page-fulfillment .ff-policy-heading > .elementor-widget {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Contact band uses the same centered container as the knowledge reference. */
body:not(.elementor-editor-active) .elementor .page-fulfillment .container.cta-form-band-grid {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding-left: clamp(16px, 3.5vw, 24px) !important;
  padding-right: clamp(16px, 3.5vw, 24px) !important;
  box-sizing: border-box !important;
}
