/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #0f2027,
            #203a43,
            #2c5364
        );

    color: white;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
}


/* =========================================================
   HEADER
========================================================= */

header {
    width: 100%;

    padding: 18px 5%;

    background:
        rgba(0, 0, 0, 0.22);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);
}

.header-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 15px;
}

.logo-img {
    width: 58px;
    height: 58px;

    object-fit: contain;

    border-radius: 4px;

    flex-shrink: 0;
}

.header-content h1 {
    font-size:
        clamp(20px, 3vw, 30px);

    line-height: 1.2;

    font-weight: 700;

    color: #ffffff;

    letter-spacing: 0.2px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    text-align: center;

    padding:
        70px 20px 90px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/*
   Main hero heading
*/

.hero > h1 {
    font-size:
        clamp(36px, 6vw, 64px);

    line-height: 1.1;

    font-weight: 700;

    margin-bottom: 20px;

    letter-spacing: -1px;
}

.hero > p {
    width: 100%;
    max-width: 650px;

    font-size:
        clamp(16px, 2vw, 20px);

    line-height: 1.6;

    color:
        rgba(255, 255, 255, 0.82);

    margin-bottom: 20px;
}


/* =========================================================
   MODERN TRACKING CARD
========================================================= */

.tracking-card {
    width:
        min(760px, calc(100% - 40px));

    margin: 40px auto;

    padding:
        68px 68px 72px;

    background: #ffffff;

    border-radius: 32px;

    box-shadow:
        0 20px 55px
        rgba(0, 0, 0, 0.16);

    box-sizing: border-box;

    text-align: left;
}


/* =========================================================
   TRACKING ICON
========================================================= */

.tracking-icon {
    width: 110px;
    height: 110px;

    margin:
        0 auto 36px;

    border-radius: 50%;

    /*
       Light orange background
    */
    background:
        #fff0dc;

    display: flex;

    align-items: center;

    justify-content: center;

    /*
       GlobalTrack orange
    */
    color: #ff9800;

    box-shadow:
        0 8px 25px
        rgba(255, 152, 0, 0.12);
}

.tracking-icon svg {
    width: 52px;
    height: 52px;
}


/* =========================================================
   TRACKING CARD HEADING
========================================================= */

.tracking-card h2 {
    margin: 0;

    text-align: center;

    font-size:
        clamp(36px, 5vw, 58px);

    line-height: 1.15;

    font-weight: 700;

    color: #202738;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.tracking-description {
    max-width: 620px;

    margin:
        22px auto 58px;

    text-align: center;

    font-size: 22px;

    line-height: 1.65;

    color: #5e6879;
}


/* =========================================================
   LABEL
========================================================= */

.tracking-label {
    display: block;

    margin-bottom: 14px;

    font-size: 20px;

    font-weight: 600;

    color: #303949;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.tracking-input-wrapper {
    position: relative;

    width: 100%;
}


/* =========================================================
   BARCODE ICON
========================================================= */

.barcode-icon {
    position: absolute;

    left: 28px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 27px;
    height: 27px;

    color: #9ca5b4;

    pointer-events: none;

    z-index: 2;
}


/* =========================================================
   TRACKING INPUT
========================================================= */

.tracking-input-wrapper input {
    width: 100%;

    height: 82px;

    box-sizing: border-box;

    padding:
        0 28px
        0 72px;

    /*
       Orange-themed border
    */
    border:
        3px solid #d6d9df;

    border-radius: 22px;

    outline: none;

    background: #ffffff;

    color: #252d3d;

    font-size: 22px;

    font-family: inherit;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}


.tracking-input-wrapper input::placeholder {
    color: #9da5b4;

    opacity: 1;
}


/*
   Orange focus effect
*/

.tracking-input-wrapper input:focus {
    border-color: #ff9800;

    box-shadow:
        0 0 0 4px
        rgba(255, 152, 0, 0.14),

        0 8px 25px
        rgba(255, 152, 0, 0.08);
}


/* =========================================================
   TRACK BUTTON
========================================================= */

.track-button {
    width: 100%;

    height: 82px;

    margin-top: 28px;

    border: none;

    border-radius: 22px;

    /*
       GLOBALTRACK ORANGE
    */
    background:
        linear-gradient(
            100deg,
            #ff9800,
            #ffb52e
        );

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    font-family: inherit;

    font-size: 24px;

    font-weight: 700;

    cursor: pointer;

    /*
       Orange glow
    */
    box-shadow:
        0 12px 28px
        rgba(255, 152, 0, 0.30);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.track-button svg {
    width: 30px;
    height: 30px;
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.track-button:hover {

    transform:
        translateY(-2px);

    background:
        linear-gradient(
            100deg,
            #f28b00,
            #ffad19
        );

    box-shadow:
        0 16px 34px
        rgba(255, 152, 0, 0.38);
}


/* =========================================================
   BUTTON ACTIVE
========================================================= */

.track-button:active {

    transform:
        translateY(0);

    box-shadow:
        0 8px 18px
        rgba(255, 152, 0, 0.24);
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.tracking-error {
    margin:
        18px 0 0;

    text-align: center;

    color: #d93025;

    font-size: 16px;

    font-weight: 500;
}


/* =========================================================
   RESULT SECTION
========================================================= */

#resultSection {
    width: 100%;

    max-width: 700px;

    margin:
        0 auto 60px;

    padding:
        0 20px;
}

#result {
    width: 100%;
}


/* =========================================================
   RESULT CARD
========================================================= */

.result-card {
    width: 100%;

    background: #ffffff;

    color: #333;

    padding: 30px;

    border-radius: 14px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.22);

    overflow: hidden;
}

.result-card h3 {
    margin-bottom: 18px;

    color: #203a43;

    font-size: 22px;

    line-height: 1.3;
}

.result-card p {
    margin: 10px 0;

    color: #444;

    line-height: 1.6;

    word-wrap: break-word;
}


/* =========================================================
   STATUS BADGE
========================================================= */

.status-badge {
    display: inline-block;

    padding:
        6px 12px;

    background:
        #ff9800;

    color: #ffffff;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    box-shadow:
        0 4px 12px
        rgba(255, 152, 0, 0.18);
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline-title {
    margin-top: 30px;

    margin-bottom: 18px;

    color: #2c5364;

    font-size: 20px;

    line-height: 1.3;
}

.timeline {
    position: relative;

    margin-left: 8px;

    border-left:
        3px solid #2c5364;

    padding-left: 25px;
}

.timeline-item {
    position: relative;

    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TIMELINE DOT
========================================================= */

.timeline-dot {
    width: 13px;
    height: 13px;

    background:
        #ff9800;

    border-radius: 50%;

    position: absolute;

    left: -33px;

    top: 6px;

    box-shadow:
        0 0 0 4px
        rgba(255, 152, 0, 0.15);
}


/* =========================================================
   TIMELINE CONTENT
========================================================= */

.timeline-content {
    background:
        #f4f6f9;

    padding:
        14px 16px;

    border-radius: 8px;

    border:
        1px solid #e7eaed;
}

.timeline-location {
    font-weight: 700;

    color: #2c5364;

    margin-bottom: 4px;
}

.timeline-date {
    font-size: 13px;

    color: #777;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: 100%;

    margin-top: auto;

    text-align: center;

    padding:
        25px 20px;

    background:
        rgba(0, 0, 0, 0.22);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    color:
        rgba(255, 255, 255, 0.8);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    header {
        padding:
            16px 30px;
    }

    .hero {
        padding:
            60px 20px 80px;
    }

    .tracking-card {
        width:
            min(720px, calc(100% - 30px));
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    /* HEADER */

    header {
        padding:
            14px 20px;
    }

    .header-content {
        gap: 12px;
    }

    .logo-img {
        width: 52px;
        height: 52px;
    }

    .header-content h1 {
        font-size: 22px;
        line-height: 1.15;
    }


    /* HERO */

    .hero {
        padding:
            50px 0 65px;
    }

    .hero > h1 {
        font-size: 40px;

        line-height: 1.12;

        letter-spacing: -0.5px;

        margin:
            0 18px 18px;
    }

    .hero > p {
        font-size: 16px;

        line-height: 1.5;

        max-width: 500px;

        padding:
            0 18px;

        margin-bottom: 5px;
    }


    /* TRACKING CARD */

    .tracking-card {
        width:
            calc(100% - 28px);

        margin:
            24px auto;

        padding:
            42px 24px 46px;

        border-radius: 28px;
    }


    /* ICON */

    .tracking-icon {
        width: 94px;
        height: 94px;

        margin-bottom: 28px;
    }

    .tracking-icon svg {
        width: 44px;
        height: 44px;
    }


    /* HEADING */

    .tracking-card h2 {
        font-size: 38px;

        line-height: 1.15;
    }


    /* DESCRIPTION */

    .tracking-description {
        margin-top: 18px;

        margin-bottom: 42px;

        font-size: 18px;

        line-height: 1.55;
    }


    /* LABEL */

    .tracking-label {
        font-size: 18px;
    }


    /* INPUT */

    .tracking-input-wrapper input {
        height: 72px;

        padding-left: 62px;

        font-size: 18px;

        border-radius: 18px;
    }


    /* BARCODE */

    .barcode-icon {
        left: 22px;

        width: 23px;
        height: 23px;
    }


    /* BUTTON */

    .track-button {
        height: 72px;

        margin-top: 20px;

        border-radius: 18px;

        font-size: 20px;
    }

    .track-button svg {
        width: 27px;
        height: 27px;
    }


    /* RESULTS */

    #resultSection {
        width: 100%;

        padding:
            0 15px;

        margin-bottom: 45px;
    }

    .result-card {
        padding:
            22px 18px;

        border-radius: 12px;
    }

    .result-card h3 {
        font-size: 20px;
    }


    /* TIMELINE */

    .timeline {
        margin-left: 6px;

        padding-left: 20px;
    }

    .timeline-dot {
        left: -28px;
    }

    .timeline-content {
        padding:
            12px 14px;
    }


    /* FOOTER */

    footer {
        padding:
            20px 15px;

        font-size: 13px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .header-content {
        gap: 10px;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .header-content h1 {
        font-size: 19px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero > h1 {
        font-size: 34px;
    }

    .hero > p {
        font-size: 15px;
    }


    .tracking-card {
        width:
            calc(100% - 20px);

        padding:
            34px 18px 38px;
    }

    .tracking-card h2 {
        font-size: 32px;
    }

    .tracking-description {
        font-size: 17px;
    }

    .tracking-input-wrapper input {
        font-size: 16px;
    }

    .track-button {
        font-size: 18px;
    }

    .result-card {
        padding:
            18px 15px;
    }
}