Contact Us-test

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Popup Contact Form</title>
<style>
/* Initial hidden style for the popup */
#popupFormContainer {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #ffffff;
padding: 20px;
width: 400px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
font-family: Arial, sans-serif;
}

/* Overlay style */
#overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 999;
}

/* Title style */
#popupFormContainer h2 {
margin-top: 0;
font-size: 18px;
font-weight: bold;
}

/* Description text */
#popupFormContainer p {
font-size: 14px;
color: #555;
margin: 10px 0 20px;
}

/* Form label and input field styles */
.form-label {
display: block;
font-size: 14px;
margin-bottom: 5px;
font-weight: bold;
}

.form-input {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}

/* Submit button style */
.submit-button {
width: 100%;
padding: 12px;
background-color: #00a1e0;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
}

.submit-button:hover {
background-color: #007BFF;
}

/* Close button style */
.close-button {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #555;
}
</style>
</head>
<body>

<!-- Trigger link -->
<a href="javascript:void(0);" onclick="openForm()">Click here for personalized support</a>

<!-- Overlay -->
<div id="overlay" onclick="closeForm()"></div>

<!-- Popup form -->
<div id="popupFormContainer">
<button class="close-button" onclick="closeForm()">×</button>
<h2>Personalized Support Is a Click Away</h2>
<p>We're here to assist. Please enter your contact information for us to reach out.</p>
<form action="/contact" method="post">
<label class="form-label" for="contact_name">Contact Person:</label>
<input type="text" id="contact_name" name="contact[name]" class="form-input" placeholder="Contact Person" required>

<label class="form-label" for="contact_email">Email Address:</label>
<input type="email" id="contact_email" name="contact[email]" class="form-input" placeholder="Email Address" required>

<button type="submit" class="submit-button">Submit Now</button>
</form>
</div>

<script>
// Open the popup form
function openForm() {
document.getElementById("popupFormContainer").style.display = "block";
document.getElementById("overlay").style.display = "block";
}

// Close the popup form
function closeForm() {
document.getElementById("popupFormContainer").style.display = "none";
document.getElementById("overlay").style.display = "none";
}
</script>

</body>
</html>