<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1000px;
margin: 0 auto;
background: white;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
color: white;
padding: 40px 30px;
text-align: center;
}
.header h1 {
font-size: 2.5em;
margin-bottom: 10px;
font-weight: 300;
}
.header p {
font-size: 1.1em;
opacity: 0.9;
}
.form-container {
padding: 40px 30px;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 20px;
}
.form-group {
margin-bottom: 25px;
}
.form-group.full-width {
grid-column: 1 / -1;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #2c3e50;
font-size: 0.95em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
width: 100%;
padding: 15px;
border: 2px solid #e1e8ed;
border-radius: 8px;
font-size: 16px;
transition: all 0.3s ease;
background: #f8f9fa;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
outline: none;
border-color: #3498db;
background: white;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
transform: translateY(-2px);
}
textarea {
resize: vertical;
min-height: 120px;
}
select {
cursor: pointer;
}
.submit-btn {
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
color: white;
padding: 15px 40px;
border: none;
border-radius: 25px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
margin-top: 10px;
}
.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}
.submit-btn:active {
transform: translateY(0);
}
.contact-info {
background: #f8f9fa;
padding: 30px;
border-top: 1px solid #e1e8ed;
}
.contact-info h3 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 1.3em;
}
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.info-item {
display: flex;
align-items: center;
gap: 10px;
}
.info-icon {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
}
.success-message {
background: #d4edda;
color: #155724;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
border: 1px solid #c3e6cb;
display: none;
}
@media (max-width: 768px) {
.form-grid {
grid-template-columns: 1fr;
}
.header h1 {
font-size: 2em;
}
.form-container,
.contact-info {
padding: 30px 20px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<p>We'd love to hear from you. Send us a message and we'll respond as soon as possible.</p>
</div>
<div class="form-container">
<div class="success-message" id="successMessage">
Thank you for your message! We'll get back to you soon.
</div>
<form id="contactForm" method="post" action="#" autocomplete="on">
<div class="form-grid">
<div class="form-group">
<label for="firstName">First Name *</label>
<input type="text" id="firstName" name="firstName" required autocomplete="given-name">
</div>
<div class="form-group">
<label for="lastName">Last Name *</label>
<input type="text" id="lastName" name="lastName" required autocomplete="family-name">
</div>
<div class="form-group full-width">
<label for="email">Email Address *</label>
<input type="email" id="email" name="email" required autocomplete="email">
</div>
<div class="form-group full-width">
<label for="message">Message *</label>
<textarea id="message" name="message" placeholder="Please provide details about your inquiry..." required></textarea>
</div>
</div>
<button type="submit" class="submit-btn">Send Message</button>
</form>
</div>
</div>
<script>
document.getElementById('contactForm').addEventListener('submit', function(e) {
e.preventDefault();
// Simulate form submission
const successMessage = document.getElementById('successMessage');
const form = document.getElementById('contactForm');
// Show success message
successMessage.style.display = 'block';
// Scroll to success message
successMessage.scrollIntoView({ behavior: 'smooth', block: 'center' });
// Reset form after a delay
setTimeout(function() {
form.reset();
successMessage.style.display = 'none';
}, 3000);
});
// Add form validation feedback
const inputs = document.querySelectorAll('input, select, textarea');
inputs.forEach(input => {
input.addEventListener('blur', function() {
if (this.hasAttribute('required') && !this.value.trim()) {
this.style.borderColor = '#e74c3c';
} else if (this.type === 'email' && this.value && !this.value.includes('@')) {
this.style.borderColor = '#e74c3c';
} else {
this.style.borderColor = '#27ae60';
}
});
});
</script>
</body>
</html>