/*------------------------------------*\
    
    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-form .wpcf7-not-valid-tip,
.wpcf7-validates-as-tel ~ .error  {
    color: var(--tertiary-color);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: right;
    margin-top: 5px;
}

/* 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 {
    border: 2px solid var(--tertiary-color) !important;
    color: var(--tertiary-color) !important;
}

.wpcf7-not-valid::placeholder {
    color: var(--tertiary-color) !important;
}

.cf7-submit-form .wpcf7-submit {
    width: auto;
}

/* Multi form Styling */

.cf7mls-btns {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.wpcf7-form label.has-value {
    color: var(--primary-color);
}

.wpcf7-form-control-wrap.input-has-value input {
    font-weight: 600;
}

.wpcf7-form .cf7mls-btns .action-button::before {
    content: '\e91e';
    font-family: 'principium-psychiatry';
    position: absolute;
    top: 50%;
    right: 24px;
    font-size: 16px;
    font-weight: normal;
    transform: translate(0, -50%);
    line-height: 1em;
    opacity: 0;
    transition: all 0.3s ease 0s;
}

.wpcf7-form .cf7mls-btns .action-button {
    position: relative;
    display: inline-block;
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.31em;
    text-transform: capitalize;
    font-weight: 700;
    padding: 15px 25px;
    vertical-align: middle;
    text-decoration: none;
    background: var(--primary-color);
    transition: all ease-in-out 0.1s;
    font-family: var(--font-family);
    text-align: center;
    min-width: 200px;
}

.wpcf7-form .cf7mls-btns .action-button {
    font-size: 18px;
    padding: 15px 26px;
}

.wpcf7-form .cf7mls-btns .action-button:hover::before {
    opacity: 1;
}

.wpcf7-form .cf7mls-btns .cf7mls_next:hover {
    padding-right: 52px;
}

.wpcf7-form .cf7mls-btns .action-button:hover {
    background: var(--primary-color-hover);
}

.wpcf7-form .cf7mls-btns .cf7mls_back:hover {
    padding-left: 52px;
}

.wpcf7-form .cf7mls-btns .cf7mls_back::before {
    transform: rotate(180deg);
    right: unset;
    left: 31%;
    line-height: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    color: var(--primary-color) !important;
    font-weight: 600;
    -webkit-text-fill-color: var(--primary-color) !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

textarea {
    height: 153px;
    max-width: 100%;
    min-width: 100%;
}

textarea::placeholder {
    color: var(--primary-color);
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"])::placeholder {
    color: var(--primary-color);
}

#schedule_appointment .wpcf7-response-output {
    display: none;
}
