/*------------------------------------*\
    
    WebFX CF7 Customizations - Global styling for all CF7 Forms

    Add custom CF7 form styling to this file if it should be applied to all CF7 forms on the site
    Otherwise, put your block-specific styles in individual block stylesheets so that various block-specific styles aren't loaded on every CF7 form

\*------------------------------------*/

.wpcf7-form-control-wrap {
    display: block;
}

/* Default Radio/Checkbox Style (if using CF7) */
.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    /* incase items go to 2 lines */
}

.wpcf7-radio .wpcf7-list-item-label,
.wpcf7-checkbox .wpcf7-list-item-label {
    margin-left: 5px;
}

/* CF7 Validation (Remove if not using CF7) */

/* Individual field error messages */
.wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    position: absolute;
    display: flex;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #c10e0e;
    right: 0;
    height: 100%;
    top: 20px;
    align-items: flex-end;
}

.wpcf7-form-control-wrap:has( > .wpcf7-not-valid)::before {
    content: "\e926";
    font-family: "prodent-usa-icon";
    color: #c10e0e;
    position: absolute;
    top: 9px;
    right: 15px;
    font-size: 20px;
}

.wpcf7-form-control-wrap:has( > .wpcf7-checkbox.wpcf7-not-valid)::before {
    right: 0;
    top: -35px;
}

/* Entire form error message */
.wpcf7-response-output {
    text-align: center;
}

/* Styling for fields that have errors */
select.wpcf7-not-valid,
textarea.wpcf7-not-valid,
input.wpcf7-not-valid,
.wpcf7-not-valid .choices {
    border: 1px solid #C10E0E;
}

/* Adding CF7 Spinner for loading */
.wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    background-color: #23282d;
    /* Dark Gray 800 */
    opacity: 0.75;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 24px;
    position: relative;
}

form.submitting .wpcf7-spinner {
    visibility: visible;
}

.wpcf7-spinner::before {
    content: '';
    position: absolute;
    background-color: #fbfbfc;
    /* Light Gray 100 */
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 100%;
    -webkit-transform-origin: 8px 8px;
            transform-origin: 8px 8px;
    -webkit-animation-name: spin;
            animation-name: spin;
    -webkit-animation-duration: 1000ms;
            animation-duration: 1000ms;
    -webkit-animation-timing-function: linear;
            animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
    .wpcf7-spinner::before {
        -webkit-animation-name: blink;
                animation-name: blink;
        -webkit-animation-duration: 2000ms;
                animation-duration: 2000ms;
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@-webkit-keyframes blink {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes blink {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}



.wpcf7-radio .wpcf7-list-item label, 
.wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
}