<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Form</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
max-width: 800px;
margin: 0 auto;
padding: 20px;
color: #333;
}
h1 {
text-align: center;
margin-bottom: 30px;
color: #2c3e50;
}
.navbar {
display: flex;
justify-content: space-around;
background-color: #f4f4f4;
padding: 15px;
margin-bottom: 30px;
border-radius: 5px;
}
.navbar a {
text-decoration: none;
color: #333;
font-weight: bold;
}
.navbar a:hover {
color: #3498db;
}
.form-container {
background-color: #f9f9f9;
padding: 25px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.form-row {
display: flex;
margin-bottom: 15px;
align-items: center;
}
.form-row label {
width: 120px;
font-weight: bold;
}
.form-row input {
flex: 1;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
.form-section {
margin-bottom: 25px;
}
.form-section h2 {
border-bottom: 2px solid #3498db;
padding-bottom: 5px;
margin-bottom: 15px;
color: #2c3e50;
}
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
min-height: 100px;
margin-bottom: 15px;
}
.checkbox-group, .radio-group {
margin-bottom: 15px;
}
.checkbox-group label, .radio-group label {
display: block;
margin-bottom: 8px;
}
.submit-btn {
background-color: #3498db;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
.submit-btn:hover {
background-color: #2980b9;
}
</style>
</head>
<body>
<h1>Contact</h1>
<div class="navbar">
<a href="#">Home</a>
<a href="#">Gallery</a>
<a href="#">Contact</a>
<a href="#">About</a>
</div>
<div class="form-container">
<div class="form-section">
<h2>Your Details:</h2>
<div class="form-row">
<label for="name">Name:</label>
<input type="text" id="name">
</div>
<div class="form-row">
<label for="email">Email:</label>
<input type="email" id="email">
</div>
<div class="form-row">
<label for="password">Password:</label>
<input type="password" id="password">
</div>
</div>
<div class="form-section">
<h2>Comments:</h2>
<textarea placeholder="Enter your comments here..."></textarea>
</div>
<div class="form-section">
<h2>How did you hear about us?:</h2>
<div class="checkbox-group">
<label><input type="checkbox"> Google</label>
</div>
</div>
<div class="form-section">
<h2>Would you visit again?</h2>
<div class="radio-group">
<label><input type="radio" name="visit" checked> Yes</label>
<label><input type="radio" name="visit"> No</label>
<label><input type="radio" name="visit"> Maybe</label>
</div>
</div>
<div class="checkbox-group">
<label><input type="checkbox"> Sign me up for email updates</label>
</div>
<button type="submit" class="submit-btn">Submit</button>
</div>
</body>
</html>