:root {
    --primary-color: #0066ff;
    --bg-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --skyblue-bg: #eef5ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-dark); 
    line-height: 1.6; 
}

.container { 
    max-width: 800px; 
    margin: 50px auto; 
    background: #fff; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
}

/* 타이틀 및 스텝 */
.header { text-align: center; margin-bottom: 40px; }
.header h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.step-title { font-weight: 600; font-size: 18px; }

.list-step { display: flex; justify-content: center; list-style: none; gap: 15px; margin-bottom: 30px; }
.list-step li { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
    font-weight: 600; 
    background: #eee; 
    color: #aaa; 
}
.list-step li.now { background: var(--primary-color); color: #fff; }

/* 인포박스 */
.box-info.skyblue { 
    background: var(--skyblue-bg); 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    border-left: 4px solid var(--primary-color); 
}
.box-info p { font-size: 14px; color: #444; }
.box-info strong { color: #000; }

/* 약관 리스트 */
.member__term--list { list-style: none; }
.join_agree_li { padding: 15px 0; border-bottom: 2px solid var(--text-dark); margin-bottom: 20px; }
.join_chk_item { margin-bottom: 25px; }

.chk-box { display: flex; align-items: center; cursor: pointer; margin-bottom: 10px; font-weight: 500; }
.chk-box input { margin-right: 10px; width: 18px; height: 18px; cursor: pointer; }

.primary-color { color: var(--primary-color); margin-right: 5px; }
.optional-color { color: #888; margin-right: 5px; }

.box-scroll { 
    height: 150px; 
    overflow-y: auto; 
    padding: 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    background: #fff; 
    font-size: 13px; 
    color: #555; 
}
.box-scroll table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.box-scroll th, .box-scroll td { border: 1px solid #ddd; padding: 8px; text-align: center; }

/* 버튼 */
.btn-group { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.btn { 
    padding: 15px 40px; 
    border-radius: 6px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    text-decoration: none; 
    transition: 0.2s; 
    border: none; 
}
.btn-outline { background: #fff; border: 1px solid #ccc; color: #666; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn:hover { opacity: 0.9; }

/* 스크롤바 커스텀 */
.box-scroll::-webkit-scrollbar { width: 6px; }
.box-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

:root {
    --primary-color: #0066ff;
    --bg-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --skyblue-bg: #eef5ff;
    --input-focus: #eef5ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Pretendard', 'Noto Sans KR', sans-serif; background-color: var(--bg-color); color: var(--text-dark); line-height: 1.6; }

.container { max-width: 600px; margin: 50px auto; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
/* 약관 페이지일 경우 넓게 사용 */
body:has(.member__term--list) .container { max-width: 800px; }

.header { text-align: center; margin-bottom: 40px; }
.header h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.step-title { font-weight: 600; font-size: 18px; }

.list-step { display: flex; justify-content: center; list-style: none; gap: 15px; margin-bottom: 30px; }
.list-step li { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #eee; color: #aaa; }
.list-step li.now { background: var(--primary-color); color: #fff; }

/* 폼 요소 스타일 */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-group .guide { font-size: 13px; color: var(--text-light); font-weight: normal; margin-left: 5px; }

.input-row { display: flex; gap: 10px; }
input[type="text"], input[type="password"], input[type="email"], input[type="tel"] {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 15px; outline: none; transition: 0.2s;
}
input:focus { border-color: var(--primary-color); background-color: var(--input-focus); }

/* 버튼 스타일 */
.btn { padding: 12px 20px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-check { background: #555; color: #fff; white-space: nowrap; }
.btn-primary { background: var(--primary-color); color: #fff; width: 100%; }
.btn-outline { background: #fff; border: 1px solid #ccc; color: #666; width: 100%; }
.btn-group { display: flex; gap: 10px; margin-top: 30px; }

/* 주소 및 메시지 */
.address-group input { margin-bottom: 10px; }
.msg { font-size: 13px; margin-top: 5px; display: none; }
.msg.error { color: #ff3333; display: block; }
.msg.success { color: var(--primary-color); display: block; }

/* 약관 페이지 전용 */
.box-info.skyblue { background: var(--skyblue-bg); padding: 20px; border-radius: 8px; margin-bottom: 30px; border-left: 4px solid var(--primary-color); }
.box-scroll { height: 150px; overflow-y: auto; padding: 15px; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; font-size: 13px; color: #555; margin-top: 10px; }

/* 메시지 기본 스타일 */
.msg {
    font-size: 13px;
    margin-top: 5px;
    height: 18px; /* 메시지가 없을 때도 높이를 유지해 레이아웃 밀림 방지 */
}

/* 성공/에러 클래스 (필요 시 사용) */
.msg.success {
    color: #28a745;
}

.msg.error {
    color: #dc3545;
}