.ld-tracking-wrapper {
    width: 100%;
    background: #f5f7fb;
    font-family: Arial, sans-serif;
    color: #1d2b44;
    padding-bottom: 70px;
}

.ld-tracking-hero {
    background:
        linear-gradient(rgba(235, 244, 255, 0.94), rgba(245, 247, 251, 0.95)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 85px 20px 45px;
    text-align: center;
}

.ld-tracking-hero-content h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    color: #164f91;
    line-height: 1.2;
}

.ld-tracking-hero-content p {
    margin: 22px 0 0;
    font-size: 30px;
    color: #37445a;
}

.ld-search-card {
    max-width: 980px;
    margin: 40px auto 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 45px;
    display: flex;
    gap: 20px;
    box-shadow: 0 12px 28px rgba(20, 40, 80, 0.09);
}

.ld-search-card input {
    flex: 1;
    height: 64px;
    border: 1px solid #cbd3dc;
    border-radius: 6px;
    padding: 0 24px;
    font-size: 23px;
    color: #1d2b44;
    outline: none;
    background: #ffffff;
}

.ld-search-card input:focus {
    border-color: #2389c9;
    box-shadow: 0 0 0 3px rgba(35, 137, 201, 0.15);
}

.ld-search-card button {
    width: 230px;
    height: 64px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #ff8b2b, #f36b16);
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.ld-search-card button:hover {
    background: linear-gradient(180deg, #ff943a, #ef620c);
    transform: translateY(-1px);
}

.ld-search-card button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#ld_tracking_message {
    max-width: 980px;
    margin: 18px auto 0;
}

.ld-error {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffd1d1;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 17px;
    text-align: left;
}

.ld-result-card {
    max-width: 980px;
    margin: 35px auto 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 38px 45px;
    box-shadow: 0 12px 28px rgba(20, 40, 80, 0.09);
}

.ld-result-card h2 {
    font-size: 30px;
    margin: 0 0 24px;
    color: #1d2b44;
    font-weight: 800;
}

.ld-line {
    height: 1px;
    background: #dce2ea;
    margin: 22px 0;
}

.ld-tracking-number {
    font-size: 25px;
    margin: 0;
}

.ld-info-list {
    margin-top: 10px;
}

.ld-info-list p {
    font-size: 22px;
    margin: 18px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.4;
}

.ld-icon {
    width: 36px;
    min-width: 36px;
    display: inline-flex;
    justify-content: center;
}

.ld-progress-box {
    position: relative;
    margin-top: 42px;
    background: #f0f2f6;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    padding: 24px 26px 18px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

.ld-progress-line {
    position: absolute;
    top: 51px;
    left: 60px;
    right: 60px;
    height: 5px;
    background: #c3c8cf;
    z-index: 1;
}

.ld-step {
    position: relative;
    z-index: 2;
    width: 25%;
    text-align: center;
}

.ld-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #647284;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
}

.ld-step span {
    font-size: 17px;
    color: #111827;
}

.ld-step.completed .ld-circle {
    background: #45a63b;
}

.ld-step.active .ld-circle {
    background: #2389c9;
}

.ld-step.completed span,
.ld-step.active span {
    color: #2389c9;
    font-weight: 800;
}

.ld-history-box {
    margin-top: 35px;
    background: #f8fafc;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    padding: 22px;
}

.ld-history-box h3 {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 800;
}

#ld_result_history {
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
}

.ld-features {
    max-width: 980px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.ld-feature {
    padding: 15px 35px;
    border-right: 1px solid #dce2ea;
}

.ld-feature:last-child {
    border-right: none;
}

.ld-feature-icon {
    font-size: 54px;
    margin-bottom: 16px;
}

.ld-feature h3 {
    margin: 0;
    font-size: 23px;
    color: #35445a;
    font-weight: 800;
}

@media (max-width: 768px) {

    .ld-tracking-hero {
        padding: 55px 15px 35px;
    }

    .ld-tracking-hero-content h1 {
        font-size: 30px;
    }

    .ld-tracking-hero-content p {
        font-size: 22px;
    }

    .ld-search-card {
        flex-direction: column;
        padding: 24px;
    }

    .ld-search-card input,
    .ld-search-card button {
        width: 100%;
        font-size: 19px;
    }

    .ld-result-card {
        margin-left: 15px;
        margin-right: 15px;
        padding: 26px 22px;
    }

    .ld-tracking-number {
        font-size: 20px;
    }

    .ld-info-list p {
        font-size: 18px;
        align-items: flex-start;
    }

    .ld-progress-box {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ld-progress-line {
        left: 40px;
        right: 40px;
    }

    .ld-circle {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .ld-step span {
        font-size: 12px;
    }

    .ld-features {
        grid-template-columns: 1fr;
        margin-left: 15px;
        margin-right: 15px;
    }

    .ld-feature {
        border-right: none;
        border-bottom: 1px solid #dce2ea;
    }

    .ld-feature:last-child {
        border-bottom: none;
    }
}

/* Mobile heading optimization */
@media screen and (max-width: 768px) {
    .ld-tracking-hero-content h1 {
        width: 100%;
        max-width: 100%;
        margin: 0 auto !important;
        padding: 0 5px;
        font-size: 32px !important;
        line-height: 1.18 !important;
        font-weight: 800;
        letter-spacing: -0.5px;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: center;
    }

    .ld-tracking-hero-content p {
        margin-top: 18px !important;
        font-size: 18px !important;
        line-height: 1.4;
    }

    .ld-tracking-hero {
        padding: 50px 15px 35px !important;
    }
}

/* Smaller mobile phones */
@media screen and (max-width: 480px) {
    .ld-tracking-hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.3px;
    }

    .ld-tracking-hero-content p {
        font-size: 17px !important;
    }

    .ld-tracking-hero {
        padding: 42px 12px 30px !important;
    }
}