
.job-application-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;

    transform: translateY(20px); /* Start with a slight translateY for smooth entrance */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Add a transition for smooth fade-in */

}

.form-row {
    display: flex;
    justify-content: space-between;

}

.form-group {
    flex: 1;
    margin: 15px 50px;

}

.form-label {
    display: block;
    width: 100%;
    height: 49px;
}

.form-input {
    width: 527px;
    height: 49px;
    border-radius: 3px;
    border: 1px solid #D2D2D2;
    background: #FFF;
    padding-right: 20px;
    padding-left: 15px;
    display: flex;
    justify-content: center;
}

/* Hide date icon in Chrome, Safari, and Opera */
.form-row .form-group input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    direction: rtl;
}



/* Style for validation error messages */
.form-error {
    color: #B00020;
    font-size: 12px;
    margin-top: 5px;
}

/* Style for invalid input fields */
.is-invalid {
    border: 1px solid #B00020;
}

.gender-select option[value=""][disabled] {
    display: none;
    color: #D2D2D2;
}

.apply-button {
    display: flex;
    width: 380px;
    height: 88px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: #FFFEFE;
    text-align: center;
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 3px;
    background: #28B3AD;
    margin-top: 30px;
    direction: rtl;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;

}

.apply-button:hover {
    transform: scale(1.05);
    color: #FFFEFE;
}


/**************************************************************************/


.custom-alert {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    padding: 10px;
    border-radius: 5px;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.alert-icon {
    margin-right: 10px;
    font-size: 20px;
}

.alert-icon i {
    color: #3c763d;
}


/***************************************************************************************************/
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure the overlay is on top of other content */
    transition: opacity 0.5s; /* Add a transition for smooth fading */
    opacity: 1; /* Start with full opacity */


}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #28B3AD;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hide the overlay once the opacity is set to 0 */
.loading-overlay.fade-out {
    opacity: 0;
}

/***************************************************************************************************/


.job-application-form.animate {
    opacity: 1; /* When the section is in view, fade it in */
    transform: translateY(0); /* Reset translateY */
}
