/* EI Feedback - Минималистичные стили для модального окна */

/* Оверлей (фон) */
.ei-feedback-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ei-feedback-overlay.ei-active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* Модальное окно */
.ei-feedback-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.ei-feedback-overlay.ei-active .ei-feedback-modal {
    transform: translateY(0);
}

/* Кнопка закрытия */
.ei-feedback-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ei-feedback-close:hover {
    color: #333;
}

/* Заголовок */
.ei-feedback-title {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Поля формы */
.ei-feedback-fields {
    margin-bottom: 25px;
}

.ei-feedback-field {
    margin-bottom: 20px;
}

.ei-feedback-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.ei-feedback-field input[type="text"],
.ei-feedback-field input[type="email"],
.ei-feedback-field input[type="tel"],
.ei-feedback-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ei-feedback-field input:focus,
.ei-feedback-field textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.ei-feedback-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Чекбокс согласия */
.ei-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.ei-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Подсказка для файлов */
.ei-file-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Обязательные поля */
.ei-required {
    color: #d63638;
    margin-left: 3px;
}

/* Скрытое поле honeypot */
.ei-hp-check {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Кнопка отправки */
.ei-feedback-submit {
    text-align: center;
}

.ei-feedback-submit button {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
}

.ei-feedback-submit button:hover {
    background: #005a87;
}

.ei-feedback-submit button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Лоадер */
.ei-btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ei-spin 0.8s linear infinite;
}

@keyframes ei-spin {
    to { transform: rotate(360deg); }
}

/* Сообщения об успехе/ошибке */
.ei-feedback-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.ei-feedback-message.ei-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ei-feedback-message.ei-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .ei-feedback-modal {
        width: 95%;
        padding: 20px;
    }
    
    .ei-feedback-title {
        font-size: 18px;
    }
    
    .ei-feedback-submit button {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Стили для ссылки-триггера (базовые) */
.ei-feedback-trigger {
    cursor: pointer;
    text-decoration: underline;
    color: #ff0000;
}

.ei-feedback-trigger:hover {
    color: #005a87;
}