.wpcf7-form input,
.wpcf7-form textarea{
padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    border-radius: 12px;
    outline: none;
    font-family: 'HelveticaNeueCyr', sans-serif;
    transition: all 0.3s ease;
    border: 1px solid #F1F4F9;
}

.first-screen .wpcf7-form input:not(.wpcf7-submit),
.first-screen .wpcf7-form textarea {
    background: #36363e;
    color: #FFF;
    border: 1px solid #36363e;
}

.first-screen .wpcf7-form input:not(.wpcf7-submit)::placeholder,
.first-screen .wpcf7-form textarea::placeholder {
    color: #FFF;
}

.wpcf7-form textarea {
    max-height: 83px;
}

 body .wpcf7-form .wpcf7-form-control-wrap input:focus,
 body .wpcf7-form textarea:focus {
    border: 1px solid #000;
}

body .first-screen .wpcf7-form .wpcf7-form-control-wrap input:focus,
body .first-screen .wpcf7-form textarea:focus {
    border: 1px solid #ff5a46;
}

.wpcf7-submit {
    cursor: pointer;
}

.wpcf7-form-control-wrap {
    display: flex;
}

.modal .wpcf7-form-control-wrap {
    margin-bottom: 16px;
}

.modal .wpcf7-form span input::placeholder,
.modal .wpcf7-form span textarea::placeholder {
    color: #000;
}

.modal .wpcf7-form span input,
.wpcf7-form input,
.wpcf7-form textarea{
    background: #F1F4F9;
    width: 100%;
    color: #000;
}

.modal .wpcf7-form p {
    margin-bottom: 0;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7-not-valid-tip {
    display: none!important;
}

input.wpcf7-not-valid {
    border-color: red!important;
}

body .wpcf7 form .wpcf7-response-output {
    text-align: start;
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 16px;
    border: 0;
}

body .wpcf7 form.invalid .wpcf7-response-output {
    color: red;
}

body .wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
}

.wpcf7-form br {
    display: none;
}

.cf7_fields-wrapper:has(.wpcf7-response-output) {
    display: flex;
}


.contact-form-fields-wrapper > p,
.contact-form-fields-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 0;
}

.form-border-decor {
    position: absolute;
    z-index: 10;
}

.form-border-decor.border-decor-2 {
    left: -24px;
    bottom: 0;
}

.form-border-decor.border-decor-1 {
    top: -22px;
    right: -1px;
}

@media screen and (max-width: 1023.98px) {
    .modal .wpcf7-form span input {
        padding: 14px 16px;
    }

    .wpcf7-form span input,
    .wpcf7-form span textarea
    {
        padding: 15px;
    }

    .modal .wpcf7-form-control.btn {
        margin-top: 20px;
        width: 100%;
        padding: 11px 15px;
    }

    .contact-form-fields-wrapper > p,
    .contact-form-fields-wrapper {
       flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }

    .contact-form-fields-wrapper .wpcf7-form-control-wrap {
        width: 100%;
    }
}