
/* === Стили для формы обратной связи в черно-серых тонах === */
.feedback-container {
    padding: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.feedback-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000, #666666, #000000);
}

.feedback-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.feedback-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.feedback-subtitle {
    font-size: 1.1em;
    color: #666666;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.feedback-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.95em;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-label::after {
    content: '*';
    color: #ff4757;
    margin-left: 4px;
}

.form-input,
.form-textarea {
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999999;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: #fafafa;
}

.form-textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-button {
    grid-column: 1 / -1;
    padding: 16px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.form-button:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.form-button:active {
    transform: translateY(0);
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .feedback-container {
        padding: 30px 20px;
        margin: 15px;
    }

    .feedback-title {
        font-size: 2em;
    }

    .feedback-subtitle {
        font-size: 1em;
    }

    .feedback-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-input,
    .form-textarea {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .feedback-title {
        font-size: 1.7em;
    }

    .feedback-subtitle {
        font-size: 0.95em;
    }

    .form-button {
        padding: 14px;
        font-size: 1em;
    }
}

/* === Дополнительные эффекты === */
.form-group {
    position: relative;
}

.form-group:focus-within .form-label {
    color: #000000;
}

/* Валидация */
.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.form-input:valid:not(:focus):not(:placeholder-shown),
.form-textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

/* Иконки для полей (опционально) */
.form-input {
    background-image: none;
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.form-input[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999999'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-6.627 0-12 5.373-12 12h24c0-6.627-5.373-12-12-12z'/%3E%3C/svg%3E");
}

.form-input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999999'%3E%3Cpath d='M0 3v18h24v-18h-24zm21.518 2l-9.518 7.713-9.518-7.713h19.036zm-19.518 14v-11.817l10 8.104 10-8.104v11.817h-20z'/%3E%3C/svg%3E");
}

.form-input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999999'%3E%3Cpath d='M7 2c-1.105 0-2 .895-2 2v16c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-16c0-1.105-.895-2-2-2h-10zm0 2h10v16h-10v-16zm5 14c-.552 0-1 .448-1 1s.448 1 1 1 1-.448 1-1-.448-1-1-1z'/%3E%3C/svg%3E");
}

.form-input:focus {
    background-image: none;
}

/* Анимация появления */
.feedback-container {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Стили для уведомлений === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 400px;
    transform: translateX(500px);
    transition: transform 0.4s ease-in-out;
    border-left: 4px solid transparent;
}

.notification.show {
    transform: translateX(0);
}

.success-notification {
    border-left-color: #00b894;
}

.error-notification {
    border-left-color: #ff4757;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.success-notification .notification-icon {
    color: #00b894;
}

.error-notification .notification-icon {
    color: #ff4757;
}

.notification-text h3 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 1.1em;
}

.notification-text p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #000;
}

/* Затемнение фона */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.overlay.show {
    display: block;
}

/* Адаптивность уведомлений */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 1000px;
        max-width: none;
    }
}

/* Стили для необязательных полей */
.form-label.optional::after {
    content: ''; /* Убираем звёздочку */
}

/* Убираем стандартные валидационные стили для необязательных полей */
.form-input:optional:invalid:not(:focus):not(:placeholder-shown),
.form-textarea:optional:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e0e0e0;
    box-shadow: none;
    background: #ffffff;
}

.form-input:optional:valid:not(:focus):not(:placeholder-shown),
.form-textarea:optional:valid:not(:focus):not(:placeholder-shown) {
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
    background: #f0fff4;
}