/* =============================================
   assessment.css — 디지털 역량 평가 전용 스타일
   디자인 참조: gxon.layoutdrop.com (GXON HR Dashboard)
   폰트: Plus Jakarta Sans (Google Fonts)
   Primary: #316AFF | Heading: #0c243c
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  /* GXON 기본 폰트 */
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* GXON 배경색: 연한 청회색 */
  background: #f2f4f8;
  color: #0c243c;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── 전체 페이지 래퍼 (세로 중앙 정렬) ── */
.assess-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
}

/* ── 배경 장식 그라디언트 블롭 ── */
.assess-bg-blob {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(49, 106, 255, 0.10) 0%, rgba(49, 106, 255, 0) 68%);
  top: -200px;
  right: -160px;
  pointer-events: none;
  z-index: 0;
}
.assess-bg-blob-2 {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 156, 64, 0.07) 0%, rgba(255,156,64,0) 70%);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
  z-index: 0;
}

/* ── 카드 (GXON 스타일: 흰 배경 + 부드러운 그림자) ── */
.assess-card {
  background: #fff;
  border-radius: 22px;
  /* GXON 카드 그림자 */
  box-shadow: 0 8px 36px rgba(20, 36, 71, 0.10), 0 2px 8px rgba(20, 36, 71, 0.05);
  width: 100%;
  max-width: 520px;
  padding: 44px 40px 36px;
  position: relative;
  z-index: 1;
}

/* ── 헤더 영역 ── */
.assess-header {
  text-align: center;
  margin-bottom: 34px;
}

/* 아이콘 래퍼 (GXON 원형 아이콘 스타일) */
.assess-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #316AFF 0%, #5b8fff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  /* GXON 컬러 드롭 섀도 */
  box-shadow: 0 10px 24px rgba(49, 106, 255, 0.34);
}
.assess-icon-wrap svg { flex-shrink: 0; }

.assess-title {
  font-size: 24px;
  font-weight: 800;
  color: #0c243c;        /* GXON 헤딩 컬러 */
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.assess-subtitle {
  font-size: 14px;
  color: #7a8faa;        /* GXON 뮤티드 컬러 */
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

/* ── 구분선 ── */
.assess-divider {
  height: 1px;
  background: #eef1f7;
  margin: 0 0 24px;
}

/* ── 폼 ── */
.assess-form {
  display: grid;
  gap: 18px;
}

/* 2열 레이아웃 (테스트구분 + 평가단계) */
.assess-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── 필드 그룹 ── */
.assess-field {
  display: grid;
  gap: 7px;
}

/* ── 레이블 (GXON: 소형 굵은 레이블) ── */
.assess-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #4b5675;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.01em;
}
.assess-label-req {
  color: #e11d48;
  margin-left: 1px;
}

/* ── 입력창 (GXON: 연한 테두리 + 포커스 링) ── */
.assess-input {
  height: 48px;
  border: 1.5px solid #e8ebf1;    /* GXON 입력창 테두리 */
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: #0c243c;
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}
.assess-input::placeholder {
  color: #aab4c4;
  font-weight: 400;
}
.assess-input:focus {
  border-color: #316AFF;
  box-shadow: 0 0 0 3.5px rgba(49, 106, 255, 0.13);
}

/* ── 셀렉트 래퍼 (커스텀 화살표) ── */
.assess-select-wrap {
  position: relative;
}
.assess-select {
  height: 48px;
  border: 1.5px solid #e8ebf1;
  border-radius: 10px;
  padding: 0 42px 0 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: #0c243c;
  background: #fff;
  outline: none;
  width: 100%;
  cursor: pointer;
  /* 기본 화살표 제거 */
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.assess-select:focus {
  border-color: #316AFF;
  box-shadow: 0 0 0 3.5px rgba(49, 106, 255, 0.13);
}
/* 커스텀 드롭다운 화살표 */
.assess-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa5b8;
  font-size: 11px;
  pointer-events: none;
  line-height: 1;
}

/* ── 평가 단계 힌트 chip ── */
.assess-level-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f4ff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #3a54a5;
  margin-top: -4px;
  transition: background 0.2s;
}
.level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #316AFF;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

/* ── 에러 메시지 ── */
.assess-error {
  display: none;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #e11d48;
  text-align: center;
}

/* ── 시작 버튼 (GXON 프라이머리 버튼) ── */
.assess-btn-start {
  height: 54px;
  background: #316AFF;           /* GXON 프라이머리 블루 */
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  box-shadow: 0 6px 20px rgba(49, 106, 255, 0.32);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  letter-spacing: -0.2px;
}
.assess-btn-start:hover {
  background: #1a53e0;
  box-shadow: 0 8px 26px rgba(49, 106, 255, 0.42);
  transform: translateY(-1px);
}
.assess-btn-start:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(49, 106, 255, 0.28);
}

/* ── 푸터 ── */
.assess-footer {
  text-align: center;
  margin: 28px 0 0;
  font-size: 12px;
  color: #b8c2d4;
  font-weight: 500;
}

/* ── 응시 장소 계층형 드롭다운 서브 항목 간격 ── */
.assess-loc-sub {
  margin-top: 8px;
}

/* 비활성(disabled) 셀렉트 스타일 */
.assess-select:disabled {
  background: #f7f9fc;
  color: #aab4c4;
  cursor: not-allowed;
  border-color: #eef1f7;
}

/* ── 반응형 (모바일) ── */
@media (max-width: 560px) {
  .assess-card {
    padding: 32px 22px 28px;
    border-radius: 18px;
  }
  .assess-row-2 {
    /* 모바일에서는 1열 */
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .assess-title { font-size: 21px; }
  .assess-icon-wrap { width: 58px; height: 58px; border-radius: 16px; }
}
