.auh-careers-gf-native {
    --auh-gf-primary: var(--auh-primary, #01529d);
    --auh-gf-secondary: var(--auh-secondary, #1790c9);
    --auh-gf-success: var(--auh-success, #008e54);
    --auh-gf-border: var(--auh-border, #d6e6ee);
    --auh-gf-surface: var(--auh-surface, #fff);
    --auh-gf-text: var(--auh-text, #152335);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(16px, 2.5vw, 32px);
    border: 1px solid var(--auh-gf-border);
    border-radius: 22px;
    background: var(--auh-gf-surface);
    box-shadow: 0 16px 36px rgba(1, 82, 157, .09);
    color: var(--auh-gf-text);
    font-family: var(--auh-font-ar, Almarai, sans-serif);
}

.auh-careers-gf-native,
.auh-careers-gf-native button,
.auh-careers-gf-native input,
.auh-careers-gf-native select,
.auh-careers-gf-native textarea,
.auh-careers-gf-native :where(h1, h2, h3, h4, h5, h6, p, a, label, legend, span, strong, small, div) {
    font-family: var(--auh-font-ar, Almarai, sans-serif) !important;
}

.auh-careers-public[dir="ltr"] .auh-careers-gf-native,
.auh-careers-public[dir="ltr"] .auh-careers-gf-native button,
.auh-careers-public[dir="ltr"] .auh-careers-gf-native input,
.auh-careers-public[dir="ltr"] .auh-careers-gf-native select,
.auh-careers-public[dir="ltr"] .auh-careers-gf-native textarea,
.auh-careers-public[dir="ltr"] .auh-careers-gf-native :where(h1, h2, h3, h4, h5, h6, p, a, label, legend, span, strong, small, div) {
    font-family: var(--auh-font-en, Arial, sans-serif) !important;
}

.auh-careers-gf-native .gform_wrapper {
    margin: 0;
}

.auh-careers-gf-native .gform_fields {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 18px 22px !important;
    align-items: start;
}

/*
 * The imported Careers fields pre-date Gravity's visual layout metadata.
 * Restore the approved two-column layout without changing the saved form.
 * Any width selected later in Gravity's editor remains authoritative.
 */
.auh-careers-gf-native .gfield.auh-careers-gf-field {
    grid-column: span 6;
    min-width: 0;
    margin: 0;
}

.auh-careers-gf-native .gfield.gfield--width-full {
    grid-column: 1 / -1 !important;
}

.auh-careers-gf-native .gfield.gfield--width-half {
    grid-column: span 6 !important;
}

.auh-careers-gf-native .gfield.gfield--width-third {
    grid-column: span 4 !important;
}

.auh-careers-gf-native .gfield.gfield--width-quarter {
    grid-column: span 3 !important;
}

.auh-careers-gf-native .gfield.gsection,
.auh-careers-gf-native .gfield.gfield--type-section,
.auh-careers-gf-native .gfield.gfield--type-page,
.auh-careers-gf-native .gfield.gfield--type-list,
.auh-careers-gf-native .gfield.gfield--type-textarea,
.auh-careers-gf-native .gfield.gfield--type-signature,
.auh-careers-gf-native .gfield.gfield--type-checkbox,
.auh-careers-gf-native .gfield.gfield--type-radio {
    grid-column: 1 / -1;
}

.auh-careers-gf-native .gsection {
    margin-top: 8px;
    padding-bottom: 12px;
    border-bottom-color: var(--auh-gf-border);
}

.auh-careers-gf-native .gsection_title,
.auh-careers-gf-native .gform_page_footer {
    color: var(--auh-gf-primary);
}

.auh-careers-gf-native .gfield_label,
.auh-careers-gf-native .ginput_complex label {
    color: var(--auh-gf-text);
    font-weight: 800;
}

.auh-careers-gf-native .gfield {
    padding: 14px;
    border: 1px solid var(--auh-gf-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(1, 82, 157, .04);
}

.auh-careers-gf-native .gfield.gsection,
.auh-careers-gf-native .gfield.gfield--type-section,
.auh-careers-gf-native .gfield.gfield--type-page,
.auh-careers-gf-native .gfield.gfield--type-hidden {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auh-careers-gf-native input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.auh-careers-gf-native select,
.auh-careers-gf-native textarea {
    width: 100% !important;
    min-height: 46px;
    border: 1px solid var(--auh-gf-border) !important;
    border-radius: 11px !important;
    background: #fff;
    color: var(--auh-gf-text);
}

.auh-careers-gf-native textarea {
    min-height: 120px;
}

.auh-careers-gf-native .gfield--type-signature,
.auh-careers-gf-native .ginput_container_signature,
.auh-careers-gf-native .gfield_signature_container {
    width: 100% !important;
    max-width: 100% !important;
}

.auh-careers-gf-native .gfield_signature_reset,
.auh-careers-gf-native .gfield_signature_reset_container button,
.auh-careers-gf-native .gfield_signature_reset_container a {
    color: var(--auh-gf-primary) !important;
    font-family: inherit !important;
    font-weight: 800 !important;
}

.auh-careers-gf-native .auh-key-linkedin_profile input {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext;
}

.auh-careers-gf-native .auh-key-national_id input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.auh-careers-gf-native .auh-key-national_id input[type="number"]::-webkit-inner-spin-button,
.auh-careers-gf-native .auh-key-national_id input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.auh-careers-gf-native .gfield_list {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 8px 10px;
}

.auh-careers-gf-native .gfield_list .gfield_header_item {
    padding: 0 4px 4px;
    color: var(--auh-gf-text);
    font-weight: 800;
}

.auh-careers-gf-native .gfield_list_cell {
    min-width: 0;
    vertical-align: top;
}

.auh-careers-gf-native .gfield_list_cell input {
    min-width: 0;
    font-family: inherit !important;
}

.auh-careers-gf-native .gfield_list_cell.auh-list-cell-invalid input {
    border-color: #c73524 !important;
    box-shadow: 0 0 0 2px rgba(199, 53, 36, .12);
}

.auh-careers-gf-native .auh-list-year-input {
    appearance: textfield;
    -moz-appearance: textfield;
}

.auh-careers-gf-native .auh-list-year-input::-webkit-inner-spin-button,
.auh-careers-gf-native .auh-list-year-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.auh-careers-gf-native .auh-list-date-input {
    direction: ltr;
    text-align: start;
}

.auh-careers-gf-native .gform_validation_errors {
    border-color: #d7543f !important;
    background: #fff8f6 !important;
}

.auh-careers-gf-native .gform_validation_errors h2,
.auh-careers-gf-native .gfield_validation_message {
    color: #b93825 !important;
}

.auh-careers-gf-native .gfield_required_text {
    color: #c73524;
    font-weight: 800;
}

.auh-careers-gf-native .gform_next_button,
.auh-careers-gf-native .gform_previous_button,
.auh-careers-gf-native .gform_button {
    min-height: 44px;
    padding: 10px 22px !important;
    border: 1px solid var(--auh-gf-primary) !important;
    border-radius: 11px !important;
    background: var(--auh-gf-primary) !important;
    color: #fff !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.auh-careers-gf-native .gform_previous_button {
    background: #fff !important;
    color: var(--auh-gf-primary) !important;
}

.auh-careers-gf-native .gf_progressbar_percentage {
    background: linear-gradient(90deg, var(--auh-gf-primary), var(--auh-gf-secondary)) !important;
}

@media (min-width: 1120px) {
    .auh-careers-gf-native .gfield.auh-key-request_type,
    .auh-careers-gf-native .gfield.auh-key-department_id,
    .auh-careers-gf-native .gfield.auh-key-job_id {
        grid-column: span 4;
    }

    .auh-careers-gf-native .gfield.gfield--type-fileupload.auh-careers-gf-field {
        grid-column: span 4;
    }
}

.auh-careers-gf-confirmation {
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px solid #bde8d5;
    border-radius: 16px;
    background: #effaf5;
    color: #087647;
    text-align: center;
}

.auh-careers-gf-confirmation strong {
    font-size: 20px;
}

.auh-careers-gf-confirmation.is-pending {
    border-color: #f0d49d;
    background: #fff9eb;
    color: #875d08;
}

@media (max-width: 760px) {
    .auh-careers-gf-native {
        padding: 14px;
        border-radius: 15px;
    }

    .auh-careers-gf-native .gform_fields {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .auh-careers-gf-native .gfield,
    .auh-careers-gf-native .gfield.auh-careers-gf-field,
    .auh-careers-gf-native .gfield.gfield--width-full,
    .auh-careers-gf-native .gfield.gfield--width-half,
    .auh-careers-gf-native .gfield.gfield--width-third,
    .auh-careers-gf-native .gfield.gfield--width-quarter {
        grid-column: 1 / -1 !important;
    }

    .auh-careers-gf-native .gform_page_footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .auh-careers-gf-native .gform_next_button,
    .auh-careers-gf-native .gform_previous_button,
    .auh-careers-gf-native .gform_button {
        width: 100%;
        margin: 0 !important;
    }

    .auh-careers-gf-native .gfield_list {
        display: block;
        border-spacing: 0;
    }

    .auh-careers-gf-native .gfield_list thead,
    .auh-careers-gf-native .gfield_list .gfield_list_header {
        display: none;
    }

    .auh-careers-gf-native .gfield_list tbody {
        display: grid;
        gap: 14px;
    }

    .auh-careers-gf-native .gfield_list .gfield_list_group {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        padding: 14px;
        border: 1px solid var(--auh-gf-border);
        border-radius: 14px;
        background: #f9fcfe;
    }

    .auh-careers-gf-native .gfield_list .gfield_list_cell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100% !important;
        padding: 0 !important;
    }

    .auh-careers-gf-native .gfield_list .gfield_list_cell::before {
        content: attr(data-auh-label);
        display: block;
        color: var(--auh-gf-text);
        font-size: 12px;
        font-weight: 800;
    }

    .auh-careers-gf-native .gfield_list .gfield_list_icons {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100% !important;
        padding: 2px 0 0 !important;
    }
}
