/* feedback.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.feedback-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 30px;
    text-align: center;
}

.feedback-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feedback-header p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.feedback-header a {
    color: #a3d4ff;
    text-decoration: none;
    font-size: 0.9rem;
}

.feedback-header a:hover {
    text-decoration: underline;
}

.feedback-form-section,
.feedback-list-section {
    padding: 30px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4a6491;
    box-shadow: 0 0 0 3px rgba(74, 100, 145, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #2980b9, #233140);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Стили для списка отзывов */
#feedbackList {
    margin-top: 20px;
}

.feedback-item {
    background: #f9fafc;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background: none;
    padding: 0;
    color: inherit;
    text-align: left;
}

.feedback-author {
    font-size: 1.1rem;
    color: #2c3e50;
}

.feedback-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.feedback-rating {
    color: #f39c12;
    margin-bottom: 10px;
}

.feedback-message {
    line-height: 1.7;
    margin-bottom: 10px;
}

.feedback-email {
    font-size: 0.9rem;
    color: #666;
}

.loading, .no-feedback, .error {
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 1.1rem;
}

.error {
    color: #e74c3c;
}

.feedback-footer {
    text-align: center;
    padding: 20px;
    background: #f1f5f9;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* Адаптивность */
@media (max-width: 768px) {
    .feedback-header, .feedback-form-section, .feedback-list-section {
        padding: 20px;
    }
    .feedback-header h1 {
        font-size: 1.5rem;
    }
    .feedback-header {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }
    .feedback-date {
        margin-top: 5px;
    }
}