Topic Selector Contact Form

This contact form adds a topic selector to route messages efficiently without increasing layout complexity.

HTML

<form class="contact-topic">
  <select>
    <option>Support</option>
    <option>Sales</option>
    <option>General</option>
  </select>
  <input type="email" placeholder="Email" required />
  <button type="submit">Submit</button>
</form>

CSS

.contact-topic {
  width: 200px;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.contact-topic select,
.contact-topic input {
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: #111827;
}

.contact-topic select:focus,
.contact-topic input:focus {
  border-color: #6366f1;
  outline: none;
}

.contact-topic button {
  padding: 0.45rem;
  border-radius: 999px;
  border: none;
  background: #6366f1;
  color: #ffffff;
  font-size: 12px;
}

@media (prefers-color-scheme: dark) {
  .contact-topic {
    background: linear-gradient(180deg, #111827, #020617);
    color: #e5e7eb;
  }

  .contact-topic select,
  .contact-topic input {
    background: #020617;
    border-color: #374151;
    color: #e5e7eb;
  }
}

Notes

  • Lightweight message routing
  • Minimal UI footprint
  • Suitable for SaaS support entry points

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.

Leave a Reply

Your email address will not be published. Required fields are marked *