body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  background-image: linear-gradient(140deg, purple, hotpink, orange);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}
form {
  padding: 20px;
  padding-right: 40px;
}
.maindiv {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background-color: #ffffff7e;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #fffff6;
  font-family: "Times New Roman", Times, serif;
  font-size: 50px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 900;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s ease-in-out;
}
input[type="email"]:focus,
textarea:focus {
  outline: none;
  outline-color: blue;
  box-shadow: 0 0 0 1px blue;
}
input[type="text"]:focus {
  outline: none;

  box-shadow: 0 0 0 1.5px hotpink;
  outline-color: hotpink;
}
/* The switch - the box around the slider */

.switch {
  position: relative;
  /* display: inline-block; */
  width: 4rem;
  height: 2rem;
}
/* Hide default HTML checkbox */

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
/* The slider */

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.3s ease-in-out;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
}

input[type="checkbox"]:checked + .slider {
  background-color: #2196f3;
}

input[type="checkbox"]:checked + .slider:before {
  transform: translateX(26px);
}

input[type="submit"] {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #ccc;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

input[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
