/* Homepage hero — slider dịch vụ + tra cứu vận đơn */
.amz-hero {
  --orange: #c2410c;
  --orange-d: #9a3412;
  --blue: #0e2e5e;
  --blue-d: #0a2348;
  --green: #0f6b42;
  --green-d: #0b5534;
  --ink: #111827;
  --text: #1f2937;
  --muted: #3f4b5b;
  --soft: #f3f4f6;
  --line: #d1d5db;
  --white: #fff;
  --bg1: none;
  --bg2: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  max-width: 1140px;
  margin: 0 auto 10px;
  padding: 12px 28px 8px;
  box-sizing: border-box;
}

.amz-hero * {
  box-sizing: border-box;
}

.amz-hero h2,
.amz-hero h3 {
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
  font-family: inherit;
}

.amz-slider {
  position: relative;
  overflow: visible;
  background: transparent;
  border: none;
}

.amz-viewport {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a22;
  border: 1px solid var(--line);
  touch-action: pan-y;
  cursor: grab;
}

.amz-viewport.is-dragging {
  cursor: grabbing;
}

.amz-viewport.is-dragging .amz-track {
  transition: none;
}

.amz-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.5, 0.05, 0.2, 1);
  will-change: transform;
}

.amz-slide {
  min-width: 100%;
  min-height: 400px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.amz-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bg1);
  background-size: cover;
  background-position: center;
}

.amz-slide.rev::before {
  background-image: var(--bg2);
}

.amz-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 16, 28, 0.22) 0%,
    rgba(12, 16, 28, 0.08) 48%,
    rgba(12, 16, 28, 0.02) 100%
  );
}

.amz-slide.rev::after {
  background: linear-gradient(
    90deg,
    rgba(12, 16, 28, 0.22) 0%,
    rgba(12, 16, 28, 0.08) 48%,
    rgba(12, 16, 28, 0.02) 100%
  );
}

.amz-info {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.amz-slide > * {
  position: relative;
  z-index: 1;
}

.amz-anim {
  opacity: 0;
  will-change: transform, opacity;
}

.amz-slide.is-on .a-down {
  animation: amzDown 1s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.amz-slide.is-on .a-left {
  animation: amzLeft 1.05s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.amz-slide.is-on .a-right {
  animation: amzRight 1.1s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.amz-slide.is-on .a-bounce {
  animation: amzBounce 1.2s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.amz-slide.is-on .d1 { animation-delay: 0.15s; }
.amz-slide.is-on .d2 { animation-delay: 0.35s; }
.amz-slide.is-on .d3 { animation-delay: 0.55s; }
.amz-slide.is-on .d4 { animation-delay: 0.75s; }
.amz-slide.is-on .d5 { animation-delay: 0.95s; }
.amz-slide.is-on .d7 { animation-delay: 0.45s; }

@keyframes amzDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: none; }
}

@keyframes amzLeft {
  from { opacity: 0; transform: translateX(-56px); }
  to { opacity: 1; transform: none; }
}

@keyframes amzRight {
  from { opacity: 0; transform: translateX(64px); }
  to { opacity: 1; transform: none; }
}

@keyframes amzBounce {
  0% { opacity: 0; transform: translateY(28px) scale(0.94); }
  55% { opacity: 1; transform: translateY(-10px) scale(1.04); }
  75% { transform: translateY(4px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .amz-anim,
  .amz-slide.is-on .a-down,
  .amz-slide.is-on .a-left,
  .amz-slide.is-on .a-right,
  .amz-slide.is-on .a-bounce {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.amz-hero .amz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 30px;
  color: #fff;
  margin-bottom: 16px;
}

.amz-badge.b-orange { background: var(--orange); }
.amz-badge.b-blue { background: var(--blue); }
.amz-badge.b-green { background: var(--green); }

.amz-hero .amz-slide h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.18;
}

.amz-hero .amz-slide p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 460px;
  line-height: 1.6;
  font-weight: 500;
}

.amz-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.amz-hero .amz-feats span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 20px;
}

.amz-slide.rev .amz-feats span {
  background: #fff;
}

.amz-hero .amz-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}

.amz-cta.c-orange { background: var(--orange); }
.amz-cta.c-orange:hover { background: var(--orange-d); color: #fff !important; }
.amz-cta.c-blue { background: var(--blue); }
.amz-cta.c-blue:hover { background: var(--blue-d); color: #fff !important; }
.amz-cta.c-green { background: var(--green); }
.amz-cta.c-green:hover { background: var(--green-d); color: #fff !important; }

.amz-cta svg {
  width: 18px;
  height: 18px;
}

.amz-visual {
  display: flex;
  justify-content: center;
}

.amz-route {
  width: 100%;
  max-width: 362px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(26, 36, 51, 0.06);
}

.amz-slide.rev .amz-route {
  background: var(--soft);
}

.amz-hero .amz-route .rt-lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
  font-weight: 700;
}

.amz-flow {
  display: flex;
  align-items: center;
}

.amz-pt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 60px;
}

.amz-pt .n {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.b-orange-bg { background: var(--orange); }
.b-blue-bg { background: var(--blue); }
.b-grey-bg { background: #4b5563; }
.b-green-bg { background: var(--green); }

.amz-hero .amz-pt small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
}

.amz-pt .n svg {
  width: 22px;
  height: 22px;
}

.amz-conn {
  flex: 1;
  height: 3px;
  background: var(--line);
  position: relative;
  margin: 0 4px;
  border-radius: 2px;
  overflow: hidden;
}

.amz-conn i {
  position: absolute;
  inset: 0;
  transform-origin: left;
  border-radius: 2px;
}

.amz-conn.o i {
  background: linear-gradient(90deg, var(--orange), #ff9a6c);
  animation: amzrun 2.6s ease-in-out infinite;
}

.amz-conn.b i {
  background: linear-gradient(90deg, var(--blue), #4e77c4);
  animation: amzrun 2.8s ease-in-out infinite;
}

.amz-conn.g i {
  background: linear-gradient(90deg, var(--green), #5fc99a);
  animation: amzrun 2.7s ease-in-out infinite;
}

@keyframes amzrun {
  0% { transform: scaleX(0); }
  70% { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}

.amz-conn .box {
  position: absolute;
  top: -7px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amz-conn .box svg {
  width: 10px;
  height: 10px;
  color: var(--ink);
}

.amz-conn.o .box { animation: amzmove 2.6s ease-in-out infinite; }
.amz-conn.b .box { animation: amzmove 2.8s ease-in-out infinite; }
.amz-conn.g .box { animation: amzmove 2.7s ease-in-out infinite; }

@keyframes amzmove {
  0% { left: -4%; }
  70% { left: 92%; }
  100% { left: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  .amz-conn i {
    animation: none;
    transform: scaleX(1);
  }
  .amz-conn .box {
    animation: none;
    left: 44%;
  }
}

.amz-hero .amz-eta {
  text-align: center;
  margin-top: 16px;
  font-weight: 800;
  color: var(--ink);
  font-size: 15px;
}

.amz-eta b.o { color: var(--orange); }
.amz-eta b.b { color: var(--blue); }
.amz-eta b.g { color: var(--green); }

.amz-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26, 36, 51, 0.12);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.15s, box-shadow 0.15s;
}

.amz-slider:hover .amz-arrow,
.amz-slider:focus-within .amz-arrow {
  opacity: 1;
  pointer-events: auto;
}

.amz-arrow:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(26, 36, 51, 0.16);
}

.amz-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.amz-arrow.prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.amz-arrow.next {
  right: 0;
  transform: translate(50%, -50%);
}

.amz-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 16px;
}

.amz-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}

.amz-dots button.on {
  background: var(--orange);
  width: 26px;
  border-radius: 6px;
}

.amz-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 5px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.amz-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ea580c);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

@keyframes amzProgressBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .amz-progress__bar {
    transform: scaleX(1);
    animation: none !important;
  }
}

.amz-track-box {
  margin-top: 22px;
  background: var(--ink);
  border-radius: 18px;
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
}

.amz-track-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--orange), var(--blue));
}

.amz-tb-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 6px;
}

.amz-tb-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amz-tb-ic svg {
  width: 23px;
  height: 23px;
  color: #fff;
}

.amz-hero .amz-track-box h3 {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.amz-hero .amz-tb-desc {
  color: #e5e7eb;
  font-size: 15px;
  margin: 4px 0 20px 57px;
}

.amz-tb-form {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.amz-tb-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 17px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

.amz-tb-form input::placeholder {
  color: #4b5563;
}

.amz-tb-form input:focus {
  outline: none;
  border-color: var(--orange);
}

.amz-tb-form button {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 30px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  transition: 0.15s;
  white-space: nowrap;
}

.amz-tb-form button:hover {
  background: var(--orange-d);
}

.amz-tb-form button svg {
  width: 20px;
  height: 20px;
}

.amz-hero .amz-tb-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 14px;
  color: #e5e7eb;
}

.amz-tb-foot svg {
  width: 17px;
  height: 17px;
  color: #4fd3a6;
  flex-shrink: 0;
}

.amz-tb-foot b {
  color: #6fe0b4;
}

@media (max-width: 820px) {
  .amz-hero {
    padding: 8px 12px 4px;
  }

  .amz-slide {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    gap: 24px;
    min-height: 0;
  }

  .amz-visual {
    order: -1;
  }

  .amz-info {
    padding: 20px 18px;
  }

  .amz-arrow {
    display: none;
  }

  .amz-tb-desc {
    margin-left: 0;
  }

  .amz-track-box {
    padding: 26px 20px;
  }
}

@media (max-width: 520px) {
  .amz-tb-form {
    flex-wrap: wrap;
  }

  .amz-tb-form button {
    flex: 1 1 100%;
    justify-content: center;
  }
}
