CONTACT SECTIONS / FREE HTML + ASTRO

Project brief contact section

An agency enquiry section with service and project-size choices alongside a short project brief.

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-project-brief-contact s-contact s-brief" data-snippet="project-brief-contact" aria-labelledby="fct-project-brief-contact-heading"><div class="s-wrap"><h2 id="fct-project-brief-contact-heading" class="s-visually-hidden">Project brief contact section</h2><div class="s-contact-layout"><div><p class="s-kicker">Start a conversation</p><h2>A good project<br>starts here.</h2><p>Share the idea, the context and what you need. Project sizes are optional and are not calculated quotes.</p><a href="mailto:projects@example.com">projects@example.com</a></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-project-brief-contact-name">Name (required)</label><input id="fct-project-brief-contact-name" name="name" type="text" required autocomplete="name" maxlength="100"><label for="fct-project-brief-contact-email">Email (required)</label><input id="fct-project-brief-contact-email" name="email" type="email" required autocomplete="email" maxlength="254"><label for="fct-project-brief-contact-service">Service (optional)</label><select name="service" id="fct-project-brief-contact-service"><option value="">Please choose</option><option>Website design</option><option>Brand identity</option><option>Consulting</option></select><label for="fct-project-brief-contact-budget">Project size (optional)</label><select name="budget" id="fct-project-brief-contact-budget"><option>Not sure yet</option><option>Small project</option><option>Larger project</option></select><label for="fct-project-brief-contact-message">Project brief (required)</label><textarea id="fct-project-brief-contact-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 extra service and project-size fields provide context for a first conversation. They are optional choices and do not calculate a quote or create a project record.

  • Service selection
  • Optional project size
  • Project brief textarea

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.