.contact-us-redesign-block {
    margin-bottom: 30px;
    width: 100%;
}

.contact-us-redesign-block__wrapper {
    width: 100%;
    max-width: 1232px;
    margin-left: auto;
    margin-right: auto;
}

.contact-us-redesign-block__left {
    flex-basis: 640px;
}

.cf-redesign__image {
    flex-basis: 560px;
    max-width: 560px;
    object-fit: cover;
    border-radius: 20px;
}

/*-----Left block-----*/
.contact-us-redesign-block__left {
    box-shadow: 0 22px 49px 0 rgba(117, 117, 92, 0.08), 0 558px 156px 0 rgba(117, 117, 92, 0);
    background: #fff;
    border: 1px solid #d4d4c2;
    border-radius: 20px;
}

p.contact-us-redesign-block__left-text {
    line-height: 160%;
    color: #6c6a72;
}

/*contact form    */
.wpcf7 textarea {
    resize: none;
}

.wpcf7-spinner {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.cf-redesign__form form.wpcf7-form .cf-row {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 14px;
}

.cf-redesign__form form.wpcf7-form .cf-field:not(.cf-service-box) {
    position: relative;
    flex-grow: 1;
    border: 1px solid #dbdee3;
    border-radius: 10px;
    padding: 15px 14px;
}
.cf-redesign__form form.wpcf7-form .cf-field p{
    margin-bottom: 0;
}
.cf-redesign__form form.wpcf7-form .cf-field input,
.cf-redesign__form form.wpcf7-form .cf-field textarea{
    background: transparent;
    border: 0;
    padding: 0;
}

.cf-redesign__form form.wpcf7-form .cf-field.cf-field__icon{
    display: flex;
    align-items: center;
    gap: 9px;
}
.cf-redesign__form form.wpcf7-form .cf-field.cf-message.cf-field__icon{
    align-items: start;
}
.cf-redesign__form form.wpcf7-form .cf-field__icon::before{
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;

}
.cf-redesign__form form.wpcf7-form .cf-name::before,
.cf-redesign__form form.wpcf7-form .cf-zip::before{
    background: url('../../img/icon/first name-icon.svg')center/contain no-repeat ;
}
.cf-redesign__form form.wpcf7-form .cf-phone::before{
    background: url('../../img/icon/phone-number icon.svg')center/contain no-repeat ;
}
.cf-redesign__form form.wpcf7-form .cf-email::before{
    background: url('../../img/icon/email icon form.svg')center/contain no-repeat ;
}
.cf-redesign__form form.wpcf7-form .cf-rooms::before{
    background: url('../../img/icon/icon-form-buildings.svg')center/contain no-repeat ;
}
.cf-redesign__form form.wpcf7-form .cf-field__icon.cf-message::before{
    background: url('../../img/icon/icon-form-comment.svg')center/contain no-repeat ;
    margin-top: 4px;
}

.cf-redesign__form input::placeholder,
.cf-redesign__form input::textarea {
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    color: #abadb4;
}


.cf-redesign__form .cf-service.cf-service-box p.cf-service__title {
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    color: #6c6a72;
    margin-bottom: 12px;
}

/*--- wpcf7-radio ---*/

.cf-service-box .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cf-service-box .wpcf7-radio .wpcf7-list-item {
    margin: 0;
}

.cf-service-box .wpcf7-radio .wpcf7-list-item label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    border: 1px solid #dbdee3;
    border-radius: 100px;

    background: #fff;

    cursor: pointer;
    transition: .2s ease;
}

.cf-service-box .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cf-service-box .wpcf7-radio .wpcf7-list-item-label {
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #585858;
}

/* active */

.cf-service-box .wpcf7-radio .wpcf7-list-item:has(input:checked) label {
    background: #FFE500;
    border-color: #FFE500;
}

.cf-service-box .wpcf7-radio .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label {
    color: #585858;
}

/*--- wpcf7-radio ---*/

/*--- upload field ---*/

.cf-upload {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    cursor: pointer;
}

.cf-upload::before {
    content: '';
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f1f2f4 url(../../img/icon/icon-form-upload.svg) center center no-repeat;
    background-size: 24px;
    pointer-events: none;
}

.cf-file__text {
    position: relative;
    flex: 1;
    min-width: 0;
    pointer-events: none;
}

.cf-file__text-title
{
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #6c6a72;
}
.cf-redesign__form form.wpcf7-form .cf-field p.cf-file__text-title{
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.cf-file__text br{
    display: none;
}
.cf-file__text-subtitle {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #3c485c;
}

/* Прозрачный file input поверх всей зоны (иконка + текст). */
.cf-upload > p.cf-upload__control,
.cf-upload > p:has(.wpcf7-file) {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
}

.cf-upload .wpcf7-form-control-wrap,
.cf-upload .wpcf7-file {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cf-upload.is-uploaded {
    border-color: #FFE500;
    background: #fffef2;
}

.cf-upload.is-uploaded::before {
    background-color: #FFE500;
}

.cf-upload.is-uploaded .cf-file__text-subtitle {
    color: #111827;
    font-weight: 600;
}

.cf-upload__error {
    flex: 0 0 100%;
    width: 100%;
    margin: 8px 0 0;
    padding-left: 64px;
    font-size: 13px;
    line-height: 1.4;
    color: #dc2626;
    pointer-events: none;
}

.cf-upload.has-error {
    border-color: #dc2626;
}

.cf-upload.is-compressing {
    opacity: 0.7;
    pointer-events: none;
}

.cf-redesign__form .wpcf7-response-output {
    display: block;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.cf-redesign__form form.sent .wpcf7-response-output {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
/*--- upload field ---*/

.cf-field.cf-message.cf-field__icon p{
    width: 100%;
}

.cf-field.cf-message textarea.wpcf7-textarea{
    max-height: 100px;
}

.cf-redesign__form p:has(.wpcf7-submit){
    margin-right: auto;
    margin-left: auto;
    width: fit-content;
}
.cf-redesign__form .wpcf7-submit{
    border: 2px solid #08acf2;
    border-radius: 16px;
    padding: 16px;
    width: 268px;
    height: 59px;
    font-weight: 700;
    font-size: 20px;
    line-height: 136%;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-redesign__form .wpcf7-not-valid-tip,
.cf-redesign__form .wpcf7 form.spam .wpcf7-response-output {
    position: absolute;
    z-index: 6;
    color: red !important;
    top: 21px;
    font-size: 12px;
    left: 1px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    display: none;
}




@media screen and  (min-width: 922px) {
    .contact-us-redesign-block__wrapper {
        display: flex;
        gap: 30px;
    }

    /*-----Left block-----*/
    .contact-us-redesign-block__left {
        padding: 40px 50px 60px 50px;
    }

    h2.contact-us-redesign-block__left-title {
        font-size: 46px;
        line-height: 120%;
        margin-bottom: 10px;
    }

    p.contact-us-redesign-block__left-text {
        font-size: 18px;
        margin-bottom: 30px;
    }

}

@media screen and  (max-width: 921.98px) {
    .contact-us-redesign-block__left {
        flex-basis: 640px;
    }



    /*-----Left block-----*/
    .contact-us-redesign-block__left {
        padding: 20px 15px;
    }

    p.contact-us-redesign-block__left-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
}
@media (min-width: 1240px) {
    .cf-redesign__image {
        flex-basis: 560px;
        max-width: 560px;
    }
}
@media (max-width: 1239.98px) {
    .cf-redesign__image {
        flex-basis: 460px;
        max-width: 460px;
    }
}

@media (max-width: 1200.98px){
    .cf-redesign__form form.wpcf7-form .cf-row{
        flex-direction: column;
    }
}

@media (max-width: 990.98px) {
    .cf-redesign__form form.wpcf7-form .cf-field.cf-field__icon{
        flex-grow: 1;
        width: 100%;
    }
    .cf-redesign__image{
        display: none;
    }
    h2.contact-us-redesign-block__left-title{
        margin-bottom: 20px;
    }
    .cf-service-box .wpcf7-radio{
        gap: 2px;
    }
    .cf-file__text-title{
        font-size: 13px;
    }
    .cf-file__text-subtitle{
        font-size: 10px;
    }
    .cf-redesign__form .wpcf7-submit{
        padding: 11px;
        height: 47px;
        font-size: 17px;
    }
}