.gform-theme--foundation .gform-body .gform_fields input,
.gform-theme--foundation .gform-body .gform_fields textarea,
.gform-theme--foundation .gform-body .gform_fields select {
    background-color: var(--e-global-color-cg_white);
    border: 2px solid var(--e-global-color-cg_white);
    border-radius: 0px !important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-cg_h1-font-weight, 700);
    line-height: var(--e-global-typography-text-line-height);
    padding: 16px;
    color: var(--e-global-color-text);
}

.gform-theme--foundation .gform-body .gform_fields input:focus,
.gform-theme--foundation .gform-body .gform_fields textarea:focus,
.gform-theme--foundation .gform-body .gform_fields select:focus,
.gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full:focus {
    outline-color: var(--e-global-color-text);
}

.gform-theme--foundation .gform-body .gform_fields select {
    padding: 10px 14px;
    appearance: none;
    background: url('/wp-content/uploads/2026/06/select-icon.svg') no-repeat right 18px center;
    background-size: 20px auto;
    padding-right: 50px !important;
    background-color: var(--e-global-color-cg_white);
}

.gform-theme--foundation .gform-body .gform_fields input,
.gform-theme--foundation .gform-body .gform_fields select {
    min-height: 54px;
}

.gform-theme--foundation .gfield.gf_list_inline:where(:not(.gfield--type-image_choice)) .gfield_checkbox {
    gap: 13px 22px !important;
}

.gform-theme--foundation .gform-body .gform_fields .gchoice input,
.gform-theme--foundation .gform-body .gform_fields .gfield--type-consent input {
    min-height: unset;
    padding: 0px;
}

.gform-theme--foundation .gform-body .gform_fields .gchoice input:before,
.gform-theme--foundation .gform-body .gform_fields .gfield--type-consent input:before {
    color: var(--e-global-color-text, #252525);
}

.gform-body .gform_fields label.gform-field-label,
.gform-body .gform_fields legend.gfield_label,
.gform-body .gform_fields .gfield_required {
    color: var(--e-global-color-cg_white);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-cg_h1-font-weight, 700);
    line-height: var(--e-global-typography-text-line-height);
}

.gform-body .gform_fields .gfield_description,
.gform_validation_errors h2.gform_submission_error.hide_summary,
.gform-theme--framework .gform_validation_errors .gform-icon {
    color: var(--e-global-color-cg_white) !important;
}

.gform-theme--framework .gform_validation_errors .gform-icon,
.gform-theme--framework .gform_validation_errors {
    border-color: var(--e-global-color-cg_white) !important;
}

.gform-body .gform_fields label.gform-field-label {
    margin-bottom: 10px;
}

.gform_required_legend {
    display: none !important;
}

.gform-theme--foundation .gform-body #field_submit {
    align-items: center;
}

.gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full {
    border: 2px solid var(--e-global-color-cg_white);
    background: transparent;
    padding: 25px;
    border-radius: 5px !important;
    font-family: var(--e-global-typography-cg_button-font-family, "Rajdhani");
    font-size: var(--e-global-typography-cg_button-font-size, 25px);
    font-weight: var(--e-global-typography-cg_button-font-weight, 700);
    text-transform: var(--e-global-typography-cg_button-text-transform, uppercase);
    line-height: var(--e-global-typography-cg_button-line-height, 30px);
}

.gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full:hover {
    background:
        linear-gradient(180deg, #252525 0%, #020000 100%) padding-box,
        linear-gradient(180deg, #252525 0%, #020000 100%) border-box;
    border: 2px solid transparent !important;
}

.contact-form .gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full {
    border: 2px solid var(--e-global-color-cg_white);
    background:
        linear-gradient(180deg, #252525 0%, #020000 100%) padding-box,
        linear-gradient(180deg, #252525 0%, #020000 100%) border-box;
    padding: 25px;
    border-radius: 5px !important;
    font-family: var(--e-global-typography-cg_button-font-family, "Rajdhani");
    font-size: var(--e-global-typography-cg_button-font-size, 25px);
    font-weight: var(--e-global-typography-cg_button-font-weight, 700);
    text-transform: var(--e-global-typography-cg_button-text-transform, uppercase);
    line-height: var(--e-global-typography-cg_button-line-height, 30px);
}

.contact-form .gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full:hover {
    background:
        linear-gradient(90deg, var(--e-global-color-primary) 0%, #9E1117 100%) padding-box,
        linear-gradient(90deg, var(--e-global-color-primary) 0%, #9E1117 100%) border-box;
    border: 2px solid transparent !important;
}

.contractor-form .gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full {
    background:
        linear-gradient(90deg, var(--e-global-color-primary) 0%, #9E1117 100%) padding-box,
        linear-gradient(90deg, var(--e-global-color-primary) 0%, #9E1117 100%) border-box;
    padding: 25px;
    border-radius: 5px !important;
    font-family: var(--e-global-typography-cg_button-font-family, "Rajdhani");
    font-size: var(--e-global-typography-cg_button-font-size, 25px);
    font-weight: var(--e-global-typography-cg_button-font-weight, 700);
    text-transform: var(--e-global-typography-cg_button-text-transform, uppercase);
    line-height: var(--e-global-typography-cg_button-line-height, 30px);
    border: 2px solid transparent !important;
}

.contractor-form .gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full:hover {
    background:
        linear-gradient(180deg, var(--e-global-color-text) 0%, #020000 100%) padding-box,
        linear-gradient(var(--e-global-color-primary), var(--e-global-color-primary)) border-box;
    border-color: var(--e-global-color-cg_white) !important;
    border-image-source: none !important;
}

.gform-theme--foundation .gform-body .gform_fields {
    column-gap: 36px;
    row-gap: 20px;
}

.gform-body .gform_fields .gfield-choice-input {
    height: 24px;
    width: 24px;
    min-height: 24px !important;
    min-width: 24px !important;
}

.gform-body .gform_fields .gchoice {
    align-items: center;
}

.gform-body .gform_fields .gchoice label.gform-field-label {
    margin-bottom: 0px;
    margin-left: 8px;
    cursor: pointer;
}

.gform-theme--foundation .gform-body .gform-grid-row {
    gap: 25px;
    margin: 0px;
}

.gform-theme--foundation .gform-body .gform-grid-row .gform-grid-col {
    padding: 0;
}

.gform-theme--framework .gfield--type-choice .gchoice,
.gform-theme--framework .gfield--type-choice .ginput_container_consent {
    grid-template-columns: 24px auto !important;
}

.pit-pass-form .gform-theme--framework .gfield--type-choice .gchoice,
.pit-pass-form .gform-theme--framework .gfield--type-choice .ginput_container_consent {
    grid-template-columns: 31px auto !important;
}

.gform-theme--foundation .gform-body .gform_fields input:focus,
.gform-theme--foundation .gform-body .gform_fields textarea:focus,
.gform-theme--foundation .gform-body .gform_fields select:focus,
.gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full:focus,
.gform-theme--framework .gform_validation_errors:focus {
    outline: none !important;
}


@media (max-width: 1200px) {

    /* Button below checkbox and full width */
    .gform-theme--foundation #field_submit {
        grid-column: 1 / -1;
        margin-top: 27px;
    }

    .contact-form .gform-theme--foundation #field_submit {
        grid-column: span 6;
        margin-top: 0;
    }

    .gform-theme--foundation #field_submit .gform-button {
        width: 100%;
    }

    .gform-theme--framework .gfield--type-choice .gfield_checkbox,
    .gform-theme--framework .gfield--type-choice .gfield_radio {
        flex-direction: row !important;
        gap: 20px !important;
    }

    .pit-pass-form .gform-theme--foundation .gfield,
    .pit-pass-form .gform-theme--foundation .gfield--width-half,
    .pit-pass-form.gform-theme--foundation .gfield--width-quarter,
    .pit-pass-form .gform-theme--foundation .gfield--width-third {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


@media (max-width: 991px) {

    .CGS-form .gform-theme--foundation .gfield,
    .CGS-form .gform-theme--foundation .gfield--width-half,
    .CGS-form .gform-theme--foundation .gfield--width-quarter,
    .CGS-form .gform-theme--foundation .gfield--width-third {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .case-study-form .gform-theme--foundation .gform_fields,
    .home-form .gform-theme--foundation .gform_fields {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 767px) {
    .gform-theme--foundation .gform_fields {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 22px !important;
    }

    .gform-theme--foundation .gform-body .gfield--width-half {
        grid-column: 1 / -1;
    }

    .gform-theme--foundation .gfield,
    .gform-theme--foundation .gfield--width-half,
    .gform-theme--foundation .gfield--width-quarter,
    .gform-theme--foundation .gfield--width-third {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .gform-theme--foundation input,
    .gform-theme--foundation textarea,
    .gform-theme--foundation select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .gform-body .gform_fields label.gform-field-label,
    .gform-body .gform_fields legend.gfield_label,
    .gform-body .gform_fields .gfield_required,
    .gform-theme--foundation .gform-body .gform_fields input,
    .gform-theme--foundation .gform-body .gform_fields textarea,
    .gform-theme--foundation .gform-body .gform_fields select {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    .gfield--type-fileupload .cg-upload-icons {
        justify-content: center;
        gap: 50px !important;
    }
}


.gfield--type-fileupload .cg-upload-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 15px;
}

.gfield--type-fileupload .cg-upload-slot {
    width: 100%;
    height: 100%;
    background-color: var(--e-global-color-cg_primary_red) !important;
    background-image: url('/wp-content/uploads/2026/06/upload-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 0;
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 43px !important;
    border-radius: 100px !important;
}

/* Hide Gravity Forms real upload UI completely */
.gfield--type-fileupload.cg-upload-icons-field .gform_drop_area,
.gfield--type-fileupload.cg-upload-icons-field .gform_button_select_files,
.gfield--type-fileupload.cg-upload-icons-field .gform_drop_instructions,
.gfield--type-fileupload.cg-upload-icons-field .moxie-shim,
.gfield--type-fileupload.cg-upload-icons-field input[type="file"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Uploaded/disabled */
.gfield--type-fileupload.cg-upload-icons-field .cg-upload-slot.is-filled,
.gfield--type-fileupload.cg-upload-icons-field .cg-upload-slot.is-disabled {
    opacity: .6 !important;
    cursor: not-allowed !important;
}

.gform-body .gfield_description.gform_fileupload_rules {
    display: none;
}

.gform-theme--foundation .gform-body .gfield_description {
    text-align: start;
    font-family: var(--e-global-typography-cg_body-font-family), Sans-serif;
    font-size: var(--e-global-typography-cg_body-font-size);
    font-weight: var(--e-global-typography-cg_body-font-weight);
    line-height: var(--e-global-typography-cg_body-line-height);
}

.gform-body .gfield--type-fileupload.cg-upload-icons-field label.gfield_label.gform-field-label {
    font-family: var(--e-global-typography-cg_subheader-font-family), Sans-serif;
    font-size: var(--e-global-typography-cg_subheader-font-size);
    font-weight: var(--e-global-typography-cg_subheader-font-weight);
    text-transform: var(--e-global-typography-cg_subheader-text-transform);
    line-height: var(--e-global-typography-cg_subheader-line-height);
    color: var(--e-global-color-cg_white);
}


.pit-pass-form .gform-theme--foundation .gform-body .gform_fields .gfield--type-consent input {
    min-height: unset;
    padding: 0px;
    border: 2px solid var(--e-global-color-cg_white);
    background: transparent;
}

.pit-pass-form .gform-body .gform_fields .gfield--type-consent input[type="checkbox"] {
    height: 31px !important;
    width: 31px !important;
    min-height: 31px !important;
    min-width: 31px !important;
}

.cg-upload-icons button.cg-upload-slot:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important
}

.pit-pass-form .gform-theme--foundation .gform-body .gform_fields .gfield--type-consent input:before {
    color: var(---e-global-color-cg_white, #ffffff);
}

.ginput_preview_list .ginput_preview .gfield_fileupload_filename,
.ginput_preview_list .ginput_preview .gfield_fileupload_filesize,
.ginput_preview_list .ginput_preview .gfield_fileupload_percent,
.ginput_preview_list .ginput_preview .gfield_fileupload_progress:after {
    color: var(--e-global-color-cg_white, #fff) !important;
}

.ginput_preview_list .ginput_preview button.gform_delete_file span:before,
.ginput_preview_list .ginput_preview .gfield_fileupload_cancel:before {
    color: var(--e-global-color-cg_primary_red) !important;
}

.ginput_preview_list .ginput_preview span.gfield_fileupload_progressbar_progress {
    background: var(--e-global-color-cg_white, #fff) !important;
}

#gform_4 #field_4_13 {
    grid-column: span 6;
}

#gform_4 #field_4_12 {
    grid-column: span 6;
}

#gform_4 #field_4_12 #field_submit {
    margin-top: 30px;
    width: 100%;
}

#gform_4 #field_4_12 #field_submit input {
    width: 100%;
}