/* STEXPRESS TRACKING 3.1.0 */

.tracking-page {
    padding: 55px 0 75px;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(255,196,0,.12),
            transparent 25%
        ),
        linear-gradient(180deg, #fff, #f7f9fb);
}

.tracking-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.tracking-heading > span {
    color: #e3131b;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tracking-heading h1 {
    margin: 9px 0 12px;
    color: #101827;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.05;
}

.tracking-heading p {
    margin: 0;
    color: #687180;
    font-size: 17px;
    line-height: 1.65;
}

.tracking-search-card {
    max-width: 950px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border-top: 6px solid #ffc400;
    border-radius: 14px;
    box-shadow: 0 17px 42px rgba(3,36,65,.12);
}

.tracking-search-card > label {
    display: block;
    margin-bottom: 9px;
    color: #111827;
    font-weight: 800;
}

.tracking-search-row {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 14px;
}

#st_txtawbno {
    width: 100%;
    min-height: 58px;
    max-height: 150px;
    padding: 17px;
    color: #101827;
    background: #fff9e2;
    border: 2px solid #ffc400;
    border-radius: 9px;
    font: inherit;
    resize: vertical;
    outline: none;
}

#st_txtawbno:focus {
    background: #fff;
    border-color: #e3131b;
    box-shadow: 0 0 0 4px rgba(227,19,27,.09);
}

#st_track_btn {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #fff;
    background: linear-gradient(135deg, #e3131b, #c60009);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 10px 23px rgba(227,19,27,.22);
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
}

#st_track_btn b {
    font-size: 23px;
}

#st_track_btn:hover {
    transform: translateY(-2px);
}

#st_track_btn:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.tracking-search-card small {
    display: block;
    margin-top: 11px;
    color: #737b87;
}

.tracking-message {
    margin-top: 12px;
    color: #d5000b;
    font-weight: 700;
}

.tracking-results {
    max-width: 1050px;
    margin: 36px auto 0;
    scroll-margin-top: 20px;
}

.tracking-loader {
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 13px 30px rgba(3,36,65,.09);
}

.tracking-loader i {
    width: 25px;
    height: 25px;
    border: 3px solid #f2c6c9;
    border-top-color: #e3131b;
    border-radius: 50%;
    animation: trackingSpin .75s linear infinite;
}

@keyframes trackingSpin {
    to { transform: rotate(360deg); }
}

.tracking-result-card {
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 38px rgba(3,36,65,.11);
    animation: trackingReveal .35s ease both;
}

@keyframes trackingReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tracking-result-title {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tracking-result-title span {
    color: #e3131b;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-result-title h2 {
    margin: 4px 0 0;
    color: #101827;
    font-size: 25px;
}

.tracking-status {
    padding: 9px 15px;
    color: #08752c;
    background: #eafaf0;
    border: 1px solid #a8e1b9;
    border-radius: 50px;
    font-size: 13px;
}

.tracking-table-wrap {
    overflow-x: auto;
}

.tracking-detail-table,
.tracking-progress-table {
    width: 100%;
    border-collapse: collapse;
}

.tracking-detail-table th,
.tracking-detail-table td {
    padding: 12px 15px;
    border: 1px solid #dfe3e8;
    text-align: left;
}

.tracking-detail-table th {
    width: 37%;
    color: #111827;
    background: #f6f7f9;
}

.tracking-progress {
    margin-top: 30px;
}

.tracking-progress h3 {
    margin: 0 0 15px;
    color: #101827;
    font-size: 20px;
}

.tracking-progress-table th {
    padding: 12px;
    color: #fff;
    background: #032441;
    text-align: left;
}

.tracking-progress-table td {
    padding: 12px;
    border: 1px solid #dfe3e8;
}

.tracking-progress-table tbody tr:nth-child(even) {
    background: #f7f8fa;
}

.tracking-pod-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.st-pod-btn {
    min-height: 44px;
    padding: 11px 22px;
    color: #fff;
    background: #e3131b;
    border: 0;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
}

.st-pod-btn.secondary {
    color: #e3131b;
    background: #fff;
    border: 2px solid #e3131b;
}

.tracking-no-record {
    padding: 18px;
    color: #b90d17;
    background: #fff1f2;
    border: 1px solid #efb3b7;
    border-radius: 8px;
}

.tracking-help {
    margin-top: 55px;
    padding: 35px;
    color: #fff;
    background: #032441;
    border-radius: 15px;
}

.tracking-help h2 {
    margin: 0 0 25px;
    color: #fff;
    text-align: center;
}

.tracking-help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tracking-help-grid div {
    padding: 19px;
    background: rgba(255,255,255,.07);
    border-radius: 9px;
}

.tracking-help-grid b {
    color: #ffc400;
    font-size: 23px;
}

.tracking-help-grid p {
    margin: 9px 0 0;
    color: #fff;
    line-height: 1.55;
}

.pod-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0,0,0,.84);
}

.pod-modal.open {
    display: flex;
}

body.pod-open {
    overflow: hidden;
}

.pod-modal-content {
    max-width: 1000px;
    max-height: 88vh;
    padding: 18px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 10px;
    overflow: auto;
}

#st-pod-image {
    display: none;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.pod-loading {
    padding: 35px;
    color: #111827;
    font-weight: 800;
}

.pod-modal-close {
    position: fixed;
    top: 18px;
    right: 25px;
    width: 48px;
    height: 48px;
    color: #fff;
    background: #e3131b;
    border: 0;
    border-radius: 50%;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 800px) {
    .tracking-search-row {
        grid-template-columns: 1fr;
    }

    .tracking-help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tracking-page {
        padding: 38px 0 48px;
    }

    .tracking-search-card,
    .tracking-result-card {
        padding: 20px;
    }

    .tracking-result-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracking-detail-table th {
        width: 45%;
    }

    .tracking-detail-table th,
    .tracking-detail-table td,
    .tracking-progress-table th,
    .tracking-progress-table td {
        padding: 9px;
        font-size: 13px;
    }

    .tracking-help {
        padding: 25px 19px;
    }

    .tracking-help-grid {
        grid-template-columns: 1fr;
    }

    .pod-modal {
        padding: 15px;
    }
}

/* STEXPRESS TRACKING FINAL ALIGNMENT */
.tracking-page {
    width: 100%;
    padding: 64px 0 78px;
    background:
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.tracking-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.tracking-heading > span {
    display: inline-block;
    margin-bottom: 8px;
    color: #ed1c24;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tracking-heading h1 {
    margin: 0 0 12px;
    color: #071d32;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
}

.tracking-heading p {
    margin: 0;
    color: #607080;
    font-size: 18px;
}

.tracking-search-card {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border-top: 5px solid #ffc400;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(7, 29, 50, .12);
}

.tracking-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.tracking-search-row label {
    display: grid;
    gap: 8px;
    color: #071d32;
    font-weight: 800;
}

#st_txtawbno {
    display: block;
    width: 100%;
    min-height: 58px;
    max-height: 150px;
    padding: 15px 17px;
    border: 1px solid #cbd5df;
    border-radius: 9px;
    background: #ffffff;
    color: #071d32;
    font: inherit;
    resize: vertical;
}

#st_txtawbno:focus {
    border-color: #ed1c24;
    outline: 3px solid rgba(237, 28, 36, .12);
}

#st_track_btn {
    min-height: 58px;
    padding: 12px 27px;
    border: 2px solid #ed1c24;
    border-radius: 9px;
    background: #ed1c24;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#st_track_btn:hover {
    background: #c71018;
    border-color: #c71018;
}

.tracking-search-card > small {
    display: block;
    margin-top: 12px;
    color: #607080;
}

.tracking-results {
    width: min(1000px, 100%);
    margin: 30px auto 0;
}

.tracking-message {
    margin-top: 17px;
    color: #9b111e;
    font-weight: 700;
}

.st-awb-box {
    margin: 0 0 25px;
    padding: 27px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 15px;
    box-shadow: 0 14px 40px rgba(7, 29, 50, .09);
}

.st-awb-title {
    margin: -27px -27px 24px;
    padding: 17px 25px;
    background: #071d32;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
}

.st-awb-table,
.st-progress-table {
    width: 100%;
    border-collapse: collapse;
}

.st-awb-table td,
.st-progress-table th,
.st-progress-table td {
    padding: 12px 14px;
    border: 1px solid #e2e7ec;
    text-align: left;
}

.st-awb-table tr:nth-child(even),
.st-progress-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.st-progress-table th {
    background: #ffc400;
    color: #071d32;
}

.st-progress-title {
    margin: 27px 0 12px;
    color: #071d32;
    font-size: 21px;
    font-weight: 800;
}

.st-pod-btn {
    margin: 20px 7px 0;
    padding: 11px 19px;
    border: 0;
    border-radius: 7px;
    background: #ed1c24;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.st-no-record {
    padding: 17px;
    border-radius: 8px;
    background: #fff1f2;
    color: #9b111e;
}

.tracking-help {
    width: min(1000px, 100%);
    margin: 60px auto 0;
}

.tracking-help h2 {
    margin-bottom: 27px;
    color: #071d32;
    text-align: center;
    font-size: clamp(30px, 4vw, 44px);
}

.tracking-help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.tracking-help-grid > div {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-bottom: 4px solid #ffc400;
    border-radius: 12px;
}

.tracking-help-grid strong,
.tracking-help-grid b {
    display: block;
    margin-bottom: 12px;
    color: #ed1c24;
    font-size: 26px;
}

.tracking-help-grid p {
    margin: 0;
    color: #607080;
}

@media (max-width: 800px) {
    .tracking-help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .tracking-page {
        padding: 45px 0 60px;
    }

    .tracking-search-card {
        padding: 22px 18px;
    }

    .tracking-search-row {
        grid-template-columns: 1fr;
    }

    #st_track_btn {
        width: 100%;
    }

    .tracking-help-grid {
        grid-template-columns: 1fr;
    }

    .st-awb-box {
        padding: 18px;
    }

    .st-awb-title {
        margin: -18px -18px 18px;
    }

    .st-awb-table,
    .st-progress-table {
        display: block;
        overflow-x: auto;
    }
}
