/* =========================
   VARIABLES
========================= */
:root {
    --cp-orange: #f06020;
    --cp-green: #40b040;
    --cp-pink: #e02070;
    --cp-blue: #1090d0;
    --cp-yellow: #f0c010;
    --cp-ink: #263238;
    --cp-soft: #fff8e8;
    --cp-line: #e7edf3;
}

/* =========================
   GLOBAL
========================= */
body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    color: var(--cp-ink);
    background: #ffffff;
    padding-top: 96px;
}

.brand-logo {
    width: 190px;
    max-width: 48vw;
    height: auto;
}

.navbar {
    min-height: 82px;
}

/* =========================
   BOOTSTRAP OVERRIDES
========================= */
.btn-primary {
    --bs-btn-bg: var(--cp-pink);
    --bs-btn-border-color: var(--cp-pink);
    --bs-btn-hover-bg: #c91a63;
    --bs-btn-hover-border-color: #c91a63;
    --bs-btn-active-bg: #b21658;
    --bs-btn-active-border-color: #b21658;
}

.btn-outline-primary {
    --bs-btn-color: var(--cp-blue);
    --bs-btn-border-color: var(--cp-blue);
    --bs-btn-hover-bg: var(--cp-blue);
    --bs-btn-hover-border-color: var(--cp-blue);
    --bs-btn-active-bg: var(--cp-blue);
    --bs-btn-active-border-color: var(--cp-blue);
}

.text-bg-primary {
    background-color: var(--cp-blue) !important;
}

.text-bg-warning {
    color: #3b2b00 !important;
    background-color: var(--cp-yellow) !important;
}

.text-bg-success {
    background-color: var(--cp-green) !important;
}

/* =========================
   LANDING SCREEN
========================= */
.track-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 1rem;
}

/*track-no*/
.track-card {
    background: #fff;
    padding: 1.875rem; /* 30px */
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}

    .track-card h2 {
        color: var(--cp-ink);
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    .track-card p {
        color: #6b7280;
        font-size: 14px;
        margin-bottom: 1rem;
    }

.track-input-group {
    display: flex;
    gap: 0.5rem;
}

.track-input {
    flex: 1;
    padding: 0.625rem 0.75rem; /* 10px/12px */
    border-radius: 8px;
    border: 1px solid #e7edf3;
    font-size: 0.95rem;
}

.track-btn {
    background: var(--cp-blue);
    border: none;
    color: #fff;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.track-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================
   HERO SECTION
========================= */
.tracking-hero {
    background: var(--cp-soft);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #53616a;
    font-size: 0.95rem;
    font-weight: 600;
}

.meta-separator {
    color: rgba(83, 97, 106, 0.5);
}

/* =========================
   PROGRESS CARD
========================= */
.panel-card {
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    box-shadow: 0 0.35rem 1rem rgba(38, 50, 56, 0.07);
}

.tracking-progress {
    height: 0.85rem;
    background-color: #edf2f6;
    border-radius: 999px;
}

    .tracking-progress .progress-bar {
        background: linear-gradient(90deg, var(--cp-green), var(--cp-blue), var(--cp-orange));
    }

.tracking-milestones > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
}

.tracking-marker {
    display: inline-block;
    flex: 0 0 0.75rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #adb5bd;
}

    .tracking-marker.completed {
        background: var(--cp-green);
    }

    .tracking-marker.active {
        background: var(--cp-orange);
        box-shadow: 0 0 0 0.2rem rgba(240, 96, 32, 0.15);
    }

    .tracking-marker.pending {
        background: #ffffff;
        border: 2px solid #adb5bd;
    }

/* =========================
   TIMELINE
========================= */
.timeline {
    position: relative;
}

    .timeline::before {
        position: absolute;
        top: 0.75rem;
        bottom: 0.75rem;
        left: 1rem;
        width: 2px;
        content: "";
        background: var(--cp-line);
    }

.timeline-item {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #ffffff;
    font-weight: 700;
    background: #adb5bd;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--cp-line);
}

.timeline-card {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 0.4rem 1rem rgba(38, 50, 56, 0.08);
}

.activity-feed {
    background: #ffffff;
    border: 1px solid #edf1f4;
    border-radius: 8px;
    padding: 0.25rem 0 0.25rem 0;
}

    .activity-feed::before {
        top: 1.75rem;
        bottom: 1.75rem;
        left: 2rem;
    }

    .activity-feed .timeline-item {
        gap: 1.25rem;
        padding: 1.1rem 1.25rem 1.1rem 1rem;
    }

        .activity-feed .timeline-item:not(:last-child) .timeline-card {
            border-bottom: 1px solid #edf1f4;
        }

    .activity-feed .timeline-dot {
        flex-basis: 2rem;
        width: 2rem;
        height: 2rem;
        margin-top: 0.15rem;
        border-width: 4px;
        box-shadow: none;
    }

    .activity-feed .timeline-card {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .activity-feed .card-body {
        padding: 0 0 1rem 0;
    }

    .activity-feed .timeline-item:last-child .card-body {
        padding-bottom: 0;
    }

.timeline-item.completed .timeline-dot {
    background: var(--cp-green);
}

.timeline-item.active .timeline-dot {
    color: #ffffff;
    background: var(--cp-blue);
    box-shadow: 0 0 0 4px rgba(16, 144, 208, 0.18);
}

.timeline-item.pending .timeline-dot {
    color: #6c757d;
    background: #ffffff;
}

/* =========================
   SUPPORT CARD
========================= */
.support-card {
    color: #ffffff;
    background: var(--cp-blue);
}

/* =========================
   SUPPORT HERO
========================= */
.support-hero {
    background: var(--cp-soft);
}

/* =========================
   NOTE CARD
========================= */
.note-card {
    border-top: 4px solid var(--cp-yellow) !important;
}

/* =========================
   UTILITIES
========================= */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.form-control:focus {
    border-color: var(--cp-blue);
    box-shadow: 0 0 0 0.25rem rgba(16, 144, 208, 0.18);
}

.form-control::placeholder {
    color: #a8b0b7;
    opacity: 1;
}

/* ==========================================
   MOBILE OPTIMIZATION
========================================== */
@media (max-width: 575.98px) {
    body {
        padding-top: 128px;
    }

    .navbar {
        min-height: 112px;
    }

    .brand-logo {
        width: 160px;
    }

    .tracking-hero .display-5 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .tracking-hero p {
        font-size: .85rem;
        line-height: 1.5;
    }

    .progress {
        height: 10px !important;
    }

    .tracking-marker {
        width: 12px;
        height: 12px;
    }

    .timeline-item {
        padding: .85rem .75rem;
        gap: .75rem;
    }

    .timeline-dot {
        margin-top: 10px;
        width: 1.75rem;
        height: 1.75rem;
        flex: 0 0 1.75rem;
    }

    .timeline::before {
        left: 26px !important;
    }

    .timeline-card .card-body {
        padding-bottom: .5rem !important;
    }

    .timeline-card h3 {
        font-size: 1rem;
        margin-bottom: .25rem !important;
    }

    .timeline-card p {
        margin-bottom: .25rem;
    }

    .badge {
        font-size: .7rem;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}
