/* 모달 전체 배경 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  z-index: 9999;
}
.modal .modal-box-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}
/* 모달 박스 */
.modal .modal-box-wrap .modal-box {
  background-color: #fff;
  margin: 10% auto;
  padding: 24px 16px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  box-sizing: border-box;
}
.modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.modal .modal-header h2 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  color: #000;
}
.modal .modal-cont {
  max-height: 570px;
  overflow-y: auto;
}
.modal .modal-cont p {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #333;
}

/* 닫기 버튼 */
.modal .close-btn {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  flex-shrink: 0;
}

/* 반응형 */
@media (max-width: 768px) {
  .modal .modal-box-wrap {
    padding: 16px;
  }

  .modal .modal-box-wrap .modal-box {
    padding: 20px 12px;
    max-width: 100%;
    margin: 5% auto;
  }

  .modal .modal-header {
    margin-bottom: 20px;
  }

  .modal .modal-header h2 {
    font-size: 18px;
    line-height: 22px;
  }

  .modal .modal-cont {
    max-height: 60vh;
  }

  .modal .modal-cont p {
    font-size: 13px;
    line-height: 18px;
  }

  .modal .close-btn {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .modal .modal-box-wrap {
    padding: 12px;
  }

  .modal .modal-box-wrap .modal-box {
    padding: 16px 8px;
  }

  .modal .modal-header {
    margin-bottom: 16px;
  }

  .modal .modal-header h2 {
    font-size: 16px;
    line-height: 20px;
  }

  .modal .modal-cont p {
    font-size: 12px;
    line-height: 16px;
  }

  .modal .close-btn {
    font-size: 18px;
  }
}
