/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Default Radio/Checkbox Style (if using CF7) */

.custom-radio-btn{
    width: 100% !important;
    display: block !important;
}

.custom-radio-btn-list{
    width: 100%;
    display: block !important;
}

.wpcf7-form-control-wrap{
    width: 100%;
}

.wpcf7-form-control.wpcf7-radio{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
    display: block;
    margin-right: 15px;
    margin-bottom: 10px;
    width: 100%;
    /* incase items go to 2 lines */
}

.wpcf7-radio .wpcf7-list-item-label,
.wpcf7-checkbox .wpcf7-list-item-label {
    margin-left: 5px;
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    position: relative;
    padding-left: 44px;
    line-height: 2.1em;
    cursor: pointer;
    font-size: 18px;
}

/* Individual field error messages */
.wpcf7-not-valid-tip {
    display: block;
    position: relative;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #D70C0C;
    text-transform: uppercase;
    margin: 4px 4px 0;
}

.wpcf7-not-valid-tip:after {
    content: "";
    position: absolute;
    right: 6px;
    top: -48px;
    width: 32px;
    height: 32px;
    background: url(../../img/error-icon.svg) 0 0 no-repeat;
}

/* 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 {
    background: rgba(215, 12, 12, 0.1);
    border-color: #D70C0C;
    padding-right: 50px !important;
}

/* Adding CF7 Spinner for loading */
.wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    background-color: #23282d;
    /* Dark Gray 800 */
    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%;
    -webkit-transform-origin: 8px 8px;
        -ms-transform-origin: 8px 8px;
            transform-origin: 8px 8px;
    -webkit-animation-name: spin;
            animation-name: spin;
    -webkit-animation-duration: 1000ms;
            animation-duration: 1000ms;
    -webkit-animation-timing-function: linear;
            animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
}


/*
 * CF7 radios: without use_label_element, the caption is a span, not a label, so clicks
 * must hit the input. Overlay an invisible input over each .wpcf7-list-item (or the
 * list item itself when it carries .custom-radio-btn).
 */
.custom-radio-btn.wpcf7-list-item,
.custom-radio-btn .wpcf7-list-item {
    position: relative;
    z-index: 0;
}

.custom-radio-btn input[type="radio"]:checked,
.custom-radio-btn input[type="radio"]:not(:checked) {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.custom-radio-btn input[type="radio"]:checked + .wpcf7-list-item-label,
.custom-radio-btn input[type="radio"]:not(:checked) + .wpcf7-list-item-label {
    position: relative;
    padding-left: 44px;
    line-height: 2.1em;
    cursor: pointer;
}

.custom-radio-btn .wpcf7-list-item-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--gray);
    border-radius: 4px;
}

.custom-radio-btn input[type="radio"]:checked + .wpcf7-list-item-label:before {
    background: var(--primary-color);
}

.custom-radio-btn input[type="radio"]:checked + .wpcf7-list-item-label:after,
.custom-radio-btn input[type="radio"]:not(:checked) + .wpcf7-list-item-label:after {
    content: '';
    display: block;
    position: absolute;
    top: 8px;
    left: 13px;
    width: 7px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
}

.custom-radio-btn input[type="radio"]:not(:checked) + .wpcf7-list-item-label:after {
    opacity: 0;
}

.custom-radio-btn input[type="radio"]:checked + .wpcf7-list-item-label:after {
    opacity: 1;
}



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

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

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

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

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

@-webkit-keyframes blink {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes blink {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


@media (min-width: 768px) {
    .wpcf7-form-control.wpcf7-radio{
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    .wpcf7-radio .wpcf7-list-item,
    .wpcf7-checkbox .wpcf7-list-item {
        display: inline-block;
        margin-right: 15px;
        margin-bottom: 0;
        width: calc(50% - 16px);
        margin-left: 0;
        /* incase items go to 2 lines */
    }
}