It is not easy job to custom code. It is not necessary either.
Please install a form plugin like “contact form 7” . It is a popular contact form plugin supported shortcodes, you can build a contact form by “contact form 7”. Paste the shortcodes into “Text” module of BM Content Builder.