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

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


.cf7-section{
    display: block;
    position: relative;
    width: 100%;     
}


.cf7-section .container{
    position: relative;
    z-index: 1;
}

.cf7-background-image{
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 0;
}


.cf7-background-image-full{    
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cf7-section .container .contents{
    position: relative;
    display: block;
    width: 100%;
    max-width: 1048px;
    margin: 0 auto 60px;
}

.contact-form{
    position: relative;
    display: block;
    width: 100%;
    max-width: 1048px;
    padding: 64px 50px;
    margin: 0 auto;
    background-color: var(--grey);
}


.form-col-btn-info{
    margin: 30px auto;
}


.wpcf7-response-output{
    position: relative;
    bottom: 65px;
    left: 0;
    max-width: 100%;
    font-size: 16px !important;
    padding: 10px !important;
    margin: 0 !important;
    border: none !important;
    text-align: center;
}


/* 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;
    margin-left: 0;
    position: relative;
    /* incase items go to 2 lines */

    input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
    }
}

.wpcf7-radio .wpcf7-list-item-label,
.wpcf7-checkbox .wpcf7-list-item-label {
    margin-left: 0;
    padding-left: 28px;
    font-size: 17px;
    font-weight: 700;

    &:before {
        width: 20px;
        height: 20px;
        display: inline-block;
        vertical-align: middle;
        background-color: #fff;
        border: 1px solid #0465B0;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    &:after {
        content: "";
        display: block;
        position: absolute;
        top: calc(50% - 2px);
        left: 7px;
        transform: translateY(-50%) rotate(45deg);
        border: 2px solid #fff;
        width: 7px;
        height: 15px;
        border-top: 0;
        border-left: 0;
        background-color: transparent;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }
}

.wpcf7-radio input:checked + .wpcf7-list-item-label:before,
.wpcf7-checkbox input:checked + .wpcf7-list-item-label:before {
    background-color: #0465B0;
}

.wpcf7-radio input:checked + .wpcf7-list-item-label:after,
.wpcf7-checkbox input:checked + .wpcf7-list-item-label:after {
    opacity: 1;
}

/* CF7 Validation (Remove if not using CF7) */

/* Individual field error messages */
.wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    padding-left: 5px;
    bottom: -21px;
    color: #D2232A !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    width: 100%;
}

.bg-light-gray .wpcf7-not-valid-tip {
    color: #fff;
}

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

/* 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-color: #D2232A;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
}

/* Adding CF7 Spinner for loading */
.wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    background-color: #23282d;
    opacity: 0.75;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 24px;
    position: relative;
}

form.submitting .wpcf7-spinner {
    visibility: visible;
}

.wpcf7-spinner::before {
    content: '';
    position: absolute;
    background-color: #fbfbfc;
    /* Light Gray 100 */
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 100%;
    transform-origin: 8px 8px;
    animation-name: spin;
    animation-duration: 1000ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.form-col-dimensions{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}


.form-col-dimensions label{
    font-size: 16px;
}


.form-col-dimensions .form-col-dimension-item{
    width: 100%;
    margin-bottom: 20px;
}


.codedropz-upload-container{
    padding: 11px 25px;
    border-radius: 7px;
    border: 2px solid #F5F5F5;
    background: #FFF;
}


.codedropz-upload-handler{
    border-radius: 5px;
    border: 2px solid #F5F5F5;
    background:  #FFF;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.codedropz-upload-inner h3,
.codedropz-upload-inner span{
    display: none;
}


.codedropz-btn-wrap a,
.codedropz-btn-wrap a:hover{
    background: none;
    color: var(--blue);
}

.codedropz-btn-wrap a:after{
    content: "\e903";
    font-family: 'sc-icon' !important;
    font-size: 20px;
    color: var(--light-blue);
    font-weight: 700;
    margin-left: 10px;
}


.innerpage-form{
    padding-top: var(--section-margins);
    padding-bottom: var(--section-margins);
}


@media (min-width: 1024px) {

    .form-col-dimensions{
        flex-direction: row;
    }

    .form-col-dimensions .form-col-dimension-item{
        width: 170px;
        margin-bottom: 0;
    }


    .form-col-dimensions.dimension-4 .form-col-dimension-item{
        width: 230px;
        margin-bottom: 20px;
    }

    .wpcf7-response-output{
        position: absolute;
        bottom: 13px;
        left: 180px;
        max-width: 1048px;
        font-size: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        text-align: left;
    }
}


@media (prefers-reduced-motion: reduce) {
    .wpcf7-spinner::before {
        animation-name: blink;
        animation-duration: 2000ms;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}