* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Times New Roman', Times, serif;
    overflow-y: hidden;
}

h1 {
    font-size: 26px;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header, .footer {
    flex: 0 0 auto;
    background-color: #dcdcdc;
    text-align: center;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9e5;
    padding: 30px;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 80%;
    max-width: 800px;
    font-family: Arial, sans-serif;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

input, select, button {
    width: 100%;
    padding: 10px; 
    font-size: 1rem;
    font-family: Arial, sans-serif; 
}

.btn-enviar {
    grid-column: 2;
    justify-self: end;
    align-self: end;
    background-color: #e6e6e6;
    border: 1px solid #aaa;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    width: auto;
    padding: 12px 33px;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #d0d0d0;
}

.footer {
    font-weight: bold;
    font-size: 20px;
}

@media (max-width: 768px) {
    body, html {
        overflow-y: auto; 
    }
    form {
        grid-template-columns: 1fr;
    }
    .btn-enviar {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
    }
}