/*------------------------------------*\
    
    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 slider-specific styles in individual block stylesheets

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


/* 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 {
    font-weight: 500;
    font-family: var(--font-primary);
    padding: 5px 12px;
}

/* Entire form error message */
.wpcf7-response-output {
    text-align: center;
    font-family: var(--font-primary);
}

.wpcf7 form.invalid .wpcf7-response-output {
    padding: 10px 15px;
}

.wpcf7 form .wpcf7-response-output,
.contact__form .wpcf7 form .wpcf7-response-output {
    margin-top: 60px;
}

.contact__form.fullwidth {
    max-width: none;
}

@media (min-width: 768px) {
    .wpcf7 form .wpcf7-response-output,
    .contact__form .wpcf7 form .wpcf7-response-output {
        margin-top: 90px;
    }
}

/* Styling for fields that have errors */
select.wpcf7-not-valid,
textarea.wpcf7-not-valid,
input.wpcf7-not-valid,
.wpcf7-not-valid .choices {
    
}

/* Submit Button Loading State */
.wpcf7 form.submitting .wpcf7-submit {
    position: relative;
    padding-right: 40px;
    pointer-events: none;
    opacity: 0.7;
}

.wpcf7 form.submitting .wpcf7-submit::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}