It would cost anywhere between $500-$1000 depending on the place you get it done. For that car, I'd lean more toward $1000.
Engine size has more to do with engine design then displacement. B-series blocks are bigger then D-series, by design. The B16A is only a few millimeters
shorter then the B18C1.
You need a new transaxle. Your stock one comes nowhere near fitting.
You need a B-series engine (100% complete,) B-series trans, and PWO/PR3/PR4 ECU of depending on the engine. Then, a mount kit, shift linkage, wiring subharness, custom axles, and a few days of free time... along with new hoses, timing belt, water pump, coolant, oils, etc.