/* =========================================================
   TRACK ORDER HERO
========================================================= */

.track-hero {
    position: relative;
    min-height: 300px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: #fff;

    background:
        linear-gradient(100deg,
            rgba(5, 12, 20, .82),
            rgba(7, 17, 28, .96)),
        url("https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat;
}

.track-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 20% 50%,
            rgba(229, 35, 41, .22),
            transparent 30%);
}

.track-hero-content {
    position: relative;
    z-index: 2;

    text-align: center;

    padding: 65px 0;
}

.track-hero-content h1 {
    margin-top: 5px;

    font-size: clamp(32px, 4vw, 52px);

    line-height: 1.3;

    font-weight: 800;
}

.track-hero-content h1 span {
    color: var(--primary);
}

.track-hero-content p {
    max-width: 600px;

    margin: 12px auto 0;

    color: #cbd2da;

    font-size: 13px;
}


/* =========================================================
   TRACK SECTION
========================================================= */

.track-section {
    padding: 80px 0;

    background: #f8f9fb;
}


/* =========================================================
   SEARCH CARD
========================================================= */

.track-search-card {
    width: min(800px, 100%);

    margin: 0 auto;

    padding: 28px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow);
}

.track-search-heading {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}

.track-search-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #fff1f1;

    color: var(--primary);

    font-size: 20px;
}

.track-search-heading h2 {
    font-size: 21px;
}

.track-search-heading p {
    color: var(--muted);

    font-size: 10px;

    margin-top: 2px;
}


/* =========================================================
   FORM
========================================================= */

.track-form {
    display: flex;

    gap: 10px;
}

.track-input-wrapper {
    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 15px;

    border: 1px solid #dfe2e6;

    border-radius: 11px;

    background: #fff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.track-input-wrapper:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(229, 35, 41, .08);
}

.track-input-wrapper i {
    color: #9ba3ad;
}

.track-input-wrapper input {
    width: 100%;

    height: 50px;

    border: 0;

    outline: 0;

    background: transparent;

    font-family: inherit;

    font-size: 12px;

    color: var(--text);

    text-align: right;
}

.track-submit {
    flex: 0 0 145px;

    min-height: 50px;

    cursor: pointer;

    font-size: 12px;
}


/* =========================================================
   ERROR
========================================================= */

.track-error {
    display: none;

    align-items: center;

    gap: 7px;

    margin-top: 12px;

    padding: 10px 13px;

    color: #b51d22;

    background: #fff2f2;

    border: 1px solid #ffd5d5;

    border-radius: 9px;

    font-size: 10px;
}

.track-error.show {
    display: flex;
}


/* =========================================================
   HELP
========================================================= */

.track-help {
    margin-top: 13px;

    color: var(--muted);

    font-size: 10px;
}

.track-help i {
    color: var(--primary);
}

.track-help a {
    color: var(--primary);

    font-weight: 800;
}


/* =========================================================
   ORDER RESULT
========================================================= */

.order-result {
    display: none;

    width: min(1000px, 100%);

    margin: 35px auto 0;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: var(--shadow);
}

.order-result.show {
    display: block;

    animation: resultIn .35s ease;
}

@keyframes resultIn {

    from {
        opacity: 0;

        transform: translateY(12px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   ORDER HEADER
========================================================= */

.order-result-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 25px;

    background:
        linear-gradient(135deg,
            #07111f,
            #102033);

    color: #fff;
}

.order-result-header>div:first-child {
    display: flex;

    flex-direction: column;
}

.order-result-header span {
    color: #9eabb9;

    font-size: 9px;
}

.order-result-header strong {
    margin-top: 2px;

    font-size: 17px;

    letter-spacing: .4px;
}

.order-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 13px;

    border-radius: 30px;

    font-size: 10px;

    font-weight: 800;
}

.status-processing {
    background: rgba(229, 35, 41, .15);

    color: #ff5c61;

    border: 1px solid rgba(229, 35, 41, .35);
}


/* =========================================================
   ORDER INFO
========================================================= */

.order-info-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    padding: 22px 25px;

    border-bottom: 1px solid #edf0f2;
}

.order-info-item {
    padding-inline: 15px;

    border-inline-start: 1px solid #edf0f2;
}

.order-info-item:first-child {
    border-inline-start: 0;
    padding-right: 0;
}

.order-info-item span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 4px;
}

.order-info-item strong {
    display: block;

    color: var(--text);

    font-size: 11px;
}


/* =========================================================
   TIMELINE
========================================================= */

.order-timeline {
    position: relative;

    padding: 35px 35px 25px;
}

.timeline-line {
    position: absolute;

    top: 74px;

    right: 70px;
    left: 70px;

    height: 3px;

    background: #e8ebef;
}

.timeline-item {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 65px 1fr;

    gap: 13px;

    width: 20%;

    text-align: center;
}

.order-timeline {
    display: flex;

    justify-content: space-between;

    gap: 10px;
}

.timeline-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 10px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #edf0f3;

    color: #929aa4;

    border: 4px solid #fff;

    box-shadow: 0 0 0 1px #e1e5e9;

    grid-column: 1 / -1;
}

.timeline-item.completed .timeline-icon {
    background: var(--primary);

    color: #fff;

    box-shadow:
        0 0 0 1px var(--primary),
        0 8px 18px rgba(229, 35, 41, .2);
}

.timeline-item.current .timeline-icon {
    background: #07111f;

    color: #fff;

    box-shadow:
        0 0 0 2px var(--primary),
        0 0 0 7px rgba(229, 35, 41, .08);
}

.timeline-content {
    grid-column: 1 / -1;
}

.timeline-content strong {
    display: block;

    color: #29313b;

    font-size: 10px;
}

.timeline-item.current .timeline-content strong {
    color: var(--primary);
}

.timeline-content span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;

    line-height: 1.7;
}

.timeline-content small {
    display: block;

    margin-top: 5px;

    color: #a0a7af;

    font-size: 7px;
}


/* =========================================================
   SHIPPING
========================================================= */

.shipping-box {
    display: flex;

    align-items: center;

    gap: 13px;

    margin: 0 25px 25px;

    padding: 15px;

    border-radius: 12px;

    background: #f7f8fa;

    border: 1px solid #eceef1;
}

.shipping-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #fff1f1;

    color: var(--primary);
}

.shipping-box span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}

.shipping-box strong {
    display: block;

    margin-top: 2px;

    font-size: 11px;
}


/* =========================================================
   NOTE
========================================================= */

.track-note {
    width: min(1000px, 100%);

    margin: 18px auto 0;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 13px;
}

.track-note-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #eef5ff;

    color: #3378c7;
}

.track-note strong {
    display: block;

    font-size: 11px;
}

.track-note p {
    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   CONTACT
========================================================= */

.track-contact {
    padding: 0 0 80px;

    background: #f8f9fb;
}

.track-contact-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 35px 40px;

    color: #fff;

    background:
        radial-gradient(circle at 90% 50%,
            rgba(229, 35, 41, .25),
            transparent 35%),
        linear-gradient(135deg,
            #07111f,
            #102033);

    border-radius: 20px;
}

.track-contact-box h2 {
    margin-top: 4px;

    font-size: 23px;
}

.track-contact-box p {
    color: #aeb8c4;

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .track-section {
        padding: 60px 0;
    }

    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 18px;
    }

    .order-info-item {
        border-inline-start: 0;

        padding: 0;
    }

    .order-timeline {
        display: block;

        padding: 30px 25px;
    }

    .timeline-line {
        top: 40px;

        right: 51px;
        left: auto;

        width: 3px;
        height: calc(100% - 80px);

        border: 0;
    }

    .timeline-item {
        width: 100%;

        min-height: 85px;

        display: grid;

        grid-template-columns: 52px 1fr;

        text-align: right;

        gap: 14px;

        margin-bottom: 10px;
    }

    .timeline-icon {
        grid-column: 1;

        grid-row: 1 / 3;

        margin: 0;
    }

    .timeline-content {
        grid-column: 2;
    }

    .track-contact-box {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .track-hero {
        min-height: 250px;
    }

    .track-hero-content {
        padding: 50px 0;
    }

    .track-hero-content h1 {
        font-size: 31px;
    }

    .track-hero-content p {
        font-size: 10px;

        line-height: 2;
    }


    .track-section {
        padding: 45px 0;
    }


    .track-search-card {
        padding: 19px 14px;

        border-radius: 16px;
    }


    .track-search-heading {
        gap: 10px;
    }

    .track-search-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        font-size: 17px;
    }

    .track-search-heading h2 {
        font-size: 18px;
    }

    .track-search-heading p {
        font-size: 9px;
    }


    .track-form {
        flex-direction: column;
    }

    .track-submit {
        flex: auto;

        width: 100%;
    }


    .order-result {
        margin-top: 25px;

        border-radius: 16px;
    }


    .order-result-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 18px;
    }


    .order-info-grid {
        grid-template-columns: 1fr 1fr;

        padding: 18px;

        gap: 18px 10px;
    }


    .order-info-item strong {
        font-size: 10px;
    }


    .order-timeline {
        padding: 25px 18px;
    }


    .timeline-line {
        right: 44px;
    }


    .timeline-item {
        grid-template-columns: 45px 1fr;

        gap: 12px;

        min-height: 82px;
    }


    .timeline-icon {
        width: 45px;
        height: 45px;

        font-size: 13px;
    }


    .timeline-content strong {
        font-size: 10px;
    }

    .timeline-content span {
        font-size: 8px;
    }


    .shipping-box {
        margin: 0 15px 15px;

        padding: 12px;
    }


    .track-note {
        align-items: flex-start;

        padding: 13px;
    }


    .track-contact {
        padding-bottom: 55px;
    }


    .track-contact-box {
        padding: 25px 18px;

        border-radius: 15px;
    }


    .track-contact-box h2 {
        font-size: 19px;
    }

}