.terms-wrap {
  width: 900px;
  margin: 200px auto 100px;
}

.terms-title {
  font-size: 50px;
  font-weight: 300;
  color: #333;
  text-align: left;
  margin-bottom: 50px;
}

.checkbox {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  cursor: pointer;
  gap: 10px;
}

.checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.checkbox input[type="checkbox"]:hover {
  border-color: #0b6e67;
}

.checkbox input[type="checkbox"]:checked {
  /* background-color: #0b6e67;
  border-color: #0b6e67; */
  background-color: #997c6e;
  border-color: #997c6e;
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 1px;
  width: 11px;
  height: 21px;
  border: solid #fff;
  border-width: 0px 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox .required {
  color: #d24c63;
  font-size: 18px;
}

.terms-textarea {
  width: 100%;
  height: 180px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 15px;
  font-size: 18px;
  color: #222;
  line-height: 1.6;
  margin-bottom: 25px;
  resize: none;
  background: #fff;
  overflow-y: auto;
}

.btn-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  width: 130px;
  height: 52px;
  /* border: 1.5px solid #0b6e67; */
  border: 1.5px solid #997c6e;
  border-radius: 28px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn.cancel {
  background-color: #fff;
  /* color: #0b6e67; */
  color: #997c6e;

}

.btn.cancel:hover {
  background-color: #f0f8f8;
}

.btn.submit {
  /* background-color: #0b6e67; */
  background-color: #997c6e;
  color: #fff;
}

.btn.submit:hover {
  /* background-color: #095f5a; */
  background-color: #997c6e;
}

.checkbox.all {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 25px;
}

@media screen and (max-width: 850px) {
  html {
    font-size: 3.611vw;
  }
  .checkbox.all {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .terms-wrap {
    width: 100%;
    margin: 10rem auto 5rem;
    padding: 0 1rem;
  }

  .terms-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .checkbox {
    font-size: 1.2rem;
    line-height: 1.4;
    gap: 0.6rem;
  }

  .checkbox input[type="checkbox"] {
    width: 2rem;
    height: 1.9rem;
  }

  .checkbox input[type="checkbox"]:checked::after {
    left: 0.5rem;
    top: -0.3rem;
    width: 0.8rem;
    height: 1.7rem;
    border-width: 0 0.2rem 0.2rem 0;
  }

  .checkbox .required {
    font-size: 1rem;
  }

  .terms-textarea {
    height: 12rem;
    font-size: 1rem;
    padding: 1rem;
    line-height: 1.5;
    border-radius: 0.4rem;
  }

  .btn-area {
    /* flex-direction: column; */
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .btn {
    width: 100%;
    max-width: 7rem;
    height: 3rem;
    font-size: 1rem;
    border-radius: 2rem;
  }

  .btn.cancel {
    order: 1;
  }

  .btn.submit {
    order: 2;
  }
}
