/* =========================================
   TRACK ORDER PAGE STYLES
   ========================================= */

.track-section { margin-bottom: 80px; }

/* --- 1. Form Box --- */
.track-form-box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.track-desc {
    text-align: center; color: #666; margin-bottom: 30px; line-height: 1.6;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.form-group input {
    width: 100%; padding: 12px 15px;
    border: 1px solid #ddd; border-radius: 5px;
    font-size: 1rem; outline: none; transition: 0.3s;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 5px rgba(128, 235, 14, 0.2); }

.track-btn {
    width: 100%; padding: 12px;
    background: var(--dark); color: var(--white);
    border: none; border-radius: 5px;
    font-size: 1rem; font-weight: 700; text-transform: uppercase;
    cursor: pointer; transition: 0.3s;
}
.track-btn:hover { background: var(--primary); color: var(--dark); }


/* --- 2. Tracking Result Area --- */
.track-result {
    max-width: 900px; margin: 0 auto;
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.order-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 40px;
    flex-wrap: wrap; gap: 15px;
}
.order-header h3 { font-size: 1.5rem; }
.highlight { color: var(--primary); }
.order-header p { color: #666; }
#trackAnotherBtn {
    background: transparent; border: 1px solid #ddd;
    padding: 8px 15px; border-radius: 4px; cursor: pointer; transition: 0.3s;
}
#trackAnotherBtn:hover { background: var(--dark); color: #fff; }


/* --- TIMELINE STYLES --- */
.track-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
}

/* Connecting Line (Background Gray) */
.track-timeline::before {
    content: ''; position: absolute; top: 25px; left: 0; width: 100%; height: 4px;
    background: #eee; z-index: 1;
}

/* Step Item */
.step {
    position: relative; z-index: 2;
    text-align: center; width: 25%;
}

/* Icon Circle */
.step .icon {
    width: 50px; height: 50px;
    background: #fff; border: 4px solid #eee;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #ccc;
    transition: 0.4s;
}

/* Text */
.step .text h4 { font-size: 0.95rem; margin-bottom: 5px; color: #999; }
.step .text span { font-size: 0.8rem; color: #ccc; display: block; }

/* --- ACTIVE STATE (Neon Green) --- */
.step.active .icon {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 10px rgba(128, 235, 14, 0.4);
}
.step.active .text h4 { color: var(--dark); font-weight: 700; }
.step.active .text span { color: #666; }

/* Current Step Pulse Effect */
.step.current .icon {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(128, 235, 14, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(128, 235, 14, 0); }
    100% { box-shadow: 0 0 0 0 rgba(128, 235, 14, 0); }
}

/* Connecting Line (Active Green Fill) */
/* Is logic ko handle karna CSS mein mushkil hai bina complex selectors ke.
   Simple approach: Hum active steps ki line ko JS se handle kar sakte hain, 
   ya simple grey line rakhein aur icon ko highlight karein (Jo upar kiya hai). */


/* --- Order Items Mini --- */
.order-details-mini {
    background: #f9f9f9; padding: 20px; border-radius: 8px;
}
.order-details-mini h4 { font-size: 1rem; margin-bottom: 15px; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.item-mini { display: flex; align-items: center; gap: 15px; }
.item-mini img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .track-timeline { flex-direction: column; gap: 30px; padding-left: 20px; }
    .track-timeline::before {
        top: 0; left: 24px; width: 4px; height: 100%; /* Vertical Line */
    }
    .step { width: 100%; display: flex; text-align: left; gap: 20px; align-items: center; }
    .step .icon { margin: 0; }
}