.r_anketa {
    padding: 40px 0 0;
}

.form_wr {
    margin: 20px auto 40px;
    padding-bottom: 40px;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    @media (max-width: 480px) {
        margin-top: 12px;
        width: 100%;
        margin-bottom: 30px;
    }
}

.form_wr .r_form {
    padding: 40px 100px 0;

    > h4 {
        font-size: 36px;
        font-weight: 500;
    }

    @media (max-width: 768px) {
        padding: 30px 50px 12px;
        > h4 {
            font-size: 26px;
        }
    }
    @media (max-width: 480px) {
        padding: 20px 30px 12px;
        > h4 {
            font-size: 26px;
        }
    }
}

#myForm {
    margin-top: 12px;
    display: flex;
    flex-direction: column;

    input {
        margin-top: 18px;
        width: 100%;
        padding: 10px 20px;
        border: 1px #CDCDCD solid;
        border-radius: 10px;
        font-size: 16px;
        line-height: 24px;
    }

    input:focus-visible {
        outline: none;
    }

    p {
        font-size: 14px;
        color: #848484;
        margin-top: 4px;
    }

    > div a {
        font-size: 14px;
        color: #4B8D9D;
        border-bottom: 1px #4B8D9D solid;
    }

    button {

        padding: 12px 70px;
    }


    @media (max-width: 480px) {
        margin-top: 8px;
        input {
            margin-top: 8px;
        }

        a {
            margin-top: 10px;
        }

        a p {
            font-size: 14px;
        }
    }
}

.sogl {
    font-size: 14px;
    color: black;
    text-align: center;
    > a {
        text-decoration: underline;
        color: #4B8D9D;
    }
    @media screen and (max-width: 768px) {
        padding: 0 20px;
    }
}

.sogl:last-child {
    margin-top: 8px;
}

@media (min-width: 768px) {
    .sogl {
        text-wrap: nowrap;
    }
}

.red_button_wrap {
    margin: 30px auto 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    @media (max-width: 480px) {
        margin: 20px auto;
    }
}

.dataOk {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    text-wrap: nowrap;
    color: #00AB41;
    display: none;
}

.red_btnForm {
    background-color: grey;
    cursor: not-allowed;
    opacity: 0.5;
    transition: background-color 0.3s;
}

.red_btnForm.active {
    background-color: red;
    cursor: pointer;
    opacity: 1;
}

.error-message {
    font-size: 12px;
    color: #4B8D9D;
}

#submitButton {
    background-color: #ccc; /* Серый цвет для заблокированной кнопки */
    cursor: not-allowed;
}

#submitButton.active {
    background-color: #C96065; /* Красная кнопка, когда активна */
    cursor: pointer;
}

.r_footer {
    background-color: #EDF4F5;
    height: 300px;
    margin-bottom: 40px;
    border-radius: 30px;
    padding: 30px 90px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    @media (max-width: 1200px) {
        padding: 12px 3%;
        margin-bottom: 16px;
    }
    @media (max-width: 992px) {
        > img {
            display: none;
        }
    }
    @media (max-width: 900px) {
        height: auto;
        align-items: flex-start;
        gap: 3%;
    }
    @media (max-width: 660px) {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.ft_bl1 {
    h4 {
        margin-top: 16px;
        font-size: 24px;
        font-weight: 500;
    }

    .ft_contacts {
        display: flex;
        gap: 30px;

    }

    .ft_contacts_item {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-top: 16px;

        > img {
            width: 24px;
            height: 24px;
        }

        > a, p {
            font-size: 16px;
        }
    }

    @media (max-width: 900px) {
        > h3 {
            font-size: 20px;
        }

        > h4 {
            margin-top: 8px;
            font-size: 20px;
        }

        .ft_contacts_item {
            margin-top: 8px;

            > img {
                width: 16px;
                height: 16px;
            }

            > a, p {
                font-size: 14px;
            }
        }
    }
    @media (max-width: 700px) {
        .title_bl {
            display: none;
        }

        > h4 {
            margin-top: 6px;
            font-size: 16px;
        }
    }
}

.ft_bl2 {
    display: flex;
    flex-direction: column;
    align-items: center;

    > h4 {
        margin-top: 16px;
        font-size: 22px;
        font-weight: 500;
    }

    > div {
        display: flex;
        width: 100%;
        gap: 20px;
        justify-content: space-between;
    }

    img {
        margin-top: 20px;
    }

    @media (max-width: 900px) {
        > h4 {
            margin-top: 8px;
            font-size: 20px;
        }

        img {
            margin-top: 20px;
        }
    }
    @media (max-width: 700px) {
        margin-top: 10px;
        > h4 {
            margin-top: 6px;
            font-size: 16px;
        }

        img {
            margin-top: 10px;
        }

        .br_off {
            display: none;
        }
    }
    @media (max-width: 600px) {
        display: none;
    }
}

.ft_bl3 {
    img {
        width: 154px;
        height: 154px;
    }

    @media (max-width: 900px) {
        display: none;
    }
}