/* Estilo para el contenedor del formulario */
.wpcf7 {
 display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 0px;
    border-radius: 8px;

    p {
            margin-bottom: 0em;
    }

}

.datos {
 display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    margin-bottom: 0px;
}

.datos > div {
    flex: 1 1 calc(50% - 20px); 
    min-width: 250px; 
    box-sizing: border-box;
}

/* Estilo para los campos de entrada */
.wpcf7 input[type="text"], 
.wpcf7 input[type="email"], 
.wpcf7 input[type="tel"], 
.wpcf7 textarea, 
.wpcf7 select {
    width: 100%;
    padding: 12px;
    margin: 0px 0;
    border: 0px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333 !important;
    background-color: #78adb613;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}


.wpcf7 textarea {
    resize: none;
    max-height: 200px;
    margin-top: 0px;
    margin-bottom: 30px;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus {
    border-color: var(--c-primario);
    outline: none;
}

/* Estilo para el botón */
.wpcf7 input[type="submit"] {
    background-color: var(--c-primario);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #5096c8;
}

/* Estilo de los labels */
.wpcf7 label {
    display: block;
    font-size: 1rem;
    color: #5c6b73;
    margin-bottom: 8px;
}

/* Campos obligatorios */
.wpcf7 .required {
    color: red;
    font-size: 1.2rem;
}

/* Estilo para los mensajes de error */
.wpcf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Añadir espaciado entre campos */
.wpcf7 .wpcf7-form-control-wrap {
    margin-bottom: 20px;
}
