@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700&display=swap");

* {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 500;
  background: #f0eaea;
  min-width: 100vw;
  min-height: 100vh;
  color: #354b5e;
  display: flex;
  justify-content: center;
  align-items: center;
}

main.container {
  min-width: 25vw;
  min-height: 60vh;
  background: #f7f8fc;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

.input-field label {
  display: block;
  margin-bottom: 8px;
}

.input-field input[type="text"],
.input-field input[type="email"],
.input-field input[type="date"] {
  padding: 0 1rem;
  width: 100%;
  height: 44px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  outline: none;
  margin-bottom: 24px;
  font-size: 1rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.input-field input[type="date"] {
  color: #292929;
}

.input-field input::placeholder {
  color: #c1c1c1;
  font-size: 0.99rem;
}

.input-field .radio-btn {
  display: flex;
  width: 100%;
  height: 45px;
  margin-bottom: 2rem;
}

.input-field .radio-btn label {
  width: 120px;
  height: 45px;
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.input-field .radio-btn label span {
  margin-bottom: 0;
  font-weight: 400;
  margin-right: 10px;
}

.input-field .radio-btn label:last-child {
  margin-left: 1rem;
}

.input-field .radio-btn label .mark {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c1c1c1;
  transition: 0.3s;
  margin-left: 10px;
}

.input-field .radio-btn label .mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #2b60af;
  border-radius: 50%;
  opacity: 0;
  transition: 0.3s;
}

.input-field .radio-btn label .btn-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 45px;
  border: 1px solid #c1c1c1;
  border-radius: 8px;
}

input[type="radio"]:checked ~ .mark {
  border-color: #2b60af;
}

input[type="radio"]:checked ~ .mark::before {
  opacity: 1;
}

input[type="radio"]:checked ~ .btn-border {
  border-color: #2b60af;
}

input[type="radio"] {
  display: none;
}

.terms {
  display: flex;
  align-items: center;
}

.terms label {
  font-weight: 400;
  font-size: 0.7rem;
  margin-left: 10px;
}

input[type="submit"] {
  width: 100%;
  height: 46px;
  cursor: pointer;
  border-radius: 8px;
  background: #2b60af;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  margin-top: 2.22rem;
  transition: all 0.3s;
  -webkit-appearance: none;
}

input[type="submit"]:hover {
  background: #204781;
}
