:root {
    --primary-color: #4a6bff;
    --secondary-color: #f5f7ff;
    --success-color: #4caf50;
    --error-color: #f44336;
    --text-color: #333;
    --light-gray: #f0f0f0;
    --medium-gray: #ccc;
    --dark-gray: #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: white;
}

.feedback-section {
    padding: 5.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.feedback-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 600px;
    transition: all 0.3s ease;
}

.feedback-container h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.feedback-container p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.rating-group {
    margin-bottom: 25px;
}

.rating-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 30px;
    color: var(--medium-gray);
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 5px;
}

.star-rating input:checked~label,
.star-rating input:hover~label,
.star-rating label:hover {
    color: #ffc107;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
    background-color: #3a5bef;
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    text-align: center;
}

.loading p {
    margin-top: 15px;
    color: var(--dark-gray);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 107, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.message {
    display: none;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.message.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.message.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feedback-container {
        padding: 20px;
    }

    .star-rating label {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .feedback-container {
        padding: 15px;
    }

    .feedback-container h1 {
        font-size: 24px;
    }

    .star-rating label {
        font-size: 20px;
    }
}