@charset "utf-8";
@import url(../style/font.css);

* {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
*,
:after,
:before {
  box-sizing: border-box;
  flex-shrink: 0;
}
:root {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  cursor: default;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  tab-size: 4;
}
html,
body {
  height: 100%;
}
section {
  width: 100%;
}
.iframe-form {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
iframe {
  border: 0;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  text-decoration: none;
  color: inherit;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
ul,
ol {
  list-style: none;
}

/* 추가 */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-thumb {
  background-color: #585e8a4c;
  border-radius: 10px;
  background-clip: padding-box;
  border: 2px solid transparent;
}
/* 스크롤 */

.s__container {
  height: inherit;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.s__row {
  padding: 0 16px;
}

:root {
  --black: #181818;
  --main: #5b9db6;
  --border: #eeeff1;
  --gray: #ccd0d8;
  --gray2: #aeb4c0;
  --background: #f7f8fa;
  --bg: #f6f8fa;
}
body {
  /* font-family: "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, sans-serif; */
  font-family: "Pretendard", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--black);
}

/* input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.s__input::placeholder {
  color: var(--gray);
}
/* select */
.s__select {
  -webkit-appearance: none; /* for chrome */
  -moz-appearance: none; /*for firefox*/
  appearance: none;
  background: url(../image/icon_down_arrow.svg) no-repeat 95% 50%/18px auto;
  background-color: #fff;
  padding: 12px 54px 12px 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-size: 16px;
  min-height: 50px;
  margin: 2px;
}
.s__select::-ms-expand {
  display: none; /*for IE10,11*/
}

/* button */
.s__btn {
  margin: 2px;
  text-wrap: nowrap;
  font-size: 16px;
  padding: 6px 20px 4px;
  border-radius: 4px;
  transition: filter 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.s__btn img {
  width: 24px;
  margin-bottom: 2px;
}
.s__btn-img-left {
  margin-right: 4px;
}
.s__btn-img-right {
  margin-left: 4px;
}
.s__btn-sm {
  font-size: 14px;
  padding: 4px 12px;
  height: 30px;
}
.s__btn-lg {
  font-size: 18px;
  padding: 10px 20px;
  height: 48px;
}
.s__btn-main {
  color: #fff;
  background-color: var(--main);
}
.s__btn-red {
  color: #fff;
  background-color: #dc3545;
}
.s__btn-line {
  border: 1px solid var(--border);
}
.s__btn:disabled {
  opacity: 0.2;
  pointer-events: none;
}
.s__btn-line:hover {
  background-color: #fefefe;
}
.s__btn:hover {
  filter: brightness(0.9);
}
.s__btn:active {
  filter: brightness(0.8);
}
.s__btn-wrap {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.s__btn-left-wrap {
  justify-content: flex-start;
}
.s__btn-center-wrap {
  justify-content: center;
}
.s__btn-right-wrap {
  justify-content: flex-end;
}
.s__btn-between-wrap {
  justify-content: space-between;
}
.s__btn-between-wrap > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.s__btn-row-wrap {
  flex-direction: column;
  align-items: stretch;
}

/* 약관 */
.terms_wrap {
  font-size: 16px;
  color: #555;
}
.terms_wrap .title:first-child {
  margin-top: 0;
}
#p_trems_txt2 table {
  border: 1px solid #bcbcbc;
  padding: 4px;
  width: 100%;
}
.terms_wrap table {
  font-size: 14px;
  margin: 10px 0;
}
legend,
caption {
  position: absolute;
  left: -10000px;
  width: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
}
#p_trems_txt2 table tr {
  border: 1px solid #bcbcbc;
  padding: 4px;
}
#p_trems_txt2 table th {
  border: 1px solid #bcbcbc;
  padding: 4px;
  width: 110px;
}
#p_trems_txt2 table td {
  border: 1px solid #bcbcbc;
  padding: 4px;
}
.s__checkbox-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.s__checkbox {
  display: flex;
  align-items: center;
}
.s__checkbox + .s__checkbox {
  margin-left: 16px;
}
.s__checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0 none;
}
.s__checkbox input:focus-visible ~ label {
  outline: 2px solid var(--black);
}
.s__checkbox input + label {
  height: 24px;
  display: block;
  background: url(../image/icon_checkbox_off.svg) no-repeat;
  background-size: contain;
  cursor: pointer;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  padding-left: 32px;
  border-radius: 4px;
  line-height: 24px;
}
.s__checkbox input + label > span {
  font-size: 12px;
  color: #ccd0d8;
}
.s__checkbox input:disabled + label {
  background: url(../image/icon_checkbox_off_disabled.svg) no-repeat;
  background-size: contain;
}
.s__checkbox input:checked + label {
  background: url(../image/icon_checkbox_on.svg) no-repeat;
  background-size: contain;
}
.s__checkbox input:checked:disabled + label {
  background: url(../image/icon_checkbox_on_disabled.svg) no-repeat;
  background-size: contain;
}
.checkbox-li-more {
  color: #ccd0d8;
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  width: 25px;
}
.contents-data03 .input-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.input-list li.checkbox-li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 44px;
}
.email-wrap {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
}
.email-wrap p {
  color: var(--gray01, #848a89);
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}
.email-wrap .s__input {
  min-width: 50px !important;
}
.loading-wrap {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding-top: 50dvh;
  background-color: rgba(255, 255, 255, 1);
  z-index: 999;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transform: translateY(-50%);
}
.loading-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  width: 100%;
}
.loading-text p {
  color: #848a89;
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 22.4px */
}
.loading-data {
  border-radius: 100px;
  border: 1px solid var(--border, #eeeff1);
  background: var(--bg, #f7f8fa);
  display: flex;
  padding: 16px 32px;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.loading-data p {
  color: var(--black, #181818);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}
.loading-data strong {
  font-weight: 700;
}
.loading-data strong.num {
  color: var(--main, #5b9db6);
}
.loading > img:not(.complete) {
  animation: fadeInOut 2s infinite linear;
}
@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* 2. 로딩 상태의 텍스트 애니메이션 */
/* 기본적으로 .loading-text (일반 텍스트) 내부 p 태그에 애니메이션 부여 */
.loading-text:not(.completed) p {
  opacity: 0;
  width: 100%;
  position: absolute;
  animation: slideText 4s infinite;
}
/* 첫 번째 텍스트: 즉시 실행, 두 번째 텍스트: 2초 후 실행 */
.loading-text p:nth-child(1) {
  animation-delay: 0s;
}
.loading-text p:nth-child(2) {
  animation-delay: 2s;
}
@keyframes slideText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* 초기 상태에서는 로딩완료용 텍스트와 데이터 숨기기 */
.loading-text.completed,
.loading-data {
  display: none;
}

/* 3. 로딩완료 상태 (complete 클래스 추가 시) */
.loading-wrap.complete .loading-text:not(.completed) {
  /* 기존 로딩 텍스트 숨김 */
  display: none;
}
.loading-wrap.complete .loading-text.completed,
.loading-wrap.complete .loading-data {
  /* 완료 상태 요소는 block으로 보이게 함 */
  display: flex;
}

/* 완료 상태용 텍스트 애니메이션 (아래에서 위로 등장) */
.loading-wrap.complete .loading-text.completed p {
  opacity: 0;
  animation: slideInUp 0.8s forwards;
}
.loading-wrap.complete .loading-text.completed p:nth-child(1) {
  animation-delay: 0s;
}
.loading-wrap.complete .loading-text.completed p:nth-child(2) {
  animation-delay: 0.5s;
}
.loading-wrap.complete .loading-text.completed p:nth-child(3) {
  animation-delay: 1s;
}

/* 완료 상태용 데이터 애니메이션 */
.loading-wrap.complete .loading-data {
  opacity: 0;
  animation: slideInUp 0.8s forwards;
  animation-delay: 1.5s;
}

/* slideInUp 애니메이션: 아래에서 위로 슬며시 등장 */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* PC (해상도 1024px)*/
@media all and (min-width: 1024px) {
}
/* 테블릿 가로, 테블릿 세로 (해상도 768px ~ 1023px)*/
@media all and (max-width: 1023px) {
}
/* 모바일 가로, 모바일 세로 (해상도 480px ~ 767px)*/
@media all and (max-width: 767px) {
  .s__btn-wrap {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .s__btn-between-wrap > div {
    flex-direction: column;
    align-items: stretch;
  }
  .loading-wrap {
    width:100%;
    position:fixed;
  }
}
