:root {
    --primary-color: #058c3a;
    --secondary-color: #04bb58;
    --accent-color: #ff6b6b;
    --background-color: #f9fafc;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
}

.logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo img {
    max-width: 90%;
    max-height: 90%;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.header p {
    opacity: 0.9;
    font-size: 16px;
}

.form-content {
    padding: 24px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
}

.company-description {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 16px;
    text-align: justify;
}

.rating-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    font-size: 60px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    margin: 0 8px;
    font-size: 60px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #ffb400;
    transform: scale(1.1);
}

.star-rating label:hover,
.star-rating label:hover~label {
    transform: scale(1.15);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.privacy-notice {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 20px;
    padding: 0 24px 24px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeIn 0.5s ease-out forwards;
}

.form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.thank-you {
    text-align: center;
    padding: 40px 24px;
    display: none;
}

.thank-you h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.thank-you p {
    margin-bottom: 24px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-review {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-review:hover {
    background-color: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-contact {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-contact:hover {
    background-color: #e05555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.smiley-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.smiley-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #FFD700;
    position: relative;
    overflow: hidden;
}

.smiley-eyes {
    position: absolute;
    width: 100%;
    top: 30%;
    display: flex;
    justify-content: space-around;
}

.smiley-eye {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
}

.smiley-mouth {
    position: absolute;
    width: 60px;
    height: 30px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.happy-mouth {
    width: 60px;
    height: 30px;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    background-color: #333;
    position: absolute;
    bottom: 0;
    animation: smile 1s ease-in-out;
}

.sad-mouth {
    width: 60px;
    height: 30px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    background-color: #333;
    position: absolute;
    top: 0;
    animation: frown 1s ease-in-out;
}

@keyframes smile {
    0% {
        transform: scale(0.8) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes frown {
    0% {
        transform: scale(0.8) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    opacity: 0;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(1000px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        border-radius: 0;
        box-shadow: none;
    }

    .star-rating {
        font-size: 48px;
    }

    .star-rating label {
        font-size: 48px;
    }

    .smiley-container {
        width: 100px;
        height: 100px;
    }

    .smiley-mouth {
        position: absolute;
        width: 60px;
        height: 30px;
        left: 50%;
        top: 50%;
        transform: translateX(-50%);
        overflow: hidden;
    }
}

/* Loading animation */
.loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}