.formWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 100px 0;
  background-image: url('../img/formBg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Form Section */
.form_section {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  background-color: #fff;
  padding: 50px;
  border-radius: 15px;
}

.inputForm-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.inputForm-wrapper > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  margin-bottom: 10px;
}

.inputForm-wrapper > div label {
  font-weight: bold;
  text-align: left;
  word-break: keep-all;
}

.inputForm-wrapper > div input,
.inputForm-wrapper > div select {
  flex: 1;
  padding: 10px;
  border: none;
  border: 1px solid #ddd;
  font-size: 16px;
  box-sizing: border-box;
  background: transparent;
  border-radius: 5px;
  height: 50px;
}

.inputForm-wrapper .grid_label {
  display: grid;
  grid-template-columns: 1fr 5fr;
}

.inputForm-wrapper .num_input {
  width: 100%;
  display: flex;
  align-items: center;
}

.inputForm-wrapper .num_input span {
  padding: 0 15px;
  height: 50px;
  background-color: var(--color-point-main);
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
}

.inputForm-wrapper .num_input input {
  border-radius: 0 5px 5px 0;
  width: 100%;
}

.inputForm-wrapper > div input::placeholder {
  color: #ccc;
}

.inputForm-wrapper > div select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  background: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  cursor: pointer;
}

.inputForm-wrapper > div select:hover {
  border: 1px solid #1233da;
}

.inputForm-wrapper > div select:focus {
  outline: none;
  border: 1px solid #1233da;
}

/* select 자체의 placeholder 스타일 */
.inputForm-wrapper > div select:invalid {
  color: #999;
}

.inputForm-wrapper > div select option {
  color: #000;
}

.inputForm-wrapper > div input:focus {
  outline: none;
  border: 1px solid #1233da;
}

/* Privacy Box */
.privacy_box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.privacy_box label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.privacy_box input[type='checkbox'] {
  display: none;
}

.privacy_box input[type='checkbox'] + span {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 13px;
  transition: all 0.3s;
}

.privacy_box input[type='checkbox'] + span:before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: all 0.3s;
}

.privacy_box input[type='checkbox']:checked + span {
  background-color: var(--color-point-main);
}

.privacy_box input[type='checkbox']:checked + span:before {
  transform: translateX(24px);
}

.agreeText {
  font-size: 17px;
}

#agreeView {
  text-decoration: underline;
  word-break: keep-all;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  width: 80%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #666;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ff2e63;
}

#submitBtn {
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .formWrapper .title {
    width: 80%;
  }
  .formWrapper {
    padding: 50px 0;
  }
  .form_section {
    width: 90%;
    padding: 30px 20px;
  }

  .inputForm-wrapper {
    width: 100%;
  }

  .agreeText {
    font-size: 14px;
  }

  .privacy_box input[type='checkbox'] + span {
    width: 40px;
    height: 20px;
    border-radius: 10px;
  }

  .privacy_box input[type='checkbox'] + span:before {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }

  .privacy_box input[type='checkbox']:checked + span:before {
    transform: translateX(20px);
  }
}
