FAQ Accordion
Expandable frequently asked questions with smooth transitions
Frequently Asked Questions
Everything you need to know
We offer flexible monthly and yearly plans. You can start with our free tier and upgrade anytime.
Code
<div x-data="{ open: null }" class="bg-white dark:bg-gray-900 py-20">
<div class="max-w-3xl mx-auto px-6">
<div class="text-center mb-12">
<h2 class="text-4xl font-bold text-gray-900 dark:text-white mb-4">Frequently Asked Questions</h2>
<p class="text-xl text-gray-600 dark:text-gray-400">Everything you need to know</p>
</div>
<div class="space-y-4">
<div class="border border-gray-200 dark:border-gray-700 rounded-lg">
<button @click="open = open === 1 ? null : 1"
class="w-full px-6 py-4 text-left flex justify-between items-center hover:bg-gray-50 dark:hover:bg-gray-800">
<span class="font-semibold text-gray-900 dark:text-white">How does the pricing work?</span>
<svg class="w-5 h-5 transition-transform" :class="open === 1 ? 'rotate-180' : ''"
fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div x-show="open === 1" x-collapse class="px-6 pb-4">
<p class="text-gray-600 dark:text-gray-400">
We offer flexible monthly and yearly plans. You can start with our free tier and upgrade anytime.
</p>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-lg">
<button @click="open = open === 2 ? null : 2"
class="w-full px-6 py-4 text-left flex justify-between items-center hover:bg-gray-50 dark:hover:bg-gray-800">
<span class="font-semibold text-gray-900 dark:text-white">Can I cancel anytime?</span>
<svg class="w-5 h-5 transition-transform" :class="open === 2 ? 'rotate-180' : ''"
fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div x-show="open === 2" x-collapse class="px-6 pb-4">
<p class="text-gray-600 dark:text-gray-400">
Yes! You can cancel your subscription at any time with no penalties or fees.
</p>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-lg">
<button @click="open = open === 3 ? null : 3"
class="w-full px-6 py-4 text-left flex justify-between items-center hover:bg-gray-50 dark:hover:bg-gray-800">
<span class="font-semibold text-gray-900 dark:text-white">What kind of support do you offer?</span>
<svg class="w-5 h-5 transition-transform" :class="open === 3 ? 'rotate-180' : ''"
fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div x-show="open === 3" x-collapse class="px-6 pb-4">
<p class="text-gray-600 dark:text-gray-400">
All plans include email support. Pro and Enterprise plans get priority support and dedicated account managers.
</p>
</div>
</div>
</div>
</div>
</div>
Contact Form
Full contact form with validation and submit state
Get in Touch
We'd love to hear from you
Code
<div class="bg-white dark:bg-gray-900 py-20">
<div class="max-w-2xl mx-auto px-6">
<div class="text-center mb-12">
<h2 class="text-4xl font-bold text-gray-900 dark:text-white mb-4">Get in Touch</h2>
<p class="text-xl text-gray-600 dark:text-gray-400">We'd love to hear from you</p>
</div>
<form x-data="{ sending: false }"
@submit.prevent="sending = true; setTimeout(() => sending = false, 2000)"
class="space-y-6">
<div class="grid md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Name</label>
<input type="text" required
class="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-800">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Email</label>
<input type="email" required
class="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-800">
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Subject</label>
<input type="text" required
class="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-800">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Message</label>
<textarea rows="6" required
class="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-800"></textarea>
</div>
<button type="submit" :disabled="sending"
class="w-full bg-blue-600 text-white py-3 rounded-lg font-semibold hover:bg-blue-700 disabled:opacity-50">
<span x-show="!sending">Send Message</span>
<span x-show="sending">Sending...</span>
</button>
</form>
</div>
</div>
Team Member Cards
Team grid with profile photos, names, roles, and social links
Code
<div class="bg-gray-50 dark:bg-gray-900 py-20">
<div class="max-w-7xl mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold text-gray-900 dark:text-white mb-4">Meet Our Team</h2>
<p class="text-xl text-gray-600 dark:text-gray-400">The people behind our success</p>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="bg-white dark:bg-gray-800 rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition">
<div class="h-64 bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-white text-6xl font-bold">
SJ
</div>
<div class="p-6 text-center">
<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-1">Sarah Johnson</h3>
<p class="text-gray-600 dark:text-gray-400 mb-4">CEO & Founder</p>
<div class="flex justify-center gap-3">
<a href="#" class="text-gray-400 hover:text-blue-600">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg>
</a>
<a href="#" class="text-gray-400 hover:text-blue-600">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
</a>
</div>
</div>
</div>
<div class="bg-white dark:bg-gray-800 rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition">
<div class="h-64 bg-gradient-to-br from-green-500 to-teal-600 flex items-center justify-center text-white text-6xl font-bold">
MC
</div>
<div class="p-6 text-center">
<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-1">Mike Chen</h3>
<p class="text-gray-600 dark:text-gray-400 mb-4">CTO</p>
<div class="flex justify-center gap-3">
<a href="#" class="text-gray-400 hover:text-blue-600">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg>
</a>
<a href="#" class="text-gray-400 hover:text-blue-600">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
</a>
</div>
</div>
</div>
<div class="bg-white dark:bg-gray-800 rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition">
<div class="h-64 bg-gradient-to-br from-pink-500 to-rose-600 flex items-center justify-center text-white text-6xl font-bold">
ED
</div>
<div class="p-6 text-center">
<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-1">Emma Davis</h3>
<p class="text-gray-600 dark:text-gray-400 mb-4">Head of Design</p>
<div class="flex justify-center gap-3">
<a href="#" class="text-gray-400 hover:text-blue-600">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg>
</a>
<a href="#" class="text-gray-400 hover:text-blue-600">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
</a>
</div>
</div>
</div>
</div>
</div>
</div>