* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feedback-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.2rem;
    background-color: #e4e4e4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    background-color: #3498db;
    color: white;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
}

.confirmation-message {
    text-align: center;
    padding: 2rem;
    background-color: #e8f4fd;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.feedback-summary {
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

#feedbackStats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    flex: 1;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-box h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.stat-box p {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.recent-feedback {
    margin-top: 1rem;
}

.feedback-item {
    padding: 1rem;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 0 5px 5px 0;
}

.feedback-item h4 {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.feedback-item .rating-display {
    color: #3498db;
    font-weight: 700;
}

.feedback-item p {
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }
    
    #feedbackStats {
        flex-direction: column;
    }
}