/*
 * CSS styling for the mortgage advisor form
 */

/* Form container */
#mortgage-form {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

/* Form input fields */
#mortgage-form input[type="text"],
#mortgage-form input[type="email"] {
    border: 1px solid #e0e0e0;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
}

/* Form submit button */
#mortgage-form input[type="submit"] {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#mortgage-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Form error messages */
#mortgage-form .error {
    color: #ff0000;
    margin-bottom: 10px;
}

/* Form success message */
#mortgage-form .success {
    color: #008000;
    margin-bottom: 10px;
}

/* Form loading spinner */
#mortgage-form .spinner {
    display: none;
    margin-top: 10px;
}

/* Form submission overlay */
#mortgage-form .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Form submission loading message */
#mortgage-form .overlay p {
    color: #ffffff;
    font-weight: bold;
}

/* Form submission success message */
#mortgage-form .overlay .success {
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    background-color: #008000;
    border-radius: 5px;
}

/* Form submission error message */
#mortgage-form .overlay .error {
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    background-color: #ff0000;
    border-radius: 5px;
}