/* 전체 공통 wrap */
.register-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 60px auto 80px auto;
  min-height: 600px;
  padding: 0 20px; /* 모바일 대응 위한 여백 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 타이틀, 탭, 큰 여백 등 */
.register-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 0;
}

/* 각 step 컨텐츠 중앙 정렬 + 최대폭 제한 */
.register-step {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: block;
}

/* step 0 본인인증 */
.register-welcome {
  text-align: center;
  margin-bottom: 44px;
}
.register-welcome strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.register-welcome span {
  color: #888;
  font-size: 14px;
}

.register-auth-box {
  border: 1.5px solid #e54c57;
  padding: 54px 0 30px 0;
  text-align: center;
  border-radius: 0;
  margin-bottom: 60px;
  background: #fff;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.register-auth-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 36px;
}
.register-auth-btns {
  display: flex;
  justify-content: center;
  flex-direction: column; 
  align-items: center; 
  gap: 16px;
  margin-bottom: 34px;
}
.btn-auth-phone,
.btn-auth-naver,
.btn-auth-kakao {
  min-width: 200px;
  width:250px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  display: block;
  margin-bottom: 10px;
}

.btn-auth-phone {
  background: #e54c57;
  color: #fff;
}

.btn-auth-naver {
  background: #1ec800;
  color: #fff;
  border: none;
}

.btn-auth-kakao {
  background: #fae100;
  color: #3c1e1e;
  border: none;
}

.btn-auth-phone:hover,
.btn-auth-naver:hover,
.btn-auth-kakao:hover {
  opacity: 0.9;
}

.register-auth-desc {
  color: #aaa;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* step 1 약관동의 */
.register-agree-title {
  margin-bottom: 18px;
  text-align: left;
}
.register-agree-title strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.register-agree-title span {
  color: #888;
  font-size: 14px;
}
.register-agree-box {
  border: 1.5px solid #e3e3e3;
  padding: 38px 28px 34px 28px;
  margin: 36px 0 50px 0;
}
.agree-list {
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
}
.agree-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
}
.agree-list label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.agree-required {
  color: #e54c57;
  font-size: 14px;
  font-weight: 500;
}
.agree-detail {
  color: #888;
  font-size: 13px;
  margin-left: 12px;
  text-decoration: underline;
}
.agree-bottom {
  text-align: right;
  margin: 16px 0 0 0;
}
.agree-bottom input[type=checkbox] {
  margin-right: 6px;
}
.agree-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

/* 공통 버튼 */
.btn-cancel, .btn-next {
  padding: 12px 0;
  width: 180px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: #fff;
  color: #222;
  cursor: pointer;
  border: 1.5px solid #ddd;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn-next {
  background: #e54c57;
  color: #fff;
  border: 1.5px solid #e54c57;
}
.btn-cancel:hover, .btn-next:hover {
  opacity: 0.9;
}

/* step 2 정보입력 (가로폼) */
.register-form-hr {
  margin: 0 auto;
  max-width: 1280px;
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
  padding: 36px 0 20px 0;
  background: #fff;
}
.register-form-row-hr {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.register-form-row-hr label {
  width: 200px;
  font-size: 15px;
  color: #222;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 10px;
}
.register-form-row-hr input[type="text"],
.register-form-row-hr input[type="password"],
.register-form-row-hr select {
  height: 40px;
  padding: 0 13px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.18s;
}
.register-form-row-hr input[type="text"]:focus,
.register-form-row-hr input[type="password"]:focus,
.register-form-row-hr select:focus {
  border: 1.5px solid #e54c57;
  outline: none;
}
.input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.gender-group,
.checks-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.register-form-btns-hr {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 38px 0 0 0;
}

/* step 3 가입완료 - 중앙정렬+버튼 동일폭 */
.register-done-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin-top: 40px;
  margin-bottom: 90px;
  width: 100%;
}
.register-done-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
  margin-top: 0;
  text-align: center;
  color: #222;
}
.register-done-btns-complete {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 0;
  width: 100%;
  max-width: 380px;
}
.register-done-btns-complete .btn-cancel,
.register-done-btns-complete .btn-next {
  width: 180px;
  font-size: 16px;
  padding: 12px 0;
  border-radius: 3px;
  font-weight: 600;
  border: 1.5px solid #ddd;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s;
  box-sizing: border-box;
  background: #fff;
  color: #222;
  display: inline-block;
}
.register-done-btns-complete .btn-next {
  background: #e54c57;
  color: #fff;
  border: 1.5px solid #e54c57;
}
.register-done-btns-complete .btn-cancel:hover,
.register-done-btns-complete .btn-next:hover {
  opacity: 0.9;
}
.modal {
    display: none; /* 기본 숨김 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);

    /* 중앙 정렬 */
    display: flex; /* flex 레이아웃 */
    align-items: center; /* 세로 중앙 */
    justify-content: center; /* 가로 중앙 */
}

.modal-content {
    background: #fff;
    width: 768px;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 10px 15px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.modal-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 모바일일 때 (예: 768px 이하) 세로 배치 */
@media (max-width: 768px) {
  .register-form-row-hr {
    flex-direction: column;
    align-items: flex-start;  /* label과 input 왼쪽 정렬 */
  }
  .modal-content {
      width: 98%;
      max-height: 80vh;
  }
  .input-group{
     flex-direction: column;
    align-items: flex-start;  /* label과 input 왼쪽 정렬 */
  }
}
