/* Contenedor del formulario */
.contact-container {
    margin: 80px auto;
    background-color: #3a0d0d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 600px;
}

/* Título */
.contact-container h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-container p {
    margin-top: 15px;
    color: #ffffff;
    font-size: 18px;
    opacity: 0.8;
}

/* Grupos de inputs */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

/* Etiquetas */
.input-group label {
    margin-bottom: 5px;
    text-align: left;
    color: white;
}

/* Estilos de los inputs y textarea */
.input-group input,
.input-group textarea {
    background-color: #2a0a0a;
    color: white;
    border: 1px solid #ffdddd;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

/* Placeholder en blanco */
.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Efecto al hacer foco */
.input-group input:focus,
.input-group textarea:focus {
    border-color: #ff5555;
    box-shadow: 0px 0px 8px rgba(255, 85, 85, 0.5);
}

/* Botón de enviar */
.btn-submit {
    background-color: #921818;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #b42b2b;
}

/* Mensaje de éxito */
#successMessage {
    background-color: #157a27;
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.hidden {
    display: none;
}

/* Solución específica para Chrome y navegadores basados en WebKit */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    background-color: #2a0a0a !important; /* Fondo oscuro */
    color: white !important; /* Texto blanco */
    -webkit-text-fill-color: white !important; /* Texto blanco en autocompletado */
    border: 1px solid #ffdddd !important;
    -webkit-box-shadow: 0 0 0px 1000px #2a0a0a inset !important; /* Truco para forzar el fondo */
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .contact-container {
        width: 90%; /* Reduce el ancho en pantallas pequeñas */
        padding: 15px; /* Reduce el padding */
    }

    .input-group input,
    .input-group textarea {
        font-size: 14px; /* Reduce el tamaño de los inputs */
        padding: 8px; /* Menos padding */
    }

    .btn-submit {
        font-size: 16px;
        padding: 8px;
    }
}

