/* --- ESTILOS GLOBALES DE FORMULARIOS (Blocator) --- */

/* Contenedor del Formulario */
.modal-form-wrapper {
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 12px; /* Un poco de radio extra no hace daño */
}

/* Grupos de Inputs */
.form-group {
    margin-bottom: 1.2rem;
    position: relative; /* Para posicionar íconos o validaciones si se necesita */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
}

/* Inputs y Selects */
.modal-form input, 
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    background-color: #ffffff;
    color: #15233A;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: #187495;
    box-shadow: 0 0 0 3px rgba(24, 116, 149, 0.1); /* Brillo suave al enfocar */
    outline: none;
}

/* Botón de Envío */
.btn-submit {
    width: 100%;
    background-color: #187495;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #135d78;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* --- SEGURIDAD (Honeypot Anti-Spam) --- */
/* Oculta el campo trampa visualmente pero lo deja en el DOM para bots */
.spam-trap {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* --- MENSAJES DE ESTADO (Feedback Visual) --- */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none; /* Oculto por defecto */
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-form-wrapper {
        padding: 1.5rem; /* Menos padding en celular */
    }
}

/* --- NUEVO: Filas de 2 columnas para formularios anchos --- */
.form-row {
    display: flex;
    gap: 1.5rem; /* Espacio entre columnas */
}

.form-row .form-group {
    flex: 1; /* Ambas columnas ocupan el mismo ancho */
}

/* En celulares, que se pongan uno debajo del otro */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}