/* Flex container for page navigation buttons */
.gform_page_footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Style for the previous button */
.gform_page_footer .gform_previous_button {
    order: -1; /* Move to the left */
}

/* Style for the next button */
.gform_page_footer .gform_next_button {
    order: 1; /* Move to the right */
}

/* Common styles */
.gform_page_footer .gform_previous_button, .gform_page_footer .gform_next_button {
    margin-top: 15px;
    width: auto;
}

/* Submit button */
.gform_page_footer .gform_button {
    margin: auto;
    margin-right: 0;
}

/* Save and Continue button */
.gform_page_footer .gform_save_link {
    width: 100%;
    text-align: center;
    order: 2;
    margin-bottom: 15px;
}

/* Centered button when only next button is present (page 1) */
.gform_page_footer .gform_next_button:first-child {
    width: 100%;
    text-align: center;
    order: 0;
}


/* Hide the anti-spam honeypot — theme re-skins GF and drops GF's own hide rule */
.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield_visibility_hidden {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.divert-gfield-wrapper:has(> .gform_validation_container) {
    display: none !important;
}
