/* Contenedor principal del formulario */
.contact-form-7-custom {
    
}


.contact-form-7-custom select {
  height: unset;
  
}


/* Filas del formulario */
.contact-form-7-custom .form-row {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    margin-bottom: 20px; /* Espacio entre filas */
    gap: 20px; /* Espacio entre columnas */
}

/* Columnas del formulario */
.contact-form-7-custom .form-column {
    flex: 1; /* Distribuye el espacio equitativamente */
    min-width: 250px; /* Ancho mínimo para cada columna antes de envolver */
}

/* Estilo general para todos los campos de entrada, select y textarea */
.contact-form-7-custom input[type="text"],
.contact-form-7-custom input[type="email"],
.contact-form-7-custom input[type="tel"],
.contact-form-7-custom input[type="date"],
.contact-form-7-custom select,
.contact-form-7-custom textarea {
      min-height: unset;
    line-height: unset;

    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-sizing: border-box; /* Incluye padding y border en el ancho total */
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.contact-form-7-custom input[type="text"]:focus,
.contact-form-7-custom input[type="email"]:focus,
.contact-form-7-custom input[type="tel"]:focus,
.contact-form-7-custom input[type="date"]:focus,
.contact-form-7-custom select:focus,
.contact-form-7-custom textarea:focus {
    outline: none;
    border-color: #a0a0a0; /* Color del borde al enfocar */
}

/* Estilo específico para los campos de fecha (calendario) */
.contact-form-7-custom .date-picker-field input[type="date"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    /* Oculta el icono nativo del navegador si es posible */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ajuste para el campo de mensaje (textarea) */
.contact-form-7-custom .message-column textarea {
    min-height: 120px; /* Altura mínima para el campo de mensaje */
    resize: vertical; /* Permite redimensionar verticalmente */
}

/* Estilo para los selectores (dropdowns) */
.contact-form-7-custom select {
    /* Elimina el estilo nativo de las flechas y añade una personalizada */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px; /* Para que el texto no se solape con la flecha */
}

/* Estilo para el checkbox de política de privacidad */
.contact-form-7-custom .privacy-policy-row {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

.contact-form-7-custom .privacy-policy-row input[type="checkbox"] {
    margin-right: 10px;
    width: 18px; /* Tamaño del checkbox */
    height: 18px;
}

.contact-form-7-custom .privacy-policy-row a {
    color: #333; /* Color del enlace */
    text-decoration: underline;
}

/* Estilo para el botón de enviar */
.contact-form-7-custom input[type="submit"] {
    background-color: #333; /* Color de fondo del botón */
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    width: auto; /* Para que el botón no ocupe todo el ancho si no es necesario */
}

.contact-form-7-custom input[type="submit"]:hover {
    background-color: #555; /* Color al pasar el ratón */
}

/* Estilos para errores de validación de Contact Form 7 */
.wpcf7-form-control-wrap {
    display: block; /* Asegura que el error esté en su propia línea */
}

.wpcf7-not-valid-tip {
    color: #d9534f; /* Color rojo para los mensajes de error */
    font-size: 0.85em;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background-color: #dff0d8; /* Verde claro para éxito */
    color: #3c763d; /* Texto verde oscuro */
    border: 1px solid #d6e9c6;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background-color: #f2dede; /* Rojo claro para error */
    color: #a94442; /* Texto rojo oscuro */
    border: 1px solid #ebccd1;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .contact-form-7-custom .form-row {
        flex-direction: column; /* Apila las columnas en pantallas más pequeñas */
        gap: 0; /* Elimina el espacio entre columnas apiladas */
    }

    .contact-form-7-custom .form-column {
        min-width: 100%; /* Ocupa todo el ancho disponible */
        margin-bottom: 20px; /* Espacio entre campos apilados */
    }

    .contact-form-7-custom .form-column:last-child {
        margin-bottom: 0; /* No hay margen inferior en el último campo de la columna */
    }

    .contact-form-7-custom .submit-button-row {
        text-align: center; /* Centra el botón en móviles */
    }

    .contact-form-7-custom input[type="submit"] {
        width: 100%; /* Botón de ancho completo en móviles */
    }
}


@media only screen and (max-width : 600px) 
{
    /* Styles for mobile */
    .contact-form-container .vc_column-inner:first-of-type 
    {
        padding: 6rem 1em 6em 1em !important
    }
}

@media only screen and (min-width : 601px) and (max-width : 1024px) 
{
    .contact-form-container .vc_column-inner:first-of-type 
    {
        padding: 6rem 2em 6em 2em !important
    }
}


@media only screen and (min-width : 1025px) and (max-width : 1380px) 
{
    .contact-form-container .vc_column-inner:first-of-type 
    {
        padding: 6rem 4em 6em 4em !important
    }
}


@media only screen and (min-width : 1381px) 
{
    .contact-form-container .vc_column-inner:first-of-type 
    {
        padding: 6rem 8em 6em 6em !important
    }
}