:root {
    --primary-dark: #122c3e;
    --primary-darker: #0d2130;
    --accent-orange: #ff5722;
    --text-light: #f0f4f8;
    --text-muted: #9ba7b5;
    --card-bg: #ffffff;
    --text-dark: #1a202c;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-darker);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo Styling */
.logo-container {
    position: absolute;
    top: 0px;
    left: 60px;
    z-index: 100;
}

.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(18, 44, 62, 0.8), rgba(18, 44, 62, 0.9)), url('https://images.unsplash.com/photo-1542296332-2e4473faf563?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 100px 20px 200px;
    text-align: center;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 87, 34, 0.5);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-orange);
    margin-bottom: 30px;
    background: rgba(255, 87, 34, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 87, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    color: var(--accent-orange);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item h2 {
    color: var(--accent-orange);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Main Content & Form */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-top: -150px;
    z-index: 10;
    position: relative;
    padding-bottom: 80px;
}

.tracking-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.card-header-accent {
    height: 6px;
    background: var(--accent-orange);
    width: 80%;
    margin: 20px auto 0;
    border-radius: 10px;
}

.card-body {
    padding: 40px;
}

.card-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.card-body > p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.submit-btn {
    width: 100%;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    background-color: #e64a19;
}

.submit-btn:active {
    transform: translateY(2px);
}

.tracking-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}



.hidden {
    display: none;
}

@media (max-width: 600px) {
    /* Add these new styles for mobile only */
    .hero {
        padding: 15px 20px 200px !important;  /* Reduce top padding on mobile */
    }
    
    .logo-container {
        position: static;
        display: flex;
        justify-content: center; 
        width: 100%;
        margin-bottom: 5px;
		padding-left: 0 !important;
        padding-top: 5px !important;  /* Reduce top padding on mobile */
    }



	/* Reduce logo size on mobile */
    .site-logo {
        height: 40px !important;  /* Reduced from 50px */
        width: auto !important;
    }


	
    
    /* Keep your existing mobile styles below */
    h1 {
        font-size: 2.5rem;
    }
    
    .stats-container {
        gap: 30px;
    }
    
    .card-body {
        padding: 30px 20px;
    }
    
    /* ... rest of your existing mobile styles ... */
}


/* =======================================
   CUSTOM PREMIUM TRACKING CARD DESIGN
   ======================================= */
.custom-tracking-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* Status Bar - Default is ORANGE */
.custom-status-bar {
    background: #fff7ed;
    border-bottom: 1px solid #ffedd5;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ea580c;
}

/* Status Bar - GREEN when completed */
.custom-status-bar.status-completed {
    background: #f0fdf4;
    border-bottom: 1px solid #dcfce7;
    color: #15803d;
}

/* Status Bar - RED when cancelled */
.custom-status-bar.status-cancelled {
    background: #fff5f5;
    border-bottom: 1px solid #fee2e2;
    color: #ef4444;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: currentColor;
    border-radius: 50%;
	flex-shrink: 0;
}

.status-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-updated {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Details Grid */
.custom-details-grid {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}

.detail-col {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.detail-col:not(:last-child) {
    border-right: 1px solid #f1f5f9;
}

.detail-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

/* Timeline */
.custom-timeline {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
}

.custom-timeline-step {
    display: flex;
    position: relative;
    padding-left: 36px;
    padding-bottom: 28px;
}

.custom-timeline-step:last-child {
    padding-bottom: 0;
}

/* Timeline Line */
.custom-timeline-step::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 9px;
    bottom: -6px;
    width: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.custom-timeline-step:last-child::before {
    display: none;
}

/* Timeline Dots */
.step-icon {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background-color: #94a3b8;
    border: 4px solid #ffffff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px #cbd5e1;
    box-sizing: content-box;
}

/* Latest step - Default ORANGE */
.custom-timeline-step.is-latest .step-icon {
    background-color: #ea580c;
    box-shadow: 0 0 0 2px #ea580c;
}

/* Latest step - GREEN when completed */
.custom-timeline-step.is-completed .step-icon {
    background-color: #15803d;
    box-shadow: 0 0 0 2px #15803d;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

/* Latest step title - Default ORANGE */
.custom-timeline-step.is-latest .step-title {
    color: #ea580c;
}

/* Latest step title - GREEN when completed */
.custom-timeline-step.is-completed .step-title {
    color: #15803d;
}

.step-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.step-note {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    max-width: 90%;
    font-weight: 400;
}

/* Footer styling */
.custom-card-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-help {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(30, 41, 59, 0.25);
    letter-spacing: 0.3px;
}

.footer-print-btn::before {
    content: '↓';
    font-size: 15px;
    font-weight: 900;
}

.footer-print-btn:hover {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}


.footer-support-btn {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-support-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

@media (max-width: 600px) {
    .main-content {
        padding: 0;
        margin-top: -120px;
        padding-bottom: 80px;
    }
    
    .custom-tracking-card {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .tracking-result {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        margin-top: 20px;
        border-radius: 0;
    }

    .custom-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 8px;
    }
    
    .custom-timeline {
        padding: 20px 8px;
    }
    
    .custom-details-grid {
        flex-direction: column;
    }
    
    .detail-col {
        width: 100%;
        padding: 16px 6px;
    }

    .detail-col:first-child {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .custom-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 12px;
    }

    .footer-actions {
        width: 100%;
        justify-content: space-between;
    }

    .status-label {
        font-size: 12px;
    }

    .status-updated {
        font-size: 11px;
    }
}


/* PRINT STYLES */
@media print {

	/* 1. Add this right at the top of your @media print block to force standard portrait layout */
@page {
    size: A4 portrait !important;
    margin: 0mm !important;
}

/* 2. Update these selectors to keep the 680px width locked on phones */
html, body, #native-print-section {
    width: 680px !important;
    min-width: 680px !important;
}

/* 3. Add this to stop the "Order Number" and "Shipper Name" from stacking vertically on phones */
.custom-details-grid {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
}
.custom-details-grid > div {
    flex: 1 !important;
    width: 50% !important;
}
	
    header.hero, .tracking-form, .card-body > h2, .card-body > p, .card-header-accent, .footer-actions, button, input { display: none !important; }
    body { background: #ffffff !important; color: #000000 !important; min-height: auto !important; padding: 0 !important; margin: 0 !important; }
    .main-content { margin: 0 !important; padding: 0 !important; }
    .tracking-card { box-shadow: none !important; border: none !important; max-width: 100% !important; width: 100% !important; background: #ffffff !important; padding: 0 !important; margin: 0 !important; }
    .card-body { padding: 0 !important; }
    #trackingResult { display: block !important; border: none !important; padding: 0 !important; margin: 0 !important; }
    .custom-tracking-card { box-shadow: none !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; background: #ffffff !important; padding: 0 !important; margin: 0 !important; width: 100% !important; }
    .custom-card-footer { border-top: 1px solid #e2e8f0 !important; background: #ffffff !important; padding: 16px 24px !important; }
    
   /* ==================================================================
       ADD THESE LINES HERE TO FORCE THE TIMELINE CONNECTING LINE TO PRINT
       ================================================================== */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .custom-timeline-step::before {
        content: '' !important;
        position: absolute !important;
        top: 22px !important;
        left: 9px !important;
        bottom: -6px !important;
        width: 2px !important;
        background-color: #cbd5e1 !important; /* Elegant gray matching your screen design */
        display: block !important;
    }

	/* ==================================================================
       ADD THIS FIX HERE: Hides the vertical line on the very last step 
       ================================================================== */
    .custom-timeline-step:last-child::before {
        display: none !important;
    }
/* ==================================================================
       LOGO INJECTION (ATTACHED TO THE MAIN WRAPPER CONTAINER)
       ================================================================== */
    #native-print-section::before {
        content: "" !important;
        display: block !important;
        width: 130px !important;
        height: 55px !important;
        position: absolute !important;
        top: 40px !important;   /* Matches the layout padding perfectly */
        left: 40px !important;  
        background-image: url('https://tracking.pexuslog.com/logo.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: left center !important;
        z-index: 9999 !important;
    }

    /* Pushes the header text block rightward to give the logo room */
    #native-print-section h1,
    #native-print-section h2,
    #native-print-section [style*="font-size: 26px"],
    #native-print-section [style*="font-size: 28px"] {
        padding-left: 155px !important;
    }
    
    /* Safely realigns the subtitle text underneath the logo text */
    #native-print-section span[style*="text-transform: uppercase"] {
        display: inline-block !important;
        padding-left: 155px !important;
    }
}