/* Employment Application Form Styling - Responsive Design */
.employment-application {
    max-width: 1140px;
    margin: 0 auto 1rem auto;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.employment-application fieldset {
    border: 2px solid #000;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 0;
}

.employment-application legend {
    font-weight: bold;
    padding: 0 10px;
    background: white;
    text-transform: uppercase;
}

.employment-application label {
    font-weight: bold;
    margin-bottom: 0;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.employment-application br{
    display:none;
}

.employment-application p{
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.form-row.two-cols > * {
    flex: 1;
}

.form-row.three-cols > * {
    flex: 1;
}

.form-row.four-cols > * {
    flex: 1;
}

.form-row.five-cols > * {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 6px;
    border: 1px solid #000;
    border-radius: 0;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

.radio-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 5px;
}

.radio-inline input[type="radio"] {
    margin-right: 5px;
}

.education-row,
.employer-row,
.reference-row {
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.education-header,
.employer-header,
.reference-header {
    background: #f5f5f5;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 11px;
}

.certification-text {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #000;
    font-size: 11px;
    line-height: 1.3;
}

.name-section,
.address-section {
    margin-bottom: 15px;
}

.job-preference {
    background: #f8f8f8;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.submit-section {
    text-align: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #333;
}

.form-row div,
.form-row > p > span{
    flex-grow: 1; /* Makes fields grow equally */
    flex-basis: 0; /* Ensures they start from 0 and fill the container */
}

/* Mandatory Fields Notice */
.mandatory-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 13px;
}

.mandatory-notice p {
    margin: 0;
    color: #856404;
}

/* Former Employers Section Improvements */
.employer-number h4,
.reference-number h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Fix overflow by using separate rows */
.employer-salary-position-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.employer-salary-position-row > .employer-salary-field,
.employer-salary-position-row > .employer-position-field {
    flex: 1;
}

.employer-reason-row {
    display: flex;
    margin-bottom: 15px;
}

.employer-reason-field {
    flex: 1;
}

.job-question-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.job-question-row > .job-question-field {
    flex: 0 0 50%;
    max-width: 50%;
}

.employer-name-field {
    width: 100%;
}

.date-field {
    flex: 1;
}

/* Ensure textarea height */
.job-question-field textarea {
    min-height: 60px;
    resize: vertical;
}

/* References Section Styling */
.reference-name-address-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.reference-name-address-row > .reference-name-field,
.reference-name-address-row > .reference-address-field {
    flex: 1; /* 50% each for name and address */
}

.reference-business-years-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.reference-business-years-row > .reference-business-field {
    flex: 2; /* 2/3 width for business */
}

.reference-business-years-row > .reference-years-field {
    flex: 1; /* 1/3 width for years */
}

.employment-application input[type='submit']{
    color: #E3A72F;
}

.employment-application input[type='submit']:hover{
    background: #555;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .form-row div,
    .form-row > p > span {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        flex: none;
    }

    /* Ensure all field containers take full width */
    .name-field,
    .info-field,
    .street-field,
    .city-field,
    .state-field,
    .zip-field,
    .phone-field,
    .employment-field,
    .employment-detail-field,
    .general-field,
    .employer-salary-field,
    .employer-position-field,
    .employer-name-field,
    .employer-reason-field,
    .reference-name-field,
    .reference-address-field,
    .reference-business-field,
    .reference-years-field,
    .job-question-field {
        width: 100% !important;
        max-width: 100% !important;
        flex: none;
    }

    .form-row.two-cols,
    .form-row.three-cols,
    .form-row.four-cols,
    .form-row.five-cols {
        flex-direction: column;
    }

    .employment-application {
        padding: 10px;
    }

    .wpcf7-not-valid-tip {
        font-size: .9rem;
    }

    /* Mobile responsiveness for employer and references sections */
    .employer-salary-position-row,
    .employer-reason-row,
    .job-question-row,
    .reference-name-address-row,
    .reference-business-years-row {
        flex-direction: column;
        width: 100%;
    }

    .employer-salary-position-row > *,
    .employer-reason-row > *,
    .job-question-row > .job-question-field,
    .reference-name-address-row > *,
    .reference-business-years-row > * {
        flex: none;
        width: 100% !important;
        max-width: 100% !important;
    }

}
