@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-image: url(nightskydesign.jpg);
  background-position: bottom;
  padding: 10px;
}

.container {
  background-color: #fff;
  max-width: 700px;
  width: 100%;
  padding: 25px 30px;
  border-radius: 5px;
  opacity: 90%;
  box-shadow: 5px 10px 8px #2A3132;
}

.container .title {
  font-size: 35px;
  font-weight: 500;
  text-align: center;
  position: relative;
}

.container .title::before {
  content: '';
  position: absolute;
  left: 300;
  bottom: 0;
  height: 3px;
  width: 100px;
  background: linear-gradient(135deg, rgb(243, 176, 193), rgb(13, 51, 64));
}

.container form {
  padding-top: 20px;
}

.container form .user-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.container form .user-details .input-box {
  margin: 20px 0 12px 0;
  width: calc(100% / 2 - 20px);
}

.user-details .input-box .details {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
}

.user-details .input-box input {
  height: 45px;
  width: 100%;
  outline: none;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding-left: 15px;
  font-size: 16px;
  border-bottom-width: 3px;
  transition: all 0.3s ease;
}

.user-details .input-box input:focus,
.user-details .input-box input:valid {
  border-color: rgb(156, 131, 161);
}

form .gender-details .gender-title {
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-top: 10px;
}

form .gender-details .category {
  display: flex;
  width: 80%;
  margin: 14px 0;
  justify-content: space-between;
}

form .gender-details .category label {
  display: flex;
  align-items: center;
}

form .gender-details .category .dot {
  height: 18px;
  width: 18px;
  background: #d9d9d9;
  border-radius: 50%;
  margin-right: 10px;
  border: 5px solid transparent;
}

#dot-1:checked ~ .category label .one,
#dot-2:checked ~ .category label .two,
#dot-3:checked ~ .category label .three {
  border-color: #d9d9d9;
  background: rgb(156, 131, 161);
}

form input[type="radio"] {
  display: none;
}

form .button {
  height: 45px;
  margin: 45px 0;
}

form .button input {
  height: 100%;
  width: 100%;
  outline: none;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 500;
  background: rgb(156, 131, 161);
  letter-spacing: 1px;
  border-radius: 5px;
}

form .button input:hover {
  background-color: rgb(13, 51, 64);
  transition: all 0.4s ease;
}

@media screen and (max-width: 600px ) {

  .container {
    max-width: 100%;
  }

  .container form .user-details .input-box {
    margin-bottom: 15px;
    margin-right: 15px;
    width: 100%;
  }

  .container form .gender-details .category {
    width: 100%;
  }

  .container form .user-details {
    max-height: 300px;
    overflow-y: scroll;
  }

  .user-details::-webkit-scrollbar {
    width: 1;
  }
}
