/* Reset */
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Base */
html {
  overflow-x: hidden;
  background-color: #262626;
  scroll-behavior: smooth;
  font-family: 'Noto Sans KR','Malgun Gothic', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
}

.container {
  width: 820px;
  margin: 0 auto;
}

.container > img {
  width: 100%;
  display: block;
}

img.img100 {
  width: 100%;
}

/* Form Section */
.form_section {
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  background-color: #fff;
  padding-bottom: 80px;
}

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

.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;
  margin-right: 10px;
  text-align: left;
}

.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 > div input::placeholder {
  color: #ccc;
}

.inputForm-wrapper > div select {
  flex: 1;
  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='white' 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-bottom: 1px solid #1233da;
}

.inputForm-wrapper > div select option {
  background-color: #262626;
  padding: 10px;
  font-size: 16px;
}

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

/* Footer */
footer {
  position: relative;
  width: 100%;
}

footer .scrollTopBtn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 100;
}

footer > img {
  width: 100%;
  display: block;
}

footer .scrollTopBtn img {
  width: 100%;
  display: block;
}

/* 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: #1233da;
}

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

.agreeText {
  font-size: 17px;
}

#agreeView {
  color: #1233da;
  text-decoration: underline;
}

/* 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;
}

/* Fixed Button */
.fixedBtn {
  width: 80px;
  position: fixed;
  bottom: 100px;
  right: 100px;
  z-index: 100;
  display: block;
  transition: opacity 0.3s ease;
}

.fixedBtn img {
  width: 100%;
  display: block;
}

.fixedBtn.hide {
  opacity: 0;
  pointer-events: none;
}

/* Swiper Pagination */
.swiper-pagination {
  position: relative;
  margin-top: 20px;
  display: none;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 5px;
}

.swiper-pagination-bullet-active {
  background: #000;
}

/* Media Queries */
@media screen and (max-width: 768px) {

  .container {
    width: 100%;
  }

  .inputForm-wrapper {
    width: 90%;
  }

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

  .agreeText {
    font-size: 14px;
  }

  footer .scrollTopBtn {
    width: 10%;
    top: -100%;
  }

  .fixedBtn {
    bottom: 5%;
    right: 10px;
  }

  .fixedBtn img {
    width: 80px;
    height: 80px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }

  .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);
  }
}

