/* =====================================================
   join_v2.css
   회원가입 플로우 공통 스타일 (survey_common.css 기반)
   ===================================================== */

/* ── 입력 레이블 ── */
.input-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

/* ── 인증 버튼 (골드) ── */
.btn-gold {
  background: #b28b5a !important;
}
.btn-gold:hover   { background: #9a7849 !important; }
.btn-gold:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── 인증 완료 메시지 (파란색) ── */
.input-msg.cert-ok { color: #1976d2; }

/* ── 입력 필드 ── */
.join-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s;
  color: #333;
  display: block;
}
.join-input:focus { border-color: #b28b5a; }
.join-input:-webkit-autofill,
.join-input:-webkit-autofill:hover,
.join-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  box-shadow: 0 0 0px 1000px #fff inset;
  border-color: #b28b5a;
}
.join-input + .join-input { margin-top: 12px; }

.join-input-wrap { margin-top: 24px; }

.input-msg {
  font-size: 13px;
  margin-top: 8px;
  margin-left: 4px;
  min-height: 18px;
}
.input-msg.ok  { color: #2d7a2d; }
.input-msg.err { color: #e55555; }

/* ── 통신사 선택 (3열) ── */
.carrier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* ── PASS 로고 ── */
.pass-logo-wrap {
  text-align: center;
  padding: 20px 0 10px;
}
.pass-logo-text {
  font-size: 32px;
  font-weight: 900;
  color: #1550c7;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.pass-logo-sub {
  font-size: 12px;
  color: #888;
}

/* ── 페이스 인증 아이콘 ── */
.face-icon-wrap {
  text-align: center;
  padding: 30px 0;
}
.face-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f7f3ea;
  border: 2px solid #b28b5a;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

/* ── 완료 페이지 ── */
.complete-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}
.complete-icon {
  width: 74px;
  height: 74px;
  border-radius: 0;
  background: none;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #fff;
}
.complete-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.complete-desc {
  font-size: 14px;
  color: #888;
  margin-top: 14px;
  line-height: 1.8;
}

/* ── 질문 제목 + 아이콘 래퍼 ── */
.question-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.info-icon-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-top: 2px;
}
.info-icon-btn img { width: 22px; height: 22px; object-fit: contain; display: block; }

/* ── 상세 관계 레이블 ── */
.sub-question-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
}

/* ── 태그 칩 버튼 ── */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-btn {
  padding: 9px 18px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  background: #f5f5f5;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.tag-btn.selected {
  border-color: #b28b5a;
  background: #f7f3ea;
  color: #b28b5a;
  font-weight: 600;
}

/* ── 안내 바텀시트 오버레이 ── */
.info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  align-items: flex-end;
}
.info-overlay.show { display: flex; }
.info-sheet {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 24px 36px;
  max-height: 70vh;
  overflow-y: auto;
}
.info-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-bottom: 1px solid #eee;
}
.info-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}
.info-sheet-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.info-item { margin-bottom: 20px; }
.info-item:last-child { margin-bottom: 0; }
.info-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}
.info-item-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
}
.info-ol {
  padding-left: 18px;
  margin: 0;
}

/* ── 뒤로가기 버튼 (join02) ── */
.join-back-header { margin-bottom: 10px; }
.join-back-btn { font-size: 1rem; color: #555; background: none; border: none; cursor: pointer; padding: 4px 0; letter-spacing: -0.5px; }
.join-back-btn:hover { color: #b28b5a; }

/* ── 단일 다음 버튼 (이전 없음) ── */
.btn-next-only {
  flex: 1;
}

/* ── 약관 안내 텍스트 ── */
.terms-notice {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  line-height: 1.9;
  padding: 0 8px 4px;
}
.terms-notice a {
  color: #888;
  text-decoration: underline;
  cursor: pointer;
  text-underline-offset: 2px;
}

/* ── 약관 전체 오버레이 모달 ── */
.terms-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  flex-direction: column;
  background: #fff;
}
.terms-overlay.show { display: flex; }

.terms-sheet-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  position: relative;
}
.terms-sheet-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}
.terms-sheet-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px 2px;
  line-height: 1;
}
.terms-sheet-frame {
  flex: 1;
  border: none;
  width: 100%;
  min-height: 0;
}
