@import url("https://fonts.cdnfonts.com/css/montserrat");
@import url("https://fonts.cdnfonts.com/css/noto-sans");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", "Noto Sans", sans-serif;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #5bd9e5, #444189, #ffa717, #eb5a40);
  background-size: 500% 500%;
  animation: gradient 15s ease infinite;
}

form {
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 2vw 4vw;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
}

form h3 {
  text-align: center;
  color: #555;
  font-weight: 800;
  margin-bottom: 20px;
}

form input,
form textarea {
  border: 0;
  margin: 10px 0;
  padding: 20px;
  outline: none;
  background: #f5f5f5;
  font-size: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  resize: none;
}

.phone::-webkit-inner-spin-button {
  display: none;
}

.formBtn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn {
  padding: 15px;
  background: #4da351;
  color: #f5f5f5;
  font-size: 18px;
  border: 1px solid #4da351;
  outline: none;
  cursor: pointer;
  width: 150px;
  margin: 20px auto;
  border-radius: 30px;
  transition: all 1s ease;
  box-shadow: 4px 23px 100px -8px rgba(0, 0, 0, 0.2);
}

.btn:hover,
.btn:active,
.btn:focus {
  color: #4da351;
  background: #f5f5f5;
}

.error {
  border: 2px solid red;
  border-radius: 5px;
  color: red;
  background-color: #f5f5f5;
}

.btnPrev {
  padding: 15px;
  background: #f5f5f5;
  color: #eb5a40;
  font-size: 18px;
  border: 1px solid #eb5a40;
  outline: none;
  cursor: pointer;
  width: 150px;
  margin: 20px auto;
  border-radius: 30px;
  text-align: center;
  transition: all 1s ease;
  box-shadow: 4px 23px 100px -8px rgba(0, 0, 0, 0.2);
}

.btnPrev:hover,
.btnPrev:active,
.btnPrev:focus {
  color: #f5f5f5;
  background: #eb5a40;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  h3 {
    margin-top: 1rem;
  }
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea,
  button {
    width: 100%;
    margin-bottom: 10px;
  }
}
