/* =========================================================
   회원가입 · 회원정보 수정 (register / register_form / register_result)
   ========================================================= */
.ekr{--b:#135bb5;--bd:#0d4791;--bs:#eaf2fc;--ink:#111827;--tx:#4b5563;--mu:#7b8491;--ln:#e2e6ec;--sf:#f5f7fa;--red:#d33;max-width:760px;margin:0 auto;padding:10px 0 40px;font-family:Pretendard,"Noto Sans KR",-apple-system,"Apple SD Gothic Neo",sans-serif;word-break:keep-all;color:var(--tx)}
.ekr *{box-sizing:border-box}
.ekr h1,.ekr h2,.ekr p{margin:0;padding:0;border:0;background:none}

/* 머리말 · 단계 */
.ekr-top{margin-bottom:26px;text-align:center}
.ekr-kick{display:inline-flex;align-items:center;gap:7px;margin-bottom:10px!important;font-size:12.5px;font-weight:800;letter-spacing:1px;color:var(--b)}
.ekr-kick:before{content:"";width:6px;height:6px;border-radius:1px;background:var(--b)}
.ekr-title{font-size:32px;font-weight:800;line-height:1.3;letter-spacing:-.8px;color:var(--ink)}
.ekr-title b{color:var(--b)}
.ekr-lead{max-width:560px;margin:10px auto 0!important;font-size:15.5px;line-height:1.7;color:var(--mu)}
.ekr-steps{display:flex;justify-content:center;align-items:center;gap:6px;margin:24px 0 0;padding:0;list-style:none}
.ekr-steps li{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#a1a9b4}
.ekr-steps li+li:before{content:"";width:34px;height:1px;margin:0 4px;background:#cfd5dd}
.ekr-steps span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e4e8ee;font-size:13px;font-weight:800;color:#fff}
.ekr-steps svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ekr-steps .is-done{color:var(--tx)}
.ekr-steps .is-done span{background:#9db7da}
.ekr-steps .is-on{color:var(--ink)}
.ekr-steps .is-on span{background:var(--b);box-shadow:0 0 0 5px rgba(19,91,181,.14)}

/* 카드 */
.ekr-card{margin-bottom:14px;padding:30px 32px;border:1px solid var(--ln);border-radius:22px;background:#fff}
.ekr-h{display:flex;align-items:center;gap:8px;margin-bottom:22px!important;padding-bottom:14px!important;border-bottom:1px solid var(--ln)!important;font-size:18px;font-weight:800;color:var(--ink)}
.ekr-h small{padding:2px 8px;border-radius:6px;background:var(--sf);font-size:12px;font-weight:700;color:var(--mu)}
.ekr-sub{margin:-8px 0 16px!important;font-size:14px;line-height:1.7;color:var(--mu)}

/* 체크박스 공통 */
.ekr-chk,.ekr-all{position:relative;display:inline-flex;align-items:flex-start;gap:12px;cursor:pointer}
.ekr-chk input,.ekr-all input,.ekr-tg input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.ekr-box{flex:none;width:22px;height:22px;margin-top:1px;border:1.5px solid #c3cbd6;border-radius:7px;background:#fff center/13px no-repeat;transition:all .15s}
input:checked+.ekr-box{border-color:var(--b);background-color:var(--b);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
input:focus-visible+.ekr-box{box-shadow:0 0 0 3px rgba(19,91,181,.25)}
.ekr-chk.is-s{gap:7px;font-size:13.5px}
.ekr-chk.is-s .ekr-box{width:18px;height:18px}

/* 약관 동의 */
.ekr-agree{padding:10px 32px 14px}
.ekr-all{display:flex;padding:22px 0 20px;border-bottom:1px solid var(--ln)}
.ekr-all .ekr-box{width:26px;height:26px;border-radius:8px;margin-top:0}
.ekr-all-tx b{display:block;font-size:18px;font-weight:800;color:var(--ink)}
.ekr-all-tx small{display:block;margin-top:3px;font-size:13.5px;color:var(--mu)}
.ekr-item{border-bottom:1px solid var(--ln);transition:background .2s}
.ekr-item:last-child{border-bottom:0}
.ekr-item.is-err{background:#fff5f5;box-shadow:inset 3px 0 0 var(--red)}
.ekr-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0}
.ekr-row .ekr-chk{font-size:15.5px;font-weight:600;color:var(--ink);line-height:1.45}
.ekr-row em{display:inline-block;margin-right:8px;padding:2px 7px;border-radius:5px;background:var(--sf);font-style:normal;font-size:12px;font-weight:800;color:var(--mu);vertical-align:1px}
.ekr-row em.is-req{background:var(--bs);color:var(--b)}
.ekr-more{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--ln);border-radius:999px;background:#fff;font-size:13px;font-weight:700;color:var(--tx);cursor:pointer}
.ekr-more:after{content:"";width:6px;height:6px;margin-top:-3px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.ekr-item.is-open .ekr-more:after{margin-top:3px;transform:rotate(225deg)}
.ekr-more:hover{border-color:var(--b);color:var(--b)}
.ekr-doc{margin:0 0 18px 34px}
.ekr-doc[hidden]{display:none}
.ekr-doc-tx{max-height:260px;overflow-y:auto;padding:18px 20px;border-radius:14px;background:var(--sf);font-size:13.5px;line-height:1.8;color:var(--tx)}
.ekr-doc-p{padding:16px 18px;border-radius:14px;background:var(--sf);font-size:14px;line-height:1.75;color:var(--tx)}
.ekr-doc-link{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:13.5px;font-weight:700;color:var(--b)!important;text-decoration:none}
.ekr-doc-link:after{content:"";width:6px;height:6px;border-top:1.6px solid currentColor;border-right:1.6px solid currentColor;transform:rotate(45deg)}
.ekr-tbl{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--ln);border-radius:14px;overflow:hidden;font-size:13.5px;line-height:1.6}
.ekr-tbl th,.ekr-tbl td{padding:12px 14px;border-bottom:1px solid var(--ln);text-align:left;vertical-align:top;color:var(--tx)}
.ekr-tbl thead th{background:var(--sf);font-size:13px;font-weight:800;color:var(--ink)}
.ekr-tbl tbody th{width:64px;font-weight:800;color:var(--ink);white-space:nowrap}
.ekr-tbl td b{color:var(--b);font-weight:800}
.ekr-tbl tbody tr:last-child th,.ekr-tbl tbody tr:last-child td,.ekr-tbl td[rowspan]{border-bottom:0}
.ekr-tbl td+td{border-left:1px solid var(--ln)}
.ekr-tbl th+td{border-left:1px solid var(--ln)}
.ekr-notes{margin:12px 0 0;padding:0;list-style:none}
.ekr-notes li{position:relative;padding-left:12px;font-size:13px;line-height:1.75;color:var(--mu)}
.ekr-notes li:before{content:"";position:absolute;left:2px;top:.75em;width:4px;height:4px;border-radius:50%;background:#b6bdc7}

/* 입력 */
.ekr-f{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px 20px;align-items:start;padding:12px 0}
.ekr-f>label{padding-top:13px;font-size:14.5px;font-weight:700;color:var(--ink)}
.ekr-star{margin-left:3px;color:var(--b);font-weight:800}
.ekr-in{display:flex;flex-direction:column;gap:8px;min-width:0}
.ekr .frm_input,.ekr input[type=text],.ekr input[type=email],.ekr input[type=tel],.ekr input[type=password]{display:block;width:100%!important;height:50px!important;padding:0 16px!important;border:1px solid #d5dbe3!important;border-radius:12px!important;background:#fff!important;font-family:inherit;font-size:16px!important;color:var(--ink)!important;outline:0;box-shadow:none!important;transition:border-color .2s,box-shadow .2s!important;-webkit-appearance:none;appearance:none}
.ekr .frm_input::placeholder{color:#a5adb8}
.ekr .frm_input:focus{border-color:var(--b)!important;box-shadow:0 0 0 3px rgba(19,91,181,.14)!important}
.ekr .frm_input[readonly]{background:#f3f5f8!important;color:var(--tx)!important}
.ekr .frm_input.required{background-image:none!important}
.ekr textarea{width:100%;min-height:110px;padding:14px 16px;border:1px solid #d5dbe3;border-radius:12px;font-family:inherit;font-size:15px;color:var(--ink);outline:0}
.ekr textarea:focus{border-color:var(--b)}
.ekr input[type=file]{font-size:14px}
.ekr-line{display:flex;gap:8px;align-items:center}
.ekr-line .frm_input{flex:1;min-width:0}
.ekr-addr .ekr-zip{flex:0 0 150px!important;width:150px!important}
.ekr-sbtn{flex:none;height:50px;padding:0 18px;border:1px solid var(--ink);border-radius:12px;background:var(--ink);font-family:inherit;font-size:14.5px;font-weight:700;color:#fff;cursor:pointer;white-space:nowrap}
.ekr-sbtn:hover{background:#000}
.ekr-pw{position:relative}
.ekr-pw .frm_input{padding-right:50px!important}
.ekr-eye{position:absolute;right:6px;top:5px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:none;color:#a1a9b4;cursor:pointer}
.ekr-eye svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.ekr-eye.is-on{color:var(--b)}
.ekr-hint{font-size:13px;line-height:1.6;color:var(--mu)}
.ekr-hint.is-ok{color:var(--b)}
.ekr-hint a{font-weight:700;color:var(--b)!important}
.ekr-msg:empty{display:none}
.ekr-msg{font-size:13px;font-weight:600;color:var(--b)}
.ekr-msg.is-bad{color:var(--red)}
.ekr-thumb{width:48px;height:48px;border-radius:10px;object-fit:cover}

/* 수신 동의 토글 */
.ekr-toggles{display:flex;flex-wrap:wrap;gap:10px}
.ekr-tg{position:relative;display:flex;align-items:center;gap:12px;flex:1 1 220px;padding:16px 18px;border:1px solid var(--ln);border-radius:14px;background:#fff;font-size:15px;color:var(--tx);cursor:pointer;transition:border-color .2s,background .2s}
.ekr-tg b{font-weight:800;color:var(--ink)}
.ekr-tg-sw{position:relative;flex:none;width:44px;height:26px;border-radius:999px;background:#d5dbe3;transition:background .2s}
.ekr-tg-sw:after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.ekr-tg input:checked+.ekr-tg-sw{background:var(--b)}
.ekr-tg input:checked+.ekr-tg-sw:after{transform:translateX(18px)}
.ekr-tg:has(input:checked){border-color:#b9cfee;background:var(--bs)}
.ekr-tg input:focus-visible+.ekr-tg-sw{box-shadow:0 0 0 3px rgba(19,91,181,.25)}
.ekr-social{margin-top:16px}

/* 자동등록방지 */
.ekr-captcha #captcha{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ekr-captcha #captcha legend{display:none}
.ekr-captcha #captcha_key{width:160px!important;height:46px!important;border:1px solid #d5dbe3!important;border-radius:10px!important;padding:0 12px!important;font-size:16px!important}
.ekr-captcha #captcha_info{width:100%;font-size:13px;color:var(--mu)}

/* 버튼 */
.ekr-btns{display:flex;gap:10px;margin-top:24px}
.ekr-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;height:58px;border:1px solid var(--ln);border-radius:14px;background:#fff;font-family:inherit;font-size:16.5px;font-weight:700;color:var(--ink)!important;text-decoration:none!important;cursor:pointer;transition:background .2s,border-color .2s}
.ekr-btn:hover{border-color:#c3cbd6}
.ekr-btn.is-main{flex:2;border-color:var(--b);background:var(--b);color:#fff!important}
.ekr-btn.is-main:hover{background:var(--bd);border-color:var(--bd)}
.ekr-btn[disabled]{opacity:.6;cursor:default}
.ekr-leave{margin-top:18px!important;text-align:center;font-size:13px}
.ekr-leave a{color:var(--mu)!important;text-decoration:underline}

/* 가입 완료 */
.ekr-done{padding:44px 32px 40px;text-align:center}
.ekr-done-ic{display:inline-grid;place-items:center;width:76px;height:76px;margin-bottom:18px;border-radius:50%;background:var(--bs)}
.ekr-done-ic svg{width:44px;height:44px;fill:none;stroke:var(--b);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ekr-done .ekr-title{font-size:28px}
.ekr-info{display:inline-grid;gap:6px;margin:20px auto 12px;padding:16px 22px;border-radius:14px;background:var(--sf);text-align:left}
.ekr-info div{display:flex;gap:16px;font-size:14.5px}
.ekr-info dt{width:56px;color:var(--mu)}
.ekr-info dd{margin:0;font-weight:700;color:var(--ink)}
.ekr-next{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ekr-next a{display:flex;flex-direction:column;gap:4px;padding:20px 22px;border:1px solid var(--ln);border-radius:18px;background:#fff;text-decoration:none!important;transition:border-color .2s,transform .2s}
.ekr-next a:hover{border-color:var(--b);transform:translateY(-2px)}
.ekr-next b{font-size:16px;font-weight:800;color:var(--ink)}
.ekr-next span{font-size:13.5px;color:var(--mu)}

/* 모바일 */
@media (max-width:767px){
  .ekr{padding:0 0 24px}
  .ekr-top{margin-bottom:20px}
  .ekr-title{font-size:25px}
  .ekr-lead{font-size:14.5px}
  .ekr-steps{gap:4px;margin-top:18px}
  .ekr-steps li{gap:6px;font-size:12.5px}
  .ekr-steps li+li:before{width:14px;margin:0 2px}
  .ekr-steps span{width:24px;height:24px;font-size:12px}
  .ekr-card{padding:22px 18px;border-radius:18px}
  .ekr-agree{padding:4px 18px 8px}
  .ekr-all{padding:18px 0 16px}
  .ekr-all-tx b{font-size:16.5px}
  .ekr-row{align-items:flex-start;padding:14px 0}
  .ekr-row .ekr-chk{font-size:14.5px}
  .ekr-more{height:30px;padding:0 10px;font-size:12.5px}
  .ekr-doc{margin-left:0}
  .ekr-tbl thead{display:none}
  .ekr-tbl,.ekr-tbl tbody,.ekr-tbl tr,.ekr-tbl th,.ekr-tbl td{display:block;width:auto}
  .ekr-tbl tr{padding:12px 14px;border-bottom:1px solid var(--ln)}
  .ekr-tbl tr:last-child{border-bottom:0}
  .ekr-tbl th,.ekr-tbl td{padding:3px 0;border:0!important}
  .ekr-tbl tbody th{width:auto;margin-bottom:4px;color:var(--b)}
  .ekr-f{grid-template-columns:1fr;gap:7px;padding:9px 0}
  .ekr-f>label{padding-top:0;font-size:14px}
  .ekr-addr .ekr-zip{flex:1 1 auto!important;width:auto!important}
  .ekr-sbtn{padding:0 14px;font-size:14px}
  .ekr-line{flex-wrap:wrap}
  .ekr-line .ekr-sbtn{flex:1 0 auto}
  .ekr-addr .ekr-line{flex-wrap:nowrap}
  .ekr-addr .ekr-line .ekr-sbtn{flex:none}
  .ekr-btns{position:sticky;bottom:0;z-index:5;margin:20px -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--ln)}
  .ekr-btn{height:52px;font-size:15.5px}
  .ekr-done{padding:32px 20px}
  .ekr-done .ekr-title{font-size:22px}
  .ekr-next{grid-template-columns:1fr}
}
.ekr-done-ic{display:grid!important;margin:0 auto 18px!important}
.ekr-done .ekr-kick{display:flex;justify-content:center}
.ekr-confirm{max-width:560px}
