/* ---------- Tracking Form Container ---------- */
.tracking-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background: #395DAC; 
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    font-family: "Poppins", sans-serif;
    color: #fff;
    box-sizing: border-box;
}

/* ---------- Form Styling ---------- */
.tracking-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px; 
}

.tracking-form input[type="text"] {
    flex: 1 1 70%;
    padding: 12px 15px;
    border: 2px solid #F2E407; 
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    color: #000;
    box-sizing: border-box;
}

.tracking-form input[type="text"]::placeholder {
    color: #333;
}

.tracking-form input[type="text"]:focus {
    border-color: #F2E407;
    box-shadow: 0 0 6px rgba(242, 228, 7, 0.5);
}

.tracking-form input[type="submit"] {
    flex: 1 1 25%;
    background: #F2E407; 
    color: #395DAC;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 16px;
    padding: 12px 0; /* Adjust height */
}

.tracking-form input[type="submit"]:hover {
    background: #fff;
    color: #395DAC;
    transform: translateY(-2px);
}

/* ---------- Result Box ---------- */
.tracking-result {
    position: relative; 
    background: #fff;
    color: #395DAC;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    margin-top: 20px; 
}

.tracking-result h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.tracking-result p {
    margin: 6px 0;
    font-size: 16px;
}

.tracking-no-result {
    margin-top: 15px;
    color: #F2E407;
    font-weight: 600;
    font-size: 16px;
}

/* ---------- Table Styling ---------- */
.tracking-result table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tracking-result table tbody td {
    font-size: 14px;
    padding: 8px 6px;
    color: #395DAC;
}

.tracking-result table th {
    font-weight: 600;
    background-color: #f4f4f4;
    padding: 10px 6px;
}

/* ---------- Close Button ---------- */
.tracking-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #395DAC;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 480px) {
    .tracking-form {
        flex-direction: column;
        gap: 8px;
    }
    .tracking-form input[type="text"],
    .tracking-form input[type="submit"] {
        flex: 1 1 100%;
    }
    .tracking-form input[type="submit"] {
        padding: 10px 0; /* slightly smaller button for mobile */
        font-size: 15px;
    }
    .tracking-result {
        padding: 15px;
    }

    /* --- FIX FOR TABLE OVERFLOW --- */
    .tracking-result table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px; /* Optional: adds some space below the scrollbar */
    }
    /* --- END OF FIX --- */

    .tracking-result table th,
    .tracking-result table td {
        padding: 6px 4px;
        font-size: 13px; /* smaller table text on mobile */
    }
}