/* --------------------------------------
   join
-------------------------------------- */
#join { 
    width: 100%; 
    min-height: 100vh; 
    background-color: #ffffff; 
    padding-bottom: 50px; 
    box-sizing: border-box; 
    font-family: 'Pretendard', sans-serif; 
    position: relative;
}

#join .wrap { 
    width: 100%; 
    max-width: 450px;
    margin: 0 auto; 
    padding: 110px 20px 0; 
    box-sizing: border-box; 
}

#join .back-bt { 
    position: absolute; 
    top: 25px; 
    left: 20px; 
    width: 24px; 
    cursor: pointer; 
    z-index: 10; 
}
#join .back-bt img { width: 100%; }

#join h1 { 
    width: 180px; 
    margin: 0 auto 40px; 
    text-align: center; 
}
#join h1 img { width: 100%; display: block; }

#join .number-recevie { margin-bottom: 30px; }
#join .number-recevie input[type="button"] {
    width: 100%; 
    height: 54px; 
    background: #1a3952; 
    border: none; 
    border-radius: 27px; 
    font-size: 16px; 
    font-weight: 600; 
    color: #ffffff; 
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(26, 57, 82, 0.2); 
    transition: all 0.2s ease-in-out;
}
#join .number-recevie input[type="button"]:active { 
    transform: scale(0.96) translateY(2px); 
    box-shadow: 0 2px 5px rgba(26, 57, 82, 0.2);
}

#join ul { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}
#join ul li { 
    display: flex; 
    align-items: center; 
    position: relative;
    width: 100%; 
    height: 52px; 
    padding: 0 15px; 
    background-color: #f4f6f8; 
    border-radius: 14px;
    border: 2px solid transparent; 
    box-sizing: border-box; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
#join ul li:focus-within { 
    background-color: #ffffff;
    border-color: #1a3952;
    box-shadow: 0 6px 16px rgba(26, 57, 82, 0.08);
    transform: translateY(-3px); 
}

#join ul li label { 
    width: 90px; 
    font-size: 14px; 
    font-weight: 600; 
    color: #555555; 
	white-space: nowrap;    
    flex-shrink: 0;           
    word-break: keep-all;
}
#join ul li input { 
    flex: 1; 
    height: 100%; 
    background: transparent; 
    border: 0; 
    color: #222222; 
    font-size: 15px; 
    outline: none; 
	min-width: 0;           
    box-sizing: border-box;  
}
#join input::placeholder { color: #b0b8c1; font-weight: 400; }

/* ★ 재미 요소: 필수 입력 빨간 별표가 숨 쉬듯 콩콩 뜀 */
#join ul li span { 
    color: #ff4757; 
    font-size: 16px; 
    font-weight: bold; 
    margin-left: 4px; 
    animation: bounce 2s infinite; 
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 3. 우편번호 검색 버튼 (인풋 박스 안에 귀엽게 쏙!) */
#join ul li #found { 
    position: absolute; 
    right: 6px; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: #222222; 
    color: #ffffff; 
    border: none; 
    border-radius: 10px; /* 동글동글한 작은 버튼 */
    padding: 7px 14px; 
    font-size: 12px; 
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#join ul li #found:hover { background-color: #444444; }


/* 4. 인증번호 입력창 (기본 숨김) */
#join .citation { 
    display: none; 
    position: relative;
    width: 100%; 
    height: 52px;
    margin-bottom: 30px; 
}
#join .citation input { 
    width: 100%; height: 100%; 
    background: #f4f6f8; border-radius: 14px; border: 2px solid transparent;
    padding: 0 80px 0 15px; box-sizing: border-box; outline: none; font-size: 15px;
}
#join .citation input:focus { background: #fff; border-color: #1a3952; }
#join .citation #number-ckeck { 
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); 
    background-color: #1a3952; color: #fff; border: none; border-radius: 10px; 
    padding: 7px 14px; font-size: 14px; font-weight: 600;
}

#join div.terms { 
    width: 100%; 
    margin: 35px 0 30px; 
    background: #f8f9fa; 
    padding: 20px; 
    border-radius: 16px;
    box-sizing: border-box;
}
#join div.terms div { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
}
#join div.terms div:last-child { margin-bottom: 0; }

#join div.terms input[type="checkbox"] { 
    width: 22px; 
    height: 22px; 
    margin-right: 10px; 
    accent-color: #1a3952; 
    cursor: pointer;
}

#join div.terms label { 
    flex: 1; 
    font-weight: 500;
    font-size: 14px;
    color: #444444;
    cursor: pointer; 
    margin: 0; 
    padding: 0;
    background: transparent;
}

#join div.terms a { 
    color: #666666; 
    background: #e9ecef; 
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none; 
    font-size: 12px; 
}

#join input[type="submit"]:not(.ss-btn) {
    width: 100%; 
    height: 56px; 
    background: var(--point_color);
    border: none; 
    border-radius: 28px; 
    font-size: 16px; 
    font-weight: bold; 
    color: #ffffff; 
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(26, 57, 82, 0.25); 
    transition: all 0.2s;
}
#join input[type="submit"]:not(.ss-btn):active { 
    transform: translateY(3px) scale(0.97); 
    box-shadow: 0 3px 10px rgba(26, 57, 82, 0.2); 
}
/* ==========================================================
   우편번호 검색 팝업 (모바일 최적화 반응형 팝업 스타일)
   ========================================================== */

#join .addr_pop {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    height: auto !important;      
    max-height: 85vh !important;   /
    z-index: 99999;
    background: #ffffff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    flex-direction: column;
}

#join .addr_pop[style*="display: block"] {
    display: flex !important;
}

#join .addr_pop .addr_close {
    text-align: right;
    padding-bottom: 10px;
    flex-shrink: 0;
}
#join .addr_pop .addr_close img {
    width: 24px;
    cursor: pointer;
}

/* 내부 알맹이 박스도 높이 고정 풀기 */
#join .addr_pop #addr_pop_wrap {
    border: none;
    width: 100%;
    height: 450px !important;    
    min-height: 350px !important;
    overflow: hidden;
    border-radius: 8px;
}

/* 1. 우편번호 감싸는 div를 li 영역 전체로 확장 및 수직 중앙 정렬 */
#join ul li.address > div {
    flex: 1;
    height: 100%;
    align-items: center; /* 내부 input과 버튼 수직 중앙 정렬 */
    min-width: 0; /* 좁은 화면에서 줄 밖으로 넘치지 않게(390px 에서 438px 로 넘쳤다) */
}
#join ul li.address > div > input { width: 0; } /* 너비는 flex 가 정한다 */
#join ul li.otp_later_row { height: auto; padding: 0 4px; margin-top: -6px; background: transparent; justify-content: flex-end; }
#join ul li.otp_later_row:focus-within { box-shadow: none; transform: none; border-color: transparent; }
#join ul li.otp_later_row button { background: none; border: 0; padding: 0; color: #666666; font-size: 13px; text-decoration: underline; cursor: pointer; }
/* 기본주소 — 긴 주소가 잘리지 않게 여러 줄(읽기 전용 textarea, 높이는 sub/join.php search_post 가 내용에 맞춘다) */
#join ul li.addr_multi { height: auto; min-height: 52px; padding: 13px 15px; align-items: flex-start; }
#join ul li.addr_multi label { line-height: 22px; }
#join ul li.addr_multi textarea { flex: 1; min-width: 0; height: 22px; padding: 0; margin: 0; border: 0; background: transparent; color: #222222; font-size: 15px; line-height: 22px; font-family: inherit; resize: none; overflow: hidden; outline: none; cursor: pointer; word-break: keep-all; overflow-wrap: anywhere; }
#join ul li.addr_multi textarea::placeholder { color: #b0b8c1; font-weight: 400; }
/* 추천인 혜택 안내(칸 아래 도움말) */
#join ul li.help_row { height: auto; padding: 0 4px; margin-top: -6px; background: transparent; color: #666666; font-size: 13px; line-height: 1.5; word-break: keep-all; }

/* 2. input 태그 세로 정렬 기준 유지 */
#join ul li.address input {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 3. 검색 버튼 디자인 및 우측 밀착 */
#join ul li.address .btn_zipcode {
    margin-left: auto; /* 버튼을 우측 끝으로 배치 */
    background-color: #222222;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}


/* 전체 페이지 배경 및 기본 레이아웃 */
#terms {
    width: 100%;
    min-height: 100dvh; 
    background-color: #ffffff;
    padding: 90px 20px 60px; 
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}
#terms .wrap h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #111111;
    letter-spacing: -0.5px;
}
/* 본문 내용을 감싸는 박스 */
#terms .wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    color: #333333;
    font-size: 15px;
    line-height: 1.9;
    word-break: keep-all;
}

#terms .wrap p{line-height: 1.6 !important;}
