@charset "utf-8";

/* ============================================================
   jj_member — 회원 스킨 공통 CSS v6 (통합 버전)
   ─ 모든 입력폼은 상자(border, border-radius, padding) 형태로 통일
   ─ register_form.skin.php 포함 모든 회원 스킨 호환
   ============================================================ */

/* ── 0. 리셋 & 공통 ─────────────────────────────────────── */
.jj_mb, .jj_pop_wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Noto Sans', sans-serif;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    line-height: 1.6;
}
.jj_mb *, .jj_pop_wrap * { box-sizing: border-box; }

/* ── 1. 페이지 래퍼 ─────────────────────────────────────── */
.jj_mb {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 16px 40px;
}
.jj_mb_narrow { max-width: 560px; margin: 0 auto; }
.jj_mb_wide   { max-width: 100%; }

/* ── 1-1. 팝업/독립 래퍼 (새창 전용) ──────────────────── */
.jj_pop_wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    padding: 0;
}
.jj_pop_wrap .jj_pop_body {
    flex: 1;
    padding: 20px 20px 24px;
}
.jj_pop_wrap .jj_pop_foot {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* ── 2. 페이지 타이틀 ───────────────────────────────────── */
.jj_page_head {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #222;
}
.jj_page_head h1 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.jj_page_head h1 i { color: var(--brand, #2c5f8a); font-size: 18px; }
.jj_page_head p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ── 2-1. 팝업 헤더 ─────────────────────────────────────── */
.jj_pop_head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}
.jj_pop_head h1 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0;
    flex: 1;
}
.jj_pop_head i { color: var(--brand, #2c5f8a); font-size: 18px; }
.jj_pop_head .win_total {
    font-size: 13px;
    color: #aaa;
}

/* ── 2-2. 팝업 탭 ───────────────────────────────────────── */
.jj_pop_tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}
.jj_pop_tabs a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}
.jj_pop_tabs a:hover { color: var(--brand, #2c5f8a); }
.jj_pop_tabs li.selected a,
.jj_pop_tabs a.selected {
    color: var(--brand, #2c5f8a);
    border-bottom-color: var(--brand, #2c5f8a);
}

/* ── 3. 섹션 블록 ───────────────────────────────────────── */
.jj_section {
    margin-bottom: 28px;
    border-top: 2px solid #333;
}
.jj_section_head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand, #2c5f8a);
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 16px;
}
.jj_section_head i { font-size: 14px; }

/* ── 4. 폼 행 & 입력 (상자 스타일) ───────────────────────── */
.jj_row { margin-bottom: 18px; }
.jj_row_half {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
}
.jj_row_half + .jj_row_half { margin-left: 14px; }

/* 레이블 */
.jj_label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}
.jj_label i { color: var(--brand, #2c5f8a); font-size: 13px; }
.jj_req { color: #c0392b; font-size: 12px; font-weight: 700; margin-left: 2px; }
.jj_hint { font-size: 12px; color: #aaa; font-weight: 400; margin-left: 4px; }

/* ★ 입력폼 (상자 스타일) - 모든 입력 필드 통일 ★ */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea,
.jj_input,
.frm_input,
.register .frm_input,
.register_form_inner .frm_input,
.form_01 .frm_input,
.jj_mb .frm_input,
.jj_mb #fregisterform .frm_input {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #222 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    height: auto !important;
    margin: 0 !important;
}
input:focus,
select:focus,
textarea:focus,
.jj_input:focus,
.frm_input:focus {
    outline: none !important;
    border-color: var(--brand, #2c5f8a) !important;
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.1) !important;
}
input::placeholder,
textarea::placeholder {
    color: #bbb !important;
    font-size: 14px !important;
}
input[readonly],
textarea[readonly] {
    background: #f5f5f5 !important;
    color: #888 !important;
}

/* textarea 높이 */
textarea,
textarea.jj_input,
.register textarea.frm_input {
    min-height: 110px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

/* 셀렉트 박스 화살표 커스텀 */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

/* 메시지 */
.jj_msg {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    line-height: 1.4;
}
.jj_msg.ok  { color: #27ae60; }
.jj_msg.err { color: #c0392b; }

/* ── 5. 인라인 버튼 (주소검색 등) ──────────────────────── */
.jj_btn_inline,
a.btn_frmline,
button.btn_frmline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--brand, #2c5f8a);
    border-radius: 8px;
    color: var(--brand, #2c5f8a);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}
.jj_btn_inline:hover,
a.btn_frmline:hover,
button.btn_frmline:hover { background: var(--brand, #2c5f8a); color: #fff; }

/* ── 6. 주 버튼 / 보조 버튼 ────────────────────────────── */
.jj_btn_primary,
button.btn_submit,
input[type=submit].btn_submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: var(--brand, #2c5f8a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.jj_btn_primary:hover,
button.btn_submit:hover { background: var(--brand-d, #1e4266) !important; }
.jj_btn_primary:disabled { background: #bbb !important; cursor: not-allowed !important; }

.jj_btn_secondary,
a.btn_close,
button.btn_close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: #fff !important;
    color: #666 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}
.jj_btn_secondary:hover,
a.btn_close:hover { border-color: var(--brand, #2c5f8a) !important; color: var(--brand, #2c5f8a) !important; }

/* 버튼 행 */
.jj_btn_row,
.register .btn_confirm {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 28px !important;
    padding-top: 16px !important;
    border-top: 1px solid #eee !important;
    float: none !important;
    text-align: right !important;
}
.register .btn_confirm::after { display: none !important; }
.register .btn_confirm .btn_submit,
.register .btn_confirm .btn_close {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

/* ── 7. 체크박스 ────────────────────────────────────────── */
.jj_mb .selec_chk,
.register .selec_chk,
input[type="checkbox"].selec_chk {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}
.jj_mb .selec_chk:checked,
.register .selec_chk:checked {
    border-color: var(--brand, #2c5f8a) !important;
    background: var(--brand, #2c5f8a) !important;
}
.jj_mb .selec_chk:checked::after,
.register .selec_chk:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 1px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}
.jj_mb .chk_box,
.register .chk_box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.jj_agree_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}
.jj_agree_all_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 16px 0;
    font-weight: 600;
    cursor: pointer;
}

/* ── 8. 본인인증 버튼 ───────────────────────────────────── */
.jj_cert_row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}
.jj_cert_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--brand, #2c5f8a);
    border-radius: 8px;
    color: var(--brand, #2c5f8a);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.jj_cert_btn:hover { background: var(--brand, #2c5f8a); color: #fff; }
.cert_req { font-size: 13px; color: #c0392b; font-weight: 700; }
#msg_certify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 12px;
    border-left: 3px solid #27ae60;
    background: #f0faf4;
    border-radius: 8px;
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

/* ── 9. 약관 동의 영역 ──────────────────────────────────── */
.jj_terms_section {
    border-top: 2px solid #333;
    margin-bottom: 20px;
}
.jj_terms_section_head {
    padding: 14px 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #eee;
    margin-bottom: 14px;
}
.jj_terms_section_head i { color: var(--brand, #2c5f8a); margin-right: 6px; }
.jj_terms_textarea {
    width: 100%;
    height: 130px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    color: #666;
    resize: none;
    line-height: 1.7;
    margin-bottom: 12px;
}
.jj_terms_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 14px;
}
.jj_terms_table thead th {
    background: #f5f5f5;
    padding: 9px 12px;
    font-weight: 700;
    border: 1px solid #e8e8e8;
    text-align: center;
}
.jj_terms_table tbody td {
    padding: 9px 12px;
    border: 1px solid #eee;
    color: #555;
}

/* ── 10. 캡차 ───────────────────────────────────────────── */
.jj_captcha_row,
.register .is_captcha_use {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}
.jj_captcha_row #captcha,
.register #captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.jj_captcha_row #captcha_key,
.register #captcha_key {
    width: 120px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}
.jj_captcha_row #captcha_img,
.register #captcha_img {
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.jj_captcha_row #captcha_reload,
.jj_captcha_row #captcha_mp3 {
    background: #f5f5f5;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

/* ── 11. 안내 박스 ──────────────────────────────────────── */
.jj_info_box {
    padding: 14px 16px;
    border-left: 3px solid var(--brand, #2c5f8a);
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}
.jj_info_box strong { color: var(--brand, #2c5f8a); display: block; margin-bottom: 4px; }

/* 아이디 표시 */
.jj_id_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f5f5;
    border-left: 3px solid var(--brand, #2c5f8a);
    border-radius: 8px;
    margin-bottom: 18px;
}
.jj_id_badge span { color: #aaa; }
.jj_id_badge strong { color: var(--brand, #2c5f8a); font-weight: 700; }

/* ── 12. 소셜 로그인 ────────────────────────────────────── */
.jj_social_divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 12px;
    color: #bbb;
}
.jj_social_divider::before,
.jj_social_divider::after { content: ""; flex: 1; height: 1px; background: #eee; }

.jj_social_row { display: flex; gap: 10px; }
.jj_social_btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.jj_social_btn:hover { opacity: 0.85; }
.jj_social_btn.naver { background: #03C75A; color: #fff; }
.jj_social_btn.kakao { background: #FEE500; color: #3C1E1E; }
.jj_social_icon {
    width: 22px; height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

/* 하단 링크 */
.jj_link_row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.jj_link_row a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.jj_link_row a:hover { color: var(--brand, #2c5f8a); }

/* ── 13. 비밀번호 2열 레이아웃 (register_form) ─────────── */
.register .form_01 .half_input {
    width: calc(50% - 8px) !important;
    display: inline-block !important;
    vertical-align: top !important;
}
.register .form_01 .left_input.margin_input {
    margin-right: 14px !important;
}

/* register_form_inner 초기화 */
.jj_mb .register_form_inner,
.jj_mb .form_01 .register_form_inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.jj_mb .register_form_inner ul { padding: 0 !important; }
.jj_mb .register_form_inner li { margin-bottom: 18px !important; list-style: none; }
.jj_mb .register_form_inner li:last-child { margin-bottom: 0 !important; }

/* ── 14. 툴팁 ────────────────────────────────────────────── */
.tooltip_icon {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 2px;
    color: #ccc;
    font-size: 13px;
}
.tooltip_icon:hover { color: var(--brand, #2c5f8a); }
.tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 200;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--brand, #2c5f8a);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* ── 15. 포인트, 쪽지, 스크랩 리스트 ────────────────────── */
.jj_point_list, .jj_memo_list, .jj_scrap_list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.jj_point_item, .jj_memo_item, .jj_scrap_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.jj_point_item:last-child, .jj_memo_item:last-child, .jj_scrap_item:last-child {
    border-bottom: none;
}
.jj_point_amount.plus { color: #27ae60; }
.jj_point_amount.minus { color: #c0392b; }

/* 쪽지 보기 */
.jj_memo_view_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}
.jj_memo_view_avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #bbb;
}
.jj_memo_body {
    padding: 20px 0;
    font-size: 14px;
    line-height: 1.85;
    color: #444;
    min-height: 150px;
}

/* 프로필 */
.jj_profile_card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
}
.jj_profile_avatar_lg {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #ccc;
    overflow: hidden;
    margin: -40px auto 0;
}
.jj_profile_name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 12px 0 4px;
}
.jj_profile_table {
    width: 100%;
    padding: 16px;
}
.jj_profile_table_row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.jj_profile_table_label {
    width: 90px;
    font-weight: 600;
    color: #888;
}
.jj_profile_table_value {
    flex: 1;
    color: #555;
}

/* 가입결과 */
.jj_result_wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}
.jj_result_icon { font-size: 52px; color: var(--brand, #2c5f8a); margin-bottom: 20px; }
.jj_result_title { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 12px; }
.jj_result_title strong { color: var(--brand, #2c5f8a); }
.jj_result_desc { font-size: 14px; color: #999; line-height: 1.8; margin-bottom: 20px; }
.jj_result_box {
    display: inline-block;
    text-align: left;
    padding: 14px 22px;
    border: 1px solid #e8e8e8;
    border-left: 3px solid var(--brand, #2c5f8a);
    border-radius: 12px;
    background: #f8fbff;
    margin-bottom: 24px;
}

/* 빈 상태 */
.jj_empty {
    text-align: center;
    padding: 48px 20px;
    color: #bbb;
}
.jj_empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: #e0e0e0;
}

/* ── 16. 모바일 반응형 ───────────────────────────────────── */
@media (max-width: 767px) {
    .jj_mb { padding: 16px 16px 32px; }
    .jj_pop_wrap .jj_pop_body { padding: 16px 16px 20px; }
    .jj_pop_head { padding: 12px 16px; }
    .jj_btn_primary, .jj_btn_secondary { padding: 12px 18px; }
    .register .form_01 .half_input { width: 100% !important; display: block !important; margin-left: 0 !important; margin-right: 0 !important; }
    .jj_captcha_row { flex-direction: column; align-items: flex-start; }
    .jj_row_half { width: 100%; display: block; margin-left: 0 !important; }
    .jj_btn_row, .register .btn_confirm { flex-direction: column; }
    .jj_btn_row button, .jj_btn_row a,
    .register .btn_confirm .btn_submit,
    .register .btn_confirm .btn_close { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .jj_mb { padding: 12px 12px 24px; }
    .jj_pop_wrap .jj_pop_body { padding: 12px 12px 16px; }
    .jj_social_btn { font-size: 13px !important; }
    .jj_social_row { gap: 6px !important; }
    .jj_pop_tabs a { padding: 8px 12px; font-size: 12px; }
    .jj_page_head h1 { font-size: 18px; }
}