<style>
  /* Overall body styling */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Container to center content */
.container4 {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

/* Tracking form styling */
form.track-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}
form.track-form input[type="text"] {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #061765;
    border-right: none;
    border-radius: 4px 0 0 4px;
}
form.track-form input[type="submit"] {
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #061765;
    border-left: none;
    background-color: orange;
    color: #ffffff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
form.track-form input[type="submit"]:hover {
    background-color: darkorange;
}

/* Table styling for results */
.result-table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    max-width: 100%;
}
.result-table th, .result-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.result-table th {
    background-color: #061765;
    border: 1px solid #061765;
    color: #ffffff;
}

/* Center headings in the container4 */
.container4 h2, .container4 h3 {
    text-align: center;
    margin-top: 0;
}

/* Boxed view for result sections */
.result-box {
    margin: 20px auto;
    max-width: 700px;
    border: 0px solid #ddd;
    padding: 0px;
    border-radius: 4px;
    background: #fff;
}

/* Print button styling */
        .print-btn {
            display: block;
            margin: 20px auto;
            padding: 10px 20px;
            background-color: #007BFF;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        .print-btn:hover {
            background-color: #0056b3;
        }
        @media print {
            .print-btn {
                display: none;
            }
        }

/* Shipment Details: Side-by-side receiver and shipper boxes */
.shipment-details {
    display: flex;
    flex-wrap: nowrap; /* Always keep side-by-side */
    justify-content: space-between;
    margin-top: 20px;
    overflow-x: auto; /* Add horizontal scroll if needed */
}
.left-result-box, .right-result-box {
    flex: 0 0 48%;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Ensure the text in these boxes has consistent margin */
.left-result-box p, .right-result-box p {
    margin: 8px 0;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    body, input, .container4, .result-box, p, h3, table, td, th {
        font-size: 14px !important;
    }
    /* Keep the two boxes side by side even on mobile */
    .shipment-details {
        flex-wrap: nowrap;
    }
    .left-result-box, .right-result-box {
        flex: 0 0 48%;
        /* Optionally, set a min-width to avoid extreme shrinking */
        min-width: 200px;
    }
}

</style>