/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.feedback-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
    width: 100%;
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
}

textarea {
    height: 120px;
    resize: none;
}

.emoji-container {
    margin: 20px 0;
}

.rating-label {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    display: block;
}

.emojis {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 10px;
}

.emoji {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-grow: 1;
    text-align: center;
}

.emoji.selected {
    transform: scale(1.5);
    color: #007bff;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Background color for the modal */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-sizing: border-box;
}

/* Success Modal Styling */
.modal.success-modal .modal-content p {
    color: #155724; /* Dark green text for success message */
}

.modal.success-modal .modal-content button {
    background-color: #28a745; /* Green button for success modal */
}

.modal.success-modal .modal-content button:hover {
    background-color: #218838; /* Darker green on hover for success button */
}

/* Error Modal Styling */
.modal.error-modal .modal-content p {
    color: #721c24; /* Dark red text for error message */
}

.modal.error-modal .modal-content button {
    background-color: #dc3545; /* Red button for error modal */
}

.modal.error-modal .modal-content button:hover {
    background-color: #c82333; /* Darker red on hover for error button */
}

/* Footer Styling */
footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

/* Mobile-First Approach */
@media only screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    h2 {
        font-size: 22px;
    }

    button {
        font-size: 16px;
    }

    .feedback-container {
        padding: 20px;
    }

    .emoji {
        font-size: 24px;
    }

    footer {
        padding: 10px 0;
        font-size: 12px;
    }

    .modal-content {
        max-width: 90%;
    }
}

.star-container {
    margin: 20px 0;
}

.rating-label {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    display: block;
}

.stars {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 10px;
}

.star {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-grow: 1;
    text-align: center;
    color: #ddd;
}

.star.selected {
    color: #ffc107; /* Warna kuning untuk bintang yang dipilih */
}

/* Styling Star Rating */
.star-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Jarak antar bintang */
    margin-top: 20px;
}

.star {
    font-size: 32px; /* Ukuran bintang */
    color: #ddd; /* Warna bintang default */
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

.star:hover,
.star.selected {
    color: #FFD700; /* Warna bintang saat dipilih */
    transform: scale(1.3); /* Perbesar bintang saat dipilih */
}

