    #resultDiv {
        display: none;
    }
     #loader {
        display: block;
        border: 8px solid #f3f3f3;
        border-radius: 50%;
        border-top: 8px solid #a5a5a5;
        width: 30px;
        height: 30px;
        animation: spin 3s linear infinite;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #loader-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        z-index: 9999; /* High z-index to cover all content */
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .error-message {
        color: red;
        font-weight: bold;
        display: none; /* Initially hidden */
    }

    /* Error message styles */
    #errorDiv {
        display: none;
        color: #d9534f;
        background-color: #f2dede;
        border: 1px solid #ebccd1;
        padding: 10px;
        margin-top: 10px;
        border-radius: 4px;
    }

    .message-container{
        text-align: center;
    }

    .message-container h1 {
        color: #333;
    }

    .message-container p {
        color: #555;
        font-size: 18px;
    }

    .eligibility-id {
        border: 1px solid #ddd;
        padding: 10px;
        margin: 10px 0;
        display: inline-block;
    }

    .eligibility-id p {
        color: #333;
        font-size: 18px;
    }

    .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0,0,0); /* Fallback color */
        background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
        padding-top: 50px;
    }

    .modalBox {
        background:#FFF;
        max-width:665px;
        width:100%;
        border-radius:12px;
        box-shadow: 0 10px 15px 5px rgba(0,0,0,0.1);
        position:absolute;
        top:50%;
        left:50%;
        transform:translate(-50%, -50%);
        box-sizing:border-box;
        padding:32px;
    }


    /* Modal Content/Box */
    .modal-content {
        background-color: #fefefe;
        margin: 5% auto; /* 15% from the top and centered */
        padding: 20px;
        border: 1px solid #888;
        width: 80%; /* Could be more or less, depending on screen size */
    }

    /* The Close Button */
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }