/**
 * Smart Trigger Event Popup - Public Styles
 * 
 * IMPORTANT: Submit button colors (var(--csprimary)) will apply to:
 * - ANY form placed inside plugin containers (div.cspopup, .cspopup_inner_contents, etc.)
 * - This includes CF7, WPForms, Gravity Forms, Ninja Forms, Elementor Forms, etc.
 * - ALL forms in the plugin will use the "Submit Button Color" from Popup Items settings
 */

/* Default fallback for --csprimary if not set */
:root {
    --csprimary: #ff9c3a;
}

#centralsync {
    display: none;
}

@media(max-width: 768px) {
    #centralsync {
        display: block;
    }
}

#centralsync {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999999999999;
    background: #fff;
}

#centralsync .centralsyncItems {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

#centralsync .centralsyncItems li {
    border-style: solid;
    text-align: center;
    padding: 5px;
    position: relative;
    align-content: center;
    flex: 1;
}

#centralsync .centralsyncItems li>span {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

div.cspopup {
    background: #0000009e;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    padding: 40px;
    box-sizing: border-box;
}

@media(max-width: 580px) {
    div.cspopup {
        padding: 12px;
    }
}

div.cspopup .cspopup_inner {
    width: 100%;
    max-width: min(90vw, 600px);
    min-width: 300px;
    background: #fff;
    max-height: min(90vh, 800px);
    min-height: 200px;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: all 0.3s ease;
    position: relative;
}

/* Responsive adjustments for different screen sizes */
@media screen and (max-width: 768px) {
    div.cspopup .cspopup_inner {
        max-width: 95vw;
        max-height: 95vh;
        margin: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    div.cspopup .cspopup_inner {
        max-width: 98vw;
        max-height: 98vh;
        margin: 0 5px;
        border-radius: 8px;
    }
}

.cspopup_inner_contents {
    padding: clamp(15px, 4vw, 30px);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.cspopup_inner_contents .consultationForm {
    max-width: 650px !important;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 40px !important;
}

.cspopup_inner_contents::-webkit-scrollbar {
    width: 3px;
}

.cspopup_inner_contents::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cspopup_inner_contents::-webkit-scrollbar-thumb {
    background: orange;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

div.cspopup .cspopup_inner .csheader {
    padding: 30px;
    position: relative;
}

div.cspopup .cspopup_inner .csheader span.csclosePopup {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 18px;
    width: 15px;
    height: 18px;
    line-height: 18px;
    user-select: none;
    cursor: pointer;
    color: #333;
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
}

div.cspopup .cspopup_inner .csheader span.csclosePopup:hover {
    color: red;
}

.csfooter {
    padding: 10px 20px;
    border-bottom: 1px solid #ececec;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.csfooter button {
    padding: 5px 10px;
    border: 1px solid;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.3s;
}

.csfooter button.csokPopup {
    background: #03A9F4;
    color: #fff;
    border-color: #00BCD4;
}

.csfooter button.csclosePopup {
    background: #f46f03;
    color: #fff;
    border-color: #f46f03;
}

.csfooter button:hover {
    filter: saturate(0.5);
}

div.cspopup .cspopup_inner .csheader h3 {
    font-size: 22px;
    margin: 0;
    padding: 0;
    color: inherit;
    text-transform: uppercase;
    text-align: center;
}

div.cspopup .cspopup_inner .csheader h4 {
    color: inherit;
    font-size: 18px;
    margin: 0;
    padding: 0;
    font-weight: 300;
    margin-top: 5px;
    text-align: center;
}

div.cspopup .cspopup_inner .cspopupinncer_contents {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

div.cspopup .cspopup_inner p:has(input[type="submit"][disabled]) {
    display: flex;
    align-items: center;
    gap: 20px;
}

div.cspopup .cspopup_inner p:last-child {
    margin-bottom: 0;
}

.central-form-wrapper div.cs7-2 .cs7-field {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.central-form-wrapper div.cs7-2 .cs7-field>span {
    flex: 1;
}

.central-form-wrapper div.cs7-2 .cs7-field p {
    margin: 0;
}

button.ppsubmit,
button.pploginbtn {
    background: #00BCD4;
    padding: 8px 15px;
    border: none !important;
    outline: none !important;
    border-radius: 3px;
    color: #fff;
}

button.ppsubmit[disabled] {
    pointer-events: none;
    background-color: #ddd;
    color: #333;
}

.csinvisible {
    display: none !important;
}

.csloader {
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top: 3px solid #00BCD4;
    width: 16px;
    height: 16px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.screen-reader-response p,
.screen-reader-response ul {
    display: none;
}

.central-form-wrapper .cs7-submit div.responseMsg {
    padding: 16px 0;
    color: #44eb44;
}

.central-form-wrapper .cs7-field {
    margin-bottom: 20px;
    position: relative;
}

.central-form-wrapper .cs7-field:last-child {
    margin-bottom: 0;
}

.central-form-wrapper .cs7-field:has(input[type="submit"][disabled]):after,
.central-form-wrapper p:has(input[type="submit"][disabled]):after {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 3px solid #000;
    /* Border color */
    border-top-color: transparent;
    /* Create the spinning effect */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    /* Spinner animation */
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cspopup_inner_contents p:empty {
    display: none;
}

.central-form-wrapper .cs7-submit .cs7-field {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 24px;
}

.central-form-wrapper .cs7-submit .cs7-field p {
    padding: 0 !important;
}

.central-form-wrapper .cs7-field br {
    display: none;
}

.central-form-wrapper .cs7-field input[type="text"],
.central-form-wrapper .cs7-field input[type="tel"],
.central-form-wrapper .cs7-field input[type="number"],
.central-form-wrapper .cs7-field input[type="email"],
.central-form-wrapper .cs7-field textarea {
    background: #eeeeee;
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 8px 10px;
    height: 46px;
    box-shadow: none;
    width: 100%;
}

.central-form-wrapper .cs7-field .cs7-puzzle input {
    width: 75px;
}

.central-form-wrapper .cs7-field label {
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
    display: inline-block;
    font-size: 16px;
}

.central-form-wrapper .cs7-field .wpcf7-acceptance label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.central-form-wrapper span.cs7-required-lbl {
    color: red;
}

.central-form-wrapper .cs7-field p {
    margin-bottom: 0 !important;
    padding-bottom: 5px !important;
}

/* All form submit buttons inside central-form-wrapper */
.central-form-wrapper .cs7-field input[type="submit"],
.central-form-wrapper .wpcf7-submit,
.central-form-wrapper button[type="submit"],
.central-form-wrapper input[type="submit"],
.central-form-wrapper .wpforms-submit,
.central-form-wrapper .wpforms-form button[type="submit"],
.central-form-wrapper .wpforms-form button.wpforms-submit,
.central-form-wrapper .wpforms-container button.wpforms-submit,
.central-form-wrapper .gform_button,
.central-form-wrapper .gform_wrapper input[type="submit"],
.central-form-wrapper .ff-btn-submit,
.central-form-wrapper .nf-element input[type="button"],
.central-form-wrapper .nf-form-content button[type="submit"],
.central-form-wrapper .frm_submit button,
.central-form-wrapper .elementor-button-link,

/* All forms inside main popup container */
div.cspopup button[type="submit"]:not(.csokPopup):not(.csclosePopup),
div.cspopup input[type="submit"],
div.cspopup .wpcf7-submit,
div.cspopup .wpforms-submit,
div.cspopup .wpforms-form button[type="submit"],
div.cspopup .wpforms-form button.wpforms-submit,
div.cspopup .wpforms-container button.wpforms-submit,
div.cspopup .gform_button,
div.cspopup .gform_wrapper input[type="submit"],
div.cspopup .ff-btn-submit,
div.cspopup .nf-form-content button[type="submit"],
div.cspopup .frm_submit button,

/* Modal Overlay and Live Agent Container */
#modalOverlay button[type="submit"],
#modalOverlay input[type="submit"],
#modalOverlay .wpcf7-submit,
#modalOverlay .wpforms-submit,
#modalOverlay .wpforms-form button[type="submit"],
#modalOverlay .wpforms-form button.wpforms-submit,
#modalOverlay .wpforms-container button.wpforms-submit,
#modalOverlay .gform_button,
#modalOverlay .gform_wrapper input[type="submit"],
#modalOverlay .ff-btn-submit,
#modalOverlay .nf-form-content button[type="submit"],
#modalOverlay .frm_submit button,
.et-modal-content-wrapper button[type="submit"],
.et-modal-content-wrapper input[type="submit"],
.et-modal-content-wrapper .wpcf7-submit,
.et-modal-content-wrapper .wpforms-submit,
.et-modal-content-wrapper .wpforms-form button[type="submit"],
.et-modal-content-wrapper .wpforms-form button.wpforms-submit,
.et-modal-content-wrapper .wpforms-container button.wpforms-submit,
.et-modal-content-wrapper .gform_button,
.et-modal-content-wrapper .gform_wrapper input[type="submit"],
.et-modal-content-wrapper .ff-btn-submit,
.et-modal-content-wrapper .nf-form-content button[type="submit"],
.et-modal-content-wrapper .frm_submit button {
    background: var(--csprimary) !important;
    background-color: var(--csprimary) !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
    padding: 12px 25px !important;
    border-radius: 5px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    margin: 10px 0 !important;
}

/* EXTREME SPECIFICITY - Force button visibility in modal */
#modalOverlay .et-modal-content-wrapper button[type="submit"],
#modalOverlay .et-modal-content-wrapper input[type="submit"],
#modalOverlay .et-modal-content-wrapper .wpforms-submit,
#modalOverlay .et-modal-content-wrapper .wpforms-form button[type="submit"],
#modalOverlay .et-modal-content-wrapper .wpforms-container button[type="submit"],
#modalOverlay .et-modal-content-wrapper .wpcf7-submit,
#modalOverlay .et-modal-content-wrapper .gform_button,
#modalOverlay .et-modal-content-wrapper .gform_footer input[type="submit"] {
    background-color: var(--csprimary) !important;
    background: var(--csprimary) !important;
    border: 1px solid var(--csprimary) !important;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: auto !important;
    width: auto !important;
    min-width: 120px !important;
    padding: 12px 25px !important;
    margin: 15px 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-indent: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
}

.central-form-wrapper .cs7-field input[type="submit"]:hover,
.central-form-wrapper button[type="submit"]:hover,
.central-form-wrapper .wpforms-submit:hover,
.central-form-wrapper .wpforms-form button[type="submit"]:hover,
.central-form-wrapper .gform_button:hover,
.central-form-wrapper .ff-btn-submit:hover,
.central-form-wrapper .nf-form-content button[type="submit"]:hover,
.central-form-wrapper .frm_submit button:hover,
div.cspopup button[type="submit"]:not(.csokPopup):not(.csclosePopup):hover,
div.cspopup input[type="submit"]:hover,
div.cspopup .wpcf7-submit:hover,
div.cspopup .wpforms-submit:hover,
div.cspopup .wpforms-form button[type="submit"]:hover,
div.cspopup .gform_button:hover,
div.cspopup .gform_wrapper input[type="submit"]:hover,
div.cspopup .ff-btn-submit:hover,
div.cspopup .nf-form-content button[type="submit"]:hover,
div.cspopup .frm_submit button:hover,
#modalOverlay button[type="submit"]:hover,
#modalOverlay input[type="submit"]:hover,
#modalOverlay .wpforms-submit:hover,
#modalOverlay .wpforms-form button[type="submit"]:hover,
#modalOverlay .gform_button:hover,
#modalOverlay .ff-btn-submit:hover,
#modalOverlay .nf-form-content button[type="submit"]:hover,
#modalOverlay .frm_submit button:hover,
.et-modal-content-wrapper button[type="submit"]:hover,
.et-modal-content-wrapper .wpforms-submit:hover,
.et-modal-content-wrapper .wpforms-form button[type="submit"]:hover,
.et-modal-content-wrapper .gform_button:hover,
.et-modal-content-wrapper .ff-btn-submit:hover,
.et-modal-content-wrapper .nf-form-content button[type="submit"]:hover,
.et-modal-content-wrapper .frm_submit button:hover {
    opacity: 0.8;
    background: var(--csprimary) !important;
}

/* Very High Specificity - Override WPForms defaults in Live Agent Modal */
#modalOverlay .wpforms-container .wpforms-form button[type="submit"],
#modalOverlay .wpforms-container .wpforms-submit,
#modalOverlay .wpforms-container-full .wpforms-form button[type="submit"],
.et-modal-content-wrapper .wpforms-container .wpforms-form button[type="submit"],
.et-modal-content-wrapper .wpforms-container .wpforms-submit,
div.cspopup .wpforms-container .wpforms-form button[type="submit"],
div.cspopup .wpforms-container .wpforms-submit,
.cspopup_inner_contents .wpforms-container .wpforms-submit,

/* Gravity Forms - High Specificity */
#modalOverlay .gform_wrapper .gform_footer input[type="submit"],
.et-modal-content-wrapper .gform_wrapper .gform_footer input[type="submit"],
div.cspopup .gform_wrapper .gform_footer input[type="submit"],
.cspopup_inner_contents .gform_wrapper .gform_footer input[type="submit"],

/* Fluent Forms - High Specificity */
#modalOverlay .ff-el-group .ff-btn-submit,
.et-modal-content-wrapper .ff-el-group .ff-btn-submit,
div.cspopup .ff-el-group .ff-btn-submit,
.cspopup_inner_contents .ff-el-group .ff-btn-submit,

/* Ninja Forms - High Specificity */
#modalOverlay .nf-form-content button[type="submit"],
.et-modal-content-wrapper .nf-form-content button[type="submit"],
div.cspopup .nf-form-content button[type="submit"],
.cspopup_inner_contents .nf-form-content button[type="submit"],

/* Formidable Forms - High Specificity */
#modalOverlay .frm_submit button,
.et-modal-content-wrapper .frm_submit button,
div.cspopup .frm_submit button,
.cspopup_inner_contents .frm_submit button {
    background-color: var(--csprimary) !important;
    background: var(--csprimary) !important;
    border-color: var(--csprimary) !important;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    margin: 10px 0 !important;
}

#modalOverlay .wpforms-container .wpforms-form button[type="submit"]:hover,
#modalOverlay .wpforms-container .wpforms-submit:hover,
.et-modal-content-wrapper .wpforms-container .wpforms-form button[type="submit"]:hover,
.et-modal-content-wrapper .wpforms-container .wpforms-submit:hover,
#modalOverlay .gform_wrapper .gform_footer input[type="submit"]:hover,
.et-modal-content-wrapper .gform_wrapper .gform_footer input[type="submit"]:hover,
#modalOverlay .ff-el-group .ff-btn-submit:hover,
.et-modal-content-wrapper .ff-el-group .ff-btn-submit:hover,
#modalOverlay .nf-form-content button[type="submit"]:hover,
.et-modal-content-wrapper .nf-form-content button[type="submit"]:hover,
#modalOverlay .frm_submit button:hover,
.et-modal-content-wrapper .frm_submit button:hover {
    opacity: 0.8;
    background: var(--csprimary) !important;
    background-color: var(--csprimary) !important;
}

.central-form-wrapper .cs7-field input[type="submit"][disabled] {
    background-color: #acacac;
    cursor: no-drop;
    width: fit-content;
}

.central-form-wrapper .cs7-field span.wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.central-form-wrapper .cs7-field span.wpcf7-list-item-label {
    font-weight: 500;
    font-size: 14px;
    color: #334155;
}

.central-form-wrapper .cs7-field .cs7-puzzle {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* General styling for radio, checkbox, and range inputs */
.central-form-wrapper .cs7-field input[type="radio"],
.central-form-wrapper .cs7-field input[type="checkbox"],
.central-form-wrapper .cs7-field input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    /* Remove default appearance */
    transition: all ease-in 0.2s;
    box-shadow: 0 0 0 1px var(--csprimary);
    background-color: #fff;
}

/* Specific styling for radio buttons */
.central-form-wrapper .cs7-field input[type="radio"] {
    border: 2px solid white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

/* Specific styling for checkboxes */
.central-form-wrapper .cs7-field input[type="checkbox"] {
    border: 2px solid white;
    border-radius: 2px;
    width: 12px;
    height: 12px;
}

.central-form-wrapper .cs7-field input[type="radio"]:hover,
.central-form-wrapper .cs7-field input[type="checkbox"]:hover {
    background-color: var(--csprimary);
    border-color: var(--csprimary);
}

/* Styling for checked state */
.central-form-wrapper .cs7-field input[type="radio"]:checked,
.central-form-wrapper .cs7-field input[type="checkbox"]:checked {
    background-color: var(--csprimary);
    border-color: #ffffff;
}

@media(max-width: 920px) {
    div.cspopup .cspopup_inner {
        max-width: 60vw;
    }
}

@media(max-width: 768px) {
    div.cspopup .cspopup_inner .csheader h3 {
        font-size: 20px;
    }

    div.cspopup .cspopup_inner .csheader h4 {
        font-size: 18px;
    }

    div.cspopup .cspopup_inner {
        max-width: 75vw;
    }
}

@media(max-width: 580px) {
    div.cspopup .cspopup_inner .csheader h3 {
        font-size: 18px;
    }

    div.cspopup .cspopup_inner .csheader h4 {
        font-size: 16px;
    }

    div.cspopup .cspopup_inner {
        max-width: 90vw;
    }
}

@media(max-width: 420px) {
    .central-form-wrapper div.cs7-2 .cs7-field {
        flex-direction: column;
    }
}

.cspopup.contentOnly .csheader,
.cspopup.contentOnly .cspopup_inner_contents {
    padding: 0 !important;
    background: transparent;
}

.cspopup.contentOnly .cspopup_inner {
    background: transparent;
}

.cspopup.contentOnly span.csclosePopup {
    z-index: 999;
}

.cspopup_inner_contents:has(.smart-trigger-form-wrapper) {
    overflow: hidden;
    max-height: max-content;
}

.form-alert-box {
    background: #0000009e;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
}

.form-alert-inner {
    max-width: 450px;
    min-width: 350px;
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 16px -6px #000000;
}

.form-alert-inner .head {
    position: absolute;
    right: 16px;
    top: 12px;
}

.form-alert-inner .head button {
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}

.et-form-alert p {
    margin: 10px 0 0;
}

.et-form-alert {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: #fff;
}


.et-form-alert .infoicon svg {
    width: 60px;
    height: 60px;
}

.et-form-alert.success {
    color: green;
}

.et-form-alert.error {
    color: red;
}

.xdsoft_datetimepicker {
    z-index: 999999999999;
}

/* ULTIMATE OVERRIDE - Last resort to force submit button visibility */
#modalOverlay button[type="submit"]:not(.csokPopup):not(.csclosePopup):not(.modal-close),
#modalOverlay input[type="submit"],
.et-modal-content-wrapper button[type="submit"]:not(.close):not(.modal-close),
.et-modal-content-wrapper input[type="submit"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
    background-color: var(--csprimary, #0288d1) !important;
    background: var(--csprimary, #0288d1) !important;
    color: #ffffff !important;
    border: 1px solid var(--csprimary, #0288d1) !important;
    padding: 12px 25px !important;
    margin: 15px 0 !important;
    font-size: 16px !important;
    min-width: 100px !important;
}

/* =====================================================
   WPFORMS EXTREME OVERRIDE - Force Submit Button Color
   ===================================================== */
/* Auto Popup Forms */
div.cspopup .wpforms-submit,
div.cspopup .wpforms-form .wpforms-submit,
div.cspopup .wpforms-form button.wpforms-submit,
div.cspopup .wpforms-container .wpforms-submit,
div.cspopup .wpforms-container button.wpforms-submit,
div.cspopup .wpforms-container-full .wpforms-submit,
div.cspopup div.wpforms-container-full .wpforms-form button.wpforms-submit,
div.cspopup div.wpforms-container-full .wpforms-form button[type="submit"],
.cspopup_inner .wpforms-submit,
.cspopup_inner .wpforms-form .wpforms-submit,
.cspopup_inner_contents .wpforms-submit,
.cspopup_inner_contents .wpforms-form .wpforms-submit,

/* Live Agent Modal Forms */
#modalOverlay .wpforms-submit,
#modalOverlay .wpforms-form .wpforms-submit,
#modalOverlay .wpforms-form button.wpforms-submit,
#modalOverlay .wpforms-container .wpforms-submit,
#modalOverlay .wpforms-container button.wpforms-submit,
#modalOverlay .wpforms-container-full .wpforms-submit,
#modalOverlay div.wpforms-container-full .wpforms-form button.wpforms-submit,
#modalOverlay div.wpforms-container-full .wpforms-form button[type="submit"],
.et-modal-content-wrapper .wpforms-submit,
.et-modal-content-wrapper .wpforms-form .wpforms-submit,
.et-modal-content-wrapper .wpforms-form button.wpforms-submit,
.et-modal-content-wrapper .wpforms-container .wpforms-submit,
.et-modal-content-wrapper .wpforms-container button.wpforms-submit,
.et-modal-content-wrapper .wpforms-container-full .wpforms-submit,
.et-modal-content-wrapper div.wpforms-container-full .wpforms-form button.wpforms-submit,

/* Central Form Wrapper */
.central-form-wrapper .wpforms-submit,
.central-form-wrapper .wpforms-form .wpforms-submit,
.central-form-wrapper .wpforms-form button.wpforms-submit,
.central-form-wrapper .wpforms-container .wpforms-submit,
.central-form-wrapper .wpforms-container button.wpforms-submit,
.central-form-wrapper .wpforms-container-full .wpforms-submit,
.central-form-wrapper div.wpforms-container-full .wpforms-form button.wpforms-submit {
    background: var(--csprimary) !important;
    background-color: var(--csprimary) !important;
    border: none !important;
    border-color: var(--csprimary) !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hover state for WPForms buttons */
div.cspopup .wpforms-submit:hover,
#modalOverlay .wpforms-submit:hover,
.et-modal-content-wrapper .wpforms-submit:hover,
.central-form-wrapper .wpforms-submit:hover {
    filter: brightness(1.1) !important;
    background: var(--csprimary) !important;
    background-color: var(--csprimary) !important;
}