/* 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: 35px;
  align-items: center;
  background-color: #1e0000;
  padding-bottom: 30px;
}



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

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


.inputForm-wrapper > div label {
  font-weight: bold;
  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: #fff;
  border-radius: 5px;
  height: 50px;
}

.inputForm-wrapper > div input::placeholder {
  color: #ccc;
}
.input-label {
  display:flex; gap:20px; align-items:center;word-break: keep-all;
}

.inputForm-wrapper > div select {
  padding: 10px 30px 10px 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;
}

/* 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;
  justify-content: flex-start!important;
  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: black;
  top: 2px;
  left: 2px;
  transition: all 0.3s;
}

.privacy_box input[type="checkbox"]:checked + span {
  background-color: #ffcf8a;
}

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

.agreeText {
  font-size: 17px;
}

#agreeView {
  color: #ffcf8a;
  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: 150px;
  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;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

.popup img {
  max-width: 26.2%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.popup .button-container {
  display: flex;
  width: 90%;
  max-width: 500px;
}

.popup .todayClose,
.popup .popupClose {
  flex: 1;
  padding: 15px 20px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.popup .todayClose {
  background-color: #ff6b6b;
  color: white;
}

.popup .todayClose:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
}

.popup .popupClose {
  background-color: #6c757d;
  color: white;
}

.popup .popupClose:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

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

  .input-label {
    gap: 5px;
  }
  .inputForm-wrapper > div input, .inputForm-wrapper > div select {
      height: 40px;
      width: 120px;
  } 

  .container {
    width: 100%;
  }

  .inputForm-wrapper {
    width: 90%;
  }

  #submitBtn {
    width: 100%;
  }

  .agreeText {
    font-size: 14px;
  }

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

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

  .fixedBtn img {
    width: 80px;
  }

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

  /* 팝업 모바일 스타일 */
  .popup img {
    max-width: 95%;
    max-height: 60%;
  }

  .popup .button-container {
    width: 95%;
  }

  .popup .todayClose,
  .popup .popupClose {
    padding: 12px 15px;
    font-size: 14px;
  }
}

