:root {
    --color-unhappy: #e74c3c;
    --color-satisfied: #f1c40f;
    --color-very-satisfied: #2ecc71;
    --color-primary-text: #2c3e50;
    --color-secondary-text: #7f8c8d;
    --color-background: #ecf0f1;
    --color-white: #ffffff;
    --color-hover-border: #3498db;
    --color-button-bg: #3498db;
    --color-button-hover: #2980b9;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color-background);
    margin: 0;
}

.container {
    text-align: center;
    background-color: var(--color-white);
    padding: 50px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 90%;
}

.title {
    color: var(--color-primary-text);
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--color-secondary-text);
    font-size: 1.1em;
    margin-bottom: 40px;
}

.ratings-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.rating-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 180px;
    height: 180px;
}

.rating-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-hover-border);
}

.rating-card i {
    font-size: 4em;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.rating-card:hover i {
    animation: bounce 0.8s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.icon-unhappy { color: var(--color-unhappy); }
.icon-satisfied { color: var(--color-satisfied); }
.icon-very-satisfied { color: var(--color-very-satisfied); }

.card-text {
    font-size: 1.1em;
    color: var(--color-primary-text);
    font-weight: 600;
}

.feedback-section {
    margin-top: 40px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-message {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary-text);
}

.feedback-textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #dcdde1;
    border-radius: 10px;
    resize: vertical;
    font-size: 1em;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--color-hover-border);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.submit-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--color-button-bg);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-2px);
}