How to Make Simple Contact Form using HTML and CSS?

Here I have shared a project of a simple contact form made in just HTML and CSS. Hope you like it –

Screenshot of the contact us page

HTML CSS simple Contact Form
<div class="container">
    <h1>Contact Us</h1>
    <form action="" method="POST" class="contact-form">
        <div class="fg">
            <label for="name">Full name</label>
            <input type="text" name="full_name" id="name" placeholder="Your name">
        </div>
        <div class="fg">
            <label for="email">Email</label>
            <input type="email" name="email" id="email" placeholder="Your email">
        </div>
        <div class="fg">
            <label for="subject">Subject</label>
            <input type="text" name="subject" id="subject" placeholder="Subject">
        </div>
        <div class="fg">
            <label for="message">Message</label>
            <textarea name="message" id="message" placeholder="Message"></textarea>
        </div>
        <div class="fg">
            <button type="submit"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg> Send</button>
        </div>
    </form>
</div>
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");
:root {
    --prime-color: #4a4db7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    line-height: 1.5em;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: #f9f9f9;
    color: #222222;
}

body,
textarea,
input,
button {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
}

svg {
    vertical-align: middle;
    display: inline-block;
}

.container {
    margin: 0 auto;
    max-width: 500px;
    padding: 20px;
}
h1 {
    text-align: center;
    padding: 10px;
    background-image: linear-gradient(
        to right,
        transparent,
        #ffffff,
        transparent
    );
}

.contact-form .fg {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin-bottom: 10px;
}
.contact-form label {
    font-weight: bold;
    margin-bottom: 3px;
}

textarea,
input[type="email"],
input[type="text"],
button[type="submit"] {
    outline: none;
    padding: 10px;
    border: 1px solid rgb(0 0 0/0.2);
    border-radius: 3px;
}
textarea:is(:hover, :focus),
input[type="email"]:is(:hover, :focus),
input[type="text"]:is(:hover, :focus) {
    border-color: var(--prime-color);
}
textarea {
    resize: vertical;
    min-height: 120px;
}
button[type="submit"] {
    cursor: pointer;
    background: var(--prime-color);
    font-weight: bold;
    color: white;
    margin-top: 5px;
    transition: 0.3s;
}

button[type="submit"]:hover {
    background: white;
    color: var(--prime-color);
    border-color: var(--prime-color);
}