/**
 * Estilos para formularios de solicitud con autenticación
 * Propify - 2025
 */

/* Alert de usuario autenticado */
.user-logged-in,
.user-logged-in-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.user-logged-in i,
.user-logged-in-info i {
    margin-right: 8px;
}

.user-display-name,
.user-display-name-info {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* Transiciones suaves para mostrar/ocultar campos */
.contact-fields-compra,
.contact-fields-alquiler,
.contact-fields-interes,
.contact-fields-info-general,
.logged-in-fields-compra,
.logged-in-fields-alquiler,
.logged-in-fields-interes,
.logged-in-fields-info-general {
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

/* Mejoras visuales para formularios */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Campos de formulario con mejor apariencia */
.modal-body .form-control,
.modal-body .form-select {
    border-radius: 6px;
    border: 1.5px solid #e0e0e0;
    padding: 0.65rem 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Checkbox mejorado */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Botones de modal mejorados */
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-footer .btn-primary:active {
    transform: translateY(0);
}

/* Encabezado de modal */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-title i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 576px) {
    .modal-body .row > div {
        margin-bottom: 1rem;
    }
}

/* Spinner de carga */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Animación de entrada para alerts */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-logged-in,
.user-logged-in-info {
    animation: slideDown 0.3s ease-out;
}

/* Términos y Condiciones */
.terms-checkbox-compra,
.terms-checkbox-alquiler,
.terms-checkbox-interes,
.terms-checkbox-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.terms-checkbox-compra .form-check,
.terms-checkbox-alquiler .form-check,
.terms-checkbox-interes .form-check,
.terms-checkbox-info .form-check {
    margin-bottom: 8px;
}

.terms-checkbox-compra .form-check-label,
.terms-checkbox-alquiler .form-check-label,
.terms-checkbox-interes .form-check-label,
.terms-checkbox-info .form-check-label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
}

.terms-checkbox-compra a,
.terms-checkbox-alquiler a,
.terms-checkbox-interes a,
.terms-checkbox-info a {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
}

.terms-checkbox-compra a:hover,
.terms-checkbox-alquiler a:hover,
.terms-checkbox-interes a:hover,
.terms-checkbox-info a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.terms-checkbox-compra small,
.terms-checkbox-alquiler small,
.terms-checkbox-interes small,
.terms-checkbox-info small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}

.terms-checkbox-compra .form-check-input:checked,
.terms-checkbox-alquiler .form-check-input:checked,
.terms-checkbox-interes .form-check-input:checked,
.terms-checkbox-info .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.terms-checkbox-compra .form-check-input:focus,
.terms-checkbox-alquiler .form-check-input:focus,
.terms-checkbox-interes .form-check-input:focus,
.terms-checkbox-info .form-check-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}
