.job-apply-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media screen and (min-width: 1751px) {
    .job-apply-form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

@media screen and (max-width: 835px) {

    .job-apply-form {
        width: 100%;
    }
    
    .form-start{
        width: 90% !important;
    }

    .job-apply-form label {
        text-align: left;
    }
}
@media screen and (max-width: 991px) {

    .form-section .container{
        max-width: 820px !important;
    }
    
}

@media screen and (max-width: 1199px) {

    .job-apply-form {
        width: 100%;
    }
}

.job-apply-form-group {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.job-apply-form .default-bottom-margin {
    margin-bottom: 1rem;
}

.job-apply-form-group > label {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}

.job-apply-form-group > label.w-22 {
    width: 22rem;
}

.job-apply-form-group > label.w-27 {
    width: 27rem;
}

.job-apply-form-group .radio-group {
    width: 19rem;
}

.job-apply-form-group .invalid {
    border-color: red;
}

.job-apply-form-group .invalid ~ div.invalid-label {
    display: block;
}

.radio-group {
    display: flex;
    align-items: center;
}

.radio-group input {
    margin-left: 1rem;
}

.radio-group label {
    margin-left: 0.5rem;
    margin-bottom: 0;
}

input[type="file"] {
    border: none;
}

.job-apply-form-group-with-subtitle {
}

.job-apply-form-group-subtitle {
    font-style: italic;
}

.invalid-label {
    display: none;
}

/* Validation error styling */
.validation-error-container {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 0.25rem;
    margin-bottom: 0;
    min-height: 1.2em;
}

.validation-error-container.text-empty {
    visibility: hidden;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.ushine-modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.modal-actions {
    margin-top: 1.5rem;
}

.modal-close {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: #555;
}

/* Personal info row styling for contact form */
.personal-info-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.personal-info-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-align: left;
}

.red {
    color: #dc3545;
}