/* Tracking Page — Enterprise Shipment Tracking */
:root {
    --trk-primary: #0B1F3A;
    --trk-secondary: #102C57;
    --trk-accent: #FF6B00;
    --trk-light: #F8FAFC;
    --trk-gray: #475569;
    --trk-success: #16A34A;
    --trk-warning: #F59E0B;
    --trk-danger: #DC2626;
    --trk-radius: 1rem;
    --trk-shadow: 0 24px 64px rgba(11, 31, 58, 0.14);
    --trk-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.site-tracking {
    --navy: var(--trk-primary);
    --accent: var(--trk-accent);
}

.trk-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(0.65rem, 1.5vw, 0.72rem);
    font-weight: 700;
    color: var(--trk-accent);
    margin-bottom: 1rem;
}
.trk-eyebrow--light { color: #ff8533; }

.trk-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.trk-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.trk-section-head h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--trk-primary);
    margin-bottom: 0.75rem;
}
.trk-section-head p { color: var(--trk-gray); margin: 0; line-height: 1.7; }

.trk-btn-ghost {
    border: 2px solid rgba(255,255,255,0.35) !important;
    font-weight: 600;
}
.trk-btn-ghost:hover { background: rgba(255,255,255,0.12) !important; color: #fff !important; }

.trk-btn-outline {
    border: 2px solid var(--trk-primary) !important;
    color: var(--trk-primary) !important;
    font-weight: 600;
}
.trk-btn-outline:hover {
    background: var(--trk-primary) !important;
    color: #fff !important;
}

.trk-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.trk-reveal.is-visible { opacity: 1; transform: none; }

/* Hero */
.trk-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--trk-primary) center/cover no-repeat;
    background-image: var(--trk-hero-bg);
    color: #fff;
    padding: clamp(6rem, 12vw, 7rem) 0 clamp(3rem, 6vw, 4rem);
}
.trk-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,31,58,0.94) 0%, rgba(16,44,87,0.88) 100%);
}
.trk-hero__inner { position: relative; z-index: 1; width: 100%; }

.trk-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.trk-hero__lead {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* Search Card */
.trk-search-card {
    background: #fff;
    border-radius: calc(var(--trk-radius) + 0.25rem);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--trk-shadow);
    margin-top: 1rem;
}
.trk-search-form { display: flex; flex-direction: column; gap: 1rem; }
.trk-search-form__field {
    position: relative;
    display: flex;
    align-items: center;
}
.trk-search-form__field > i {
    position: absolute;
    left: 1.15rem;
    color: var(--trk-gray);
    font-size: 1.1rem;
    z-index: 1;
}
.trk-search-form__field .form-control {
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(11,31,58,0.1);
    border-radius: 12px;
    font-size: 1rem;
    min-height: 56px;
}
.trk-search-form__field .form-control:focus {
    border-color: var(--trk-accent);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}
.trk-search-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    min-height: 52px;
}
.trk-search-card__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--trk-gray);
    margin: 1rem 0 0;
}
.trk-search-card__hint i { color: var(--trk-success); }

/* Result Section */
.trk-result-section { background: var(--trk-light); margin-top: -2rem; position: relative; z-index: 2; padding-top: clamp(2rem, 4vw, 3rem); }

.trk-result {
    background: #fff;
    border-radius: calc(var(--trk-radius) + 0.25rem);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: var(--trk-shadow);
    border: 1px solid rgba(11,31,58,0.06);
}

.trk-result__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(11,31,58,0.08);
}

.trk-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.trk-badge--primary { background: rgba(11,31,58,0.1); color: var(--trk-primary); }
.trk-badge--success { background: rgba(22,163,74,0.12); color: var(--trk-success); }
.trk-badge--warning { background: rgba(245,158,11,0.15); color: #b45309; }
.trk-badge--danger { background: rgba(220,38,38,0.12); color: var(--trk-danger); }

.trk-cancelled-note {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    color: var(--trk-danger);
    font-weight: 600;
}

.trk-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.trk-result__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--trk-gray);
    margin-bottom: 0.25rem;
}
.trk-result__meta strong {
    font-size: 1rem;
    color: var(--trk-primary);
}

.trk-progress-bar {
    position: relative;
    height: 8px;
    background: rgba(11,31,58,0.08);
    border-radius: 999px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.trk-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--trk-accent), #ff8533);
    border-radius: 999px;
    transition: width 0.8s ease;
}
.trk-progress-bar span {
    position: absolute;
    right: 0;
    top: -1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--trk-accent);
}

/* Timeline */
.trk-timeline {
    display: flex;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}
.trk-timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: rgba(11,31,58,0.1);
    z-index: 0;
}
.trk-timeline__step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.trk-timeline__marker {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    background: #fff;
    border: 3px solid rgba(11,31,58,0.15);
    color: var(--trk-gray);
    transition: var(--trk-transition);
}
.trk-timeline__step--done .trk-timeline__marker {
    background: var(--trk-success);
    border-color: var(--trk-success);
    color: #fff;
}
.trk-timeline__step--active .trk-timeline__marker {
    background: var(--trk-accent);
    border-color: var(--trk-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,0,0.25);
}
.trk-timeline__step--cancelled .trk-timeline__marker {
    background: var(--trk-danger);
    border-color: var(--trk-danger);
    color: #fff;
}
.trk-timeline__content span {
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    font-weight: 700;
    color: var(--trk-primary);
    line-height: 1.35;
}
.trk-timeline__step--pending .trk-timeline__content span { color: var(--trk-gray); opacity: 0.7; }

/* Detail Cards */
.trk-detail-card {
    background: var(--trk-light);
    border: 1px solid rgba(11,31,58,0.06);
    border-radius: var(--trk-radius);
    padding: 1.25rem;
    height: 100%;
    transition: var(--trk-transition);
}
.trk-detail-card:hover {
    border-color: rgba(255,107,0,0.3);
    transform: translateY(-2px);
}
.trk-detail-card > i {
    font-size: 1.2rem;
    color: var(--trk-accent);
    margin-bottom: 0.65rem;
    display: block;
}
.trk-detail-card__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--trk-gray);
    margin-bottom: 0.3rem;
}
.trk-detail-card strong {
    font-size: 0.95rem;
    color: var(--trk-primary);
    line-height: 1.4;
    word-break: break-word;
}

/* Empty State */
.trk-empty {
    text-align: center;
    background: #fff;
    border-radius: calc(var(--trk-radius) + 0.25rem);
    padding: clamp(2.5rem, 6vw, 4rem);
    box-shadow: var(--trk-shadow);
}
.trk-empty__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(245,158,11,0.12);
    color: var(--trk-warning);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.trk-empty h2 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    color: var(--trk-primary);
    margin-bottom: 0.75rem;
}
.trk-empty p {
    color: var(--trk-gray);
    max-width: 480px;
    margin: 0 auto 1.75rem;
    line-height: 1.7;
}
.trk-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* How It Works */
.trk-how { background: #fff; }

.trk-how-card {
    background: var(--trk-light);
    border: 1px solid rgba(11,31,58,0.06);
    border-radius: var(--trk-radius);
    padding: 1.75rem;
    height: 100%;
    position: relative;
    transition: var(--trk-transition);
}
.trk-how-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--trk-shadow);
    border-color: rgba(255,107,0,0.25);
}
.trk-how-card__num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(11,31,58,0.2);
}
.trk-how-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255,107,0,0.12);
    color: var(--trk-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.trk-how-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--trk-primary);
    margin-bottom: 0.5rem;
}
.trk-how-card p {
    font-size: 0.88rem;
    color: var(--trk-gray);
    margin: 0;
    line-height: 1.65;
}

/* CTA */
.trk-cta {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--trk-primary) center/cover no-repeat;
    background-image: var(--trk-cta-bg);
}
.trk-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,31,58,0.94) 0%, rgba(16,44,87,0.88) 100%);
}
.trk-cta__inner { position: relative; z-index: 1; }
.trk-cta-box {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    color: #fff;
}
.trk-cta-box h2 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.trk-cta-box p {
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.trk-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991.98px) {
    .trk-timeline { flex-direction: column; gap: 1.25rem; padding: 0; }
    .trk-timeline::before {
        top: 0;
        bottom: 0;
        left: 21px;
        right: auto;
        width: 3px;
        height: auto;
    }
    .trk-timeline__step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    .trk-timeline__marker { margin: 0; flex-shrink: 0; }
    .trk-result-section { margin-top: 0; }
}

@media (max-width: 767.98px) {
    .trk-hero { min-height: auto; padding-top: 5.5rem; }
    .trk-search-form__btn,
    .trk-empty__actions .btn,
    .trk-cta__actions .btn { width: 100%; }
    .trk-result__header { flex-direction: column; }
    .trk-result__meta { flex-direction: column; gap: 1rem; }
}

@media (max-width: 414px) {
    .trk-search-form__field .form-control { font-size: 0.92rem; }
}

@media (min-width: 1440px) {
    .trk-hero__inner .container,
    .trk-section .container { max-width: 1200px; }
}
