/* ============================================
   CONTACT FORM 7 CUSTOM STYLES
   Estilos personalizados para que CF7 se vea igual que el formulario original
   ============================================ */

/* Contenedor del formulario CF7 */
.wpcf7-form {
    margin: 0;
    padding: 0;
}

/* Campos de entrada */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: rgb(214, 141, 0);
    box-shadow: 0 0 0 2px rgba(214, 141, 0, 0.2);
}

/* Labels */
.wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

/* Botón de envío */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    width: 100%;
    background-color: rgb(214, 141, 0);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background-color: rgb(184, 121, 0);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.wpcf7 input[type="submit"]:disabled,
.wpcf7 .wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mensajes de respuesta */
.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mensajes de validación */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-not-valid {
    border-color: #dc2626 !important;
}

/* Ocultar span de validación de CF7 */
.wpcf7-form-control-wrap {
    display: block;
}

/* Asegurar que los campos mantengan el estilo */
.wpcf7-form-control {
    width: 100% !important;
}

/* Grid para campos en fila */
.wpcf7-form .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .wpcf7-form .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Espaciado entre campos */
.wpcf7-form .mb-6 {
    margin-bottom: 1.5rem;
}

/* Mensaje de seguridad */
.wpcf7-form .text-center {
    text-align: center;
}

.wpcf7-form .text-sm {
    font-size: 0.875rem;
}

.wpcf7-form .text-gray-500 {
    color: #6b7280;
}

.wpcf7-form .flex {
    display: flex;
}

.wpcf7-form .items-center {
    align-items: center;
}

.wpcf7-form .justify-center {
    justify-content: center;
}

.wpcf7-form .mr-2 {
    margin-right: 0.5rem;
}

.wpcf7-form .text-primary {
    color: rgb(214, 141, 0);
}

.wpcf7-form .h-5 {
    height: 1.25rem;
}

.wpcf7-form .w-5 {
    width: 1.25rem;
}

/* Espaciado vertical */
.wpcf7-form .space-y-4 > * + * {
    margin-top: 1rem;
}

