/* Careers Form Section */
.careers-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Careers Container */
.careers-container {
    width: 100%;
    max-width: 1000px;
}

/* Careers Box */
.careers-box {
    display: flex;
    background: #B3D7E0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
}

/* Left Side (Info & Image) */
.careers-left {
    width: 50%;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* Careers Info */
.careers-info {
    margin-bottom: 15px;
}

.careers-info h2 {
    color: #2661a9;
    font-size: 24px;
    font-weight: bold;
}

.careers-info p {
    font-size: 14px;
    color: #555;
}

/* Right Side (Form) */
.careers-form {
    width: 50%;
    padding: 40px;
    text-align: left;
}

/* Form Row (for side-by-side inputs) */
.form-row {
    display: flex;
    gap: 20px;
}

/* Resume Upload Row */
.resume-row {
    align-items: center;
}

/* Form Groups */
.form-group {
    flex: 1;
    margin-bottom: 15px;
}

/* Full Width for Small Screens */
.full-width {
    flex: 1;
}

/* Resume Upload Styling */
.resume-upload {
    display: block;
    width: 100%;
}


#resumeName {
    font-size: 14px;
    color: #666;
}

/* File Name Below Upload Button */
.file-name {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: left;
}

/* Labels */
.careers-form label {
    font-weight: bold;
    display: block;
}

/* Input Fields */
.careers-form input,
.careers-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Error Messages */
.error-text {
    font-size: 12px;
    color: red;
    margin-top: 5px;
    display: block;
}

/* Highlight invalid fields with red border */
.input-error {
    border: 2px solid red !important;
    transition: 0.3s;
}

/* Submit Button */
.careers-form button {
    width: 100%;
    padding: 12px;
    background: #2661a9;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.careers-form button:hover {
    background: #5733D1;
}

/* Responsive Styles */
@media (max-device-width: 500px) {
    .careers-image {
        display: none;
    }

    .careers-box {
        flex-direction: column;
        text-align: center;
    }

    .careers-left {
        width: 100%;
        padding: 30px;
    }

    .careers-form {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .resume-row {
        flex-direction: column;
    }

    .half-width {
        width: 100%;
        margin-top: 10px;
    }

    .careers-form button {
        width: 100%;
    }

}

@media (min-device-width: 501px) and (max-width: 768px) {
    .careers-image {
        display: none;
    }

    .careers-box {
        flex-direction: column;
        text-align: center;
    }

    .careers-left {
        width: 100%;
        padding: 30px;
    }

    .careers-form {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .resume-row {
        flex-direction: column;
    }

    .half-width {
        width: 100%;
        margin-top: 10px;
    }

    .careers-form button {
        width: 100%;
    }
}