/* BASIC css start */
/* =========================================================
   미니어몰 회원가입 공통 스타일 (.mj 안에서만 적용됨)
   ========================================================= */
.mj, .mj * { box-sizing: border-box; }
.mj {
  --ink: #1f2a30; --sub: #66737a; --mute: #9aa5ab; --line: #e3e8ea; --field: #d3dcdf;
  --soft: #f4f8f9; --brand: #a9ced7; --brand-deep: #3d7686; --danger: #d4473b;
  width: 100%; max-width: 520px; margin: 56px auto 110px; padding: 0 20px;
  color: var(--ink); font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 14px; line-height: 1.6; letter-spacing: -0.02em; word-break: keep-all; text-align: left;
}
.mj.mj-wide { max-width: 640px; }
.mj img { max-width: 100%; height: auto; }
.mj legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mj fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mj ul, .mj ol, .mj dl, .mj dd { margin: 0; padding: 0; list-style: none; }

/* 단계 표시 */
.mj .mj-steps { display: flex; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: mj; }
.mj-steps li { flex: 1; position: relative; padding-top: 32px; text-align: center; font-size: 12px; color: var(--mute); counter-increment: mj; }
.mj-steps li:before { content: counter(mj); position: absolute; top: 0; left: 50%; z-index: 2; width: 24px; height: 24px; margin-left: -12px; line-height: 22px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 11px; font-weight: 700; color: var(--mute); }
.mj-steps li:after { content: ""; position: absolute; top: 12px; left: -50%; z-index: 1; width: 100%; height: 1px; background: var(--line); }
.mj-steps li:first-child:after { display: none; }
.mj-steps li.done:before { content: "\2713"; background: var(--brand); border-color: var(--brand); color: #fff; }
.mj-steps li.done:after, .mj-steps li.on:after { background: var(--brand); }
.mj-steps li.on { color: var(--ink); font-weight: 700; }
.mj-steps li.on:before { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 제목 */
.mj-head { margin-bottom: 32px; }
.mj .mj-title { margin: 0; padding: 0; border: 0; font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -0.04em; color: var(--ink); }
.mj-desc { margin: 8px 0 0; color: var(--sub); font-size: 14px; }

/* 섹션 · 입력 항목 */
.mj-section { margin-top: 40px; }
.mj-section:first-child { margin-top: 0; }
.mj .mj-section-title { margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--ink); font-size: 16px; font-weight: 700; color: var(--ink); }
.mj-section-desc { margin: 10px 0 0; color: var(--sub); font-size: 13px; }
.mj-field { display: block; margin-top: 20px; }
.mj-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mj-opt { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--mute); }
.mj-help { margin: 7px 0 0; font-size: 12px; line-height: 1.5; color: var(--sub); }
.mj-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mj-row + .mj-row, .mj-stack > * + * { margin-top: 8px; }
.mj .mj-row > input, .mj .mj-row > select { flex: 1 1 72px; min-width: 0; width: auto !important; }
.mj .mj-row > select { flex-basis: 96px; }
.mj .mj-row > .mj-input { flex: 1 1 160px; }

.mj input[type=text], .mj input[type=password], .mj input[type=tel], .mj input[type=email], .mj input[type=number], .mj select {
  height: 48px; max-width: 100%; margin: 0; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px;
  background-color: #fff; font-family: inherit; font-size: 14px; color: var(--ink); vertical-align: middle;
  opacity: 1 !important; transition: border-color .15s, box-shadow .15s;
}
.mj .txt-input { position: static !important; opacity: 1 !important; }
.mj .mj-input { width: 100% !important; }
.mj select { padding-right: 36px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366737a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.mj input[type=text]:focus, .mj input[type=password]:focus, .mj input[type=tel]:focus, .mj input[type=email]:focus, .mj select:focus, .mj textarea:focus {
  outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(169, 206, 215, .5);
}
.mj input[readonly] { background-color: var(--soft); }
.mj input[type=radio], .mj input[type=checkbox] { width: 18px; height: 18px; margin: 0 7px 0 0; vertical-align: middle; accent-color: var(--brand-deep); cursor: pointer; }
.mj-choice { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.mj-choice label, .mj-check { display: inline-flex; align-items: center; cursor: pointer; font-size: 14px; }
.mj-etc input[type=text], .mj-etc textarea, .mj-etc select { width: 100% !important; }

/* 버튼 */
.mj .mj-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 18px;
  border: 1px solid #c3ced2; border-radius: 8px; background: #fff; color: var(--ink) !important;
  font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.mj .mj-btn:hover { border-color: var(--ink); background: var(--soft); }
.mj .mj-btn-primary { border-color: var(--ink); background: var(--ink); color: #fff !important; }
.mj .mj-btn-primary:hover { background: #34464f; border-color: #34464f; }
.mj .mj-btn-lg { height: 56px; border-radius: 10px; font-size: 16px; }
.mj .mj-btn-sub { flex: 0 0 auto; }
.mj a:focus-visible, .mj input:focus-visible, .mj summary:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.mj-actions { display: flex; gap: 10px; margin-top: 40px; }
.mj-actions .mj-btn { flex: 1; }
.mj-actions .mj-btn-primary { flex: 2; }

/* 약관 */
.mj-terms-all { display: flex; align-items: center; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; }
.mj-terms-all input[type=checkbox] { width: 22px; height: 22px; margin-right: 10px; }
.mj-terms-all + .mj-help { margin: 8px 2px 0; }
.mj-terms { margin-top: 8px; }
.mj-terms h3, .mj-terms h4, .mj-terms-tit { margin: 32px 0 10px; padding: 0; border: 0; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; }
.mj-terms h3.w-normal { font-weight: 400; }
.mj textarea { display: block; width: 100% !important; height: 150px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--soft); color: var(--sub); font-family: inherit; font-size: 12px; line-height: 1.7; white-space: pre-wrap; resize: vertical; }
.mj .privercy-contract { margin: 0; }
.mj .privercy-agree, .mj .privercy-chk { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; text-align: left; }
.mj .privercy-agree label, .mj .privercy-chk label { display: inline-flex; align-items: center; color: var(--ink); cursor: pointer; }
.mj .privercy-contract-tap { height: auto; margin-bottom: 8px; }
.mj .privercy-contract-tap ul { display: flex; flex-wrap: wrap; gap: 6px; }
.mj .privercy-contract-tap li a { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--sub); }
.mj .privercy-contract-tap li.sel a { border-color: var(--ink); color: var(--ink); font-weight: 700; }

/* 쇼핑몰이 자동으로 넣는 동의 표 */
.mj-tbl-wrap { margin-top: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; color: var(--sub); }
.mj-tbl-wrap table { width: 100%; min-width: 420px; margin: 8px 0 4px; border: 0 !important; border-collapse: collapse; border-spacing: 0; table-layout: auto !important; font-size: 12px; }
.mj-tbl-wrap caption { display: none; }
.mj-tbl-wrap th, .mj-tbl-wrap td { height: auto !important; padding: 11px 8px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  background: none !important; color: var(--ink); text-align: left !important; vertical-align: middle; line-height: 1.5 !important; letter-spacing: -0.02em; width: auto !important; }
.mj-tbl-wrap th { color: var(--sub) !important; font-weight: 700; background: var(--soft) !important; }
.mj-tbl-wrap th:last-child, .mj-tbl-wrap td:last-child { text-align: center !important; white-space: nowrap; }
.mj-tbl-wrap td input[type=checkbox] { margin: 0; }
.mj-tbl-wrap h3, .mj-tbl-wrap h4 { margin: 24px 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); }

/* 기업회원 등에서 쓰는 동의 요약 박스 */
.mj #chkwrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mj #chkwrap .all-chk { height: auto; padding: 16px 18px; border-bottom: 1px solid var(--line); line-height: 1.5; font-size: 15px; font-weight: 700; }
.mj #chkwrap .cont ul { display: grid; gap: 10px; width: auto !important; padding: 16px 18px !important; }
.mj #chkwrap .cont ul li { float: none; width: auto !important; line-height: 1.5; }
.mj #chkwrap .cont ul li a { width: auto !important; height: auto; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; line-height: 1.6; background: #fff; }
.mj #chkwrap .cont .marketing { padding: 12px 18px; border-top: 1px solid var(--line); }
.mj #chkwrap .cont .marketing .mk-wrap { height: auto; line-height: 1.8; }

/* 만 14세 확인 */
.mj-age { margin-top: 24px; padding: 14px 16px; border-radius: 8px; background: var(--soft); }

@media (max-width: 480px) {
  .mj { margin-top: 32px; padding: 0 16px; }
  .mj .mj-title { font-size: 22px; }
  .mj-steps li { font-size: 11px; }
  .mj-actions { flex-direction: column-reverse; }
  .mj-actions .mj-btn, .mj-actions .mj-btn-primary { flex: none; width: 100%; }
}

/* BASIC css end */

