A compact contact form that lets users signal intent before composing a message.
HTML
<form class="contact-intent">
<select>
<option>Support</option>
<option>Sales</option>
<option>Feedback</option>
</select>
<textarea placeholder="Your message"></textarea>
<button type="submit">Send</button>
</form>CSS
.contact-intent {
width: 200px;
padding: 0.85rem;
border-radius: 18px;
background: #ffffff;
display: grid;
gap: 0.45rem;
box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}
.contact-intent select,
.contact-intent textarea {
font-size: 12px;
padding: 0.45rem 0.5rem;
border-radius: 10px;
border: 1px solid #e5e7eb;
background: transparent;
color: #111827;
}
.contact-intent textarea {
resize: none;
min-height: 48px;
}
.contact-intent button {
padding: 0.45rem;
border-radius: 999px;
border: none;
background: #6366f1;
color: #ffffff;
font-size: 12px;
}
@media (prefers-color-scheme: dark) {
.contact-intent {
background: #020617;
}
.contact-intent select,
.contact-intent textarea {
color: #e5e7eb;
border-color: #374151;
}
}Notes
- Intent clarity before submission
- Compact textarea footprint
- Ideal for SaaS dashboards
Preview styles shown. Production customization recommended.
Browse More UI Components
Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.
