/* Tracking Page Styles */
:root {
    --track-orange: #ff6d2e;
    --track-orange-dark: #e85a1e;
    --track-dark: #04223e;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
    padding: 0 20px;
}

.progress-tracker::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-tracker .progress-line {
    position: absolute;
    top: 25px;
    left: 60px;
    height: 4px;
    background: var(--track-orange);
    z-index: 2;
    transition: width 0.5s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #999;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.step-icon.active {
    background: var(--track-orange);
    color: #fff;
}

.step-icon.current {
    background: var(--track-orange);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 109, 46, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 109, 46, 0); }
}

.step-label {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.step-label.active {
    color: var(--track-orange);
}

.step-label.current {
    color: var(--track-orange);
    font-weight: 700;
}

/* Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

.status-pending { background: #f8f9fa; color: #495057; border: 1px solid #dee2e6; }
.status-processing { background: #e9ecef; color: #495057; }
.status-in_transit { background: #dee2e6; color: #343a40; }
.status-out_for_delivery { background: #adb5bd; color: #212529; }
.status-delivered { background: #6c757d; color: #fff; }
.status-cancelled { background: #e9ecef; color: #6c757d; }

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-tracker {
        padding: 0 10px;
    }

    .progress-tracker::before {
        left: 30px;
        right: 30px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* ========================================
   PRINT RECEIPT STYLES
   ======================================== */

/* Hide print receipt on screen */
.print-receipt {
    display: none;
}

@media print {
    /* Hide non-receipt elements */
    .page-wrapper,
    .page-title,
    .main-header,
    .main-footer,
    .theme-btn,
    .print-btn,
    .scroll-to-top,
    .preloader,
    .tracking-features-section,
    .tracking-stats-section,
    .tracking-result-section,
    .funfacts-section-two,
    .need-help-section,
    .about-section-four,
    .process-section,
    .track-form-section,
    .track-steps-section,
    .map-container,
    iframe {
        display: none !important;
    }

    /* Show print receipt */
    .print-receipt {
        display: block !important;
        position: relative;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #fff;
    }

    body {
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Print Receipt Layout */
.print-receipt {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.print-receipt .receipt-header {
    text-align: center;
    border-bottom: 3px solid #ff6d2e;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.print-receipt .receipt-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

.print-receipt .receipt-title {
    font-size: 24px;
    font-weight: 700;
    color: #04223e;
    margin: 10px 0 5px;
}

.print-receipt .receipt-subtitle {
    font-size: 14px;
    color: #666;
}

.print-receipt .tracking-number-box {
    background: #f8f9fa;
    border: 2px dashed #ff6d2e;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.print-receipt .tracking-number-box .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.print-receipt .tracking-number-box .number {
    font-size: 28px;
    font-weight: 700;
    color: #04223e;
    letter-spacing: 3px;
    margin: 5px 0;
}

.print-receipt .tracking-number-box .status {
    display: inline-block;
    background: #ff6d2e;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.print-receipt .receipt-section {
    margin-bottom: 20px;
}

.print-receipt .receipt-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff6d2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.print-receipt .receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.print-receipt .receipt-row:last-child {
    border-bottom: none;
}

.print-receipt .receipt-label {
    color: #666;
    font-size: 13px;
}

.print-receipt .receipt-value {
    font-weight: 600;
    color: #04223e;
    font-size: 13px;
    text-align: right;
}

.print-receipt .receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.print-receipt .receipt-card {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
}

.print-receipt .receipt-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #04223e;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-receipt .receipt-card-title i {
    color: #ff6d2e;
}

.print-receipt .progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    position: relative;
}

.print-receipt .progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #e0e0e0;
}

.print-receipt .progress-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.print-receipt .progress-step .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
}

.print-receipt .progress-step.completed .step-circle {
    background: #ff6d2e;
    color: #fff;
}

.print-receipt .progress-step .step-text {
    font-size: 10px;
    color: #666;
}

.print-receipt .progress-step.completed .step-text {
    color: #ff6d2e;
    font-weight: 600;
}

.print-receipt .receipt-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #04223e;
    text-align: center;
}

.print-receipt .receipt-footer p {
    font-size: 11px;
    color: #666;
    margin: 3px 0;
}

.print-receipt .receipt-footer .website {
    color: #ff6d2e;
    font-weight: 600;
}

.print-receipt .receipt-barcode {
    text-align: center;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 5px;
}

/* Page Title Override */
.page-title {
    padding-bottom: 40px !important;
    margin-bottom: 1rem !important;
}

/* Tracking Result Section */
.tracking-result-section {
    position: relative;
    overflow: hidden;
}

.tracking-result-section .icon-plane-4,
.tracking-result-section .icon-container-2 {
    opacity: 0.1;
}

/* Success Banner */
.tracking-success-banner {
    background: linear-gradient(135deg, #fff8f5 0%, #ffefe8 100%);
    border-radius: 15px;
    padding: 25px 30px;
    border-left: 5px solid var(--track-orange);
    box-shadow: 0 5px 20px rgba(255, 109, 46, 0.15);
}

.tracking-success-banner .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--track-orange) 0%, var(--track-orange-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.tracking-success-banner .success-icon i {
    font-size: 36px;
    color: #fff;
}

.tracking-success-banner h4 {
    color: #212529;
    margin-bottom: 5px;
    font-weight: 700;
}

.tracking-success-banner p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Feature Section */
.tracking-features-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.tracking-feature-block {
    background: #fff;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.tracking-feature-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.tracking-feature-block .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--track-orange) 0%, var(--track-orange-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tracking-feature-block:hover .icon-box {
    transform: rotateY(180deg);
}

.tracking-feature-block .icon-box i {
    font-size: 36px;
    color: #fff;
}

.tracking-feature-block h5 {
    color: #212529;
    margin-bottom: 12px;
    font-weight: 700;
}

.tracking-feature-block p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Stats Section */
.tracking-stats-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.tracking-stats-section .bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.tracking-stats-section .bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 37, 41, 0.85);
}

.tracking-stats-section .auto-container {
    position: relative;
    z-index: 2;
}

.stat-block {
    padding: 30px 20px;
}

.stat-block i {
    font-size: 48px;
    color: var(--track-orange);
    margin-bottom: 15px;
    display: block;
}

.stat-block h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-block p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.tracking-success-banner .success-icon {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 991px) {
    .tracking-success-banner {
        text-align: center;
    }

    .tracking-success-banner .success-icon {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .tracking-features-section {
        padding: 40px 0;
    }

    .tracking-feature-block {
        padding: 25px 20px;
    }

    .tracking-stats-section {
        padding: 50px 0;
    }

    .stat-block h2 {
        font-size: 32px;
    }

    .stat-block i {
        font-size: 36px;
    }
}

/* ========================================
   TRACK FORM PAGE STYLES
   ======================================== */

/* Track Form Section
.track-form-section {
    position: relative;
    overflow: hidden;
} */

.track-form-section .icon-plane-4,
.track-form-section .icon-container-2 {
    opacity: 0.08;
}

.track-form-content .sec-title {
    margin-bottom: 30px;
}

.track-form-content .sec-title .sub-title {
    color: var(--track-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.track-form-content .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--track-dark);
    margin-bottom: 15px;
}

.track-form-content .sec-title p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.8;
}

/* Tracking Form */
.tracking-form .form-group {
    position: relative;
}

.tracking-form .input-outer {
    position: relative;
    margin-bottom: 20px;
}

.tracking-form .input-outer i.icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--track-orange);
    font-size: 18px;
    z-index: 2;
}

.tracking-form .form-control {
    height: 60px;
    padding: 15px 20px 15px 55px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tracking-form .form-control:focus {
    border-color: var(--track-orange);
    box-shadow: 0 0 0 4px rgba(255, 109, 46, 0.1);
    outline: none;
}

.tracking-form .form-control::placeholder {
    color: #adb5bd;
}

.tracking-form .theme-btn {
    width: 100%;
    height: 55px;
    border-radius: 10px;
}

.track-info-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.track-info-text i {
    color: var(--track-orange);
    font-size: 16px;
}

.track-info-text span {
    color: #6c757d;
    font-size: 14px;
}

/* Track Form Image */
.track-form-image {
    position: relative;
    padding-left: 30px;
}

.track-form-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    width: 100%;
}

.track-form-image .floating-box {
    position: absolute;
    bottom: 30px;
    left: 0;
    background: var(--track-orange);
    padding: 20px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 109, 46, 0.3);
    animation: float 3s ease-in-out infinite;
}

.track-form-image .floating-box i {
    font-size: 40px;
    color: #fff;
}

.track-form-image .floating-box .content h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.track-form-image .floating-box .content p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin: 0;
}

/* Track Steps Section */
.track-steps-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.track-steps-section .sec-title {
    margin-bottom: 50px;
}

.track-steps-section .sec-title .sub-title {
    color: var(--track-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.track-steps-section .sec-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--track-dark);
}

.track-step-block {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.track-step-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 109, 46, 0.15);
}

.track-step-block .step-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 109, 46, 0.1);
    line-height: 1;
}

.track-step-block .icon-box {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--track-orange) 0%, var(--track-orange-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.track-step-block:hover .icon-box {
    transform: scale(1.1) rotate(10deg);
}

.track-step-block .icon-box i {
    font-size: 40px;
    color: #fff;
}

.track-step-block h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--track-dark);
    margin-bottom: 12px;
}

.track-step-block p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Need Help Section */
.need-help-section {
    padding: 80px 0;
}

.need-help-section .help-box {
    background: linear-gradient(135deg, var(--track-dark) 0%, #063a5f 100%);
    border-radius: 20px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.need-help-section .help-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--track-orange);
    border-radius: 50%;
    opacity: 0.1;
}

.need-help-section .help-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: var(--track-orange);
    border-radius: 50%;
    opacity: 0.08;
}

.need-help-section .content {
    position: relative;
    z-index: 2;
}

.need-help-section .content h4 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.need-help-section .content p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin: 0;
}

.need-help-section .theme-btn {
    position: relative;
    z-index: 2;
}

/* Responsive for Track Form Page */
@media (max-width: 991px) {
    .track-form-content .sec-title h2 {
        font-size: 32px;
    }

    .track-form-image {
        padding-left: 0;
        margin-top: 40px;
    }

    .track-form-image .floating-box {
        bottom: 20px;
        left: 20px;
    }

    .track-steps-section {
        padding: 60px 0;
    }

    .need-help-section .help-box {
        padding: 40px 30px;
        text-align: center;
    }

    .need-help-section .content {
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .track-form-content .sec-title h2 {
        font-size: 28px;
    }

    .track-step-block {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .track-step-block .step-number {
        font-size: 36px;
    }

    .track-step-block .icon-box {
        width: 70px;
        height: 70px;
    }

    .track-step-block .icon-box i {
        font-size: 30px;
    }

    .need-help-section .content h4 {
        font-size: 22px;
    }
}
