/* ==================================
   TRACK ORDER PAGE
   Plain Plant Logistics and Supply
================================== */

:root {
    --primary: #0a2c52;
    --dark: #0f172a;
    --text: #475569;
     --secondary: #1e90ff;    /* action/links */
}

/* ================= HERO ================= */
.track-hero {
    position: relative;
    height: 35vh;
    background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.track-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 44, 82, 0.7);
}

.track-hero-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    max-width: 850px;
    margin: auto;
}

.track-hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
}

.track-hero-content p {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
}

/* ================= TRACK SECTION ================= */
.track-section {
    padding: 100px 0;
    background: #f8fafc;
}

.track-box {
    max-width: 650px;
    margin: auto;
    background: #ffffff;
    padding: 50px 45px;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.track-box h3 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
}

.track-box p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ===============================
   TRACK FORM – TABLE STYLE
================================ */

.track-section {
    padding: 90px 0;
    background: #ffffff;
}

.track-wrapper {
    max-width: 900px;
    margin: auto;
    border: 1px solid #d1d5db;
    background: #ffffff;
}

/* TITLE ROW */
.track-title {
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #d1d5db;
}

/* FORM ROW */
.track-form-table {
    display: grid;
    grid-template-columns: 1fr 220px;
}

.track-form-table input {
    padding: 22px;
    border: none;
    border-right: 1px solid #d1d5db;
    font-size: 16px;
    outline: none;
}

.track-form-table input::placeholder {
    color: #64748b;
}

.track-form-table button {
    border: none;
    background: var( --secondary); /* green like screenshot */
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.track-form-table button:hover {
    background: #094b77;
}

/* EXAMPLE ROW */
.track-example {
    text-align: center;
    padding: 18px;
    font-size: 16px;
    color: #0f172a;
    border-top: 1px solid #d1d5db;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .track-form-table {
        grid-template-columns: 1fr;
    }

    .track-form-table input {
        border-right: none;
        border-bottom: 1px solid #d1d5db;
    }

    .track-form-table button {
        padding: 18px;
    }
}






/* ERROR */
.track-error{
    color:#dc2626;
    text-align:center;
    margin-top:20px;
    font-weight:600;
}

/* STATUS BADGES */
.status-badge{
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
}
.status-badge.pending{background:#fef3c7;color:#92400e}
.status-badge.in-transit{background:#e0f2fe;color:#0369a1}
.status-badge.delivered{background:#dcfce7;color:#166534}

/* PROGRESS BAR */
.progress-wrap{margin:20px 0}
.progress-bar{
    height:10px;
    background:#e5e7eb;
    border-radius:999px;
    overflow:hidden;
}
.progress-fill{
    height:100%;
    transition:width .4s ease;
}
.progress-fill.pending{background:#facc15}
.progress-fill.in-transit{background:#38bdf8}
.progress-fill.delivered{background:#22c55e}

.progress-labels{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    margin-top:8px;
    color:#94a3b8;
}
.progress-labels span.active{
    color:#0f172a;
    font-weight:600;
}

/* TIMELINE */
.track-timeline{
    list-style:none;
    padding:0;
    margin-top:20px;
}
.track-timeline li{
    padding:16px;
    border-left:4px solid #cbd5e1;
    margin-bottom:14px;
    background:#fff;
    border-radius:8px;
}
.track-timeline li.pending{border-color:#facc15}
.track-timeline li.in-transit{border-color:#38bdf8}
.track-timeline li.delivered{border-color:#22c55e}
.track-timeline small{
    display:block;
    color:#64748b;
    margin:6px 0;
}


/* UNDER PROCESSING */
.status-badge.under-processing{
    background:#ede9fe;
    color:#5b21b6;
}

/* PROGRESS BAR */
.progress-fill.under-processing{
    background:#8b5cf6;
}

/* TIMELINE */
.track-timeline li.under-processing{
    border-color:#8b5cf6;
}
