/* ==============================
   ASHMEERAH ORDER TRACKING
   PINK & WHITE THEME
================================ */

:root {
    --pink: #d81b60;
    --pink-dark: #ad1249;
    --pink-light: #fff0f5;
    --white: #ffffff;
    --text: #222222;
    --muted: #777777;
    --border: #eeeeee;
    --background: #f7f7fa;
    --success: #dff7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */

.tracking-header {
    background: white;
    padding: 20px 5%;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.tracking-brand {
    text-decoration: none;
    color: var(--pink);
}

.tracking-brand h2 {
    margin: 0;
    font-size: 24px;
}

.tracking-brand p {
    margin: 6px 0 0;
    color: #555;
}

/* HERO */

.tracking-hero {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    padding: 65px 20px 110px;
    text-align: center;
}

.tracking-hero-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(216, 27, 96, 0.12);
    color: var(--pink);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto auto 20px;
    font-size: 26px;
}

.tracking-label {
    letter-spacing: 5px;
    font-size: 13px;
    font-weight: 700;
}

.tracking-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 15px 0;
}

.tracking-hero p {
    max-width: 650px;
    margin: auto;
    line-height: 1.7;
    font-size: 17px;
}

/* MAIN */

.tracking-container {
    max-width: 1050px;
    width: 92%;
    margin: -65px auto 60px;
    position: relative;
}

/* CARDS */

.tracking-card {
    background: white;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.tracking-card h2 {
    margin: 0;
    font-size: 28px;
}

.tracking-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.heading-icon {
    width: 55px;
    height: 55px;
    background: var(--pink-light);
    color: var(--pink);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.tracking-card-heading p,
.section-description {
    color: var(--muted);
    line-height: 1.6;
}

/* FORM */

.tracking-field {
    margin-bottom: 25px;
}

.tracking-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 16px;
}

.tracking-input {
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 15px;
    padding: 0 20px;
    height: 65px;
    gap: 15px;
    transition: 0.2s;
}

.tracking-input:focus-within {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.08);
}

.tracking-input i {
    color: var(--pink);
}

.tracking-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.tracking-input input::placeholder {
    color: #999;
}

/* BUTTON */

#trackButton,
#trackAnother {
    border: none;
    border-radius: 12px;
    background: var(--pink);
    color: white;
    padding: 17px 25px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

#trackButton {
    width: 100%;
}

#trackButton:hover,
#trackAnother:hover {
    background: var(--pink-dark);
}

#trackButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tracking-security {
    text-align: center;
    color: var(--muted);
    margin: 20px 0 0;
}

.tracking-security i {
    color: var(--pink);
}

/* ERROR */

.tracking-error {
    color: #c62828;
    margin-bottom: 15px;
    font-size: 14px;
}

/* RESULTS */

#trackingResults[hidden] {
    display: none;
}

.progress-card {
    overflow: hidden;
}

.section-description {
    margin: 12px 0 35px;
}

/* PROGRESS */

.progress-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 10px;
}

.progress-track::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: #eeeeee;
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.progress-circle {
    width: 55px;
    height: 55px;
    margin: auto auto 12px;
    border-radius: 50%;
    background: #f1f1f1;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #eeeeee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.progress-step.active {
    color: var(--pink);
    font-weight: 700;
}

.progress-step.active .progress-circle {
    background: var(--pink);
    color: white;
    box-shadow: 0 0 0 3px var(--pink-light);
}

.progress-step.completed .progress-circle {
    background: var(--pink);
    color: white;
    box-shadow: 0 0 0 3px var(--pink-light);
}

/* CANCELLED */

#cancelledNotice {
    background: #fff0f0;
    color: #c62828;
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    font-weight: 700;
}

/* ORDER DETAILS */

.details-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.status-badge {
    padding: 10px 18px;
    background: var(--pink-light);
    color: var(--pink);
    border-radius: 30px;
    font-weight: 700;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-box {
    background: #faf9fb;
    padding: 25px;
    border-radius: 15px;
    min-width: 0;
}

.detail-box span {
    display: block;
    color: var(--muted);
    margin-bottom: 12px;
}

.detail-box strong {
    display: block;
    font-size: 18px;
    overflow-wrap: anywhere;
}

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

/* FOOTER */

.tracking-footer {
    text-align: center;
    padding: 35px 20px;
    color: #777;
    background: white;
    line-height: 1.8;
}

/* MOBILE */

@media (max-width: 650px) {

    .tracking-header {
        padding: 18px 10px;
    }

    .tracking-brand h2 {
        font-size: 19px;
    }

    .tracking-hero {
        padding: 45px 20px 100px;
    }

    .tracking-hero h1 {
        font-size: 32px;
    }

    .tracking-hero p {
        font-size: 15px;
    }

    .tracking-container {
        width: 94%;
    }

    .tracking-card {
        padding: 22px 17px;
        border-radius: 18px;
    }

    .tracking-card h2 {
        font-size: 23px;
    }

    .tracking-card-heading {
        align-items: flex-start;
    }

    .tracking-card-heading p {
        font-size: 14px;
    }

    .progress-track {
        gap: 3px;
    }

    .progress-track::before {
        top: 21px;
        left: 7%;
        right: 7%;
    }

    .progress-circle {
        width: 43px;
        height: 43px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .progress-step {
        font-size: 10px;
        line-height: 1.4;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-box {
        padding: 20px;
    }

    .detail-box strong {
        font-size: 16px;
    }

    #trackAnother {
        width: 100%;
    }
}