/* 거래선발굴 서비스 페이지 CSS - Figma Design */

/* 전체 컨테이너 */
.excavation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 40px;
  max-width: 1480px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 섹션 공통 */
.excavation-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 30px;
  width: 100%;
  max-width: 1440px;
}

/* 섹션 타이틀 - H5 Tit02 */
.excavation-section-title {
  font-family: "Pretendard GOV", "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #222222;
  margin: 0;
}

.excavation-section-title::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("/uploads/sub/Frame_644.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* 신청서 정보 박스 */
.excavation-info-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 30px 32px;
  gap: 40px;
  width: 100%;
  background: #F7F9FA;
  border-radius: 10px;
  box-sizing: border-box;
}

.excavation-info-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.excavation-info-label {
  font-family: "Pretendard GOV", "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 160%;
  color: #222222;
}

.excavation-info-value {
  font-family: "Pretendard GOV", "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: #222222;
}

/* 진행절차 순서도 */
.excavation-procedure {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 32px;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.excavation-procedure-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
}

/* 무료/유료 라벨 */
.excavation-procedure-label {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 160px;
  font-family: "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 160%;
  color: #696969;
}

/* 스텝 원형 */
.excavation-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 0;
  gap: 24px;
  width: 160px;
  height: 160px;
  background: #FFFFFF;
  border: 2px solid #707E8B;
  border-radius: 80px;
  box-sizing: border-box;
}

/* 스텝 번호 배지 */
.excavation-step-number {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #0066D4;
  border-radius: 12px;
  font-family: "Pretendard GOV", "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 160%;
  color: #FFFFFF;
}

/* 스텝 텍스트 */
.excavation-step-text {
  font-family: "Pretendard GOV", "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 130%;
  text-align: center;
  color: #222222;
  max-width: 120px;
}

/* 점선 연결선 */
.excavation-step-line {
  width: 40px;
  height: 0px;
  border: 2px dashed #404040;
}

/* 서비스 상세 테이블 */
.excavation-table {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  background: #FFFFFF;
  border-top: 2px solid #034EA2;
}

.excavation-table-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}

/* 테이블 헤더 */
.excavation-table-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  background: #EBEFF7;
  border-width: 0px 1px 1px 0px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  font-family: "Pretendard GOV", "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 160%;
  color: #334D61;
}

.excavation-table-header:last-child {
  border-right: none;
}

/* 테이블 셀 */
.excavation-table-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 24px;
  border-width: 0px 1px 1px 0px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  font-family: "Pretendard GOV", "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: #000000;
  text-align: center;
}

.excavation-table-cell:last-child {
  border-right: none;
}

/* 테이블 열 너비 */
.excavation-col-item { width: 240px; flex-shrink: 0; }
.excavation-col-content { flex: 1; min-width: 400px; }
.excavation-col-period { width: 240px; flex-shrink: 0; }
.excavation-col-price { width: 280px; flex-shrink: 0; border-right: none; }

/* 담당부서 정보 박스 */
.excavation-contact-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 30px 32px;
  gap: 40px;
  width: 100%;
  max-width: 1440px;
  background: #F7F9FA;
  border-radius: 10px;
  box-sizing: border-box;
}

/* 반응형 - 태블릿 */
@media (max-width: 1400px) {
  .excavation-container {
    padding: 30px 20px;
  }

  .excavation-procedure {
    padding: 0 16px;
  }

  .excavation-table-row {
    flex-wrap: wrap;
  }

  .excavation-col-item,
  .excavation-col-content,
  .excavation-col-period,
  .excavation-col-price {
    width: 50%;
    min-width: auto;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .excavation-container {
    padding: 20px 16px;
    gap: 30px;
  }

  .excavation-section {
    gap: 20px;
  }

  .excavation-section-title {
    font-size: 18px;
    gap: 8px;
  }

  .excavation-section-title::before {
    width: 20px;
    height: 20px;
  }

  .excavation-info-box {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .excavation-info-label,
  .excavation-info-value {
    font-size: 16px;
  }

  .excavation-procedure {
    padding: 0;
    align-items: center;
  }

  /* 모바일: 세로 배치 */
  .excavation-procedure-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .excavation-procedure-label {
    width: auto;
    height: auto;
    padding: 10px 20px;
    margin-bottom: 16px;
    background: #F7F9FA;
    border-radius: 20px;
  }

  .excavation-step {
    width: 140px;
    height: 140px;
    padding: 28px 0 0;
    gap: 16px;
  }

  .excavation-step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .excavation-step-text {
    font-size: 13px;
    max-width: 110px;
  }

  /* 세로 점선 */
  .excavation-step-line {
    width: 0px;
    height: 30px;
    border: none;
    border-left: 2px dashed #404040;
    margin: 8px 0;
  }

  .excavation-col-item,
  .excavation-col-content,
  .excavation-col-period,
  .excavation-col-price {
    width: 100%;
  }

  .excavation-table-header,
  .excavation-table-cell {
    padding: 12px 16px;
    font-size: 14px;
  }

  .excavation-contact-box {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
}

/* 반응형 - 소형 모바일 */
@media (max-width: 480px) {
  .excavation-step {
    width: 120px;
    height: 120px;
    padding: 24px 0 0;
    gap: 12px;
  }

  .excavation-step-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 8px;
  }

  .excavation-step-text {
    font-size: 12px;
    max-width: 90px;
  }

  .excavation-step-line {
    height: 24px;
  }

  .excavation-procedure-label {
    font-size: 14px;
    padding: 8px 16px;
  }
}