/* elpi 회원가입 모달 · 반응형 */
.elpi-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border, #dedee2);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  padding: 6px;
  z-index: 40;
  display: none;
}
.elpi-menu[aria-hidden="false"] { display: block; }
.elpi-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text, #242424);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.elpi-menu-item:hover { background: #f5f5f7; }
.elpi-menu-item .menu-icon { font-size: 16px; width: 22px; text-align: center; }

.reg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.reg-overlay[aria-hidden="false"] { display: flex; }
.reg-sheet {
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 860px);
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,.12);
}
@media (min-width: 640px) {
  .reg-overlay { align-items: center; padding: 24px; }
  .reg-sheet {
    border-radius: 18px;
    max-height: min(90vh, 800px);
  }
}

.reg-header {
  flex: none;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.reg-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.reg-header p {
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}
.reg-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f3f3f5;
  font-size: 18px;
  cursor: pointer;
  color: #555;
}

.reg-steps {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
  flex: none;
}
.reg-step-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e8e8eb;
}
.reg-step-dot.active { background: #252525; }
.reg-step-dot.done { background: #9ca3af; }

.reg-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 8px;
  -webkit-overflow-scrolling: touch;
}
.reg-panel { display: none; }
.reg-panel.active { display: block; }
.reg-panel h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
}
.reg-field { margin-bottom: 14px; }
.reg-field label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}
.reg-field label .req { color: #c0392b; }
.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="password"],
.reg-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e4;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fafafa;
  outline: none;
  transition: border-color .15s, background .15s;
}
.reg-field input:focus,
.reg-field select:focus {
  border-color: #252525;
  background: #fff;
}
.reg-hint {
  font-size: 11px;
  color: #999;
  margin-top: 5px;
}

.reg-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reg-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e8e8eb;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
}
.reg-choice:has(input:checked) {
  border-color: #252525;
  background: #f7f7f8;
}
.reg-choice input { margin: 0; accent-color: #252525; }

.reg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e0e0e4;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  user-select: none;
}
.reg-chip:has(input:checked) {
  border-color: #252525;
  background: #252525;
  color: #fff;
}
.reg-chip input { display: none; }

.reg-note {
  font-size: 12px;
  color: #888;
  line-height: 1.55;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 14px;
}

.reg-agree {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reg-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}
.reg-agree-row input { margin-top: 2px; accent-color: #252525; }
.reg-agree-row.all {
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}
.reg-agree-row a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reg-error {
  color: #b42318;
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 1.2em;
}

.reg-footer {
  flex: none;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  background: #fff;
}
.reg-footer button {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.reg-btn-secondary {
  background: #f0f0f2;
  color: #444;
}
.reg-btn-primary {
  background: #252525;
  color: #fff;
}
.reg-btn-primary:disabled {
  opacity: 0.4;
  cursor: default;
}

.reg-done {
  text-align: center;
  padding: 28px 12px 16px;
}
.reg-done .mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #f0f4f8;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.reg-done h3 { margin: 0 0 8px; font-size: 18px; }
.reg-done p { margin: 0; color: #666; font-size: 14px; line-height: 1.6; }
