This is an example of a contact us form, designed using HTML, CSS, and Bootstrap framework 4. The body of the form is given a background color of #ffffff, whereas the information card is given a style set of padding as 8%, padding-top as 35px, margin-top as 60px, and margin-bottom as 80px. The input text fields are given the styles of background-color as #616161, border-color as #616161, and font color as #BDBDBD. In a focus event, the input fields take the color of background-color as #000000, and font color as #BDBDBD. The border color of the fields also takes the background color as it inherits the color from the background. The email text field is given a height of 45px, whereas the message text field is given the height of 120px. The 'Submit' button is created as a Submit type button and given a background color of #5C6BC0, and font color of #ffffff. Source: https://bbbootstrap.com/snippets/contact-us-form-74769228
This is an example of a Contact Us form with a loading button, designed using JavaScript, HTML, CSS, and Bootstrap framework 4. JavaScript methods have been used to implement the loading feature of the button. The body of the form is given the styles of font-family as "Roboto", Helvetica, Arial, sans-serif, font-weight as 100, font-size as 12px, line-height as 30px, font color as #777, and background as #fff. The information card is given a background color of #F9F9F9, and a box-shadow value of 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24). The title of the form is displayed as a block with the font-size and the font weight set as 30px, and 300 respectively. The input text fields are given a border value of 1px solid #ccc, and a background color of #FFF. In a hover event, the text fields take a transition effect of border-color 0.3s ease-in-out, and a border effect of 1px solid #aaa. The 'Submit' button is given a cursor style as pointer to get the hand cursor effect, background as #f0715f, and font-size as 15px. The button changes its background color to #f07150, in a hover event. Source: https://bbbootstrap.com/snippets/contact-us-form-loading-button-57040609
This is an example of a modal Contact Us form with floating labels, designed using CSS, HTML, and Bootstrap framework 4. The font style is imported to the code using its URL. The body of the form has the styles of background color as linear-gradient(0deg, #fff, 50%, RGB(210, 231, 252)), and font-family as 'Rubik', sans-serif. The font –size of the title is calculated using the calc(14px + (17 - 14) * ((100vw - 360px) / (1600 - 320))) formula. The cursor style for the modal is set as pointer to get the hand cursor effect on a hover event and the background color is set as #52B4DB. The input text fields are given a font-size of 15px, and opacity as 0.5. In a focus event, the font-size of the labels gets changed to 8px, and the font color gets changed to #04A79C, to create the effect of the floating label. In a focus event, the fields take the effects of border as 1px solid #04A79C, and box-shadow as 2px 2px rgba(233, 226, 226, 0.8). Source: https://bbbootstrap.com/snippets/contact-us-form-floating-labels-23481684