#modal {
  position: fixed;
  right: 0;
  width: 534px;
  top: 0;
  bottom: 0;
  transform: translateX(100%);
  transition: 300ms all;
  background-color: #fff;
  z-index: 3;
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.modal-close {
  display: none;
}

.modal-title {
  color: #161820;
  text-align: center;
  font-family: Pretendard;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 44.8px */
  letter-spacing: -0.192px;
}

.modal-desc {
  color: #161820;
  text-align: center;
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 170%; /* 30.6px */
  letter-spacing: -0.108px;
  margin-top: 12px;
}

#check {
  display: none;
}

.modal-form {
  flex: 1;
  margin-top: 36px;
  margin-bottom: 36px;
}

.input-label {
  color: #333;
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 23.4px */
}

.input-container + .input-container {
  margin-top: 24px;
}

.input-wrapper {
  margin-top: 14px;
}

.input-container input {
  padding: 16px 18px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d6db;
  background: #fafafb;

  color: #222;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 20.8px */
}

.input-label span {
  color: #295773;
}

.modal-background {
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0, 0, 0, 0.4);
}

.modal-checkbox input {
  margin: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid #d1d6db;
  appearance: none;
}

.modal-checkbox {
  color: #333;
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 23.4px */
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-checkbox span {
  color: #295773;
}

#submit {
  margin-top: 24px;
  padding: 14px 0;
  font-size: 20px;
  border-radius: 12px;
}

button:disabled {
  opacity: 0.5;
}

button:disabled:hover{
  cursor: not-allowed;
  background-color: #295773;
}

@media (max-width: 768px) {
  #modal {
    width: 100%;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-desc {
    font-size: 16px;
  }

  .input-label {
    font-size: 16px;
  }

  .input-wrapper {
    margin-top: 8px;
  }

  .input-container input {
    font-size: 14px;
  }

  #submit {
    border-radius: 12px;
  }

  .modal-close {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 12px;
    bottom: 20px;
    display: block;
  }
}
