
Get your guide
body {
font-family: Arial, sans-serif;
}
/* Button style */
.open-button {
background-color: #4CAF50;
color: white;
padding: 15px 20px;
border: none;
cursor: pointer;
position: fixed;
bottom: 23px;
right: 28px;
width: 200px;
}
/* The popup form - hidden by default */
.form-popup {
display: none;
position: fixed;
bottom: 0;
right: 15px;
border: 3px solid #f1f1f1;
z-index: 9;
}
/* Add styles to the form container */
.form-container {
max-width: 300px;
padding: 20px;
background-color: white;
}
/* Full-width input fields */
.form-container input[type=text], .form-container input[type=email], .form-container select {
width: 100%;
padding: 15px;
margin: 5px 0 15px 0;
border: none;
background: #f1f1f1;
}
/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=email]:focus {
background-color: #ddd;
outline: none;
}
/* Button */
.form-container .btn {
background-color: #4CAF50;
color: white;
padding: 16px 20px;
border: none;
cursor: pointer;
width: 100%;
margin-bottom: 10px;
}
/* Red cancel button */
.form-container .cancel {
background-color: red;
}
/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
opacity: 0.8;
}