/* BASIC css start */
/*
 * SUGAR365 JOIN COMPLETE CSS
 * 회원가입 CSS 편집 화면에 이 파일 전체를 그대로 붙여 넣으세요.
 */

/* ---------- Page frame ---------- */
#contentWrap {
  width: 100%;
  min-height: calc(100vh - 300px);
  padding: 90px 20px 120px !important;
  box-sizing: border-box;
}

#join_test {
  --s365-primary: #ec6c8f;
  --s365-primary-dark: #d94f77;
  --s365-primary-soft: #fff1f5;
  --s365-ink: #252127;
  --s365-muted: #77717a;
  --s365-line: #eee8ec;
  --s365-line-strong: #ded5db;
  --s365-bg: #fbf8fa;
  --s365-radius-sm: 12px;
  --s365-radius-md: 18px;
  --s365-radius-lg: 24px;
  --s365-shadow: 0 12px 35px rgba(79, 46, 61, .07);
  --s365-focus: 0 0 0 3px rgba(236, 108, 143, .16);
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 48px 46px;
  border: 1px solid var(--s365-line);
  border-radius: var(--s365-radius-lg);
  background: #fff;
  box-shadow: var(--s365-shadow);
  color: var(--s365-ink);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

#join_test, #join_test * { box-sizing: border-box; }
#join_test ul, #join_test ol, #join_test dl, #join_test p { margin: 0; padding: 0; }
#join_test li { list-style: none; }
#join_test a { color: inherit; text-underline-offset: 3px; }
#join_test fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

#join_test legend,
#join_test .blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Heading ---------- */
#join_test .loc-navi { display: none; }

#join_test > h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--s365-ink);
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.045em;
}

#join_test > h2::after {
  content: "SUGAR 36.5 회원이 되어 다양한 혜택을 만나보세요.";
  display: block;
  margin-top: 10px;
  color: var(--s365-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.025em;
}

#join_test .page-body { margin-top: 38px; }
#join_test .box-wrap { width: 100%; }

/* ---------- Join form ---------- */
#join_test .join-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

#join_test .join-form > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 0;
  line-height: normal;
  gap: 8px;
}

#join_test .join-form > li > label:first-child {
  flex: 0 0 128px;
  width: 128px;
  padding: 0 16px 0 0;
  color: #554f56;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

#join_test .join-form .txt-input,
#join_test .join-form input[type="text"],
#join_test .join-form input[type="password"],
#join_test .join-form input[type="email"],
#join_test .join-form input[type="tel"],
#join_test .join-form input[type="number"],
#join_test .join-form select {
  flex: 1 1 280px;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  height: 54px !important;
  min-height: 54px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--s365-line-strong) !important;
  border-radius: var(--s365-radius-sm) !important;
  outline: 0;
  background: #fff !important;
  color: var(--s365-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 52px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#join_test .join-form input:hover,
#join_test .join-form select:hover { border-color: #cbbfc7 !important; }

#join_test .join-form input:focus,
#join_test .join-form select:focus {
  border-color: var(--s365-primary-dark) !important;
  box-shadow: var(--s365-focus);
}

#join_test input::placeholder { color: #aaa2a8; opacity: 1; }

#join_test input[type="checkbox"],
#join_test input[type="radio"] {
  width: 19px;
  height: 19px;
  margin: 0 7px 0 0;
  accent-color: var(--s365-primary-dark);
  vertical-align: -4px;
}

/* Generated image buttons: 인증 / 재인증 / 확인 */
#join_test .join-form > li > div { flex: 0 0 auto; }

#join_test .join-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--s365-primary-dark);
  border-radius: var(--s365-radius-sm);
  background: #fff;
  color: var(--s365-primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

#join_test .join-form .btn img { display: none !important; }
#join_test .join-form .btn:has(img[alt="인증"])::after { content: "인증"; }
#join_test .join-form .btn:has(img[alt="재인증"])::after { content: "재인증"; }
#join_test .join-form .btn:has(img[alt="확인"])::after { content: "확인"; }

#join_test .join-form .btn:hover {
  background: var(--s365-primary-soft);
  transform: translateY(-1px);
}

/* Birth / gender fields */
#join_test .join-form li.birth,
#join_test .join-form li.gender {
  padding: 16px 18px;
  border: 1px solid var(--s365-line);
  border-radius: 14px;
  background: var(--s365-bg);
  color: var(--s365-muted);
  font-size: 14px;
}

#join_test .join-form li.birth dl,
#join_test .join-form li.birth ul,
#join_test .join-form li.birth dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

#join_test .join-form li.birth .txt-input,
#join_test .join-form li.birth select {
  flex: 1 1 100px;
  min-width: 80px;
}

#join_test .join-form li.gender label {
  display: inline-flex;
  align-items: center;
  margin-right: 22px;
  color: var(--s365-ink);
  font-size: 15px;
}

/* ---------- Join notice ---------- */
#join_test .join-msg {
  margin-top: 24px;
  padding: 17px 19px;
  border-radius: 14px;
  background: var(--s365-bg);
  color: var(--s365-muted);
}

#join_test .join-msg li {
  padding: 0 !important;
  color: var(--s365-muted) !important;
  font-size: 13px;
  line-height: 1.65;
}

#join_test .join-msg li + li { margin-top: 3px; }
#join_test .join-msg li label {
  display: inline-flex;
  align-items: center;
  color: var(--s365-primary-dark);
  font-size: 14px;
  font-weight: 650;
}

/* ---------- Privacy terms ---------- */
#join_test .new-privercy-contract { margin-top: 34px; }

#join_test .new-privercy-contract h3,
#join_test .new-privercy-contract h4,
#join_test .new-privercy-contract .tit {
  margin: 30px 0 13px;
  color: var(--s365-ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -.035em;
}

#join_test .new-privercy-contract > :first-child { margin-top: 0; }

#join_test .privercy-contract textarea {
  display: block;
  width: 100% !important;
  height: 170px !important;
  min-height: 170px;
  padding: 16px;
  border: 1px solid var(--s365-line) !important;
  border-radius: 14px;
  outline: 0;
  background: var(--s365-bg);
  color: #6d666e;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}

#join_test .privercy-agree,
#join_test .privercy-chk {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--s365-line);
  border-radius: 12px;
  background: #fff;
  color: var(--s365-ink);
  font-size: 14px;
}

#join_test .privercy-agree label,
#join_test .privercy-chk label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  cursor: pointer;
}

#join_test .privercy-agree strong,
#join_test .privercy-chk strong { color: var(--s365-primary-dark); }

/* Privacy tabs */
#join_test .privercy-contract-tap { margin: 0 0 12px; }
#join_test .privercy-contract-tap ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--s365-line);
  border-radius: 12px;
  background: var(--s365-bg);
}

#join_test .privercy-contract-tap li { min-width: 0; }
#join_test .privercy-contract-tap li + li { border-left: 1px solid var(--s365-line); }
#join_test .privercy-contract-tap a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 9px 10px;
  color: var(--s365-muted);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

#join_test .privercy-contract-tap li.sel a {
  background: #fff;
  color: var(--s365-primary-dark);
  box-shadow: inset 0 -2px 0 var(--s365-primary-dark);
}

/* ---------- Submit buttons ---------- */
#join_test .btn-agree,
#join_test .bottom-btn {
  width: 100%;
  margin-top: 32px;
  text-align: center;
}

#join_test .btn-agree a,
#join_test .bottom-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--s365-primary-dark);
  box-shadow: 0 10px 22px rgba(217, 79, 119, .22);
  color: #fff !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

#join_test .btn-agree a:hover,
#join_test .bottom-btn a:hover {
  background: #c9436a;
  box-shadow: 0 12px 26px rgba(217, 79, 119, .28);
  transform: translateY(-1px);
}

#join_test .bottom-btn a img { display: none !important; }
#join_test .bottom-btn a:has(img[alt="가입완료"])::after { content: "가입완료"; }

/* Accessibility */
#join_test a:focus-visible,
#join_test input:focus-visible,
#join_test select:focus-visible,
#join_test textarea:focus-visible {
  outline: 0;
  box-shadow: var(--s365-focus);
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
  #contentWrap { padding-top: 70px !important; padding-bottom: 100px !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  #contentWrap {
    min-height: calc(100vh - 150px);
    padding: 40px 16px 80px !important;
  }

  #join_test {
    width: min(100%, 560px);
    padding: 34px 22px;
    border-radius: 20px;
  }

  #join_test > h2 { font-size: 29px; }
  #join_test > h2::after { margin-top: 9px; font-size: 14px; }
  #join_test .page-body { margin-top: 30px; }
  #join_test .join-form { gap: 15px; }

  #join_test .join-form > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  #join_test .join-form > li > label:first-child {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0;
    font-size: 14px;
  }

  #join_test .join-form .txt-input,
  #join_test .join-form input[type="text"],
  #join_test .join-form input[type="password"],
  #join_test .join-form input[type="email"],
  #join_test .join-form input[type="tel"],
  #join_test .join-form input[type="number"],
  #join_test .join-form select {
    grid-column: 1;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px;
    font-size: 16px;
  }

  #join_test .join-form > li > div,
  #join_test .join-form > li > .btn { grid-column: 2; }
  #join_test .join-form .btn { min-height: 52px; }

  #join_test .join-form li.birth,
  #join_test .join-form li.gender {
    display: flex;
    padding: 15px;
  }

  #join_test .privercy-contract-tap ul { grid-template-columns: 1fr; }
  #join_test .privercy-contract-tap li + li {
    border-top: 1px solid var(--s365-line);
    border-left: 0;
  }
  #join_test .privercy-contract-tap a { min-height: 46px; }
  #join_test .privercy-contract textarea { height: 150px !important; min-height: 150px; }
  #join_test .btn-agree a, #join_test .bottom-btn a { min-height: 56px; font-size: 17px; }
}

@media (max-width: 380px) {
  #contentWrap { padding-right: 12px !important; padding-left: 12px !important; }
  #join_test { padding-right: 18px; padding-left: 18px; }
  #join_test .join-form .btn { min-width: 72px; padding-right: 12px; padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #join_test *, #join_test *::before, #join_test *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* BASIC css end */

