/* BASIC css start */
/* 회원가입 페이지 공통 */
.join-wrapper { width: 100%; padding-top: 80px; }
.join-content { max-width: 670px; margin: 0 auto; padding-bottom: 120px; }

/* 페이지 타이틀 */
.page-title-wrap { text-align: center; }
.page-title-wrap h2 { padding-top: 20px; font-size: 1.75rem; font-weight: 700; margin-bottom: 20px; }

/* === 가입순서 (3단계) === */
.join-step { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; justify-content: center; padding: 24px 0 40px; text-align: center; list-style: none; margin: 0; }
.join-step li { position: relative; }
.join-step li:not(:last-child)::after { position: absolute; right: -36px; top: 16px; width: 16px; height: 16px; content: ''; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>"); background-repeat: no-repeat; background-position: center; }
.join-step li .icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: #ededed; color: #b5b5b5; transition: all 0.2s; }
.join-step li .icon svg { width: 22px; height: 22px; }
.join-step li p { padding-top: 10px; font-size: 0.875rem; color: #b5b5b5; margin: 0; }
.join-step li.active .icon { background: #111; color: #fff; }
.join-step li.active p { font-weight: 700; color: #111; }

/* === 약관 영역 === */
.form-terms { margin-top: 10px; padding: 0; border: 0; }
.form-terms .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.form-terms input[type="checkbox"],
.form-terms input[type="radio"] { width: 20px; height: 20px; margin: 0; cursor: pointer; accent-color: #111; vertical-align: middle; }
.form-terms label { cursor: pointer; }

/* 약관 본문 임시 컨테이너 (화면 숨김) */
#terms-source, #terms-fallback { display: none; }

/* new_privacy_agree 컨테이너 */
.form-terms #chkwrap { border: 0; background: transparent; padding: 0; }

/* 메이크샵이 출력한 a 태그 강제 숨김 (JS가 못 지운 경우 대비) */
.form-terms #chkwrap .cont ul > li a { display: none !important; }

/* === 1. 전체동의 === */
.form-terms #chkwrap .all-chk {
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
    line-height: normal;
    padding: 0 0 22px 0;
    margin: 0 0 18px 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111;
    border-bottom: 1px solid #111;
}
.form-terms #chkwrap .all-chk label { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.form-terms #chkwrap .all-chk .input-cbox { width: 22px; height: 22px; margin: 0; }

/* === 2. 안내 문구 === */
.form-terms .terms-bullet { list-style: none; padding: 0; margin: 0 0 24px 0; }
.form-terms .terms-bullet li { padding: 2px 0; font-size: 0.813rem; color: #888; line-height: 1.7; }

/* === 3. 개별 약관 항목 === */
.form-terms #chkwrap .cont { padding: 0; }
.form-terms #chkwrap .cont ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0 0 10px 0;
    list-style: none;
    box-sizing: border-box;
}
.form-terms #chkwrap .cont ul::after { display: none; }
.form-terms #chkwrap .cont ul > li {
    position: relative;
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    text-indent: 0;
    font-size: 0.938rem;
    color: #111;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s;
    overflow: hidden;
    box-sizing: border-box;
}
.form-terms #chkwrap .cont ul > li:hover { border-color: #c5c5c5; }
.form-terms #chkwrap .cont ul > li.is-open { border-color: #111; }

/* 항목 헤더 */
.form-terms #chkwrap .cont ul > li > label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 56px 16px 18px;
    margin: 0;
    font-weight: 500;
    box-sizing: border-box;
}

/* 우측 화살표 토글 */
.form-terms #chkwrap .cont ul > li > button.accordion-toggle {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 0;
    color: transparent;
    border: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center;
    background-color: transparent;
    text-decoration: none;
    transition: transform 0.25s, background-color 0.15s;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}
.form-terms #chkwrap .cont ul > li > button.accordion-toggle:hover { background-color: #f5f5f5; }
.form-terms #chkwrap .cont ul > li.is-open > button.accordion-toggle { transform: rotate(180deg); }

/* === 4. 아코디언 펼침 영역 === */
.form-terms #chkwrap .cont ul > li .accordion-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    border-top: 0;
    background: #fafafa;
    transition: max-height 0.35s ease, padding 0.3s ease, border-color 0.3s ease;
}
.form-terms #chkwrap .cont ul > li.is-open .accordion-panel {
    max-height: 2000px;
    padding: 16px 18px 18px;
    border-top: 1px solid #e5e5e5;
    overflow-y: auto;
}

/* 패널 내부 헤딩 */
.form-terms #chkwrap .cont ul > li .accordion-panel h3,
.form-terms #chkwrap .cont ul > li .accordion-panel h4,
.form-terms #chkwrap .cont ul > li .accordion-panel .tit {
    margin: 18px 0 10px;
    padding: 0;
    font-size: 0.938rem;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    text-align: left;
    background: transparent;
    border: 0;
}
.form-terms #chkwrap .cont ul > li .accordion-panel h3:first-child,
.form-terms #chkwrap .cont ul > li .accordion-panel h4:first-child,
.form-terms #chkwrap .cont ul > li .accordion-panel .tit:first-child { margin-top: 0; }

/* 패널 내부 textarea */
.form-terms #chkwrap .cont ul > li .accordion-panel textarea {
    display: block;
    width: 100%;
    min-height: 180px;
    max-height: 220px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    font-size: 0.813rem;
    color: #555;
    box-sizing: border-box;
    resize: none;
    line-height: 1.7;
    margin: 0 0 8px;
    font-family: inherit;
}
.form-terms #chkwrap .cont ul > li .accordion-panel textarea:focus { outline: none; border-color: #999; }
.form-terms #chkwrap .cont ul > li .accordion-panel p { font-size: 0.813rem; color: #555; line-height: 1.7; margin: 6px 0; }

/* 패널 내부 표 */
.form-terms #chkwrap .cont ul > li .accordion-panel table,
.form-terms #chkwrap .cont ul > li .accordion-panel .tbl,
.form-terms #chkwrap .cont ul > li .accordion-panel .cw-tbl table,
.form-terms #chkwrap .cont ul > li .accordion-panel .contract-tbl {
    width: 100%;
    margin: 8px 0 14px;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
}
.form-terms #chkwrap .cont ul > li .accordion-panel table th,
.form-terms #chkwrap .cont ul > li .accordion-panel table td,
.form-terms #chkwrap .cont ul > li .accordion-panel .tbl th,
.form-terms #chkwrap .cont ul > li .accordion-panel .tbl td,
.form-terms #chkwrap .cont ul > li .accordion-panel .cw-tbl th,
.form-terms #chkwrap .cont ul > li .accordion-panel .cw-tbl td,
.form-terms #chkwrap .cont ul > li .accordion-panel .contract-tbl th,
.form-terms #chkwrap .cont ul > li .accordion-panel .contract-tbl td {
    padding: 10px 12px;
    border-top: 1px solid #ececec;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    font-size: 0.813rem;
    font-weight: normal;
    line-height: 1.6;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
    color: #444;
    background: #fff;
    height: auto;
    letter-spacing: normal;
}
.form-terms #chkwrap .cont ul > li .accordion-panel table tr:first-child th,
.form-terms #chkwrap .cont ul > li .accordion-panel table tr:first-child td { border-top: 0; }
.form-terms #chkwrap .cont ul > li .accordion-panel table th,
.form-terms #chkwrap .cont ul > li .accordion-panel .tbl th,
.form-terms #chkwrap .cont ul > li .accordion-panel .cw-tbl th,
.form-terms #chkwrap .cont ul > li .accordion-panel .contract-tbl th {
    background: #f7f7f7;
    color: #111;
    font-weight: 600;
    text-align: center;
}

/* === 마케팅 영역 === */
.form-terms #chkwrap .cont .marketing {
    width: 100%;
    padding: 16px 18px;
    margin: 0 0 10px 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    line-height: 1.7;
    font-size: 0.875rem;
    color: #555;
    box-sizing: border-box;
}
.form-terms #chkwrap .cont .marketing .mk-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    height: auto;
    line-height: normal;
    padding: 0 0 10px;
    margin: 0;
}
.form-terms #chkwrap .cont .marketing .mk-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #111;
    font-size: 0.938rem;
}
.form-terms #chkwrap .cont .marketing .mk-wrap input { margin: 0; }
.form-terms #chkwrap .cont .marketing strong { color: #111; font-weight: 600; }
.form-terms #chkwrap .cont .marketing p { margin: 6px 0; font-size: 0.813rem; color: #555; }

/* === 구버전 약관 === */
.form-terms .join-terms-legacy { padding: 16px 0; }
.form-terms .join-terms-legacy .terms-heading { margin: 24px 0 10px; font-size: 0.938rem; font-weight: 600; color: #111; text-align: left; }
.form-terms .join-terms-legacy .terms-heading:first-child { margin-top: 0; }
.form-terms .join-terms-legacy .privercy-contract { margin-bottom: 10px; }
.form-terms .join-terms-legacy .privercy-contract textarea { width: 100%; height: 150px; padding: 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fafafa; font-size: 0.813rem; color: #555; box-sizing: border-box; resize: none; line-height: 1.6; }
.form-terms .join-terms-legacy .privercy-agree { padding: 10px 0 20px; }
.form-terms .join-terms-legacy .privercy-agree label { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-size: 0.875rem; color: #111; }
.form-terms .join-terms-legacy .privercy-contract-tap { height: auto; margin-bottom: 0; }
.form-terms .join-terms-legacy .privercy-contract-tap ul { display: flex; padding: 0; margin: 0; list-style: none; border-bottom: 1px solid #e5e5e5; }
.form-terms .join-terms-legacy .privercy-contract-tap ul li { flex: 1 1 0; border: 0; padding: 0; background: transparent; }
.form-terms .join-terms-legacy .privercy-contract-tap ul li a { display: block; padding: 10px 8px; font-size: 0.813rem; color: #777; text-align: center; text-decoration: none; border-bottom: 2px solid transparent; position: static; width: auto; height: auto; background: none; transform: none; }
.form-terms .join-terms-legacy .privercy-contract-tap ul li.sel a { color: #111; font-weight: 600; border-bottom-color: #111; }
.form-terms .join-terms-legacy .tab-content { padding: 10px 0; }

/* === 가입 버튼 === */
.btn-join-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 0; }
.btn-join-wrap .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 320px; height: 58px; padding: 0 24px; font-size: 1rem; font-weight: 700; text-decoration: none; border-radius: 6px; box-sizing: border-box; transition: opacity 0.2s; }
.btn-join-wrap .btn:hover { opacity: 0.85; }
.btn-join-wrap .btn-primary { background: #111; color: #fff; border: 1px solid #111; }
.btn-join-wrap .btn-white { background: #fff; color: #111; border: 1px solid #111; }

/* 기존 잔존 코드 무력화 */
#terms .new-btn-area { display: none; }
#terms h4.tit { display: none; }
/* BASIC css end */

