/* ========================================
   회원가입 페이지 스타일
   ======================================== */
/* 환영 메시지 */
.welcome-message {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-message .join-message{
  font-size: 14px;
  text-align:left;
  letter-spacing: -0.7px;
  line-height: 1.6;
}

.welcome-message .join-message a {
    color: #b4b4b4;
}

.welcome-message p {
    color: #b4b4b4;
    font-size: 18px;
    letter-spacing: -0.9px;
    line-height: 1.5;
    margin: 0 0 8px 0;
}


.welcome-message p:last-child {
    margin-bottom: 0px;
    margin-top: 40px;
}

   .join-progress {
        position: absolute;
        top: 5px;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 40px;
        font-size: 14px;
        color: #B4B4B4;
    }

.welcome-message .msg1{
  margin: 40px 0 0  0;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -1px;
  color: #fff;
  line-height: 2.5;
}

.welcome-message .msg1 span{
  font-weight: 600;
  color: #8F83FF;
}

.welcome-message p.msg2{
  margin-top: 0;
  font-size: 18px;
  color: #B4B4B4;
  font-weight: 300;
  line-height: 1;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 16px;
    color: #EBEBEB;
    opacity: 0.4;
    vertical-align: middle;
    font-family: 'mbcnew-medium';
}

.progress-step .progress-step-num{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color:#000;background: #B4B4B4;display: inline-block;text-align: center;line-height: 20px;font-size: 13px;font-weight: 700;margin-right: 5px;
}

.progress-step.active {
    opacity: 1;
}

.progress-arrow img {
    margin: 0 5px;
    vertical-align: middle;
}

.terms-section {
    margin-top: 60px;
}

.terms-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    position: relative;
    margin-right: 12px;
}

.custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: #0D0D0D;
    cursor: pointer;
    vertical-align: middle;
    /* 스크린 리더를 위한 접근성 */
    box-sizing: border-box;
}

.custom-checkbox:checked + .checkbox-label {
    border-radius: 2px;
    background: #D2D2D2 url(../images/ico_checkbox.svg) no-repeat center center;
    background-size: 16px;
    border: 1px solid #D2D2D2;
}

/* CSS 포커스 스타일 제거 - JavaScript로 제어 */

.terms-title {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    font-family: 'mbcnew-medium';
}
.terms-title strong{font-weight: 500;font-size:20px;color:#fff;margin-right: 10px;font-family: 'mbcnew-medium';}
.terms-title span{color:#8F83FF;margin-right: 6px;font-family: 'mbcnew-medium';}
.terms-title p{color:#B4B4B4;font-size:16px;display: inline-block;}
.view-all-btn {
    background: none;
    border: none;
    color: #B4B4B4;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 10px;
}
.terms-content {
    width: 100%;
    height: 260px;
    overflow-y: auto;
    max-width: 1440px;
    margin-top: 8px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #0D0D0D;
    color: #b4b4b4;
    resize: none;
    font-family: inherit;
    line-height: 1.6;
    word-break: keep-all;
}

.terms-content h4, .terms-content strong, .terms-content p {
    display: block;
    color: #b4b4b4;
    font-size: 14px;
    line-height: 1.4;
}

.terms-content h4 {
    margin-bottom: 15px;
}

.terms-content strong {
    margin-bottom: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-content p:not(:last-of-type) {
    margin-bottom: 25px;
}

.terms-content:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.terms-content table {
    margin: 40px 0;
    width: 100%;
}

.terms-content table th {
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid #4d4d4d;
    border-bottom: 1px solid #4d4d4d;
    color: #b4b4b4;
    font-family: 'mbcnew-medium';
    font-size: 14px;
    text-align: center;
    line-height: 42px;
}

.terms-content table th:not(:last-of-type) {
    border-right: 1px solid #4d4d4d;
}

.terms-content table td {
    padding: 16px 0;
    border-bottom: 1px solid #4d4d4d;
    text-align: center;
    color: #b4b4b4;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: middle;
}

.terms-content table td:not(:last-of-type) {
    border-right: 1px solid #4d4d4d;
}

/* 스크롤바 스타일링 */
.terms-content::-webkit-scrollbar {
    width: 14px; 
    padding: 0 3px;
}
.terms-content::-webkit-scrollbar-thumb {
    background: #787878;
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 8px;
}

.all-agree-section {
    display: flex;
    background: #262626;
    height: 80px;
    justify-content: center;
    align-items: center;
}

.all-agree-section .terms-title {
    font-size: 16px;
    color: #B4B4B4;
    font-family: 'mbcnew-light';
}
/* 폼 컨테이너 */
.member-regist-form {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 필수 입력 안내 */
.required-notice {
    margin-left: 8px;
    display: inline-block;
    color: #B4B4B4;
    font-size: 16px;
    font-family: 'mbcnew-light';
}
.required-notice span{color: #FF4141;}
/* 테이블 스타일 */
.regist-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}
.regist-table tr{border-top: 1px solid #4D4D4D;}
.regist-table tr:last-child{border-bottom: 1px solid #4D4D4D;}
.regist-table th {
    width: 220px;
    padding: 0 24px;
    line-height: 58px;
    text-align: left;
    vertical-align: top;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'mbcnew-light';
    letter-spacing: -0.8px;
    background: #262626;
}
.regist-table th span{color: #FF4141;}
.regist-table td {
    width: 1220px;
    padding: 12px 24px;
    vertical-align: top;
}

/* 입력 필드 기본 스타일 */
.regist-table input[type="text"],
.regist-table input[type="password"],
.regist-table input[type="email"],
.regist-table input[type="tel"],
.regist-table select {
    width: 480px;
    height: 34px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: #0D0D0D;
    color: #fff;
    font-size: 16px;
    font-family: 'mbcnew-light';
    letter-spacing: -0.8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.file-selected{padding-right: 37px !important;}
.regist-table input::placeholder {
    color: #B4B4B4;
    font-family: 'mbcnew-light';
}

.regist-table input:focus,
.regist-table select:focus {
    outline: none;
    border-color: #fff;
    background-color: #0D0D0D;
}

/* 자동완성 배경색 유지 */
.regist-table input:-webkit-autofill,
.regist-table input:-webkit-autofill:hover,
.regist-table input:-webkit-autofill:focus,
.regist-table input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0D0D0D inset !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #0D0D0D !important;
    background: #0D0D0D !important;
    font-size: 16px !important;
    font-family: 'mbcnew-light' !important;
    letter-spacing: -0.8px !important;
}

/* 셀렉트박스 스타일 */
.regist-table select {
    background: #0D0D0D url(../images/ico_select.svg) no-repeat 97% center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #B4B4B4;
}

.regist-table select:focus {
    color: #fff;
}

.regist-table select option {
    background: #0D0D0D;
    color: #fff;
    padding: 10px;
}

.regist-table select option:first-child {
    color: #B4B4B4;
}

/* 셀렉트박스 스크롤바 스타일 */
.regist-table select::-webkit-scrollbar {
    width: 6px;
}

.regist-table select::-webkit-scrollbar-track {
    background: #0D0D0D;
}

.regist-table select::-webkit-scrollbar-thumb {
    background: #787878;
    border-radius: 3px;
}

.regist-table select::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox 스크롤바 스타일링 */
.regist-table select {
    scrollbar-width: thin;
    scrollbar-color: #787878 #0D0D0D;
}



/* 파일 선택 텍스트 */
.file-upload-box{margin-top: 12px;display: flex;align-items: center;}

.file-display {
    display: flex;
    align-items: center;
    position: relative;
}

.file-selected {
    display: inline-block;
    width: 480px;
    font-size: 16px;
    color: #B4B4B4 !important;
    height: 34px;
    line-height: 34px;
    padding: 0 40px 0 16px; /* 오른쪽 패딩을 늘려서 삭제 버튼 공간 확보 */
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: #0D0D0D;
    font-family: 'mbcnew-light';
}

.file-delete-btn {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.file-delete-btn:hover {
    opacity: 0.8;
}

.file-delete-btn img {
    width: 16px;
    height: 16px;
}

/* 확인 버튼 */
.check-btn {
    height: 34px;
    background: #EBEBEB;
    color: #000;
    padding: 7px 17px;
    font-size: 16px;
    font-family: 'mbcnew-medium';
    margin-left: 10px;
}

/* 주소 입력 필드 */
.address-input {
    width: 960px !important;
    margin-bottom: 8px;
}

#detailAddress {
    margin: 0;
}

/* 전화번호 입력 필드 */
.phone-input {
    width: 160px !important;
}

.phone-separator {
    color: #fff;
    font-size: 16px;
    margin: 0 8px;
    font-family: 'mbcnew-light';
}

/* 이메일 입력 필드 */
.email-input {
    width: 224px !important;
}

.email-at {
    color: #fff;
    font-size: 16px;
    margin: 0 8px;
    font-family: 'mbcnew-light';
}

.email-domain {
    width: 224px !important;
}
.error-message {
    margin-top: 12px;
    color: #FF4141;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

/* 설명 텍스트 */
.explanation-text {
    display: inline-block;
    margin-left: 10px;
    color: #fff;
    font-size: 13px;
    font-family: 'mbcnew-light';
    line-height: 1.4;
}
.explanation-text2{
  display: block;
  margin-top: 10px;
  color: #B4B4B4;
  font-size: 13px;
  font-family: 'mbcnew-light';
  line-height: 1.4;
}
/* 섹션 제목 */
.section-title {
    margin-bottom: 24px;
    color: #fff;
    font-size: 20px;
    font-family: 'mbcnew-medium';
    letter-spacing: -1px;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* 뒤로 버튼 */
.prev-btn {
    display: flex;
    margin-right: 16px;
    align-items: center;
    width: 192px;
    height: 48px;
    padding: 15px 51px;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    text-align: center;
    border: none;
    border-radius: 6px;
    background: rgb(60, 60, 60);
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
    font-family: 'mbcnew-medium';
}

/*.prev-btn:hover {
    background: rgb(80, 80, 80);
}*/

.ico-arr-l {
    width: 9px;
    height: 14px;
    display: inline-block;
    background: url(../images/ico_btn_l_on.svg) no-repeat center center;
    background-size: 100% 100%;
    margin-right: 8px;
}

/* 다음 버튼 */
.next-btn {
    display: flex;
    width: 192px;
    height: 48px;
    padding: 15px 51px;
    justify-content: center;
    align-items: center;
    color: #787878;
    text-align: center;
    border: none;
    border-radius: 6px;
    background: rgb(60, 60, 60);
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: normal;
    font-size: 18px;
    font-family: 'mbcnew-medium';
}

.next-btn.active {
    color: rgb(255, 255, 255);
    background: rgb(103, 6, 211);
    cursor: pointer;
}

.next-btn:not(.active) {
    background: rgb(60, 60, 60);
    color: rgb(120, 120, 120);
}

/*.next-btn.active:hover {
    background: rgb(123, 26, 231);
}*/
/* ========================================
   확인 버튼
   ======================================== */

.submit-btn {
    display: block;
    margin: 0 auto;
    width: 192px;
    height: 48px;
    border-radius: 4px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #787878;
    background:#3C3C3C;
    outline-offset: 2px;
}

.submit-btn.active {
    color: rgb(255, 255, 255);
    background: rgb(103, 6, 211);
    cursor: pointer;
}

.submit-btn:not(.active) {
    background: rgb(60, 60, 60);
    color: rgb(120, 120, 120);
}
.ico-arr-r {
    margin-left: 5px;
    width: 9px;
    height: 14px;
    display: inline-block;
    background: url(../images/ico_btn_r.svg) no-repeat center center;
    background-size: 100% 100%;
    font-weight: 300;
}

.next-btn.active .ico-arr-r {
    background: url(../images/ico_btn_r_on.svg) no-repeat center center;
    background-size: 100% 100%;
}

/* 이메일 인증번호 관련 스타일 */
.verification-code-box {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verification-label {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    font-family: 'mbcnew-light';
    min-width: 66px;
}

.verification-input {
    width: 160px !important;
}
.email-error-message, .email-confirm, #countdown-message {
    margin-top: 12px;
    color: #FF4141;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.6px;
    display: block;
    width: 100%;
    flex-basis: 100%;
}
.email-confirm{color: #8F83FF !important;}

/* 팝업 배경 */
.user-popup{
    overflow: hidden;
    height: 662px;
    background: #262626;
}

/* 팝업 제목 */
.user-popup .popup-tit {
    width: 540px;
    padding: 40px 30px 0;
    color: #fff;
    font-size: 24px;
    font-family: 'mbcnew-bold';
    letter-spacing: -1.2px;
}

/* 로그인 컨테이너 */
.user-container {
    width: 540px;
    padding: 0 60px;
    position: relative;
}

.user-popup .regist-table{display: flex;margin-bottom: 80px;flex-wrap: wrap;}
.user-popup .regist-table label{display:inline-block;width: 60px;text-align: left;color: #fff;line-height: 32px;}
.user-popup .regist-table .input-wrapper input{width: 360px;height: 32px;}
.user-popup .error-message{flex-basis: 100%;margin-left: 60px;}

.join-done{text-align: center;}
.join-done-message{margin-bottom: 40px;}
.join-done-message img:first-child{margin-bottom:24px;}
.join-done-message img{margin-bottom: 16px;}
.join-done-message p{font-size: 24px;font-family: 'mbcnew-light';color: #fff;}
.join-done-message p:last-child{color: #B4B4B4;margin-top: 32px;font-size: 16px;line-height: 1.6;}
.btn-home{margin-top: 40px;}
.btn-home a{display: inline-block;width: 240px;height: 48px;padding-right: 10px;line-height: 48px;border-radius: 100px;color: #F0F0F0;font-size: 16px;font-family: 'mbcnew-light';background: #3C3C3C url(../images/ico_arr_r.svg) 75% center no-repeat;}