/* static/feedback/css/feedback.css */

.feedback-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(to bottom right, #393EB4 40%, #8F39B4 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    background: linear-gradient(to bottom right, #4a4fc9 0%, #a04ac9 100%);
}

.feedback-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.feedback-modal-content {
    background-color: white;
    margin: 5% auto;
    width: 450px;
    max-width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feedback-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, #393EB4 40%, #8F39B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feedback-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
    line-height: 1;
}

.feedback-close:hover {
    color: #dc3545;
}

.feedback-modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 12px;  /* уменьшили с 20px */
}

.form-group label {
    display: block;
    margin-bottom: 4px;  /* уменьшили с 8px */
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 8px 10px;  /* уменьшили с 10px 12px */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #393EB4;
    box-shadow: 0 0 0 3px rgba(57, 62, 180, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;  /* уменьшили с 100px */
}

.btn-feedback-submit {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(to bottom right, #393EB4 40%, #8F39B4 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 62, 180, 0.3);
    background: linear-gradient(to bottom right, #4a4fc9 0%, #a04ac9 100%);
}

.btn-feedback-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.feedback-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px;  /* уменьшили с 15px */
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;  /* уменьшили с 20px */
    font-size: 14px;
    line-height: 1.5;
}

.feedback-success i {
    font-size: 20px;  /* уменьшили с 24px */
    margin-bottom: 6px;  /* уменьшили с 8px */
    display: block;
}

.feedback-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px;  /* уменьшили с 12px */
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .feedback-button {
        bottom: 100px;
        right: 20px;
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .feedback-modal-content {
        margin: 10% auto;
    }
    
    .feedback-modal-header {
        padding: 15px 20px;
    }
    
    .feedback-modal-header h3 {
        font-size: 18px;
    }
    
    .feedback-modal-body {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    textarea.form-control {
        min-height: 70px;
    }
}