#dim {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
}

.modal {
  position: fixed;
  top: 50%;
  left: calc(50% - 1.6rem);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: calc(100% - 3.2rem);
  margin: 0 1.6rem;
  max-width: 51.6rem;
  max-height: 74rem;
  border-radius: 1.2rem;
  background: var(--white);
  box-sizing: border-box;
}
.modal .modal-close-btn {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 3.2rem;
  height: 3.2rem;
  border: none;
  border-radius: 50%;
  background: url("../images/modal-close-btn.svg") no-repeat center center;
  cursor: pointer;
}
.modal-header {
  display: flex;
  flex-direction: column;
  padding: 4rem 2.4rem 1.6rem;
  text-align: left;
}
.modal-title {
  flex: 1;
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}
.modal-title + .desc {
  font-size: 1.3rem;
}
.modal-content {
  padding: 1.6rem 2.4rem;
  max-height: 48rem;
  overflow: auto;
}
.modal-footer {
  flex: 0 0 8.8rem;
  padding: 0.8rem 2.4rem 2.4rem;
}

.form-desc {
  margin-top: 0.4rem;
  color: var(--error);
  font-size: 1.3rem;
}
.form-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}
.form-input-wrap .input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.input-wrap label {
  font-weight: 500;
  font-size: 1.4rem;
}
.input-wrap label .e {
  color: var(--error);
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 0 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid var(--tigris-background-medium);
  transition: 0.2s ease;
  cursor: pointer;
}
.input-wrap input:hover,
.input-wrap input:focus-visible,
.input-wrap textarea:hover,
.input-wrap textarea:focus-visible {
  outline: 0;
  border-color: var(--tigris-blue-main);
}
.input-wrap input {
  height: 4.8rem;
}
.input-wrap textarea {
  padding: 1.2rem;
  height: 14rem;
  resize: none;
}

.input-wrap input:invalid {
  border-color: var(--error);
}

.checkbox-wrap {
  margin-bottom: 0.8rem;
}
.checkbox-wrap input[type="checkbox"] + label {
  margin-left: 0;
  font-size: 1.4rem;
}
.checkbox-wrap label a {
  text-decoration: underline;
}

.modal-submit-btn {
  width: 100%;
  height: 6rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.6rem;
  transition: 0.2s ease;
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 896px) {
  .modal {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .modal-content {
    max-height: 32rem;
  }
  .modal-submit-btn {
    height: 4.5rem;
    font-size: 1.4rem;
  }
}
