/* ================================== */
/* 1. 기본 레이아웃 (제공해주신 코드) */
/* ================================== */
.page-content {
  width: 70%;
  margin: 0 auto;
  min-width: 0;
  padding: 15px 0;
}

.page-contact-section {
  border-top: 2px solid #000;
  padding-top: 32px;
  display: flex;
  margin-bottom: 4rem;
  gap: 10px;
}

.page-contact-section h2 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  width: 25%;
}

.page-contact-section h4 {
  font-size: 22px;
}

/* ================================== */
/* 2. 폼 스타일 (새로 추가된 코드) */
/* ================================== */
.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  width: 75%;
}

/* 폼 상단 소개 텍스트 */
.contact-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #000;
}

.contact-intro-en {
  color: #666;
  margin-top: 2rem;
  margin-bottom: 5rem;
  /* 폼과의 간격 */
}

/* 폼 기본 그룹 (간격) */
.form-group {
  margin-bottom: 2rem;
}

/* 폼 공통 입력 요소 (input, select, textarea) */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 10px;
  color: #000;
  border: 1px solid #e1e1e1;
  background-color: transparent;
  box-sizing: border-box;
  border-radius: 0;
}

/* 브라우저 기본 스타일 제거 (select) */
.contact-form-wrapper select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 텍스트 영역 */
.contact-form-wrapper textarea {
  resize: vertical;
  /* 세로로만 크기 조절 */
  min-height: 150px;
}

/* placeholder 스타일 */
.contact-form-wrapper ::placeholder {
  opacity: 0.5;
  font-size: 15px;
}

/* 50% / 50% 가로 배치 */
.form-row {
  display: flex;
  gap: 24px;
  /* 두 요소 사이 간격 */
}

.form-row .form-group {
  flex: 1;
  /* 1:1 비율로 나눔 */
  min-width: 0;
  /* flex 깨짐 방지 */
}

/* 개인정보 동의 (체크박스 + 라벨) */
.form-agreement {
  display: flex;
  align-items: flex-start;
  /* 글이 길어질 경우 위로 정렬 */
  margin-top: 1rem;
}

.form-agreement input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}

.form-agreement label {
  line-height: 1.6;
  word-break: keep-all;
  /* 단어 단위로 줄바꿈 */
}

/* 전송 버튼 */
.form-actions {
  margin-top: 2rem;
}

.btn-send {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.5px;
}

/* ================================== */
/* 3. 반응형 (제공해주신 코드 수정) */
/* ================================== */

@media (max-width: 768px) {
  /* 기존 page-wrapper 반응형 (만약 있다면) */
  /* .page-shipping-wrapper 등은 이 페이지에 없으므로 생략 */

  .page-content {
    width: 90%;
    /* 모바일에서 좌우 여백 */
  }

  /* h2(제목)와 폼(내용)이 세로로 쌓이도록 */
  .page-contact-section {
    flex-direction: column;
    padding-top: 2rem;
    gap: 0;
  }

  .page-contact-section h2 {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .contact-form-wrapper {
    width: 100%;
    /* 너비 100% */
  }

  /* 50/50 가로 그룹을 모바일에서 세로로 쌓음 */
  .form-row {
    flex-direction: column;
    gap: 0;
    /* 간격을 0으로 하고, form-group의 margin-bottom으로 간격 제어 */
  }

  /* .form-row 내부의 .form-group 은 마지막 요소를 제외하고 간격 부여 */
  /* (이미 form-group 에 margin-bottom 이 있으므로 이 코드는 필요 없음) */

  .form-agreement label {
    font-size: 0.75rem;
  }
}
