Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <style> /* This container provides the dark background context. On your site, this might be the <body> tag. */ .dark-form-background { background-color: #1e1e1e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; padding: 40px; border-radius: 8px; } .dark-form-container { max-width: 450px; margin: 0 auto; } .dark-form-container h2 { color: #f0f0f0; text-align: center; margin-bottom: 25px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; color: #a0a0a0; margin-bottom: 8px; font-size: 0.9rem; } .form-group input { width: 100%; padding: 12px; background-color: #2c2c2c; /* A slightly lighter shade for the input */ border: 1px solid #444; /* Subtle border */ border-radius: 5px; font-size: 1rem; color: #e0e0e0; /* Light text color */ box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; } .form-group input::placeholder { color: #777; } .form-group input:focus { outline: none; border-color: #0095ff; /* Bright blue for focus */ box-shadow: 0 0 0 2px rgba(0, 149, 255, 0.3); } .submit-btn { width: 100%; padding: 12px; background-color: #0095ff; border: none; border-radius: 5px; color: white; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.2s; } .submit-btn:hover { background-color: #007acc; } </style> <div class="dark-form-background"> <div class="dark-form-container"> <h2>Request a Demo</h2> <form action="#" method="post"> <div class="form-group"> <label for="dark-name">Full Name</label> <input type="text" id="dark-name" name="name" placeholder="Hazel Nutt" required> </div> <div class="form-group"> <label for="dark-company">Company Name</label> <input type="text" id="dark-company" name="company" placeholder="Pita Pan" required> </div> <div class="form-group"> <label for="dark-email">Work Email</label> <input type="email" id="dark-email" name="email" placeholder="hazel.nutt@pitapan.com" required> </div> <button type="submit" class="submit-btn">Submit Request</button> </form> </div> </div>