/* Order Tracking Redesign Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #1a337e;
    --secondary-color: #f0f2f5;
    --text-color: #333;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --pending-color: #dee2e6;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

/* Hide main layout elements */
.navbar-fixed-top,
.footer,
.breadcrumb {
    display: none !important;
}

.wrap>.container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    background-color: var(--secondary-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.order-tracking-container {
    min-height: 100vh;
    background-color: #f5f5f5;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.global-header {
    background: white;
    padding: 15px 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.global-header img {
    height: 60px;
    width: auto;
}

/* Search Screen */
.search-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.search-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.search-card h2 {
    color: #1a337e;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.search-input-group {
    margin-bottom: 25px;
}

.search-input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.search-input-group input:focus {
    outline: none;
    border-color: #1a337e;
    box-shadow: 0 0 0 3px rgba(26, 51, 126, 0.1);
}

.btn-search {
    width: 100%;
    max-width: 200px;
    padding: 14px;
    background-color: #1a337e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 51, 126, 0.3);
    transition: all 0.3s;
}

.btn-search:hover {
    background-color: #142863;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 51, 126, 0.4);
}

/* Order Details Screen */

.details-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-back {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.order-code {
    font-weight: 700;
    font-size: 16px;
    flex: 1;
    text-align: center;
    margin-right: 38px;
    /* Offset for back button to center text */
}

.timeline-container {
    padding: 20px;
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: 20px;
}

.vertical-timeline {
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--pending-color);
    border-left: 2px dashed var(--pending-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 15px;
    /* Reduced from 25px */
}

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--pending-color);
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    background: #4caf50;
    border-color: #4caf50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.timeline-item.active::after {
    content: '';
    position: absolute;
    left: 20px;
    top: -15px;
    /* Adjusted for reduced margin */
    height: calc(100% + 5px);
    /* Adjusted for reduced margin */
    width: 2px;
    background: #4caf50;
    z-index: 1;
}

.timeline-item.next-step::after {
    content: '';
    position: absolute;
    left: 20px;
    top: -15px;
    height: calc(100% + 5px);
    width: 2px;
    background: transparent;
    border-left: 2px dashed #4caf50;
    z-index: 1;
}

.timeline-item:last-child.active::after,
.timeline-item:last-child.next-step::after {
    height: 2px;
}

.timeline-content {
    background: transparent;
    /* Removed background */
    padding: 10px 0;
    /* Reduced padding */
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: none;
    /* Removed shadow */
}

.timeline-icon {
    width: 44px;
    height: 44px;
    background: #f0f2f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    flex-shrink: 0;
}

.timeline-item.active .timeline-icon {
    color: white;
}

.timeline-item:nth-child(1).active .timeline-icon {
    background-color: #1a337e;
}

.timeline-item:nth-child(2).active .timeline-icon {
    background-color: #fbc02d;
}

.timeline-item:nth-child(3).active .timeline-icon {
    background-color: #03a9f4;
}

.timeline-item:nth-child(4).active .timeline-icon {
    background-color: #4caf50;
}

.timeline-item:nth-child(5).active .timeline-icon {
    background-color: #d32f2f;
}

.timeline-item:nth-child(6).active .timeline-icon {
    background-color: #8d6e63;
}

.timeline-icon i {
    font-size: 20px;
}

.timeline-info {
    flex: 1;
}

.timeline-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.timeline-info p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.timeline-info .date {
    font-weight: 600;
    color: #555;
}

/* Modal Styling - Removed as per user request */

/* Desktop Horizontal Timeline */
@media (min-width: 768px) {
    .order-tracking-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        /* Remove top padding to put header at top */
    }

    .search-card {
        max-width: 500px;
        margin: 40px auto;
    }

    .order-details-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 20px;
        /* Add padding here instead of container */
    }

    .timeline-main {
        width: 100%;
        max-width: 1000px;
    }

    .timeline-container {
        background: white;
        border-radius: 16px;
        box-shadow: var(--card-shadow);
        padding: 60px 40px;
        margin: 0;
        width: 100%;
    }

    .vertical-timeline {
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .vertical-timeline::before {
        left: 8.33%;
        right: 8.33%;
        top: 20px;
        bottom: auto;
        height: 2px;
        border-left: none;
        border-top: 2px dashed #ccc;
    }

    .vertical-timeline::after {
        content: '';
        position: absolute;
        left: 8.33%;
        right: 8.33%;
        top: 20px;
        height: 2px;
        background: #4caf50;
        z-index: 1;
        display: none;
        /* We'll use item::after instead */
    }

    .timeline-item {
        padding-left: 0;
        padding-top: 50px;
        margin-bottom: 0;
        width: 16.66%;
        flex: 0 0 16.66%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .timeline-dot {
        left: 50%;
        top: 15px;
        transform: translateX(-50%);
    }

    .timeline-item.active::after {
        left: -50%;
        top: 20px;
        width: 100%;
        height: 2px;
        background: #4caf50;
        z-index: 1;
    }

    .timeline-item:first-child.active::after {
        display: none;
    }

    .timeline-item.next-step::after {
        left: -50%;
        top: 20px;
        width: 100%;
        height: 2px;
        background: transparent;
        border-top: 2px dashed #4caf50;
    }

    .timeline-item:last-child.active::after,
    .timeline-item:last-child.next-step::after {
        width: 100%;
    }

    .timeline-content {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 10px;
    }

    .timeline-icon {
        margin: 0 auto;
    }

    .timeline-info h4 {
        font-size: 14px;
    }

    .timeline-info p {
        font-size: 12px;
    }
}

/* Legal Modal & Page Styles */
.legal-link-container {
    margin-top: 20px;
    text-align: center;
}

.legal-link-container a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-link-container a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .legal-modal-content {
    transform: translateY(0);
}

.red-header {
    background-color: #d32f2f;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.red-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
}

.legal-short-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.see-more-legal {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
    color: #666;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
}

.checkbox-container:hover input~.checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-continue {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-continue:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Legal Page Specific Styles */
.legal-page {
    background-color: white;
}

.legal-content-wrapper {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-body {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.legal-body h4 {
    margin: 25px 0 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.legal-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-body li {
    margin-bottom: 10px;
}