bootstrap form style : demo 3

HTML

                        

CSS

                        .form-bg{
                            background: #545454;
                        }
                        form .form-group{
                            background: #e5ffaf;
                            padding: 30px;
                            border-radius: 5px;
                            position: relative;
                        }
                        form .form-group:before{
                            content: "Your Details";
                            padding: 5px;
                            background: #74ab00;
                            font-size: 14px;
                            color: #fff;
                            border-radius: 3px;
                            position: absolute;
                            top: -15px;
                            left: 30px;
                        }
                        form .form-control{
                            background: #a4c859;
                            margin-bottom: 10px;
                        }
                        form .inside{
                            margin-top: 40px;
                            position: relative;
                            border: 1px solid #cbcbcb;
                        }
                        form .inside:before{
                            content: "Your Preferences";
                            padding: 5px;
                            background: #74ab00;
                            border-radius: 3px;
                            color: #fff;
                            position: absolute;
                        }
                        form .checkbox,
                        form .radio,
                        form .dropdown{
                            margin: 5px 0;
                        }
                        form .checkbox label{
                            display: block;
                            margin-bottom: 5px;
                        }
                        form .radio label{
                            display: inline-block;
                            margin-right: 20px;
                        }
                        form .radio label:last-child{
                            margin-right: 0;
                        }
                        form .dropdown{
                            background:#fff;
                            font-size: 14px;
                        }
                        form .btn{
                            background: #7fb113;
                            color: #fff;
                            border: none;
                        }
                        form .btn:focus{
                            outline: none;
                        }
                    
License Terms