/*
 * Remtech Quote Form Global Fix
 * Scope: front-end Gravity Forms only.
 */

/* Remove the duplicate/legacy single-file row completely, including its grid gap. */
.gform_wrapper .remtech-hide-legacy-file-field,
.gform_wrapper .gfield.remtech-hide-legacy-file-field {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Only footers containing a REQUEST QUOTE button receive this class from JS. */
.gform_wrapper .remtech-quote-footer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Keep the existing Remtech button design; only correct its sizing/layout. */
.gform_wrapper .remtech-request-quote-button {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
