body {
  background: #fff !important;
}

.lg-close-btn {
  display: none;
  z-index: 1000;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  text-align: right;
  margin-right: 15px;
  margin-top: 10px;
}

.signup-container {
  max-width: 612px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #ebebeb;
  margin-top: 150px;
  margin-bottom: 100px;
}

.signup-title {
  text-align: center;
  font-size: 30px;
  color: #222;
  margin-bottom: 30px;
  font-family: 'Noto Sans KR', sans-serif;
}

.signup-form-group {
  margin-bottom: 20px;
}

.signup-label {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  font-family: 'Noto Sans KR', sans-serif;
}



/* 기본 input 스타일 */
.signup-input {
  width: 100%;
  height: 60px;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 16px;
  font-family: 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup-input:focus {
  border-color: #4a90e2;
  outline: none;
}


/* 버튼 스타일 */
.signup-button {
  width: 80px;
  height: 60px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #2385ff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.signup-button:hover {
  opacity: 0.8;
}

/* 비밀번호 + 눈아이콘 래퍼 */
.signup-input-icon-row {
  position: relative;
  width: 100%;
}

/* 눈아이콘 */
.signup-toggle-password {
  position: absolute;
  right: 15px;
  top: 55%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  color: #888;
}

/* 에러 메시지 */
.signup-error-text {
  color: red;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin-top: 5px;
}

.signup-error-text.show {
  max-height: 50px;
  opacity: 1;
}

.signup-input.error {
  border: 2px solid red;
}

/* 약관 박스 */
.signup-terms-box {
  height: 60px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  margin-bottom: 10px;
  font-size: 15px;
}

.signup-form-group:nth-child(6) {
  margin-top: 25px !important;
}

.signup-form-group input[type="checkbox"],
.signup-terms-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #2385ff;
  cursor: pointer;
  margin-right: 8px;
  flex-shrink: 0;
}

.signup-form-group label,
.signup-terms-box label {
  display: flex;
  align-items: center;
  color: #444;
  font-weight: 500;
}

.signup-terms-box a {
  text-decoration: none;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  color: #4a90e2;
}

/* 회원가입 버튼 */
.signup-submit-btn {
  width: 100%;
  height: 65px;
  font-size: 18px;
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #2385ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-submit-btn:hover {
  opacity: 0.8;
}

/* 숨김 */
.signup-hidden {
  display: none;
}


.custom-select-wrapper {
  width: 100%;
  max-width: 550px;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 선택 영역 */
.custom-select-selected {
  border: 2px solid #ccc;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  color: #666;
}

/* 아이콘 */
.custom-select-icon {
  margin-left: 10px;
}

.custom-select-options {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.custom-select-scroll {
  max-height: 300px;         /* 최대 보여줄 높이 */
  overflow-y: auto;          /* 넘칠 경우 내부 스크롤 */
  border-radius: 10px;
  border: 2px solid #ccc;
  margin-top: 5px;
}

.custom-select-scroll li {
  color: #333;
}

/* 스크롤바 예쁘게 (선택) */
.custom-select-scroll::-webkit-scrollbar {
  width: 6px;
}
.custom-select-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* 펼쳐질 때 */
.custom-select-wrapper.open .custom-select-options {
  max-height: 500px; /* 충분히 큰 값 */
  opacity: 1;
}

/* 옵션 리스트 스타일 */
.custom-select-options li {
  display: flex;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  cursor: pointer;
  align-items: center;
}

.custom-select-options li img {
  width: 32px;
  height: 32px;
  border-radius: 50%; 
  object-fit: cover;
  margin-right: 10px; 
}

.custom-select-selected img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}

.custom-select-options li:hover {
  background: #f5f5f5;
}

.custom-select-icon svg {
  transition: transform 0.3s ease;
}

/* open일 때 회전 */
.custom-select-wrapper.open .custom-select-icon svg {
  transform: rotate(180deg); /* ▼ → ▲ */
}












@media screen and (max-width: 768px) {

  #header,
  .footer {
    display: none !important;
  }

  .lg-close-btn {
    display: block;
  }

  .signup-container {
    margin-top: 0;
    margin-bottom: 0;
    border: none;
  }

  .signup-form-group {
    margin-bottom: 20px;
  }

  .signup-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .signup-input,
  .signup-button {
    width: 100%;
    font-size: 16px;
  }

  .signup-input-icon-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .signup-toggle-password {
    margin-left: 8px;
  }

  .signup-input-timer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .signup-timer-inside {
    font-size: 14px;
    white-space: nowrap;
  }

  .signup-form-group label,
  .signup-terms-box label {
    display: flex;
    align-items: center;
    color: #444;
    font-weight: 500;
    font-size: 16px;
  }

  .signup-terms-box label {
    font-size: 12px;
  }

  .signup-form-group input[type="checkbox"],
  .signup-terms-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .signup-terms-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .signup-terms-box a {
    font-size: 12px;
    margin-left: 8px;
  }

  .signup-submit-btn {
    width: 100%;
    font-size: 18px;
    padding: 12px;
  }
}