/*------------------------------------*\
    
    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

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


/* 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-not-valid-tip {
    display: block;
    position: relative;
    width: 100%;
    font-weight: 400;
    font-size: 16px;
    line-height: 1em;
    color: #D70C0C;
    margin-top: 3px;
    padding-left: 4px;
}

.wpcf7-not-valid-tip:after {
    content: "!";
    font-size: 26px;
    font-weight: normal;
    position: absolute;
    width: 32px;
    height: 32px;
    background: #D70C0C;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 10px;
    bottom: 29px;
    font-weight: 700;
    color: #fff;
}


.wpcf7-form-control-wrap input:has(+ .wpcf7-not-valid-tip) {
    padding-right: 50px;
    border: 1px solid #D70C0C !important;
    border-left: 5px solid #D70C0C !important;
    padding-left: 11px;
}

input:focus + .wpcf7-not-valid-tip:after {
    bottom: 33px;
}
/* Entire form error message */
.wpcf7-response-output {}

/* Styling for fields that have errors */
select.wpcf7-not-valid,
textarea.wpcf7-not-valid,
input.wpcf7-not-valid,
.wpcf7-not-valid .choices {
    padding-right: 50px;
    border: 1px solid #D70C0C !important;
    border-left: 5px solid #D70C0C !important;
    padding-left: 11px;
}

@media(min-width: 768px) {
    .wpcf7-not-valid-tip:after {
        bottom: 24px;
    }

    input:focus + .wpcf7-not-valid-tip:after {
        bottom: 32px;
    }
    
}
