/*------------------------------------*\
    
    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,
.gfield_validation_message {
    display: block;
    position: relative;
    text-align: left;
    width: 100%;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 12px;
    line-height: 1em;
    color: var(--primary-color);
    left: 0;
    padding-left: 5px;
    bottom: 0;
    text-transform: uppercase;
    margin-top: 5px;
}

.instruction.validation_message {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 12px;
    line-height: 1em;
    color: var(--primary-color);
    margin-top: 10px;
    margin-left: 5px;
}

.wpcf7-not-valid:not(:placeholder-shown),
.gfield_error  input,
.gfield_error textarea {
    padding: 8px 52px 8px 11px;
    border: 1px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.gfield_error .ginput_container {
    position: relative;
}

.wpcf7-not-valid-tip:after,
.gfield_error .ginput_container:after {
    content: "\e907";
    font-family: 'rmfx-icon' !important;
    font-size: 32px;
    font-weight: normal;
    position: absolute;
    right: 10px;
    top: 8px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 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: 8px 52px 8px 11px;
    border: 1px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
}