/* ===============================
   그누보드 기본 레이아웃 리셋 (이 페이지에서만)
=============================== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

#wrapper,
#wrap,
#container,
#thema_wrapper,
#thema_wrap {
  width: 100% !important;
  min-width: 0 !important;
}

/* 기본 버튼 리셋 */
button {
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 0;
}

/* ===============================
   공통 레이아웃
=============================== */
body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

#device-pc {
  width: 100%;
}

/* ===============================
   헤더
=============================== */

#device-pc .header {
  width: 100%;
  background: transparent;
  position: fixed;          /* ★ 스크롤해도 상단에 고정 */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* PC/모바일 공통: 중앙에 최대 768px 세로형 레이아웃 */
#device-pc .header-inner {
  width: 100%;
  max-width: 768px;      /* PC에서 너무 넓지 않게 */
  margin: 0 auto;
  background: #000000;
  padding: 14px 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#device-pc .logo {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

#device-pc .header-buttons {
  display: flex;
  align-items: center;
}

#device-pc .header-buttons a {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  margin-left: 6px;
  white-space: nowrap;
  line-height: 1;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

#device-pc .btn-goto-form {
  background: #55C88A !important;  /* 상담신청 */
}

#device-pc .btn-link01 {
  background: #F25567 !important;  /* 전화상담 */
}

#device-pc .header-buttons a:hover {
  opacity: 0.9;
}

/* ===============================
   섹션 공통
=============================== */

#device-pc .section {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* 헤더 높이만큼 아래로 내려주기 */
#device-pc .top-gap {
  margin-top: 80px;
}

/* 콘텐츠도 최대 768px로 세로형 */
#device-pc .pc-narrow {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
}

#device-pc .pc-narrow-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 상담폼 섹션 */
.section-form {
  background: #000000;
  color: #fff;
  padding: 60px 0 40px;
}

/* ===============================
   FORM
=============================== */

#frmpc {
  max-width: 480px;
  margin: 0 auto;
  color: #fff;
}

#frmpc .db_list {
  margin: 0 auto 10px;
  list-style: none;
  padding: 0;
}

#frmpc li > div {
  font-size: 0;
}

#frmpc li > div > span {
  display: inline-block;
  vertical-align: middle;
  font-size: 20px;
  padding: 5px 15px;
  letter-spacing: -1px;
}

#frmpc li > div > span:first-child {
  width: 100px;
}

#frmpc li > div > span:last-child {
  width: calc(100% - 100px);
  text-align: left;
  padding: 5px 0;
}

#frmpc .input-control {
  display: block;
  border: 1px solid #333;
  padding: 15px;
  width: 100%;
  background: #fff;
  font-size: 16px;
  border-radius: 0;
  color: #888888;
  resize: none;
  outline: none;
  box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; /* ← 추가 */
}

#frmpc .agreebox {
  margin: 10px auto;
  text-align: center;
}

#frmpc .privacy-open {
  background-color: transparent;
  border: 0;
  color: #fff;
}

#frmpc .submitbox {
  text-align: center;
  width: 100%;
}

#frmpc .submitbox button {
  display: inline-block;
  width: auto;
  padding: 20px;
  margin: 10px 8px;
}

/* ★ 버튼 이미지가 폼 폭을 넘지 않도록 */
#frmpc .submitbox img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===============================
   개인정보처리방침 팝업
=============================== */

#privacy-info {
  position: absolute;
  width: 500px;
  max-width: 96%;
  background: #fff;
}

#privacy-info .title {
  padding: 0 20px;
  height: 40px;
  color: #fff;
  background: #333;
  position: relative;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#privacy-info .title button {
  background-color: transparent;
  color: #fff;
  border: 0;
  font-size: 16px;
}

#privacy-info .content {
  height: 350px;
  overflow-y: scroll;
  padding: 20px;
  line-height: 1.6;
  font-size: 14px;
}

/* ===============================
   모바일 – 버튼/글자만 살짝 축소
=============================== */

@media (max-width: 768px) {

  #device-pc .header-inner {
    padding: 10px 12px;
  }

  #device-pc .logo {
    font-size: 16px;
  }

  #device-pc .header-buttons a {
    padding: 5px 10px;
    font-size: 12px;
  }

  .section-form {
    padding: 40px 16px 32px;
  }

  #frmpc {
    width: 100%;
    max-width: 100%;
  }

  #frmpc li > div > span {
    font-size: 16px;
    padding: 4px 8px;
  }

  #frmpc li > div > span:first-child {
    width: 80px;
  }

  #frmpc li > div > span:last-child {
    width: calc(100% - 80px);
  }

  #frmpc .input-control {
    font-size: 14px;
    padding: 10px;
  }
}

/* ===============================
   상담 신청 버튼 (텍스트 버튼)
=============================== */

/* 버튼 박스 정렬 */
#frmpc .submitbox {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

/* 공통 버튼 스타일 */
#frmpc .btn-submit {
  display: inline-block;
  width: 100%;
  max-width: 360px;          /* PC에서 너무 길지 않게 */
  padding: 16px 24px;
  border-radius: 999px;      /* 동그란 버튼 */
  border: none;
  background: #F04438;       /* 강한 레드 계열 */
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; /* ← 추가 */
  letter-spacing: -0.03em;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0,0,0,0.25); /* 약간 입체감 */
  cursor: pointer;
  box-sizing: border-box;
}

/* 호버/클릭 효과 */
#frmpc .btn-submit:hover {
  background: #D73228;
}

#frmpc .btn-submit:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

/* ===============================
   모바일에서 버튼 안정감 있게
=============================== */
@media (max-width: 768px) {

  #frmpc {
    padding: 0 16px;          /* 좌우 여백 */
  }

  #frmpc .btn-submit {
    max-width: 100%;         /* 화면 너비 꽉 채우기 */
    font-size: 16px;
    padding: 14px 18px;
  }
}

