/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: url('https://files.catbox.moe/1sb8f6.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    animation: backgroundAnimation 20s infinite ease-in-out;
}

.feedback-container {
    background: rgba(0, 0, 0, 0.6); /* Latar belakang transparan */
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 1s ease-in-out;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeIn 2.5s ease-in-out;
}

label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

input:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    transform: scale(1.02);
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #6a11cb;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: #2575fc;
    transform: scale(1.05);
}

/* Animasi Pesan Sukses/Gagal */
.message-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: popUp 0.5s ease-in-out;
    z-index: 1000;
}

.message-container i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.message-container p {
    font-size: 1.2rem;
    margin: 0;
}

#successMessage i {
    color: #4caf50; /* Warna hijau untuk sukses */
}

#errorMessage i {
    color: #f44336; /* Warna merah untuk gagal */
}

/* Animations */
@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popUp {
    from {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 0.9rem;
    }
}