body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #dedada; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full screen height */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.form {
    background-color: #3e04c3;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.form h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: serif;
}

.form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    color: #fff;
}

.form input:focus {
    color: #000;
    background-color: #fff;
}

.form textarea {
    width: 100%;
    height: 15vh;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    color: #fff;
}

.form textarea:focus {
    color: #000;
    background-color: #fff;
}

.form button {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    color: #3e04c3;
    cursor: pointer;
}

.form button:hover {
    background-color: #3e04c3;
    color: #fff;
    border: solid #fff 1px;
}

/* Message styles */
.success-message {
    color: green;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
    .form {
        padding: 20px;
        width: 100%; /* Decrease form width on small screens */
    }
}