[aux_row columns=”2″]
[aux_col]First column content.
<style>
.subscribe-container {
background-color: #00b8c8; /* Matches image bg */
padding: 20px;
text-align: center;
border-radius: 10px;
max-width: 450px;
margin: auto;
}
.subscribe-form input[type=”email”] {
padding: 12px 16px;
width: 80%;
max-width: 250px;
border: none;
border-radius: 30px 0 0 30px;
outline: none;
font-size: 14px;
}
.subscribe-form button {
padding: 12px 20px;
background-color: #f5a623; /* Button orange */
color: white;
font-weight: bold;
border: none;
border-radius: 0 30px 30px 0;
cursor: pointer;
font-size: 14px;
transition: 0.3s;
}
.subscribe-form button:hover {
background-color: #d9901d;
}
.success-message {
color: white;
font-weight: bold;
font-size: 15px;
margin-top: 15px;
display: none;
animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
<div class=”subscribe-container”>
<form class=”subscribe-form” action=”https://formspree.io/f/mdkzwbby” method=”POST” onsubmit=”showSuccessMessage(event)”>
<input type=”email” name=”email” placeholder=”Enter Email Address” required />
<button type=”submit”>Subscribe</button>
<div class=”success-message” id=”successMsg”>🎉 You have subscribed successfully!</div>
</form>
</div>
<script>
function showSuccessMessage(e) {
e.preventDefault();
const form = e.target;
const success = document.getElementById(“successMsg”);
fetch(form.action, {
method: “POST”,
body: new FormData(form),
headers: { ‘Accept’: ‘application/json’ }
}).then(response => {
if (response.ok) {
form.reset();
success.style.display = “block”;
}
});
}
</script>
/aux_col]