/* ==========================================================================
   인포디오 - 도입 문의 페이지 전용 스타일시트
   레이아웃: 좌측 브랜드 패널(480px) + 우측 양식 패널(나머지)
   100vh 고정, 스크롤 없음 (데스크톱)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 페이지 기본 설정 (헤더/푸터 없는 독립 페이지)
   -------------------------------------------------------------------------- */
.contact-page {
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   1. 전체 레이아웃 - 2컬럼 가로 배치
   -------------------------------------------------------------------------- */
.contact-layout {
  display: flex;
  max-width: var(--max-width);  /* 다른 페이지와 동일한 컨텐츠 너비 */
  margin: 0 auto;
  padding: 0 20px;
  padding-top: var(--header-height); /* 헤더 높이만큼 상단 여백 */
  flex: 1;
  min-height: 0;                     /* flex 자식 overflow 허용 */
}

/* --------------------------------------------------------------------------
   2. 좌측 패널 - 브랜드 정보 영역
   -------------------------------------------------------------------------- */
.contact-left {
  width: 420px;
  min-width: 420px;
  background: linear-gradient(180deg, #1a1a1a 0%, #333333 100%);
  border-radius: 20px;        /* 컨텐츠 영역 내이므로 둥근 모서리 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  margin: 30px 0;
}

/* 배경 장식 효과 (은은한 그라데이션 원) */
.contact-left::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 126, 32, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-left::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(244, 126, 32, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-left__inner {
  position: relative;
  z-index: 1;
}

/* --- 로고 --- */
.contact-left__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* 로고 아이콘 (이모지 배경) */
.contact-left__logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

/* 로고 텍스트 */
.contact-left__logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* --- 메인 카피 --- */
.contact-left__title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 36.4px;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* 보조 설명 */
.contact-left__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 48px;
}

/* --- 연락처 목록 --- */
.contact-left__info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 연락처 항목 (아이콘 + 텍스트) */
.contact-left__info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 아이콘 배경 */
.contact-left__info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
}

/* 연락처 텍스트 */
.contact-left__info-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.2px;
}

/* --------------------------------------------------------------------------
   3. 우측 패널 - 문의 양식 영역
   -------------------------------------------------------------------------- */
.contact-right {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.contact-right__inner {
  padding: 40px 60px;
  max-width: 880px;
  width: 100%;
  margin: auto 0;             /* 공간 여유 시 세로 중앙, 넘칠 때는 위부터 표시 */
}

/* --- 홈으로 돌아가기 --- */
.contact-right__back {
  display: inline-block;
  font-size: 18px;
  color: #999;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.contact-right__back:hover {
  color: var(--color-primary, #f47e20);
}

/* --- 양식 제목 --- */
.contact-right__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

/* 양식 부제 */
.contact-right__subtitle {
  font-size: 18px;
  color: #999;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. 양식 필드 스타일
   -------------------------------------------------------------------------- */

/* 2열 그리드 행 */
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* 개별 필드 */
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 전체 폭 필드 */
.contact-form__field--full {
  margin-bottom: 16px;
}

/* 레이블 */
.contact-form__label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* 필수 표시 (빨간 별) */
.required {
  color: #f64c4c;
  margin-left: 2px;
}

/* 텍스트 입력 필드 */
.contact-form__input {
  height: 42px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 18px;
  font-family: var(--font-primary, 'SUIT', sans-serif);
  color: #333;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input::placeholder {
  color: #aaa;
}

/* 포커스 상태 */
.contact-form__input:focus {
  border-color: var(--color-primary, #f47e20);
  box-shadow: 0 0 0 3px rgba(244, 126, 32, 0.1);
}

/* 유효성 검증 실패 상태 */
.contact-form__input.is-invalid {
  border-color: #f64c4c;
  box-shadow: 0 0 0 3px rgba(246, 76, 76, 0.1);
}

/* 셀렉트 (드롭다운) */
.contact-form__select {
  height: 42px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 36px 0 15px;
  font-size: 18px;
  font-family: var(--font-primary, 'SUIT', sans-serif);
  color: #333;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;

  /* 드롭다운 화살표 (커스텀 SVG) */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* 셀렉트 기본값(placeholder) 색상 */
.contact-form__select:invalid,
.contact-form__select option[value=""][disabled] {
  color: #aaa;
}

.contact-form__select:focus {
  border-color: var(--color-primary, #f47e20);
  box-shadow: 0 0 0 3px rgba(244, 126, 32, 0.1);
}

/* 텍스트 영역 (문의 내용) */
.contact-form__textarea {
  height: 100px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 18px;
  font-family: var(--font-primary, 'SUIT', sans-serif);
  color: #333;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__textarea::placeholder {
  color: #aaa;
}

.contact-form__textarea:focus {
  border-color: var(--color-primary, #f47e20);
  box-shadow: 0 0 0 3px rgba(244, 126, 32, 0.1);
}

/* --------------------------------------------------------------------------
   5. 관심 모듈 칩 (Chip) 스타일
   -------------------------------------------------------------------------- */
.contact-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 칩 기본 스타일 (미선택) */
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #555;
  font-size: 18px;
  font-family: var(--font-primary, 'SUIT', sans-serif);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.contact-chip:hover {
  border-color: #ccc;
  background: #f9f9f9;
}

/* 칩 체크박스 영역 */
.contact-chip__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}

/* 칩 선택 상태 */
.contact-chip.is-selected {
  background: #fef8ee;
  border-color: #f5a623;
  color: #f5a623;
}

.contact-chip.is-selected .contact-chip__check {
  background: #f5a623;
  border-color: #f5a623;
  color: #fff;
}

/* 선택된 칩의 체크 아이콘 */
.contact-chip.is-selected .contact-chip__check::after {
  content: '✓';
  font-size: 18px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. 개인정보 동의 체크박스
   -------------------------------------------------------------------------- */
/* 개인정보 수집·이용 안내 박스 */
.contact-form__privacy-box {
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.contact-form__privacy-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.contact-form__privacy-notice {
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
  line-height: 1.5;
}

.contact-form__privacy-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-form__privacy-table th,
.contact-form__privacy-table td {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  line-height: 1.5;
}

.contact-form__privacy-table th {
  width: 80px;
  font-weight: 600;
  color: #555;
  text-align: left;
}

.contact-form__privacy-table td {
  color: #666;
}

.contact-form__privacy-table tr:last-child th,
.contact-form__privacy-table tr:last-child td {
  border-bottom: none;
}

/* 동의 체크박스 */
.contact-form__agree {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  margin-top: 4px;
}

/* 실제 체크박스 숨김 */
.contact-form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 커스텀 체크박스 시각 요소 */
.contact-form__checkbox-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 1.5px solid #ddd;
  background: #fff;
  transition: all 0.2s ease;
}

/* 체크 시 스타일 */
.contact-form__checkbox:checked + .contact-form__checkbox-visual {
  background: #333;
  border-color: #333;
}

.contact-form__checkbox:checked + .contact-form__checkbox-visual::after {
  content: '✓';
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* 개인정보 링크 (오렌지 강조) */
.contact-form__agree-link {
  color: #f5a623;
  text-decoration: underline;
  font-weight: 500;
}

.contact-form__agree-link:hover {
  color: #e0951a;
}

.contact-form__agree-text {
  font-size: 18px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. 제출 버튼
   -------------------------------------------------------------------------- */
.contact-form__submit {
  width: 100%;
  height: 52px;
  margin-top: 24px;
  background: #f5a623;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-primary, 'SUIT', sans-serif);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-form__submit:hover {
  background: #e0951a;
}

.contact-form__submit:active {
  transform: scale(0.99);
}

/* --------------------------------------------------------------------------
   8. 등장 애니메이션
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 좌측 패널 요소 순차 등장 */
.contact-left__logo {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.contact-left__title {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.contact-left__subtitle {
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.contact-left__info {
  animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* 우측 패널 등장 */
.contact-right__inner {
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

/* --------------------------------------------------------------------------
   9. 반응형 - 태블릿 (1024px 이하)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .contact-left {
    width: 380px;
    min-width: 380px;
    padding: 48px 36px;
  }

  .contact-right__inner {
    padding: 36px 40px 36px;
  }
}

/* --------------------------------------------------------------------------
   10. 반응형 - 모바일 (768px 이하)
       좌측 패널 → 상단 배너로 전환, 세로 스크롤 허용
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .contact-page {
    overflow-y: auto;
    height: auto;
  }

  .contact-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  /* 좌측 패널 → 상단 배너 */
  .contact-left {
    width: 100%;
    min-width: unset;
    padding: 36px 24px 32px;
  }

  .contact-left__title {
    font-size: 22px;
    line-height: 30px;
  }

  .contact-left__subtitle {
    margin-bottom: 28px;
  }

  /* 우측 패널 */
  .contact-right__inner {
    padding: 28px 20px 40px;
  }

  /* 2열 그리드 → 1열 */
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  /* 칩 줄바꿈 허용 */
  .contact-form__chips {
    gap: 8px;
  }

  .contact-chip {
    font-size: 18px;
    height: 32px;
    padding: 0 12px;
  }
}
