/* Status pengiriman (cek resi): app/pages/status-pengiriman, app/components/web/TrackingStatus.vue.
   Same look as the home page: blush background, white cards, red accent, maroon titles. Hero comes from pengiriman.css. */
.st-page { background: #fbf6f4; padding: 0 0 72px; }
.st-page .container { max-width: 1140px; }
.st-label { display: inline-flex; align-items: center; gap: 10px; color: #EA2B1F; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.st-label::before { content: ""; width: 28px; height: 2px; background: #EA2B1F; }

/* Search card: same "live tracking" card as the home page, sitting on the hero's bottom edge */
.st-search { position: relative; z-index: 2; margin-top: -84px; background: #fff; border-radius: 24px; border: 1px solid rgba(20, 22, 28, .06); box-shadow: 0 18px 50px rgba(234, 43, 31, .16), 0 2px 6px rgba(234, 43, 31, .08); overflow: hidden; }
.st-search__head { display: flex; align-items: center; gap: 16px; padding: 22px 30px; border-bottom: 1px solid #f4ebe8; }
.st-search__icon { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #ff6a3d 0%, #ea2b1f 100%); color: #fff; font-size: 26px; box-shadow: 0 8px 22px rgba(234, 43, 31, .45); }
.st-search__title { flex: 1; min-width: 0; }
.st-search__title h4 { margin: 0; font-size: 1.35rem; font-weight: 700; color: #520000; }
.st-search__title p { margin: 2px 0 0; font-size: .9rem; color: #7a6c6f; }
.st-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: #fff3ee; border: 1px solid #ffd3c2; color: #d9480f; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.st-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #ea2b1f; animation: st-blink 1.6s ease-out infinite; }
.st-form { display: flex; align-items: flex-end; gap: 16px; padding: 24px 30px 28px; }
.st-field { flex: 1; min-width: 0; }
.st-field label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 700; font-size: .92rem; color: #3b3134; }
.st-field label i { color: #ea2b1f; font-size: 1.05rem; }
.st-field input { width: 100%; height: 52px; border-radius: 12px; border: 1px solid #ead9d4; background: #fbf6f4; padding: 0 16px; font-size: .95rem; color: #3b3134; transition: border-color .2s, box-shadow .2s, background .2s; }
.st-field input:focus { outline: 0; background: #fff; border-color: #ff8a65; box-shadow: 0 0 0 4px rgba(234, 43, 31, .12); }
.st-sep { width: 1px; height: 52px; background: #ead9d4; }
.st-btn { height: 52px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #ff6a3d 0%, #ea2b1f 100%); color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap; box-shadow: 0 10px 26px rgba(234, 43, 31, .4); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.st-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(234, 43, 31, .5); color: #fff; }
.st-btn:disabled { opacity: .75; cursor: default; }
.st-hint { padding: 0 30px 22px; margin: -8px 0 0; font-size: .85rem; color: #7a6c6f; }

.st-alert { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid #ffd3c2; color: #3b3134; }
.st-alert i { font-size: 1.6rem; color: #ea2b1f; line-height: 1; }
.st-alert strong { display: block; color: #520000; }
.st-alert p { margin: 2px 0 0; font-size: .9rem; color: #7a6c6f; }
.st-alert a { color: #ea2b1f; font-weight: 600; }

/* Several shipments for one kode marking */
.st-choices { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.st-choice { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid #ead9d4; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.st-choice:hover, .st-choice.is-active { border-color: #ea2b1f; box-shadow: 0 4px 14px rgba(234, 43, 31, .12); }
.st-choice b { display: block; color: #520000; font-size: .95rem; }
.st-choice span { display: block; font-size: .82rem; color: #7a6c6f; }

/* Delivery status: open layout on the blush background, hairlines instead of boxes */
.st-status { margin-top: 56px; padding: 0; background: none; }
.st-status__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 0; background: none; }
.st-status__head h2 { margin: 8px 0 0; font-size: 2rem; font-weight: 700; color: #520000; }
.st-now { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 600; color: #b6140b; }
.st-now__dot { width: 10px; height: 10px; border-radius: 50%; background: #ea2b1f; animation: st-blink 1.6s ease-out infinite; }
.st-now.is-done { color: #157347; }
.st-now.is-done .st-now__dot { background: #1f9d55; animation: none; }
.st-intro { margin: 14px 0 0; max-width: 640px; color: #7a6c6f; }

.st-facts { margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #ead9d4; border-bottom: 1px solid #ead9d4; }
.st-facts > div { padding: 18px 22px; border-left: 1px solid #ead9d4; }
.st-facts > div:first-child { padding-left: 0; border-left: 0; }
.st-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9a8b8e; }
.st-facts dd { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; color: #3b3134; overflow-wrap: anywhere; }
.st-facts dd.st-facts__status { color: #ea2b1f; font-weight: 700; text-transform: capitalize; }

/* Journey line (wide screens): four stops on one line, the travelled part in red */
.st-steps { --st-done: 0; position: relative; margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-steps::before, .st-steps::after { content: ""; position: absolute; top: 19px; left: 12.5%; height: 2px; border-radius: 2px; }
.st-steps::before { right: 12.5%; background: #ead9d4; }
.st-steps::after { width: calc(75% * var(--st-done)); background: linear-gradient(90deg, #ff6a3d, #ea2b1f); transition: width .6s ease; }
.st-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.st-step__dot { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fbf6f4; border: 2px solid #ead9d4; color: #9a8b8e; font-weight: 600; font-size: .9rem; transition: border-color .2s, background .2s; }
.st-step__dot i { font-size: 1.25rem; }
.st-step__body h5 { margin: 14px 0 0; font-size: .9rem; font-weight: 600; line-height: 1.35; color: #3b3134; }
.st-step__body p { display: none; margin: 4px 0 0; font-size: .88rem; line-height: 1.55; color: #7a6c6f; }
.st-step.is-done .st-step__dot { background: #ea2b1f; border-color: #ea2b1f; color: #fff; }
.st-step.is-current .st-step__dot { width: 48px; height: 48px; margin-top: -4px; background: #fff; border-color: #ea2b1f; color: #ea2b1f; box-shadow: 0 0 0 7px rgba(234, 43, 31, .12); }
.st-step.is-current .st-step__body h5 { color: #520000; font-weight: 700; }
.st-step.is-upcoming .st-step__body h5 { color: #9a8b8e; font-weight: 500; }

/* Before a search: the four steps explained, four per row, separated by hairlines */
.st-status.is-guide .st-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 32px; }
.st-status.is-guide .st-steps::before, .st-status.is-guide .st-steps::after { display: none; }
.st-status.is-guide .st-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 22px 0; border-top: 1px solid #ead9d4; }
/* Step number as one "01" badge (flex keeps the "0" from ::before on the same line), red on hover */
.st-status.is-guide .st-step__dot { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #f0dcd7; color: #ea2b1f; font-size: .95rem; font-weight: 700; letter-spacing: .02em; line-height: 1; transition: background .25s, color .25s, box-shadow .25s; }
.st-status.is-guide .st-step__dot::before { content: "0"; }
.st-status.is-guide .st-step:hover .st-step__dot { background: #ea2b1f; color: #fff; box-shadow: 0 8px 20px rgba(234, 43, 31, .25); }
.st-status.is-guide .st-step__body h5 { margin-top: 0; font-size: 1rem; }
.st-status.is-guide .st-step__body p { display: block; }

.st-position { margin: 44px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid #ea2b1f; max-width: 720px; }
.st-position__label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ea2b1f; }
.st-position strong { display: block; margin-top: 6px; font-size: 1.45rem; font-weight: 700; color: #520000; }
.st-position p { margin: 6px 0 0; font-size: 1rem; line-height: 1.6; color: #3b3134; }
.st-status__foot { margin-top: 40px; padding: 20px 0 0; border-top: 1px solid #ead9d4; background: none; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: .9rem; color: #7a6c6f; }
.st-status__foot a { color: #ea2b1f; font-weight: 600; }

/* ---------- Motion: content rises in, the journey line draws itself, the current stop breathes ---------- */
@keyframes st-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes st-pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes st-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes st-breathe { 0% { box-shadow: 0 0 0 0 rgba(234, 43, 31, .32); } 70%, 100% { box-shadow: 0 0 0 14px rgba(234, 43, 31, 0); } }
.st-search { animation: st-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.st-alert, .st-choices { animation: st-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.st-status__head, .st-intro, .st-facts > div, .st-position, .st-status__foot { animation: st-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.st-facts > div:nth-child(1) { animation-delay: .08s; }
.st-facts > div:nth-child(2) { animation-delay: .16s; }
.st-facts > div:nth-child(3) { animation-delay: .24s; }
.st-steps::before { transform-origin: left center; animation: st-draw .7s ease-out .25s both; }
.st-steps::after { transform-origin: left center; animation: st-draw 1.2s cubic-bezier(.4, 0, .2, 1) .55s both; }
.st-step__body { animation: st-rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.4s + var(--i, 0) * .09s); }
.st-step__dot { animation: st-pop .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.3s + var(--i, 0) * .09s); }
.st-step.is-current .st-step__dot { animation: st-pop .45s cubic-bezier(.2, .7, .2, 1) both, st-breathe 2.2s ease-out 1.6s infinite; animation-delay: calc(.3s + var(--i, 0) * .09s), 1.6s; }
.st-position { animation-delay: 1.15s; }
.st-status__foot { animation-delay: 1.3s; }
.st-status.is-guide .st-status__foot { animation-delay: .9s; }
.st-btn i.bx-search { transition: transform .25s; }
.st-btn:hover:not(:disabled) i.bx-search { transform: scale(1.15) rotate(-8deg); }
.st-choice { transition: border-color .2s, box-shadow .2s, transform .2s; }
.st-choice:hover { transform: translateY(-2px); }

@keyframes st-blink {
  0% { box-shadow: 0 0 0 0 rgba(234, 43, 31, .6); }
  100% { box-shadow: 0 0 0 7px rgba(234, 43, 31, 0); }
}
@media (max-width: 991px) {
  /* Vertical timeline with the descriptions visible */
  .st-steps, .st-status.is-guide .st-steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .st-steps::before, .st-steps::after { display: none; }
  .st-step, .st-status.is-guide .st-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; padding: 0 0 26px; border-top: 0; }
  .st-step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: #ead9d4; }
  .st-step.is-done::before { background: #ea2b1f; }
  .st-step:last-child::before { display: none; }
  .st-step:last-child { padding-bottom: 0; }
  .st-status.is-guide .st-step__dot { width: 40px; height: 40px; border: 2px solid #ead9d4; background: #fbf6f4; color: #9a8b8e; font-size: .9rem; font-weight: 600; }
  .st-status.is-guide .st-step__dot::before { content: none; }
  .st-step.is-current .st-step__dot { width: 40px; height: 40px; margin-top: 0; }
  .st-step__body { padding-top: 8px; }
  .st-step__body h5 { margin: 0; font-size: 1rem; }
  .st-step__body p { display: block; }
  .st-position { display: none; }
  .st-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-facts > div { padding: 14px 16px; border-top: 0; }
  .st-facts > div:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .st-facts { grid-template-columns: 1fr; }
  .st-facts > div { padding: 12px 14px; border-top: 1px solid #ead9d4; border-left: 0; padding-left: 0; }
  .st-facts > div:first-child { border-top: 0; }
  .st-search { margin-top: -56px; }
  .st-search__head { flex-wrap: wrap; padding: 18px 20px; row-gap: 10px; }
  .st-form { flex-direction: column; align-items: stretch; padding: 18px 20px 22px; }
  .st-sep { display: none; }
  .st-btn { width: 100%; }
  .st-hint { padding: 0 20px 18px; }
  .st-status { margin-top: 40px; }
  .st-status__head h2 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .st-badge__dot { animation: none; }
  .st-btn, .st-choice, .st-btn i.bx-search { transition: none; }
  .st-search, .st-alert, .st-choices, .st-status__head, .st-intro, .st-facts > div, .st-position, .st-status__foot,
  .st-steps::before, .st-steps::after, .st-step__body, .st-step__dot, .st-step.is-current .st-step__dot, .st-now__dot { animation: none; }
}

/* Result page: no search card, so the first card needs its own distance from the hero */
.st-page--result { padding-top: 4px; }
.st-page--result .st-alert { margin-top: 28px; }

/* Body under the radar hero (both tracking pages): faint grid over white to blush */
.rs-body {
  padding: 72px 0 96px;
  background-image:
    linear-gradient(rgba(234, 43, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 43, 31, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #fbf6f4 100%);
  background-size: 48px 48px, 48px 48px, auto;
}
.rs-body.st-page--result { padding-top: 48px; }
.rs-body.st-page--result .st-alert { margin-top: 0; }
@media (max-width: 767px) {
  .rs-body { padding: 48px 0 64px; }
  .rs-body.st-page--result { padding-top: 32px; }
}
