.wpcf7-form {
    position: fixed;
    right: 20px;
    padding: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 390px;
    width: 390px;
    border-radius: 50%;
    z-index: 1;
}

.wpcf7-form .opisanie {
    height: 65px;
}

.wpcf7-form .input,
.wpcf7-form .opisanie {
    width: 200px;
    border-radius: 10px;
    border: none;
    margin-top: 3px;
    padding: 5px;
}

.form_container:hover {
    transform: scale(1.2);
}

.wpcf7-response-output {
    position: absolute;
    bottom: -50px;
    font-size: 10px;
    border-radius: 10px;
    line-height: 150%;
    font-weight: bold;
}


.wpcf7-not-valid-tip {
    position: absolute;
    top: -22px;
    /* right: 9px; */
    left: 70px;
    width: 200px;
    font-size: 9px;
    /* color: #498ce5; */
    font-weight: bold;
}

.form_row {
    position: relative;
}


.soglasie_cont label {
    display: flex;
    align-items: baseline;
    width: 225px;
}

.submit_cont {
    height: 30px;
}

.soglasie {
    cursor: pointer;
}

.soglasie_cont span {
    font-size: 11px;
    cursor: pointer;
    line-height: 120%;
    font-family: 'Trav_next_B';
    display: inline-block;
}

.soglasie_cont p {
    /* display: block;
    height: 30px; */
}

.form_name {
    font-size: 10px;
    text-transform: uppercase;
    height: 18px;
    display: block;
}

.submit {
    margin-top: 10px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    font-size: 10px;
    width: 200px;
    font-family: 'Trav_next_B', sans-serif;
    display: flex;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

.form_container,
.form_circles-container,
.form_big-circle,
.form_small-circle,
.form_text-container {
    cursor: pointer;
    pointer-events: auto !important;
}


.error-border {
    border: 3px solid red !important;
    padding: 5px !important;
}




.form_wrapper {
    position: fixed;
    top: 140px;
    right: 20px;
    z-index: 1000;
}

/* Контейнер для кругов (кнопка) */
.form_container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    z-index: 2;
}


/* Контейнер для кругов */
.form_circles-container {
    position: relative;
    width: 125px;
    height: 125px;
    margin: 0 auto;
    animation: bounce 2s infinite ease-in-out, shadow-pulse 2s infinite ease-in-out;
    border-radius: 50%;
    cursor: pointer;
}

/* Контейнер для формы (изначально скрыт) */
.form_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    height: 390px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    pointer-events: none;
}

.form_wrapper.open {
    z-index: 1000;
}

.form_wrapper.open .form_container {
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form_wrapper.open .form_content {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Стили для формы внутри контейнера */
.form_content .wpcf7-form {
    position: relative;
    right: 220px;
    top: 0;
    margin: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Кнопка закрытия */
.form_close-btn {
    position: absolute;
    top: 10px;
    right: 270px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.form_close-btn:hover {
    transform: scale(1.1);
    background: #8a2be2;
}

/* Затемнение фона (опционально) */
/* 
/* Большой круг */
.form_big-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;

    ;
}

/* Маленький круг внутри */
.form_small-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 5px solid transparent !important;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    display: flex;
    border-radius: 50% !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #62176d;
    z-index: 2;
    animation: gradientFlow 10s, techColorShift 6s linear infinite;
}

/* Контейнер для надписи */
.form_text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Стили для каждой буквы */
.form_text-container span {
    position: absolute;
    left: 50%;
    top: 50%;
    color: black;
    font-size: 12px;
    font-family: 'Trav_next_B', sans-serif;
    /* Уменьшил шрифт */
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 998px) {
    .form_wrapper {
        bottom: 0px;
        top: auto;
        right: 0px;
    }


    .form_wrapper.open {
        pointer-events: auto;
    }

    .form_wrapper.open .form_content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-38%, -50%);
        /* width: 90%;
        max-width: 340px; */
        height: auto;
        max-height: 90vh;
        opacity: 1;
        visibility: visible;
        z-index: 10000;
        pointer-events: auto;
    }



    .form_content .wpcf7-form {
        position: relative;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 300px;
        height: 300px;
        margin: 0;
        background: white;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        transform: none;
    }

    .soglasie_cont span {
        font-size: 9px;
    }

    .form_name {
        font-size: 8px;
    }

    .wpcf7-form .input,
    .wpcf7-form .opisanie {
        height: 15px;
        margin-top: 8px;
        width: 180px;
    }

    .submit{
        width: 180px;
    }

    .wpcf7-form .opisanie {
        height: 50px !important;
    }

    .wpcf7-not-valid-tip {
        top: -14px;
        font-size: 7px;
    }

    .form_name{
        height: 10px;
    }

    .form_close-btn {
        position: absolute;
        top: -20px;
        right: 130px;
        width: 30px;
        height: 30px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
    }



}

@media (max-width: 768px) {
    .form_circles-container {
        width: 80px;
        height: 80px;
    }

    .form_small-circle {
        height: 50px;
        width: 50px;
        font-size: 20px;
    }

    .form_text-container span {
        font-size: 8px;
    }
}