div.wpcf7 {
    margin: 0;
    padding: 0;
    float: left;
    width: 100%;
}

form.wpcf7-form {
    float: left;
    width: 100%;
    position: relative;

    /*display: flex;
    justify-content: space-between;
    flex-flow: row wrap;*/
}

.wpcf7-form-control-wrap {
    float: left;
    width: 100%;
}

span.wpcf7-form-control-wrap {
    width: 100%;
}

.wpcf7-form-control-wrap input {
    float: left;
    width: 100%;
    height: auto;
    line-height: inherit;
}

.wpcf7-form-control-wrap input[type="radio"], .wpcf7-form-control-wrap input[type="checkbox"] {
    width: 40px;
}

select.wpcf7-form-control {
    width: 100%;
    padding: 0 10px !important;
    height: 36px;
    cursor: pointer;
}

.multiple select.wpcf7-form-control {
    height: auto;
    min-height: 7em;
    padding: 0 !important;
    font-size: 1em;
    line-height: 1em;
    background: none !important;
    overflow-y: scroll;
}

/* Radios */

.wpcf7-list-item-label {
    position: relative;
    float: left;
    width: calc(100% - 40px);
    font-size: 0.9em;
    border-bottom: 1px dotted rgba(0, 0, 0, .05);
    cursor: pointer;
    -moz-transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -ms-transition: all 0.4s;
    transition: all 0.4s;
}

.wpcf7-list-item-label:hover {
    color: #1aaf57;
}

span.wpcf7-list-item {
    margin: 0;
    width: 100%;
}

.wpcf7-form-control-wrap input[type="radio"] {
    width: auto !important;
    margin: 8px 10px 0 0;
    cursor: pointer;
}

.wpcf7-form-control-wrap.your-schedule {
    width: 100%;
}

span.wpcf7-form-control.wpcf7-radio,
span.wpcf7-form-control.wpcf7-radio span.wpcf7-list-item {
    float: left;
    width: 100%;
    line-height: 2;
}


span.wpcf7-form-control.wpcf7-checkbox,
span.wpcf7-form-control.wpcf7-radio {
    float: left;
    margin: 10px 0 0;
}

/* Text area */

span.wpcf7-form-control-wrap.your-message {
    width: 100%;
    margin: 0;
}

span.wpcf7-form-control-wrap.your-message textarea {
    margin: 0 0 80px 0;
    height: 120px;
    border: none !important;
}

span.wpcf7-form-control-wrap.your-message {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

span.wpcf7-form-control-wrap.your-message:hover {
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

span.wpcf7-form-control-wrap.your-message:active,
span.wpcf7-form-control-wrap.your-message:focus {
    border-bottom: 2px solid rgba(0, 0, 0, 1);
}

/* Submit */

input.wpcf7-form-control.wpcf7-submit {
    position: absolute;
    z-index: 2;
    bottom: -30px;
    right: 12px;
    width: 160px;
}


div.wpcf7 .ajax-loader {
    position: absolute;
    z-index: 3;
    bottom: 32px;
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: transparent;
    background: url(../../img/icons/loading-ring-white.svg) center no-repeat;
    margin: 0;
    background-size: cover;
}


/* Errors */

span.wpcf7-not-valid-tip {
    position: absolute;
    bottom: -22px;
    width: 100%;
    left: 0;
    font-size: 0.7em;
    font-style: italic;
    color: #84021e;
}

div.wpcf7-response-output,
.wpcf7 form .wpcf7-response-output {
    position: absolute;
    float: left;
    bottom: 10px;
    left: 12px;
    margin: 0;
    padding: 6px 12px;
    font-size: 0.9em;
    border: none;
    background: #f3f3f3;
    border-radius: 4px;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
    border: none;
    color: #84021e;
}

.wpcf7-mail-sent-ok {
    color: #118b44;
    border: none;
}

.grecaptcha-badge {
    z-index: 2;
}


/* For drawer block */

.drawer input.wpcf7-form-control.wpcf7-submit {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    margin: 40px 0 0 0;
}

.drawer div.wpcf7 .ajax-loader {
    position: relative;
    bottom: 27px;
    float: right;
}

.drawer div.wpcf7-response-output, .drawer .wpcf7 form .wpcf7-response-output {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 10px 0 0 0;
}


/* xx MEDIA QUERIES xx */

@media screen and (max-width: 900px) {
    .wpcf7-form-control-wrap.referrer select {
        background: none !important;
    }
}

@media screen and (max-width: 767px) {
    .wpcf7-form-control-wrap {
        width: 100%;
    }

    span.wpcf7-form-control-wrap.your-message textarea {
        padding: 0;
        margin: 0;
        height: 160px;
    }

    input.wpcf7-form-control.wpcf7-submit {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin: 40px 0 0 0;
        box-sizing: border-box;
    }

    div.wpcf7 .ajax-loader {
        position: relative;
        bottom: 26px;
        right: 10px;
        width: 14px;
        height: 14px;
        float: right;
        margin: 0 0 -14px;
    }

    .wpcf7-form-control-wrap.referrer select {
        background: url(./assets/img/icons/icon-arrow-down.svg) no-repeat !important;
        background-position: 96% !important;
        background-size: 16px !important;
    }

    div.wpcf7-response-output,
    .wpcf7 form .wpcf7-response-output {
        position: relative;
        margin: 20px 0 0;
        bottom: 0;
        left: 0;
        text-align: center;
    }

}











/* Labels as checkmarks */

.wpcf7-form-control-wrap .wpcf7-checkbox label span {
    float: left;
    width: 100%;
    padding-left: 25px;
    font-weight: 400;
    border: none;
    line-height: 14px;
    font-size: 14px;
    position: relative;
    padding: 4px 0 4px 24px;
    width: 100%;
    float: left;
    cursor: pointer;
}

.wpcf7-form-control-wrap .wpcf7-checkbox label span:hover {
    padding: 4px 0 4px 26px;
}

.wpcf7-form-control-wrap input[type="checkbox"] {
    cursor: pointer;
    display: none;
}

.wpcf7-form-control-wrap .wpcf7-checkbox label span {
    position: relative;
}

.wpcf7-form-control-wrap .wpcf7-checkbox label span:before {
    content: "\2714";
    color: rgba(255, 255, 255, 0);
    margin: 0;
    font-size: 10px;
    line-height: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid #00ffa7;
    float: left;
    position: absolute;
    left: 0;
    top: 4px;
    text-indent: 2px;
    border-radius: 3px;
    font-weight: 500;
}

.wpcf7-form-control-wrap .wpcf7-checkbox label input[type="checkbox"]:checked ~ span:before {
    opacity: 1;
    border: 2px solid #f0f;
    background: #f0f;
    color: rgba(255, 255, 255, 1);
}
