body {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-image: url('/bg.jpg'); /* Optional background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    max-width: 800px; /* Reduced width for better alignment */
    margin: 50px auto;
    padding: 30px;
    background-color: rgba(26, 26, 26, 0.9); /* Semi-transparent dark gray */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: scale(1.02); /* Slight zoom effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

h1 {
    text-align: center;
    margin-bottom: 50px; /* Increased margin for more spacing */
    font-size: 2.5rem; /* Larger font size */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
    animation: glow 1.5s infinite alternate; /* Glowing effect */
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    to {
        text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.8);
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Add spacing between form elements */
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

form label:hover {
    color: #ffb6c1; /* Light pink on hover */
}

form input, form textarea {
    width: 100%; /* Full width within the container */
    max-width: 100%; /* Ensure it doesn't exceed the container width */
    padding: 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    resize: none; /* Disable resizing */
    overflow: hidden; /* Prevent scrollbars */
    box-sizing: border-box; /* Include padding in width calculation */
}

form input:focus, form textarea:focus {
    background-color: #444; /* Slightly lighter background on focus */
    outline: none;
    transform: scale(1.02); /* Slight zoom effect on focus */
}

form textarea {
    height: 120px; /* Larger height for textareas */
}

form button {
    background-color: #d3d3d3; /* Light grey button */
    color: #000;
    cursor: pointer;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #ffb6c1; /* Light pink on hover */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

#response-message {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.hidden {
    display: none;
}

.error-message {
    color: #ff4d4d; /* Red for error messages */
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}