/* ===== TRACK ORDER PAGE ===== */
.track-section {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, #eef2ff 0%, #f4f6fb 60%, #fdf8f0 100%);
    min-height: 80vh;
}

/* ---- Form wrapper ---- */
.track-container {
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 16px 60px rgba(0,0,0,.09);
    padding: 52px 44px 44px;
    text-align: center;
    transition: max-width .5s cubic-bezier(.4,0,.2,1);
}

/* Widen when result shown */
.track-container.result-mode {
    max-width: 820px;
}

/* ---- Form ---- */
.track-header { margin-bottom: 32px; }
.track-header h1 {
    font-size: 28px;
    font-weight: 900;
    color: #0d0f2b;
    margin-bottom: 10px;
    letter-spacing: -.4px;
}
.track-header p { color: #64748b; font-size: 15px; line-height: 1.65; }

.track-form { display: flex; flex-direction: column; gap: 16px; }
.track-form .input-group { text-align: left; }

.track-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0d0f2b;
    margin-bottom: 7px;
    letter-spacing: .2px;
}

.track-form input {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fafbff;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.track-form input:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 4px rgba(245,166,35,.1);
    background: #fff;
}

.btn-track {
    background: linear-gradient(135deg, #f5a623 0%, #f7c259 100%);
    color: #1a2250;
    font-weight: 800;
    font-size: 15px;
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all .25s;
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(245,166,35,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245,166,35,.4);
}

/* ---- Result panel ---- */
.track-result { display: none; }
.track-result.active { display: block; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.track-result.active { animation: fadeSlideUp .45s ease both; }

/* ==============================
   STATUS HERO CARD
   ============================== */
.status-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #0d0f2b 0%, #1a1f5e 100%);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* Decorative blobs */
.status-hero::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(245,166,35,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.status-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 30%;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.status-hero-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f5a623, #f7c259);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #1a2250;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(245,166,35,.35);
    position: relative;
    z-index: 1;
}

.status-hero-info { position: relative; z-index: 1; }
.status-hero-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.status-hero-status {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 4px;
    text-transform: capitalize;
}
.status-hero-id {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    font-weight: 500;
    font-family: 'Courier New', monospace;
    letter-spacing: .5px;
}

.status-hero-badge {
    position: relative;
    z-index: 1;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}
.status-hero-badge.pending   { background: rgba(245,166,35,.18); color: #f5a623; border: 1px solid rgba(245,166,35,.3); }
.status-hero-badge.confirmed { background: rgba(99,102,241,.18); color: #818cf8; border: 1px solid rgba(99,102,241,.3); }
.status-hero-badge.assigned  { background: rgba(6,182,212,.18);  color: #22d3ee; border: 1px solid rgba(6,182,212,.3); }
.status-hero-badge.completed { background: rgba(34,197,94,.18);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }

/* ==============================
   HORIZONTAL STEPPER
   ============================== */
.stepper {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* Base connector */
.stepper::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(56px / 2);
    right: calc(56px / 2);
    height: 3px;
    background: #e9ecf5;
    border-radius: 2px;
    z-index: 0;
}

/* Gold progress fill */
.stepper::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(56px / 2);
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #f7c259);
    border-radius: 2px;
    z-index: 0;
    width: 0%;
    transition: width .7s cubic-bezier(.4,0,.2,1);
}
.stepper.progress-1::after  { width: 0%; }
.stepper.progress-2::after  { width: 33.33%; }
.stepper.progress-3::after  { width: 66.66%; }
.stepper.progress-4::after  { width: 100%; }

/* Step item */
.stepper li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 6px;
}

/* Circle */
.stepper li .step-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #cbd5e1;
    margin-bottom: 14px;
    transition: all .35s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Pulse ring on active */
.stepper li.active .step-circle {
    border-color: #f5a623;
    color: #f5a623;
    box-shadow: 0 0 0 6px rgba(245,166,35,.12), 0 4px 14px rgba(245,166,35,.2);
    animation: pulseCircle 2s ease-in-out infinite;
}
@keyframes pulseCircle {
    0%,100% { box-shadow: 0 0 0 6px rgba(245,166,35,.12), 0 4px 14px rgba(245,166,35,.2); }
    50%      { box-shadow: 0 0 0 10px rgba(245,166,35,.06), 0 4px 14px rgba(245,166,35,.2); }
}

/* Completed */
.stepper li.complete .step-circle {
    background: linear-gradient(135deg, #f5a623, #f7c259);
    border-color: transparent;
    color: #1a2250;
    box-shadow: 0 4px 16px rgba(245,166,35,.35);
}

/* Labels */
.stepper-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    display: block;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color .3s;
}
.stepper-date {
    font-size: 11px;
    color: #c8d0e0;
    text-align: center;
    display: block;
    font-weight: 500;
    transition: color .3s;
}

.stepper li.complete .stepper-title { color: #0d0f2b; }
.stepper li.complete .stepper-date  { color: #f5a623; font-weight: 700; }
.stepper li.active  .stepper-title  { color: #f5a623; }
.stepper li.active  .stepper-date   { color: #94a3b8; }

/* ---- Back button ---- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.btn-back:hover {
    background: #f4f6fb;
    color: #0d0f2b;
    border-color: #cbd5e1;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .track-container { padding: 28px 18px; border-radius: 20px; }

    .status-hero { grid-template-columns: auto 1fr; }
    .status-hero-badge { display: none; }

    /* Vertical stepper on mobile */
    .stepper { flex-direction: column; gap: 0; }
    .stepper::before, .stepper::after { display: none; }

    .stepper li {
        flex-direction: row;
        align-items: flex-start;
        padding: 0 0 24px 0;
        gap: 16px;
    }
    .stepper li:last-child { padding-bottom: 0; }
    .stepper li::before {
        content: '';
        position: absolute;
        left: 27px; top: 56px;
        width: 2px; height: calc(100% - 28px);
        background: #e2e8f0; z-index: 0;
    }
    .stepper li:last-child::before { display: none; }
    .stepper li.complete::before { background: #f5a623; }
    .stepper li .step-circle { margin-bottom: 0; flex-shrink: 0; }
    .stepper-title, .stepper-date { text-align: left; }
}
