/* ============================================================
   TrustShare Logistics - Tracking UI (root.css)
   Brand accent: #FF440A
   ============================================================ */

/* ---------- Section wrapper ---------- */
.track .about-bg {
    padding-top: 40px;
    padding-bottom: 40px;
    background: #f4f6f9;
}

/* ============================================================
   TIMELINE / TRACKING BAR
   ============================================================ */
.tracking-bar-section {
    width: 92%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 40px 36px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Vertical timeline layout */
.tracking-bar-section .box {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    padding-bottom: 0;
    position: relative;
}

/* Vertical connector line */
.tracking-bar-section .box .progress-container {
    flex-shrink: 0;
    width: 4px;
    background: #e2e8f0;
    position: absolute;
    top: 0;
    left: 18px;
    bottom: 0;
    height: 100%;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tracking-bar-section .box.active .progress-container {
    background: linear-gradient(180deg, #FF440A 0%, #ff6a35 100%);
}

/* Step circle */
.tracking-bar-section .box .progress-container .middle-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 12px;
    left: -18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    border: 3px solid #fff;
    transition: background 0.3s, color 0.3s;
    z-index: 2;
}

.tracking-bar-section .box.active .progress-container .middle-circle {
    background: #FF440A;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 68, 10, 0.35);
}

/* Connector overrides for first/last */
.tracking-bar-section .box:first-child .progress-container {
    border-radius: 4px 4px 0 0;
}
.tracking-bar-section .box:last-child .progress-container {
    border-radius: 0 0 4px 4px;
}

/* Details block */
.tracking-bar-section .box .details {
    margin-left: 56px;
    padding: 14px 20px 24px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid #e2e8f0;
    flex: 1;
    transition: border-color 0.3s;
}

.tracking-bar-section .box.active .details {
    border-left-color: #FF440A;
    background: #fff7f4;
}

.tracking-bar-section .box .status {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    text-align: left;
    white-space: normal;
}

.tracking-bar-section .box.active .status {
    color: #FF440A;
}

.tracking-bar-section .box .note {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    text-align: left;
    white-space: normal;
}

.tracking-bar-section .box .date {
    font-size: 12px;
    color: #94a3b8;
    text-align: left;
    white-space: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tracking-bar-section .box .date::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 11px;
    color: #cbd5e1;
}

/* Spacing between boxes */
.tracking-bar-section .box + .box {
    margin-top: 16px;
}

/* ============================================================
   BARCODE SECTION
   ============================================================ */
.bar-code-container {
    width: 92%;
    margin: 0 auto;
    padding: 30px 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-code-container .logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.bar-code-container .logo-container .logo {
    width: 140px;
    height: auto;
}

/* ============================================================
   SENDER & RECEIVER
   ============================================================ */
.sender-and-receiver-container {
    width: 92%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 30px 32px;
}

.sender-and-receiver-container h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #FF440A;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.sender-and-receiver-container p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ============================================================
   SHIPMENT INFORMATION
   ============================================================ */
.shipment-information-container {
    width: 92%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 0 0 30px;
    overflow: hidden;
}

.shipment-information-container .section-title {
    width: 100%;
    padding: 16px 24px;
    text-align: center;
    background: linear-gradient(135deg, #FF440A 0%, #ff6a35 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
}

.shipment-information-container .image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 24px 0;
}

.shipment-information-container .image-container .image {
    width: 260px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.shipment-information-container .row {
    padding: 24px 24px 0;
}

.shipment-information-container h6 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 4px;
    margin-top: 18px;
}

.shipment-information-container h6:first-child {
    margin-top: 0;
}

.shipment-information-container p {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================================================
   GOOGLE MAPS
   ============================================================ */
.google-maps-container {
    width: 92%;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.google-maps-container .map {
    display: block;
    border: 0;
}

/* ============================================================
   PRINT RECEIPT BUTTON
   ============================================================ */
.print-receipt-container {
    width: 92%;
    margin: 20px auto 40px;
    display: flex;
    justify-content: center;
}

.print-receipt-container .print-receipt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #FF440A 0%, #ff6a35 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 68, 10, 0.35);
    transition: box-shadow 0.25s, transform 0.2s;
}

.print-receipt-container .print-receipt-btn:hover {
    box-shadow: 0 10px 28px rgba(255, 68, 10, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   RECEIPT PAGE
   ============================================================ */
.receipt {
    width: 820px;
    margin: 40px auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 40px 36px;
    position: relative;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.receipt .watermark-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0.07;
    pointer-events: none;
}

.receipt .watermark-container .watermark-image {
    width: 70%;
    height: auto;
    transform: rotate(-45deg);
}

.receipt .top-section {
    width: 100%;
    position: relative;
    z-index: 2;
}

.receipt .top-section .logo-container {
    width: 100%;
    margin-bottom: 20px;
}

.receipt .top-section .logo-container .logo {
    width: 140px;
    height: auto;
}

.receipt .top-section .invoice-summary-container {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.receipt .top-section .invoice-summary-container .box {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    display: flex;
    flex-flow: row nowrap;
    font-weight: 600;
    background: #f8fafc;
}

.receipt .top-section .invoice-summary-container .box:last-child {
    border-bottom: none;
}

.receipt .top-section .invoice-summary-container .box .left {
    width: 40%;
    color: #64748b;
    font-weight: 600;
}

.receipt .top-section .invoice-summary-container .box .right {
    width: 60%;
    display: flex;
    justify-content: flex-end;
    color: #1e293b;
    font-weight: 700;
}

.receipt table {
    width: 100%;
    margin-top: 32px;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
    z-index: 2;
}

.receipt table thead {
    background: linear-gradient(135deg, #FF440A 0%, #ff6a35 100%);
    color: #ffffff;
}

.receipt table thead th {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.receipt table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.receipt table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.receipt table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.receipt table tbody tr td.summary {
    border: 1px solid #e2e8f0;
}

.receipt table tbody tr td.total-charge {
    background: #fff7f4;
    font-weight: 700;
    color: #FF440A;
}

.receipt table tbody tr td {
    padding: 11px 14px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

.receipt .go-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #FF440A 0%, #ff6a35 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 50;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 68, 10, 0.30);
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.2s;
}

.receipt .go-back-btn:hover {
    box-shadow: 0 8px 24px rgba(255, 68, 10, 0.40);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ============================================================
   SECTION SPACING HELPERS
   ============================================================ */
.services-area.pt-10 {
    padding-top: 20px;
}
.services-area.pb-10 {
    padding-bottom: 20px;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 768px) {
    .tracking-bar-section {
        width: 96%;
        padding: 28px 16px 24px;
    }

    .tracking-bar-section .box {
        width: 100%;
    }

    .tracking-bar-section .box .details {
        margin-left: 50px;
        padding: 12px 14px 20px;
    }

    .sender-and-receiver-container,
    .shipment-information-container,
    .google-maps-container,
    .bar-code-container {
        width: 96%;
    }

    .print-receipt-container {
        width: 96%;
    }

    .receipt {
        width: 98%;
        padding: 24px 16px;
        margin: 20px auto;
    }

    .receipt .top-section .invoice-summary-container .box .left,
    .receipt .top-section .invoice-summary-container .box .right {
        width: 50%;
    }
}

@media only screen and (max-width: 690px) {
    .mobile-logo {
        position: relative;
        top: 10px;
        left: -20px;
    }

    .mean-container a.meanmenu-reveal {
        right: -100px !important;
        top: 10px !important;
    }

    .slider-content h2 {
        font-size: 50px !important;
    }

    .slider-form input {
        width: 100%;
        margin-bottom: 0;
    }

    .category-list ul {
        flex-direction: column;
    }

    .category-list ul li a {
        width: 100%;
    }

    .tracking-bar-section .box {
        width: 100%;
    }

    .tracking-bar-section .box .progress-container {
        width: 4px;
        left: 18px;
    }

    .tracking-bar-section .box .progress-container .middle-circle {
        width: 36px;
        height: 36px;
        left: -16px;
        top: 10px;
    }

    .tracking-bar-section .box .details {
        margin-left: 46px;
    }

    .tracking-bar-section .box .status {
        font-size: 14px;
    }

    .tracking-bar-section .box .note {
        font-size: 12px;
    }

    .tracking-bar-section .box .date {
        font-size: 11px;
    }

    .shipment-information-container .image-container .image {
        width: 100%;
        max-width: 300px;
    }

    .print-receipt-container .print-receipt-btn {
        padding: 12px 28px;
        font-size: 13px;
    }
}
