/* 회원가입 공통 */
.signup-wrap {
  max-width: 100%;
  margin: 0 auto;
}

.step-wrap {
  margin-bottom: 60px;
  text-align: center;
}
.step-list {
  display: inline-block;
  overflow: hidden;
  counter-reset: step-counter;
}
.step-list li {
  float: left;
  position: relative;
  margin: 0 40px;
  color: #999;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--head-font);
}
.step-list li .step-num {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #ccc;
  font-family: var(--body-font);
}
.step-list li.on {
  color: #333;
}
.step-list li.on .step-num {
  color: var(--main1);
  font-weight: 700;
}
.step-list li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -50px;
  width: 20px;
  height: 1px;
  background: #ddd;
  transform: translateY(-50%);
}
.step-list li:last-child::after {
  display: none;
}

/* Step 1: 약관동의 */
.terms-wrap {
  margin-top: 36px;
  padding-bottom: 128px;
}

.terms-box {
  margin-bottom: 80px;
}
.terms-box:last-of-type {
  margin-bottom: 24px;
}
.terms-tit {
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #000;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  font-family: var(--head-font);
  line-height: 36px;
}
.terms-txt {
  height: 285px;
  padding: 16px;
  border: none;
  background: #eaeef3;
  border-radius: 2px;
  overflow-y: auto;
  font-size: 18px;
  color: #000;
  line-height: 26px;
  margin-bottom: 24px;
}
.terms-txt::-webkit-scrollbar {
  width: 3px;
}
.terms-txt::-webkit-scrollbar-thumb {
  background: #808080;
  border-radius: 5px;
}
.terms-txt::-webkit-scrollbar-track {
  background: transparent;
}

.terms-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: none;
  margin-bottom: 0;
}
.terms-footer .q-txt {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-bottom: 0;
  line-height: 24px;
  margin-top: 0;
}
.terms-footer .chk-list2 {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.terms-footer .chk-list2 li {
  margin: 0;
  padding: 0;
}

/* Custom radio for terms (30px size, exact Figma SVG match) */
.terms-footer .rdo-st1 input {
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.terms-footer .rdo-st1 label {
  padding-left: 38px;
  line-height: 30px;
  font-size: 16px;
  color: #808080;
}
.terms-footer .rdo-st1 label:before {
  width: 30px;
  height: 30px;
  top: 0;
  border: 1px solid #808080;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 5L5 9L13 1' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
}
.terms-footer .rdo-st1 label:after {
  display: none !important;
}

.terms-footer .rdo-st1 input:checked + label {
  color: #000;
  font-weight: 500;
}
.terms-footer .rdo-st1 input:checked + label:before {
  background: #000
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 5L5 9L13 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  border-color: #000;
}

/* All Checkbox scope */
.terms-all-chk {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 0 0 0;
  border-top: 1px solid #000;
  background: transparent;
  border-radius: 0;
  margin-bottom: 80px;
}

/* Custom checkbox for all terms (30px size, exact Figma SVG match) */
.terms-all-chk .chk-st1 input {
  width: 30px;
  height: 30px;
  top: 0;
  cursor: pointer;
}
.terms-all-chk .chk-st1 label {
  padding-left: 38px;
  line-height: 30px;
  font-size: 16px;
  color: #808080;
  font-weight: 400;
  margin: 0;
}
.terms-all-chk .chk-st1 label::before {
  width: 30px;
  height: 30px;
  top: 0;
  transform: none;
  border: 1px solid #808080;
  border-radius: 2px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 5L5 9L13 1' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
}
.terms-all-chk .chk-st1 label::after {
  display: none !important;
  content: none !important;
}

.terms-all-chk .chk-st1 input:checked + label {
  color: #000;
  font-weight: 500;
}
.terms-all-chk .chk-st1 input:checked + label::before {
  background: #000
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 5L5 9L13 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  border-color: #000;
}
.terms-bottom {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}
.terms-all-chk-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Step 2: 회원유형선택 */
.user-type-list {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}
.user-type-list li {
  width: 330px;
}
.user-type-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 40px 20px;
  border: 1px solid #442c93;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s;
  background: #fff;
}
.user-type-list li a:hover {
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}
.user-type-icon {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  background: var(--gray-f467)
    url("/resource/www/images/sub/img-member-type.png") no-repeat;
  background-size: 520px 130px;
  border-radius: 50%;
}
/* 아이콘 위치 조정 */
.user-type-list li:nth-child(1) .user-type-icon {
  background-position: 0 0;
}
.user-type-list li:nth-child(2) .user-type-icon {
  background-position: -130px 0;
}
.user-type-list li:nth-child(3) .user-type-icon {
  background-position: -260px 0;
}
.user-type-list li:nth-child(4) .user-type-icon {
  background-position: -390px 0;
}

.user-type-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  font-family: var(--head-font);
  margin-bottom: 4px;
}
.user-type-txt {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  font-family: var(--head-font);
}
.user-type-desc {
  font-size: 16px;
  line-height: 24px;
  color: #000;
  word-break: keep-all;
  font-weight: 400;
}

/* Step 3: 정보입력 */
.regist-tit {
  font-size: 24px;
  font-weight: 600;
  font-family: var(--head-font);
  margin-bottom: 15px;
}
.regist-txt {
  text-align: right;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

/* Step 4: 가입완료 */
.complete-wrap {
  padding: 80px 0;
  text-align: center;
}
.complete-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background: url("/resource/www/images/sub/img-member-comp.png") no-repeat
    center center;
}
.complete-tit {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  font-family: var(--head-font);
}
.complete-txt {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 60px;
}

/* 공통 버튼 */
.btn-ce {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.btn-round {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px !important;
  width: 200px;
  height: 60px;
  font-size: 18px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.btn-round.bg-fff {
  border: 1px solid #000;
  color: #000;
  background: #fff;
}
.btn-round.bg-main1 {
  background: #fff;
  color: #442c93;
  border: 1px solid #442c93;
}
.btn-round.bg-main1:hover {
  background: #fdfdfd;
}

.btn-wrap .btn {
  margin: 0 5px;
}

@media only screen and (max-width: 767px) {
  .step-list li {
    margin: 0 15px;
    font-size: 14px;
  }
  .step-list li::after {
    right: -20px;
    width: 10px;
  }
  .user-type-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .user-type-list li {
    width: 100%;
    max-width: none;
  }
  .user-type-list li a {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .user-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 0 15px 0;
    flex-shrink: 0;
    background-size: 320px 80px;
  }
  .user-type-list li:nth-child(1) .user-type-icon {
    background-position: 0 0;
  }
  .user-type-list li:nth-child(2) .user-type-icon {
    background-position: -80px 0;
  }
  .user-type-list li:nth-child(3) .user-type-icon {
    background-position: -160px 0;
  }
  .user-type-list li:nth-child(4) .user-type-icon {
    background-position: -240px 0;
  }
  .user-type-label {
    font-size: 16px;
    margin-bottom: 2px;
  }
  .user-type-txt {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .user-type-desc {
    font-size: 14px;
    line-height: 20px;
  }
}
