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

    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;
}

/* Individual field error messages */
.wpcf7-form-control-wrap {
    position: relative;
}

.wpcf7-form-control-wrap::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 4px;
    background: transparent;
    transition: all ease-in-out 0.3s;
}

.wpcf7-form-control-wrap:has(input:focus)::after,
.wpcf7-form-control-wrap:has(input:active)::after,
.wpcf7-form-control-wrap:has(textarea:focus)::after,
.wpcf7-form-control-wrap:has(textarea:active)::after,
.wpcf7-form-control-wrap:has(select:focus)::after,
.wpcf7-form-control-wrap:has(select:active)::after {
    background: #000000;
    width: 100%;
}

.wpcf7-form-control-wrap:has(.wpcf7-not-valid-tip)::after {
    background: #FDBB12;
    width: 100%;
}

.form-col label:has(+ .wpcf7-form-control-wrap .wpcf7-not-valid-tip) {
    color: #FF874B;
}

span.wpcf7-not-valid-tip {
    font-family: 'univers67_condensed_bold';
    color: #FF874B;
    font-size: 12px;
    font-weight: 300;
    display: block;
    position: absolute;
    text-align: right;
    right: 0;
    width: max-content;
    bottom: -25px;
    padding: 3px 5px;
    line-height: 1.3em;
    z-index: 2;
}

span.wpcf7-not-valid-tip:after {
    content: "!";
    position: absolute;
    right: 15px;
    bottom: 67px;
    background: #FF874B;
    color: #FFFFFF;
    width: 23px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.form-col-checkbox [data-name="ContactMethod"] span.wpcf7-not-valid-tip:after { 
    right: -100px;
}

.wpcf7 form.invalid .wpcf7-response-output {
    margin: 20px 0 0 0!important;
    color: #FF874B;
    border: 2px solid #FF874B!important;
    padding: 10px;
    text-align: center;
}

/* Entire form error message */
.wpcf7-response-output {
    display: none;
}

/* Styling for fields that have errors */
textarea{
    width: 100%;
    padding: 10px;
    border: 0;
}

.fullwidth .btn {
    width: 100%;
}

.contact-locations .form-col-recaptcha{
    margin-top: 0 !important;
}

.contact-locations .form-col-checkbox label{
    margin-bottom: 15px;
}

.contact-locations textarea{
    min-height: 140px;
}

.wpcf7-form ::placeholder {
    color: #1616165e !important; /* Change to any color you want */
    opacity: 1; /* Adjust opacity if needed */
}

/* For better browser support */
.wpcf7-form ::-webkit-input-placeholder {
    color: #1616165e !important;
}

.wpcf7-form ::-moz-placeholder {
    color: #1616165e !important;
}