/* =========================================
   상담신청 서브페이지 전용 스타일 (consult.css)
========================================= */

.consult-section {
  padding: 100px 0 120px;
  background: #FFFFFF;
}

.consult-header {
  text-align: center;
  margin-bottom: 35px;
}

.consult-header h3 {
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 38px;
  margin-bottom: 12px;
}

.consult-header p {
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}

/* --- 상담 폼 래퍼 (회색 박스) --- */
.consult-form-wrap {
  width: 100%;
  max-width: 795px; /* 시안 고정 너비 */
  margin: 0 auto;
  background: #EFEFEF;
  padding: 50px 60px; /* 내부 여유 공간 */
  box-sizing: border-box;
}

/* --- 상단 비밀보장 안내 배너 (2줄 완벽 대응) --- */
.consult-notice {
  width: 100%;
  max-width: 425px; /* 피그마 시안 사이즈 완벽 반영 */
  min-height: 57px; /* 피그마 시안 사이즈 완벽 반영 */
  margin: 0 auto 40px auto; /* 가로 중앙 정렬 및 하단 여백 40px */
  background: #B70000;
  border-radius: 5px; /* 디자인에 맞게 모서리를 살짝 둥글게 (필요시 조절) */
  padding: 10px 20px;
  display: flex;
  align-items: center; /* 아이콘과 텍스트 수직 중앙 정렬 */
  justify-content: center;
  gap: 12px; /* 아이콘과 텍스트 사이 간격 */
}

.consult-notice .icon {
  flex-shrink: 0; /* 텍스트가 길어져도 아이콘은 안 찌그러지게 방어 */
  display: flex;
}

.consult-notice .text-wrap {
  color: #FFF;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5; /* 2줄일 때 예쁘게 떨어지도록 행간 설정 */
  word-break: keep-all;
  display: flex;
  flex-direction: column; /* 주제목/소제목 분리를 대비한 세로 배치 */
  white-space: nowrap;

}

/* --- 입력 폼 (이름, 전화번호, 내용) --- */
.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.form-label {
  width: 150px; /* 라벨 고정 너비 */
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 38px; /* 입력칸 높이와 맞춤 */
  flex-shrink: 0;
  padding-top: 10px; /* 텍스트 입력창 높이에 맞춘 세로 정렬 */
}

.form-input-wrap {
  flex: 1; /* 남은 공간 모두 차지 */
}

.form-input-wrap input[type="text"],
.form-input-wrap input[type="tel"],
.form-input-wrap textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #DDDDDD; /* 입력칸 구분선 */
  padding: 15px 20px;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  color: #313131;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

.form-input-wrap input:focus,
.form-input-wrap textarea:focus {
  border-color: #B70000; /* 포커스 시 빨간색 테두리 */
}

.form-input-wrap input {
  height: 58px; /* 일반 입력칸 높이 */
}

.form-input-wrap textarea {
  height: 150px; /* 내용 입력칸 높이 */
  resize: none; /* 크기 조절 방지 */
  line-height: 1.6;
}

/* --- 하단 개인정보 동의 체크박스 --- */
.agreement-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.agreement-inline-group {
  display: inline-flex;
  align-items: center;
}

/* 기본 체크박스 숨기기 */
.agreement-wrap input[type="checkbox"] {
  display: none; 
}

/* 커스텀 라벨 (체크박스 역할) */
.agree-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  font-size: 17px;
  color: #313131;
  line-height: 38px;
  margin-right: 2px;
}

/* 네모난 커스텀 체크박스 모양 */
.agree-label .chk-box {
  width: 24px;
  height: 24px;
  background: #FFF;
  border: 1px solid #CCC;
  margin-right: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

/* V자 SVG 아이콘 기본 숨김 */
.agree-label .chk-box svg {
  display: none;
}

/* 체크되었을 때의 디자인 변화! */
input[type="checkbox"]:checked + .agreement-inline-group .agree-label .chk-box {
  background: #B70000;
  border-color: #B70000;
}

input[type="checkbox"]:checked + .agreement-inline-group .agree-label .chk-box svg {
  display: block; /* 빨간 배경 위에 흰색 V자 등장 */
}

/* 텍스트 강조 및 밑줄 */
.agree-label .req { color: #B70000; font-weight: 600; margin-right: 5px; }
.agree-text {
  font-family: 'Pretendard', sans-serif;
  font-size: 17px;
  color: #313131;
  line-height: 38px;
}

.agree-text .link {
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- 제출 버튼 --- */
.btn-submit {
  display: block;
  width: 100%;
  max-width: 315px; /* 시안 사이즈 약 314.7px */
  height: 53px;
  margin: 0 auto;
  border-radius: 30px;
  background: #313131;
  color: #FFF;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background: #B70000; /* 호버 시 포인트 컬러 */
}

/* =========================================
   모바일 반응형 (화면 가로 768px 이하일 때)
========================================= */
@media screen and (max-width: 768px) {
  .consult-section { padding: 65px 0; }
  .consult-header{
    margin-bottom: 24px;
  }
  .consult-header h3 { 
    font-size: 22px; line-height: 1.4; 
    color: #313131;
    text-align: center;
    font-family: Pretendard;
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4
  }
  .consult-header p { 
    font-size: 15px; line-height: 1.5; word-break: keep-all; 
    color: #313131;
    text-align: center;
    font-family: Pretendard;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.4
  }
  
  .consult-notice{
    min-height: 40px;
    margin: 0 auto 10px auto;
    padding: 0;
    gap: 8px;
  }

  .consult-notice .text-wrap{
    color: #FFF;
    text-align: center;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4
  }

  .consult-form-wrap {
    padding: 67px 30px 67px;
  }

  .consult-notice .text-wrap {
    font-size: 14px;
    line-height: 27px;
    color: #FFF;
text-align: center;
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  }

  /* 라벨과 입력칸을 좌우 배치에서 상하 배치로 변경 */
  .form-row {
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  .form-label {
    width: 129px;
    height: 38px;
    font-size: 16px;
    font-weight: 600;
    line-height: 38px;
    padding-top: 0;
    margin-bottom: 0;

  color: #313131;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 38px; /* 237.5% */
  }

  .form-input-wrap input[type="text"],
  .form-input-wrap input[type="tel"] { 
    width: 247px;
    height: 33px; 
    padding: 0 10px;
    padding: 10px 12px;
  }
  .form-input-wrap textarea { 
    width: 247px;
    height: 133px; 
  }
  
  .agree-label { font-size: 13px; line-height: 1.5; }
  .agree-text { font-size: 13px; line-height: 1.5; }
  .btn-submit { 
    width: 180px;
    height: 35px;
    border-radius: 30px;
    font-size: 13px;
    max-width: none; 
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
