/* ==========================================================================
   Career Page Styles
   Extends the existing .cs_contact_form / .cs_form_field theme styles
   with rules for the new "Position Applied For" and "Upload Resume" fields.
   ========================================================================== */

/* File input wrapper - keeps same look/spacing as text fields */
.cs_career_form .cs_form_field[type="file"] {
    height: auto;
    padding: 12px 20px;
    line-height: 1.6;
    cursor: pointer;
    background-color: #F4F7FC;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cs_career_form .cs_form_field[type="file"]:hover,
.cs_career_form .cs_form_field[type="file"]:focus {
    border-color: var(--cs_accent, #0DA487);
    background-color: #ffffff;
    outline: none;
}

/* Style the native "Choose File" button so it matches the theme button */
.cs_career_form .cs_form_field[type="file"]::file-selector-button {
    padding: 8px 18px;
    margin-right: 15px;
    border: none;
    border-radius: 30px;
    background-color: var(--cs_accent, #0DA487);
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cs_career_form .cs_form_field[type="file"]::file-selector-button:hover {
    background-color: var(--cs_accent_hover, #0b8a71);
}

/* Firefox fallback */
.cs_career_form .cs_form_field[type="file"]::-webkit-file-upload-button {
    padding: 8px 18px;
    margin-right: 15px;
    border: none;
    border-radius: 30px;
    background-color: var(--cs_accent, #0DA487);
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Small helper text under the resume field */
.cs_career_form .cs_file_hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #77797C;
}

/* Validation error text (jQuery Validate appends a <div>) */
.cs_career_form label.error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #E9436A;
    font-weight: 400;
}

.cs_career_form .cs_form_field.error {
    border-color: #E9436A !important;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .cs_career_form .cs_form_field[type="file"] {
        padding: 10px 15px;
    }
}