* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: var(--bg-gradient);
font-family: 'Inter', sans-serif;
color: #222;
}
.form-container {
background: white;
padding: 2.5rem 2rem;
border-radius: var(--radius);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
width: 100%;
max-width: 400px;
text-align: center;
transition: transform 0.3s ease;
}
.form-container:hover {
transform: translateY(-4px);
}
h2 {
font-size: 1.75rem;
font-weight: 600;
margin-bottom: 2rem;
}
label {
display: block;
text-align: left;
font-weight: 600;
margin-bottom: 0.5rem;
margin-top: 1.5rem;
color: #444;
}
select, input[type="text"] {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid #e0e0e0;
border-radius: 0.75rem;
font-size: 1rem;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
select:focus, input[type="text"]:focus {
border-color: var(--primary);
outline: none;
box-shadow: 0 0 10px rgba(37, 117, 252, 0.25);
}
button {
margin-top: 2rem;
width: 100%;
padding: 0.85rem;
font-size: 1.1rem;
font-weight: 600;
color: white;
background-color: var(--primary);
border: none;
border-radius: 0.75rem;
cursor: pointer;
transition: background 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
background-color: var(--primary-dark);
box-shadow: 0 10px 20px rgba(24, 91, 216, 0.4);
}
.success-message {
margin-top: 1.5rem;
color: green;
font-weight: 600;
display: none;
transition: opacity 0.3s ease;
}
@media (max-width: 480px) {
.form-container {
padding: 2rem 1.25rem;
}
}
<label for="name">Your Name</label>
<input
type="text"
name="entry.865498654"
id="name"
placeholder="Enter your full name"
required
autocomplete="off"
/>
<button type="submit">Submit</button>
</form>
<div class="success-message" id="successMessage">
✅ Thank you! Your response has been recorded.
</div>