/* ======================
   Contact Section
   ====================== */

/* --- 섹션 전체 --- */
.contact-us {
  background-image: url(../images/main/contact-us--bg.png);
  background-color: #D6E4FF;
}

/* --- 내부 컨테이너 --- */
.contact-us__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5.4rem;
  gap: 54px;
}

/* ======================
   Contact Us 헤더
   ====================== */

.contact-us__head {
  width: 100%;
}

.contact-us__label {}

.contact-us__title {}

.contact-us__desc {
  color: #666;
}


/* ======================
   Contact Us 폼 전체
   ====================== */
.contact-us__body {
  width: 100%;
}

.contact-us__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  gap: 24px;
  width: 100%;
  align-items: center;
}

/* --- 폼 행 --- */
.contact-us__row {
  display: flex;
  gap: 2rem;
  gap: 20px;
  width: 100%;
}

.contact-us__row--bottom {
  align-items: flex-end;
}

/* ======================
   필드 공통
   ====================== */

.contact-us__field {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  gap: 12px;
  flex: 1;
}

.contact-us__field--full {
  flex: 1 1 100%;
}

.contact-us__field--agree {
  flex: 1;
  flex-direction: row;
  align-items: center;
}

/* --- 레이블 --- */
.contact-us__label-text {
  font-size: 2rem;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.contact-us__required {
  color: #149aed;
  margin-left: 0.2rem;
  margin-left: 2px;
}

/* ======================
   입력 필드
   ====================== */

.contact-us__input,
.contact-us__select,
.contact-us__textarea {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 0.5rem;
  border-radius: 5px;
  padding: 2rem 2.4rem;
  padding: 20px 24px;
  font-size: 1.7rem;
  font-size: 17px;
  color: #111;
  font-family: inherit;
  outline: none;
  transition: box-shadow var(--transition);
}

.contact-us__input::placeholder,
.contact-us__textarea::placeholder {
  color: #999;
}

.contact-us__input:focus,
.contact-us__input[type="text"]:focus,
.contact-us__select:focus,
.contact-us__textarea:focus {
  box-shadow: 0 0 0 2px rgba(20, 154, 237, 0.4);
  border: 0 !important;
}

/* --- 단일 행 입력 높이 --- */
.contact-us__input,
.contact-us__select {
  height: 6rem;
  height: 60px;
}

/* --- 문의내용 textarea --- */
.contact-us__textarea {
  height: 16rem;
  height: 160px;
  resize: vertical;
  line-height: 1.5;
  resize: none;
}

/* ======================
   셀렉트 커스텀
   ====================== */

.contact-us__select-wrap {
  position: relative;
}

.contact-us__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: #111;
}

.contact-us__select:invalid,
.contact-us__select option[value=""] {
  color: #999;
}

.contact-us__select-arrow {
  position: absolute;
  right: 2.4rem;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
  width: 1rem;
  width: 10px;
  height: 2rem;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 화살표 SVG (inline) */
.contact-us__select-arrow::after {
  content: "";
  display: block;
  width: 0.8rem;
  w8idth: 8px;
  height: 1.4rem;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20' fill='none'%3E%3Cpath d='M1 1L9 10L1 19' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ======================
   파일 첨부
   ====================== */

.contact-us__file-wrap {
  display: flex;
  gap: 1.2rem;
  gap: 12px;
  align-items: center;
}

.contact-us__file-name {
  flex: 1;
  height: 6rem;
  height: 60px;
  background: #fff;
  border-radius: 0.5rem;
  border-radius: 5px;
  padding: 2rem 2.4rem;
  padding: 20px 24px;
  font-size: 1.7rem;
  fzont-size: 17px;
  color: #727272;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
}

.contact-us__file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  gap: 5px;
  width: 15rem;
  height: 6rem;
  width: 150px;
  height: 60px;
  background: #149aed;
  border-radius: 0.5rem;
  border-radius: 5px;
  font-size: 1.7rem;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-us__file-btn:hover {
  background: #0d82c8;
}

.contact-us__file-btn span {
  display: flex;
  align-items: center;
}

.contact-us__file-icon {
  width: 2.4rem;
  height: 2.4rem;
  width: 24px;
  height: 24px;
}

/* ======================
   개인정보 동의 체크박스
   ====================== */
.contact-us__agree-box {
  position: relative;
}

.contact-us__agree-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: 10px;
  height: 6rem;
  height: 60px;
  cursor: pointer;
  font-size: 1.7rem;
  font-size: 17px;
  font-weight: 500;
  color: #111;
}

/* 기본 checkbox 숨김 */
.contact-us__checkbox {
  position: absolute;
  opacity: 0;
  width: 2.3rem;
  height: 2.3rem;
  width: 23px;
  height: 23px;
  top: 50%;
  transform: translateY(-50%);
}

/* 커스텀 체크박스 */

.contact-us__agree-label::before {
  content: "";
  display: block;
  width: 2.3rem;
  height: 2.3rem;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: background var(--transition), border-color var(--transition);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.contact-us__checkbox:checked+.contact-us__agree-text::before {
  /* JS로 처리하므로 label::before에서 관리 */
}

/* 체크된 상태: label에 data-checked 부여 */
.contact-us__checkbox:checked+label:before,
.contact-us__agree-label.is-checked::before {
  background-color: #149aed;
  border-color: #149aed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3 9L7.5 13.5L15 5' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.contact-us__agree-text {}

.contact-us__agree-link {
  font-size: 1.7rem;
  font-size: 17px;
  color: #149aed;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;

}

.contact-us__agree-link:hover {
  opacity: 0.8;
}

/* ======================
   제출 버튼
   ====================== */

.contact-us__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-top: 30px;
}

.contact-us__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18rem;
  width: 180px;
  height: 60px;
  height: 6rem;
  border: none;
  border-radius: 80px;
  background: linear-gradient(92.95deg, #56c0fe 0.85%, #6d0ee6 126.37%);
  font-size: 2rem;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.contact-us__submit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ======================
   Contact Us 반응형 (~ 1024px)
   ====================== */

@media (max-width: 1024px) {
  .contact-us {
    background-image: url(../images/main/contact-us--bg-mo.png);
    padding-bottom: 9.5rem;
    padding-bottom: 95px;
  }

  .contact-us__inner {
    gap: 4rem;
    gap: 40px;
  }

  /* 행: 세로 방향 */
  .contact-us__row {
    flex-wrap: wrap;
    gap: 1.6rem;
    gap: 16px;
  }

  .contact-us__row--bottom {
    flex-direction: column;
  }


  .contact-us__field {
    flex: none;
    width: calc(50% - 8px);
    gap: 8px;
  }

  .contact-us__field--full {
    width: 100%;
  }

  .contact-us__row--bottom .contact-us__field {
    width: 100%;
  }

  .contact-us__form {
    gap: 0;
    row-gap: 1.6rem;
    row-gap: 16px;
  }

  .contact-us__label-text {
    font-size: 1.5rem;
    font-size: 15px;
  }

  .contact-us__input,
  .contact-us__select,
  .contact-us__textarea,
  .contact-us__file-name,
  .contact-us__file-btn {
    height: 40px;
    font-size: 12px;
    padding: 12px !important;
  }

  .contact-us__textarea {
    height: 100px;
  }

  .contact-us__file-btn {
    width: 120px;
    font-size: 14px;
  }

  .contact-us__file-name {}

  .contact-us__agree-link,
  .contact-us__agree-text {
    font-size: 15px;
  }

  .contact-us__agree-label {
    height: auto;
  }

  .contact-us__submit {
    width: 140px;
    height: 44px;
    font-size: 15px;
  }
}