@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200..900&display=swap');

.sv__notice {
  background: url(/assets/img/sub/sv_customer.jpg);
}

/* write.skin.php */
.contact {
  padding: 80px 0 0;
}

.contact .inner__sub {
  border-radius: 140px 140px 0 0;
  background-color: #f7f7f7;
}

.contact form {
  padding: 100px 70px 60px;
}

.contact__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
}

.contact label {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: #3e3a39;
  margin-bottom: 10px;
}

.contact label strong {
  color: var(--c-sub);
}

.contact input,
.contact textarea {
  width: 100%;
  border: 1px solid #cccccc;
  font-size: 1.25rem;
  color: #666;
  padding: 10px 8px;
  margin-bottom: 26px;
}

.contact textarea {
  resize: none;
  height: 300px;
}

.contact input:focus {
  outline: none;
}

/* 전체 캡챠 영역 */
#captcha.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
}

#captcha legend {
  display: none;
}

/* 캡챠 이미지 */
#captcha_img {
  width: 120px;
  height: 48px;
  object-fit: contain;
}

#captcha input {
  margin: 0;
  width: 200px;
}

#captcha_mp3,
#captcha_reload {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  text-indent: -9999px;
  /* 글자 숨김 */
  overflow: hidden;
}

#captcha_mp3:hover,
#captcha_reload:hover {
  background: #f5f5f5;
}

#captcha_mp3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/common/icon_volumeup.svg') no-repeat center;
  background-size: 18px 18px;
}

#captcha_reload::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/common/icon_refresh.svg') no-repeat center;
  background-size: 18px 18px;
}

#captcha_info {
  display: none;
}

.contact__submit__wrap {
  text-align: center;
  margin: 80px 0;
}

.contact__submit__wrap p {
  margin-bottom: 20px;
}

.contact__submit__wrap label {
  font-size: 1rem;
  font-weight: 300;
}

.contact__submit__check {
  position: absolute;
  opacity: 0;
  left: 0;
}

.contact__submit__check + label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  display: inline-block;
}

/* 바깥 박스(테두리) */
.contact__submit__check + label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1px solid #3e3a39;
  background: #fff;
}

/* 안쪽 채움(기본은 숨김) */
.contact__submit__check + label::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--c-sub);
  opacity: 0;
}

.contact__submit__check:checked + label::after {
  opacity: 1;
}

.contact__submit__wrap button {
  background-color: var(--c-sub);
  color: #ffffff;
  padding: 18px 50px;
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 999px;
}

/* --- Contact Us 페이지 반응형 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .contact .inner__sub {
    width: 95%;
    margin: 0 auto;
  }

  .contact form {
    padding: 80px 50px 50px;
  }

  .contact__grid {
    gap: 40px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .contact .inner__sub {
    border-radius: 80px 80px 0 0;
  }

  .contact input,
  .contact textarea {
    font-size: 1.1rem;
  }

  .contact label {
    font-size: 1.1rem;
  }
}

/* 3. 태블릿 가로 (1024px) */
@media screen and (max-width: 1024px) {
  .contact {
    padding: 40px 0 0;
  }

  .contact .inner__sub {
    border-radius: 50px 50px 0 0;
  }

  .contact form {
    padding: 60px 30px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    /* 2열에서 1열로 전환 */
    gap: 0;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .contact label {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .contact input,
  .contact textarea {
    padding: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
  }

  .contact textarea {
    height: 200px;
  }

  /* 캡챠 영역 반응형 */
  #captcha.captcha {
    flex-wrap: wrap;
    /* 캡챠 요소가 넘치면 다음 줄로 */
    gap: 8px;
  }

  #captcha input {
    width: 100%;
    margin-top: 5px;
  }

  /* 입력창을 아래로 가득 채움 */

  .contact__submit__wrap {
    margin: 40px 0;
  }

  .contact__submit__wrap button {
    width: 100%;
    /* 버튼을 가로로 꽉 채움 */
    padding: 15px;
    font-size: 1.1rem;
  }
}

/* 5. 스마트폰 (480px) */
@media screen and (max-width: 480px) {
  .contact form {
    padding: 40px 20px;
  }

  /* 체크박스 텍스트 가독성 */
  .contact__submit__wrap label {
    font-size: 0.9rem;
    letter-spacing: -0.5px;
  }

  #captcha_img {
    width: 100px;
    height: 40px;
  }

  #captcha_mp3,
  #captcha_reload {
    width: 40px;
    height: 40px;
  }
}