/* 2. Контейнер формы */
.feedback-form {
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, #f38181, #fce38a);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    margin: 0;
}

.feedback-form__fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.feedback-form__title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    letter-spacing: 2px;
}

.feedback-form__group {
    margin-bottom: 20px;
}

/* 3. Элементы ввода */
.feedback-form__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.feedback-form__input, 
.feedback-form__textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

/* Эффект при наведении на поле */
.feedback-form__input:hover,
.feedback-form__textarea:hover {
    border-color: #d1d1d1;
}

/* Эффект фокуса (когда кликнули в поле) */
.feedback-form__input:focus,
.feedback-form__textarea:focus {
    outline: none;
    border-color: #fce38a;
    box-shadow: 0 0 8px rgba(252, 227, 138, 0.4);
}

.feedback-form__textarea {
    resize: vertical; /* Разрешаем менять размер только по высоте */
    min-height: 100px;
}

/* 4. Кнопка */
.feedback-form__submit {
    width: 100%;
    padding: 16px;
    background-color: #95e1d3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.1s;
    margin-top: 10px;
}

.feedback-form__submit:hover {
    background-color: #82cec0;
    color: #000;
}

/* Эффект нажатия (кнопка чуть проседает) */
.feedback-form__submit:active {
    transform: scale(0.98);
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Затемнение фона */
    justify-content: center;
    align-items: center;
}

.modal--open {
    display: flex; /* Показываем, когда добавлен этот класс */
}

.modal__content {
    position: relative;
    animation: fadeIn 0.3s ease; /* Добавим плавности */
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Когда экран телефона меньше 480 пикселей */
@media (max-width: 480px) {
    .feedback-form {
        padding: 20px; /* Уменьшаем внутренние отступы, чтобы было больше места для полей */
        border-radius: 0; /* На мобилках часто лучше смотрятся формы на весь экран */
    }

    .feedback-form__title {
        font-size: 18px; /* Уменьшаем заголовок, чтобы не занимал пол-экрана */
        margin-bottom: 20px;
    }

    .feedback-form__input, 
    .feedback-form__textarea {
        padding: 10px; /* Немного уменьшаем поля, но оставляем их удобными для нажатия пальцем */
    }

    .feedback-form__submit {
        padding: 12px; /* Удобная кнопка для большого пальца */
    }
}

@media (max-width: 540px) {
    .feedback-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .feedback-form {
        min-height: 80vh;
    }
}

@media (max-width: 820px) {
    .feedback-form {
        min-height: 70vh;
    }
}

@media (max-width: 1024px) {
    .feedback-form {
        width: 700px;
    }
}
