@import url(https://fonts.bunny.net/css?family=roboto:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i);

:root {
    --primary-color: rgb(238, 31, 59);
    --primary-darker-color: rgb(181, 23, 44);
    --secondary-color: rgb(229, 229, 247);
}

body, * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: #000;
    text-align: center;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.review-card h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.review-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.star-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.star-container .rating-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.stars-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.stars-wrapper label {
    font-size: 40px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin: 0 2px;
}

.stars-wrapper label:hover,
.stars-wrapper label.hovered {
    color: #ffed4a;
}

.stars-wrapper label.selected {
    color: #ffed4a;
}

.stars-wrapper input[type="radio"] {
    display: none;
}

.message-box {
    margin-bottom: 30px;
}

.message-box textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    text-align: left;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.message-box textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(238, 31, 59, 0.2);
}

.message-box textarea::placeholder {
    color: #aaa;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.5s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-darker-color);
}

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

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

.feedback {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.feedback.success {
    background: #daf8d7;
    color: #41721c;
    display: block;
}

.feedback.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.bg {
    top: 0;
    left: 0;
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-color);
    opacity: 0.05;
    background: radial-gradient(circle, transparent 20%, var(--secondary-color) 20%, var(--secondary-color) 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, var(--secondary-color) 20%, var(--secondary-color) 80%, transparent 80%, transparent) 25px 25px, linear-gradient(var(--primary-color) 2px, transparent 2px) 0 -1px, linear-gradient(90deg, var(--primary-color) 2px, var(--secondary-color) 2px) -1px 0;
    background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .review-card {
        padding: 25px 15px;
    }
    
    .review-card h1 {
        font-size: 22px;
    }
    
    .stars-wrapper label {
        font-size: 28px;
        margin: 0 1px;
    }
}
