.form-container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: background-color 0.5s, opacity 0.5s;
}

.form-container.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.form-container.hide {
    opacity: 0;
}

.form {
    background-color: #fefefe;
    padding: 38px;
    border-radius: 6px;
    width: 500px;
    position: relative;
    transform: translateX(100%);
    transition: transform 0.5s;
}

.form-container.show .form {
    transform: translateX(0);
}

.form-container.hide .form {
    transform: translateX(100%);
}

#closeFormButton {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 44px;
    font-weight: 100;
    color: #5ab563;
    cursor: pointer;
}

.form h2 {
    margin-top: 0;
}

.form label {
    display: block;
}

.form input,
.form textarea {
    border: 1px solid #5ab563;
    border-radius: 6px;
    padding: 10px 16px;
    height: 44px;
}

#dynamicForm {
    display: flex;
    flex-direction: column;
}

.popup_field {
    margin-bottom: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.popup .checkbox-container {
    margin-top: 14px;
}

.checkbox-container input {
    margin-right: 10px;
}

.thank-you-message {
    display: none;
    margin-top: 20px;
    font-size: 1.2em;
    color: green;
    text-align: center;
}

#formTitle {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #323232;
    margin-bottom: 24px;
}

.form-container {
    display: flex; /* Сделаем всегда flex, чтобы использовать opacity */
    opacity: 0;
    pointer-events: none; /* Запретить взаимодействие при скрытии */
    transition: opacity 0.5s; /* Плавный переход для opacity */
}

.form-container.show {
    opacity: 1;
    pointer-events: auto; /* Разрешаем взаимодействие при показе */
}

.form {
    transform: translateY(-30px); /* Сдвигаем форму немного вверх для анимации */
    transition: transform 0.5s; /* Плавный переход для transform */
}

.form-container.show .form {
    transform: translateY(0); /* Возвращаем форму на место */
}

.privacyPolicy {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #8d8d8d;
}

#questionFieldContainer {
    margin-bottom: 14px;
}

#questionFieldContainer #question {
    width: 100%;
    margin-top: 14px;
    height: 200px;
}

.successful_sending {
    display: flex;
    align-items: center;
    gap: 16px;
}

.successful_sending_text_title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #323232;
    margin-bottom: 10px;
}

.successful_sending_text_subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8d8d8d;
}

.error {
    border: 2px solid red !important;
}