CONTACT SECTIONS / FREE HTML + ASTRO

Minimal enquiry form

A narrow, understated contact form with a short introduction and generous reading space.

Try the design

Open demo ↗

Preview links stay in the example. Copy the source to use your own destinations. Form previews never send information.

Copy the source

<section class="fct-minimal-enquiry-form s-contact s-minimal" data-snippet="minimal-enquiry-form" aria-labelledby="fct-minimal-enquiry-form-heading"><div class="s-wrap"><h2 id="fct-minimal-enquiry-form-heading" class="s-visually-hidden">Minimal enquiry form</h2><div class="s-contact-layout"><div><p class="s-kicker">A simple first step</p><h2>What can we<br>help with?</h2><p>Tell us what you have in mind. Replace this introduction with your actual response expectations.</p></div><form data-demo-form action="#" method="post" aria-label="Contact enquiry"><fieldset disabled><legend class="s-visually-hidden">Your enquiry details</legend><label for="fct-minimal-enquiry-form-name">Name (required)</label><input id="fct-minimal-enquiry-form-name" name="name" type="text" required autocomplete="name" maxlength="100"><label for="fct-minimal-enquiry-form-email">Email (required)</label><input id="fct-minimal-enquiry-form-email" name="email" type="email" required autocomplete="email" maxlength="254"><label for="fct-minimal-enquiry-form-message">Message (required)</label><textarea id="fct-minimal-enquiry-form-message" name="message" rows="4" maxlength="3000" required></textarea><button type="submit" class="s-button">Send enquiry</button></fieldset><p class="s-demo-note" role="status">Demonstration only. Connect your backend before collecting information.</p></form></div></div></section>

Where this design fits

The narrow form keeps a simple enquiry focused. It asks for a name, email address and message without adding optional fields that may not help the recipient.

  • Compact field set
  • Single-column form
  • Visible required labels

What is included

The HTML ZIP includes a standalone demo, reusable markup, scoped CSS, its small JavaScript runtime, a license and setup notes. The Astro ZIP includes Snippet.astro. It can be imported into an existing Astro page or layout.

Connect a real form backend

These forms demonstrate layout and native browser validation. No messages are sent. Configure the form action, remove the demo interception and disabled fieldset, then implement delivery, server validation and spam handling on your backend. Test actual success and error responses before publishing. An appointment request does not confirm availability.

Add it to an HTML website

  1. Copy snippet.html into the relevant page section.
  2. Load snippet.css after your existing site stylesheet. The class prefix identifies this design.
  3. Load snippet.js once with defer. Keep the included keyboard behavior when adapting interactions.
  4. Replace example content and check mobile widths, zoom, links and keyboard focus in your actual website.

Use it in Astro

Copy Snippet.astro into src/components/, import it into your page or shared layout, and insert the component where the section belongs. Keep each generated prefix unique if you duplicate a component on one page.

Keep the section maintainable

Start with the variables at the top of the CSS for background, text and accent colors. Preserve semantic labels and focus styles. Existing site selectors can still affect imported markup, so test the combined result. Read the complete setup notes.

GOOD DESIGN, OCCASIONALLY.

Your next idea
could start here.

New templates, useful guides, and updates from us.
A little inspiration for whatever you’re building.