-
CSS embossed electric border lead form
HTML
CSS
JavaScript
Get In Touch
Tell us about your requirement
Full Name
Email Address
Mobile Number
Select Requirement
Web Development
UI/UX Design
Digital Marketing
Branding
Social Media Marketing
Other
▼
Your Requirement
SUBMIT ENQUIRY
* { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; background: radial-gradient(circle at top, #202838 0%, #0b0f16 45%, #05070b 100%); font-family: Arial, Helvetica, sans-serif; color: #fff; scale:0.7 } /* ============================== FORM WRAPPER ============================== */ .lead-wrapper { width: 100%; max-width: 520px; position: relative; padding: 2px; border-radius: 24px; overflow: hidden; } /* Electric moving border */ .lead-wrapper::before { content: ""; position: absolute; width: 180%; height: 180%; left: -40%; top: -40%; background: conic-gradient( transparent 0deg, transparent 280deg, #00eaff 310deg, #ffffff 325deg, #00eaff 340deg, transparent 360deg ); animation: electric 3s linear infinite; } @keyframes electric { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* Inner form */ .lead-form { position: relative; z-index: 2; padding: 38px; border-radius: 22px; background: linear-gradient( 145deg, #171d28, #0c1018); /* Embossed effect */ box-shadow: inset 5px 5px 12px rgba(0, 0, 0, .8), inset -5px -5px 12px rgba(255, 255, 255, .035), 0 20px 50px rgba(0, 0, 0, .6); } /* ============================== HEADING ============================== */ .form-title { text-align: center; margin-bottom: 8px; font-size: 30px; font-weight: 700; letter-spacing: 1px; text-shadow: 2px 2px 4px #000, -1px -1px 1px rgba(255,255,255,.15); } .form-subtitle { text-align: center; color: #8994a5; font-size: 14px; margin-bottom: 30px; } /* ============================== INPUT GROUP ============================== */ .input-group { position: relative; margin-bottom: 22px; } .input-group input, .input-group textarea, .input-group select { width: 100%; padding: 16px 16px; border: 0; outline: none; border-radius: 12px; background: #10151e; color: #fff; font-size: 15px; /* Embossed input */ box-shadow: inset 5px 5px 10px rgba(0,0,0,.75), inset -3px -3px 7px rgba(255,255,255,.04); transition: .3s ease; } .input-group textarea { min-height: 110px; resize: vertical; } /* Focus electric glow */ .input-group input:focus, .input-group textarea:focus, .input-group select:focus { box-shadow: inset 4px 4px 8px rgba(0,0,0,.8), 0 0 0 1px #00eaff, 0 0 15px rgba(0,234,255,.35); } /* ============================== FLOATING LABEL ============================== */ .input-group label { position: absolute; left: 16px; top: 16px; color: #6f7b8c; pointer-events: none; transition: .25s ease; font-size: 14px; background: #10151e; padding: 0 5px; } .input-group input:focus + label, .input-group input:not(:placeholder-shown) + label, .input-group textarea:focus + label, .input-group textarea:not(:placeholder-shown) + label { top: -8px; left: 12px; color: #00eaff; font-size: 11px; } /* ============================== SELECT ============================== */ .input-group select { appearance: none; cursor: pointer; } .select-arrow { position: absolute; right: 18px; top: 17px; color: #00eaff; pointer-events: none; } /* ============================== BUTTON ============================== */ .submit-btn { position: relative; width: 100%; padding: 16px; border: none; border-radius: 12px; background: linear-gradient( 145deg, #19eaff, #0088a3 ); color: #001016; font-size: 16px; font-weight: 700; letter-spacing: 1px; cursor: pointer; box-shadow: 5px 5px 10px rgba(0,0,0,.7), -3px -3px 8px rgba(255,255,255,.08), 0 0 18px rgba(0,234,255,.25); transition: .25s ease; } .submit-btn:hover { transform: translateY(-2px); box-shadow: 6px 8px 14px rgba(0,0,0,.8), 0 0 25px rgba(0,234,255,.7); } .submit-btn:active { transform: translateY(2px); box-shadow: inset 4px 4px 8px rgba(0,0,0,.5), 0 0 10px rgba(0,234,255,.4); } /* ============================== STATUS ============================== */ .form-status { text-align: center; margin-top: 18px; font-size: 13px; color: #00eaff; min-height: 18px; } /* ============================== MOBILE ============================== */ @media (max-width: 600px) { body { padding: 15px; } .lead-form { padding: 28px 20px; } .form-title { font-size: 25px; } .form-subtitle { font-size: 13px; } }
const status = document.getElementById("formStatus"); form.addEventListener("submit", function(e) { e.preventDefault(); const name = document.getElementById("name").value.trim(); status.textContent = `Thank you ${name}! Your enquiry has been submitted.`; form.reset(); });
Live Preview