How to achieve a form design as shown on screenshot?