/* ---------------------------------------------------------------------------
 * Form_MemberBaseInfo.xfdl 변환본 — 회원가입 기본정보입력 모달 + reference 스타일.
 *
 * 원본 시각: 800×325 모달. 상단 안내 + 본문 (ID + @ + 도메인 입력 + 콤보 + 중복확인 / PW /
 * PW 확인 / 이름) + 하단 "다음단계로" / "취소".
 * --------------------------------------------------------------------------- */

#member-base-info-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}
#member-base-info-modal.is-open {
  display: flex;
}

#member-base-info-modal .layer-wrap {
  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#member-base-info-modal .layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #2c4368;
  color: #ffffff;
  flex-shrink: 0;
}
#member-base-info-modal .layer-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
#member-base-info-modal .layer-close {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: 3px;
}
#member-base-info-modal .layer-close:hover { background: rgba(255, 255, 255, 0.18); }

#member-base-info-modal .layer-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
}

/* 원본 div_topInfo 의 안내 띠 */
#member-base-info-modal .info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #eceefa;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #2c4368;
}
#member-base-info-modal .info-banner::before {
  content: '⚠';
  font-size: 14px;
}

/* 폼 row — 라벨 + 입력 그룹 */
#member-base-info-modal .form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
#member-base-info-modal .form-row .form-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 13px;
  color: #1f2a44;
  font-weight: 600;
}
#member-base-info-modal .form-row .form-label::before {
  content: '•';
  color: #d12020;
  margin-right: 4px;
}
#member-base-info-modal .form-row .form-input {
  flex: 1 1 auto;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
#member-base-info-modal .form-row .form-input:focus { border-color: #4f6b96; }
#member-base-info-modal .form-row .form-input:disabled {
  background: #f5f6f8;
  color: #6d7280;
}
#member-base-info-modal .form-row .id-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
}
/* 한 줄에 ID + @ + 도메인 + 콤보 + 중복확인 버튼이 들어가는 행. 640px 모달에서 슬랙이 0이면
   마지막 버튼이 우측으로 넘치므로, 고정폭을 낮추고 수축(flex:0 1)·명시적 min-width 로 넘침 방지. */
#member-base-info-modal .form-row .id-group .id-input { width: 100px; flex: 0 1 100px; min-width: 76px; }
#member-base-info-modal .form-row .id-group .at-sign { flex: 0 0 auto; color: #6d7280; font-weight: 600; }
#member-base-info-modal .form-row .id-group .email-input { flex: 1 1 auto; min-width: 64px; }
#member-base-info-modal .form-row .id-group .email-combo {
  flex: 0 1 124px;
  min-width: 96px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
}
#member-base-info-modal .form-row .id-group .dup-check-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #4f6b96;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
#member-base-info-modal .form-row .id-group .dup-check-btn:hover { background: #3d5a85; }
#member-base-info-modal .form-row .id-group .dup-check-btn:disabled {
  background: #8b95a8;
  cursor: not-allowed;
}
#member-base-info-modal .dup-status {
  font-size: 11px;
  margin-left: 108px;
  margin-top: -4px;
  margin-bottom: 8px;
  min-height: 16px;
}
#member-base-info-modal .dup-status.is-ok { color: #2c4368; }
#member-base-info-modal .dup-status.is-fail { color: #d12020; }

#member-base-info-modal .layer-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
  flex-shrink: 0;
}
#member-base-info-modal .layer-footer button {
  height: 34px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#member-base-info-modal .btn-next {
  background: #2c4368;
  color: #ffffff;
}
#member-base-info-modal .btn-next:hover { background: #1f2a44; }
#member-base-info-modal .btn-cancel {
  background: #e6e8ec;
  color: #1f2a44;
}
#member-base-info-modal .btn-cancel:hover { background: #d0d4dc; }

/* form-member-base-info reference fragment 스타일 — 다른 reference 와 동일 톤 */
.form-member-base-info-fragment {
  padding: 24px;
  font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
  color: #1f2a44;
}
.form-member-base-info-fragment h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #2c4368;
}
.form-member-base-info-fragment p.lead {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}
.form-member-base-info-mapping {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}
.form-member-base-info-mapping th,
.form-member-base-info-mapping td {
  border: 1px solid #d0d4dc;
  padding: 8px 12px;
  vertical-align: top;
}
.form-member-base-info-mapping thead th {
  background: #eceefa;
  color: #1f2a44;
  font-weight: 600;
}
.form-member-base-info-mapping td code {
  background: #f5f6f8;
  padding: 1px 5px;
  border-radius: 2px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  color: #2c4368;
}
.form-member-base-info-fragment .demo-box {
  background: #fbfbfc;
  border: 1px dashed #b8c0cf;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #1f2a44;
}
.form-member-base-info-fragment .demo-box strong { color: #2c4368; }
.form-member-base-info-fragment pre {
  background: #1f2a44;
  color: #eceefa;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
}
.form-member-base-info-fragment .demo-launch {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: #2c4368;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.form-member-base-info-fragment .demo-launch:hover { background: #1f2a44; }
