/* =========================================================
   하이푸디 회원가입 모바일 v2 (PC v2와 같은 톤)
   위치: /data/skin/mobile/moment_m_cart/css/hifudi_join_m.css
   범위: .join_agreement(약관동의) / #memberjoin(정보입력)
   ========================================================= */

:is(.join_agreement, #memberjoin) {
  --hf-brown: #7a4e2d;
  --hf-brown-dark: #5e3a20;
  --hf-gold: #a88452;
  --hf-cream: #f7f3ec;
  --hf-cream-2: #efe5d4;
  --hf-ink: #2b2620;
  --hf-sub: #857b70;
  --hf-line: #e4dbcd;
  --hf-red: #c8452f;
  padding: 0 18px 40px !important;
  color: var(--hf-ink);
}

/* ---------- 단계: 얇은 진행선 ---------- */
:is(.join_agreement, #memberjoin) .join_step {
  margin: 18px 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
:is(.join_agreement, #memberjoin) .join_step ul {
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
:is(.join_agreement, #memberjoin) .join_step li {
  flex: 1;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 9px 0 0 !important;
  border: 0 !important;
  border-top: 2px solid var(--hf-line) !important;
  background: none !important;
  color: #b3a99c !important;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.3 !important;
  text-align: center;
}
:is(.join_agreement, #memberjoin) .join_step li::before,
:is(.join_agreement, #memberjoin) .join_step li::after { display: none !important; }
:is(.join_agreement, #memberjoin) .join_step li.on {
  border-top-color: var(--hf-brown) !important;
  color: var(--hf-brown) !important;
  font-weight: 700;
}

/* ---------- 체크박스 · 라디오 공통 ---------- */
:is(.join_agreement, #memberjoin) .inp_chk input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  border: 1.5px solid #cfc4b5 !important;
  border-radius: 6px !important;
  background: #fff none !important;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
:is(.join_agreement, #memberjoin) .inp_chk input[type="checkbox"]:checked {
  border-color: var(--hf-brown) !important;
  background: var(--hf-brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat !important;
}
:is(.join_agreement, #memberjoin) .inp_chk {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   01 약관동의
   ========================================================= */
.join_agreement form {
  background: #fff;
  border: 1px solid var(--hf-line);
  border-radius: 16px;
  padding: 4px 18px 0 !important;
}
.join_agreement .all_chk {
  margin: 0 !important;
  padding: 18px 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hf-ink) !important;
  background: none !important;
}
.join_agreement .all_chk label {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.3px;
  color: var(--hf-ink) !important;
}
.join_agreement .privacy_big_box { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.join_agreement .privacy_box {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hf-line) !important;
}
.join_agreement .privacy_box:last-of-type { border-bottom: 0 !important; }
.join_agreement .privacy_box dl {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important;
  padding: 15px 0 !important;
  border: 0 !important;
}
.join_agreement .privacy_box dt,
.join_agreement .privacy_box dd {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.join_agreement .privacy_box dt label { font-size: 14px !important; color: var(--hf-ink) !important; }
/* '내용보기 ▼' → 작은 텍스트 버튼 (기존 펼침 기능 그대로) */
.join_agreement .privacy_box dd button {
  height: auto !important;
  padding: 6px 0 6px 10px !important;
  border: 0 !important;
  background: none !important;
  font-size: 0 !important;
  color: var(--hf-sub) !important;
  cursor: pointer;
}
.join_agreement .privacy_box dd button::before {
  content: "보기";
  font-size: 12px;
}
.join_agreement .privacy_box dd button::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
/* 펼친 상태: '접기' + 화살표 위로 */
.join_agreement .privacy_box:has(> .privacy_content[style*="block"]) dd button { color: var(--hf-brown) !important; }
.join_agreement .privacy_box:has(> .privacy_content[style*="block"]) dd button::before { content: "접기"; }
.join_agreement .privacy_box:has(> .privacy_content[style*="block"]) dd button::after { transform: rotate(-135deg) translateY(-1px); }
.join_agreement .privacy_content {
  max-height: 200px;
  overflow-y: auto !important;
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  background: var(--hf-cream) !important;
  border: 0 !important;
  border-radius: 10px;
  font-size: 12px !important;
  line-height: 1.75 !important;
  color: var(--hf-sub) !important;
}
.join_agreement .privacy_big_box .msg { margin: 0 0 12px !important; text-align: center; }
.join_agreement .privacy_big_box .msg span { color: var(--hf-red) !important; font-size: 12px !important; }
/* 다음 버튼: 하단 고정 */
.join_agreement .member_confirm_btn {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0 -18px !important;
  padding: 14px 18px 16px !important;
  background: #fff;
  border-top: 1px solid var(--hf-line);
  border-radius: 0 0 16px 16px;
}
.join_agreement .member_confirm_btn ul { margin: 0 !important; padding: 0 !important; }
.join_agreement .member_confirm_btn li { float: none !important; width: 100% !important; padding: 0 !important; }

/* 공통 큰 버튼 */
:is(.join_agreement #btnNextStep, #memberjoin #btnConfirm) {
  display: block;
  width: 100% !important;
  height: 54px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--hf-brown) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
}

/* =========================================================
   02 정보입력
   ========================================================= */
/* 상단 안내 카드 (hifudi_join_m.js 가 넣어 줌) */
#memberjoin .hf-intro {
  margin: 0 0 28px;
  padding: 24px 20px 20px;
  border-radius: 18px;
  background: var(--hf-brown);
  color: #f6ece0;
}
#memberjoin .hf-intro .hf-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d9b98c;
}
#memberjoin .hf-intro h4 {
  margin: 8px 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #fff;
}
#memberjoin .hf-intro p.hf-lead {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.65;
  color: #e6d6c3;
}
#memberjoin .hf-intro .hf-label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #d9b98c;
}
#memberjoin .hf-intro ol.hf-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  counter-reset: hfstep;
}
#memberjoin .hf-intro ol.hf-steps li {
  position: relative;
  padding: 0 0 14px 32px;
  font-size: 13px;
  line-height: 1.55;
  color: #fff;
  counter-increment: hfstep;
}
#memberjoin .hf-intro ol.hf-steps li::before {
  content: counter(hfstep);
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: #f1d9b5;
}
#memberjoin .hf-intro ol.hf-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 25px;
  bottom: 3px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
#memberjoin .hf-intro ol.hf-steps small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #d8c6b1;
}
#memberjoin .hf-intro ol.hf-steps small a { color: #f1d9b5; text-decoration: underline; }
#memberjoin .hf-intro .hf-kakao-ico { width: 16px; height: 16px; flex: 0 0 16px; }
#memberjoin .hf-intro .hf-kakao-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 6px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  background: #fee500;
  color: #3a1d1d !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
#memberjoin .hf-intro ul.hf-notes {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 14px 10px;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 12px;
}
#memberjoin .hf-intro ul.hf-notes li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: #eadbc8;
}
#memberjoin .hf-intro ul.hf-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d9b98c;
}
#memberjoin .hf-intro .hf-contact { display: flex; gap: 8px; }
#memberjoin .hf-intro .hf-contact a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
#memberjoin .hf-intro .hf-contact .hf-kakao { background: #fee500; color: #3a1d1d; }
#memberjoin .hf-intro .hf-contact .hf-tel { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* 섹션 제목: 번호 + 진한 구분선 */
#memberjoin .join_content_box,
#memberjoin .join_content { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#memberjoin .join_content { counter-reset: hfsec; }
#memberjoin :is(.join_view, .join_view_business) {
  margin: 0 0 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
#memberjoin :is(.join_view, .join_view_business) > p.tit {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hf-ink) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
  color: var(--hf-ink) !important;
  counter-increment: hfsec;
}
#memberjoin :is(.join_view, .join_view_business) > p.tit::before {
  content: counter(hfsec, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--hf-gold);
}

/* 라벨 위 · 입력칸 아래 */
#memberjoin .input_wrap {
  display: block !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
}
#memberjoin .input_title,
#memberjoin .input_content {
  float: none !important;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#memberjoin .input_title {
  margin-bottom: 2px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--hf-sub) !important;
  background: none !important;
}
#memberjoin .input_title:empty { display: none !important; }
#memberjoin .input_title label { font-size: inherit !important; color: inherit !important; }
#memberjoin .input_title.required::after { content: "*"; margin-left: 3px; color: var(--hf-red); }
/* 이메일 아래 안내문 줄 간격 */
#memberjoin .input_wrap:has(.input_title:empty) { margin-top: -12px !important; }
#memberjoin .description { font-size: 11px !important; line-height: 1.5; color: var(--hf-sub) !important; }

/* 라인형 입력칸 */
#memberjoin .input_content input:is([type="text"], [type="password"]),
#memberjoin .email_select {
  width: 100% !important;
  height: 46px !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-bottom: 1.5px solid #d6ccbd !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  color: var(--hf-ink) !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
}
#memberjoin .input_content input:is([type="text"], [type="password"]):focus,
#memberjoin .email_select:focus {
  outline: none;
  border-bottom-color: var(--hf-brown) !important;
}
#memberjoin .input_content input[readonly] { color: var(--hf-sub) !important; }
#memberjoin .input_content input::placeholder { color: #bcb2a5; font-size: 13px; }

/* 이메일: 입력칸 + 도메인 한 줄 */
#memberjoin .input_content:has(.input_email) { display: flex !important; gap: 10px; align-items: flex-end; }
#memberjoin .input_email { flex: 1; min-width: 0; }
#memberjoin .email_select_box {
  float: none !important;
  flex: 0 0 120px;
  width: 120px !important;
  margin: 0 !important;
  border: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23857b70' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 0 center / 18px no-repeat !important;
}
#memberjoin .email_select {
  padding-right: 20px !important;
  font-size: 14px !important;
  background-image: none !important;
}

/* 회원종류: 세그먼트 버튼 */
#memberjoin .inp_rdo {
  display: flex !important;
  margin-top: 6px;
  padding: 4px;
  background: var(--hf-cream-2);
  border-radius: 12px;
}
#memberjoin .inp_rdo input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  margin: 0 !important;
}
#memberjoin .inp_rdo label {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 6px 8px !important;
  border-radius: 9px;
  background: none !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-align: center;
  color: var(--hf-sub) !important;
  font-weight: 500 !important;
}
#memberjoin .inp_rdo label::before,
#memberjoin .inp_rdo label::after { display: none !important; }
#memberjoin .inp_rdo input[type="radio"]:checked + label {
  background: #fff !important;
  color: var(--hf-ink) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(60, 40, 20, 0.12);
}

/* 주소 */
#memberjoin .zipcode_box { margin: 0 !important; }
#memberjoin .zipcode_top {
  display: flex !important;
  align-items: flex-end;
  gap: 10px;
  margin: 0 !important;
}
#memberjoin .zipcode_num { float: none !important; flex: 1; width: auto !important; margin: 0 !important; padding: 0 !important; }
#memberjoin .zipcode_num label { display: block; margin: 0 !important; }
#memberjoin .zipcode_btn_box { float: none !important; flex: 0 0 auto; width: auto !important; margin: 0 !important; padding: 0 !important; }
#memberjoin .zipcode_btn {
  height: 36px !important;
  padding: 0 16px !important;
  border: 1px solid var(--hf-ink) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--hf-ink) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
#memberjoin .zipcode_box > input { margin-top: 4px !important; }

/* 빨간 안내문 → 작은 메모 */
#memberjoin .input_content > span:not(.inp_rdo) {
  display: block;
  position: relative;
  margin-top: 8px;
  padding-left: 16px;
  font-size: 12px !important;
  line-height: 1.6;
  color: var(--hf-brown) !important;
}
#memberjoin .input_content > span:not(.inp_rdo)::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hf-brown);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
}
#memberjoin .input_content > br { display: none; }
/* 사업자등록증 캡처 이미지는 상단 안내 카드로 대체 */
#memberjoin .input_content > span:has(> img) { display: none !important; }

/* 오류 문구 */
#memberjoin :is(.text_warning, label.error, .error) {
  display: block;
  margin-top: 6px;
  font-size: 12px !important;
  color: var(--hf-red) !important;
}

/* 확인 버튼 */
#memberjoin .join_btn_box { margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; }

/* ---------- 안내 분리: 상단 카드는 짧게, 확인 사항·문의는 폼 아래 ---------- */
#memberjoin .hf-intro ol.hf-steps { margin-bottom: 0; }
#memberjoin .hf-intro ol.hf-steps li:last-child { padding-bottom: 0; }
#memberjoin .hf-outro {
  margin: 4px 0 18px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--hf-cream-2);
}
#memberjoin .hf-outro .hf-label {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hf-brown);
}
#memberjoin .hf-outro ul.hf-notes {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
#memberjoin .hf-outro ul.hf-notes li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--hf-ink);
}
#memberjoin .hf-outro ul.hf-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hf-gold);
}
#memberjoin .hf-outro .hf-kakao-ico { width: 16px; height: 16px; flex: 0 0 16px; }
#memberjoin .hf-outro .hf-contact { display: flex; gap: 8px; }
#memberjoin .hf-outro .hf-contact a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
#memberjoin .hf-outro .hf-contact .hf-kakao { background: #fee500; color: #3a1d1d; }
#memberjoin .hf-outro .hf-contact .hf-tel { background: #fff; color: var(--hf-ink); border: 1px solid var(--hf-line); }

/* ---------- 사업자등록증 전송 안내 강조 ---------- */
#memberjoin .hf-intro .hf-emph {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(254, 229, 0, 0.12);
  border: 1px solid rgba(254, 229, 0, 0.55);
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
}
#memberjoin .hf-intro .hf-emph .hf-kakao-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #fee500;
}
#memberjoin .hf-intro .hf-emph b { color: #fee500; font-weight: 700; }
