@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.request-select-page {
  background-color: #ffffff;
  min-height: 0;
}

/*
  전역 style.css 의 #wrap .container { display:flex } 가 ID 특이도로 더 높아서
  .request-select-page > .container { display:block } 가 무시되고 있었음 →
  레이아웃이 깨지고 카드가 아래로 밀리는 원인. 같은 요소에 id+class로 덮어씀.
*/
#wrap.request-select-page > .container {
  display: block;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/*
  common.css 전역: section { min-height: calc(100vh - 285px); }
  → 의뢰 선택 페이지의 .request-select-hero 도 동일 규칙을 받아
     제목만 있어도 섹션 높이가 거의 풀뷰포트로 잡혀 카드가 아래로 밀림.
*/
#wrap.request-select-page .request-select-hero,
#wrap.request-select-page .request-select-grid {
  min-height: 0;
  height: auto;
  /* common.css section { overflow-x: hidden } 는 세로축이 auto로 바뀌어 스크롤이 생길 수 있음 → 이 페이지만 해제 */
  overflow: visible;
}

.request-select-main {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  /* 헤더(102px) 아래만 살짝 띄움 — 과한 padding-top 이 카드를 화면 아래로 밀던 원인 */
  padding: 58px 0 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 38px;
  min-height: 0;
}

.request-select-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 6px 0 0;
  padding: 20px 16px 24px;
  flex-shrink: 0;
}

/* 히어로 박스 기준 중앙 = 제목(h1) 영역 정가운데 */
.request-select-ellipse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(228, 242, 243, 1) 0%,
    rgba(237, 247, 251, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.request-select-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(64, 121, 140, 0.08);
  color: #40798c;
  font-size: 0.78rem;
  font-weight: 600;
}

.request-select-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: #000000;
}

.request-select-subtitle { display: none; }

.request-select-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
  flex-shrink: 0;
}

.request-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.request-card-body {
  position: relative;
  padding: 34px 28px 30px 30px;
  min-height: 168px;
  border-radius: 40px;
  background-color: #e4f2f3;
  box-shadow: 0px 5px 10px 3px #0000000d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.request-card-kor {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #40798c;
}

.request-card-eng {
  margin: 14px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(64, 121, 140, 0.65);
}

.request-card-body::after {
  content: "→";
  position: absolute;
  right: 28px;
  bottom: 22px;
  font-size: 18px;
  color: rgba(64, 121, 140, 0.7);
  transition: transform 0.18s ease, color 0.18s ease;
}

.request-card:hover .request-card-body,
.request-card:focus-visible .request-card-body {
  transform: translateY(-4px);
  box-shadow: 0px 12px 24px rgba(31, 54, 61, 0.18);
  background-color: #d7ecee;
}

.request-card:hover .request-card-body::after,
.request-card:focus-visible .request-card-body::after {
  transform: translateX(3px);
  color: #1f363d;
}

@media (max-width: 1023px) {
  .request-select-main {
    height: auto;
    min-height: auto;
    padding: 48px 0 40px;
    gap: 32px;
  }

  .request-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 660px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .request-select-main {
    padding: 44px 0 36px;
    gap: 32px;
  }

  .request-select-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 26px;
  }

  .request-select-title {
    font-size: 22px;
  }

  .request-card-kor {
    font-size: 25px;
  }
}

/* 데스크톱(1024+): 헤더 아래 영역 최소 한 화면 높이 */
@media (min-width: 1024px) {
  #wrap.request-select-page {
    min-height: calc(100vh - 102px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  #wrap.request-select-page > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* 세로 중앙 대신 위쪽에 붙여 문구를 더 위로 */
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    padding-top: 80px;
    box-sizing: border-box;
  }

  .request-select-main {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 62px;
    padding: 0 0 24px;
    margin-top: 0;
    margin-bottom: 0;
  }

}

