/**
 * careers.html — 이력서 입력 폼 + 미리보기 모달
 */

/* 모바일 Chrome 당겨서 새로고침(pull-to-refresh) 방지 */
html.careers-page-root,
html:has(body.careers-page),
body.careers-page {
  overscroll-behavior-y: none;
}

.careers-section {
  font-family: 'Noto Sans KR', 'LINE Seed', sans-serif;
}

/* 순수 CSS 페이드인 — Linux·구형 브라우저 호환 (opacity + transform만 사용) */
@-webkit-keyframes careers-fade-in {
  from { opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes careers-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 상단 한 줄 안내 */
.careers-hero {
  margin: 0 0 28px;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.03) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  text-align: center;
  -webkit-animation: careers-fade-in 0.65s ease-out both;
  animation: careers-fade-in 0.65s ease-out both;
}

.careers-hero__line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.careers-hero__title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.careers-hero__sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.careers-hero__text {
  white-space: nowrap;
}

.careers-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #2563eb;
  white-space: nowrap;
}

.careers-hero__brand i {
  font-size: 15px;
}

.careers-hero__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

/* 입사지원 현황 조회 — 눈에 띄는 카드 */
.careers-status-card {
  margin: 0 0 28px;
  -webkit-animation: careers-fade-in 0.55s ease-out 0.06s both;
  animation: careers-fade-in 0.55s ease-out 0.06s both;
}

.careers-status-card__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.careers-status-card__btn:hover,
.careers-status-card__btn:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.careers-status-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 20px;
}

.careers-status-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.careers-status-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.careers-status-card__desc {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.careers-status-card__arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: #2563eb;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .careers-status-card__btn {
    padding: 14px;
    gap: 12px;
  }

  .careers-status-card__icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .careers-status-card__desc {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .careers-hero {
    padding: 12px 14px;
  }

  .careers-hero__line {
    font-size: 13px;
    gap: 8px 10px;
  }

  .careers-hero__title {
    font-size: 15px;
    width: 100%;
  }

  .careers-hero__sep {
    display: none;
  }

  .careers-hero__text,
  .careers-hero__brand {
    white-space: normal;
  }
}

/* 폼 블록 순차 페이드인 */
.careers-section .resume-form-block,
.careers-section .resume-form-actions {
  opacity: 0;
  -webkit-animation: careers-fade-in 0.55s ease-out forwards;
  animation: careers-fade-in 0.55s ease-out forwards;
}

.careers-section .resume-form-block:nth-of-type(1) { animation-delay: 0.08s; }
.careers-section .resume-form-block:nth-of-type(2) { animation-delay: 0.14s; }
.careers-section .resume-form-block:nth-of-type(3) { animation-delay: 0.20s; }
.careers-section .resume-form-block:nth-of-type(4) { animation-delay: 0.26s; }
.careers-section .resume-form-block:nth-of-type(5) { animation-delay: 0.32s; }
.careers-section .resume-form-block:nth-of-type(6) { animation-delay: 0.38s; }
.careers-section .resume-form-block:nth-of-type(7) { animation-delay: 0.44s; }
.careers-section .resume-form-block:nth-of-type(8) { animation-delay: 0.50s; }
.careers-section .resume-form-block:nth-of-type(9) { animation-delay: 0.56s; }
.careers-section .resume-form-actions { animation-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
  .careers-hero,
  .careers-section .resume-form-block,
  .careers-section .resume-form-actions {
    -webkit-animation: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── 한자 자동 변환 ── */
.hanja-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 인적사항 라벨 높이를 통일해 입력칸이 한 줄로 정렬되도록 */
.resume-personal-grid .form-label {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 6px;
}

/* body에 붙는 플로팅 팝업이 화면 밖으로 넘쳐 가로 스크롤을 만들지 않도록 제한 */
.vision-pop,
.place-ac-dropdown,
.cal-pop {
  max-width: calc(100vw - 16px);
}

/* 시력 선택 키패드 팝업 */
.vision-input {
  cursor: pointer;
  background: #fff;
}

.vision-pop {
  position: absolute;
  z-index: 4000;
  width: 280px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  padding: 14px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vision-pop.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vision-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vision-pop__title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.vision-pop__close {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.vision-pop__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.vision-pop__seg {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 4px;
}

.vision-pop__seg.is-active {
  color: #1e293b;
  background: rgba(254, 185, 0, 0.18);
  box-shadow: inset 0 0 0 1px var(--accent-color, #feb900);
}

.vision-pop__seg.is-done {
  color: #1e293b;
}

.vision-pop__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.vision-pop__val {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 9px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}

.vision-pop__val:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.vision-pop__val:active {
  transform: scale(0.94);
}

.vision-pop__val.is-sel {
  background: var(--accent-color, #feb900);
  border-color: var(--accent-color, #feb900);
  color: #1e293b;
}

.vision-pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.vision-pop__back,
.vision-pop__clear {
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.vision-pop__back:hover,
.vision-pop__clear:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.vision-pop__clear {
  margin-left: auto;
}

/* 학점(GPA) 선택 팝업 */
.gpa-pop {
  width: 280px;
}

.gpa-pop__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

/* 병역(군별→계급→병과) 워크플로우 팝업 */
.mil-pop__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

/* 가족 관계 선택 팝업 */
.relation-pop__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

/* 가족 연령 입력 안내 팝업 */
.agc-guide {
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
  margin: 2px 0 12px;
}

.agc-guide strong {
  color: #1e293b;
}

/* 동거 유/무 선택 팝업 */
.cohab-pop {
  padding: 8px;
}

/* 혈액형 선택 팝업 */
.blood-pop {
  width: 300px;
}

.blood-pop__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin: 10px 0 6px;
  text-transform: uppercase;
}

.blood-pop__row {
  display: flex;
  gap: 6px;
}

.blood-pop__opt {
  flex: 1;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 9px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}

.blood-pop__opt:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.blood-pop__opt:active {
  transform: scale(0.94);
}

.blood-pop__opt.is-sel {
  background: var(--accent-color, #feb900);
  border-color: var(--accent-color, #feb900);
  color: #1e293b;
}

/* 플로팅 커스텀 셀렉트 */
.visually-hidden-select {
  position: absolute !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-select {
  position: relative;
}

.floating-select__trigger {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  font-size: 15px;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.floating-select__trigger:hover {
  border-color: #94a3b8;
}

.floating-select.is-open .floating-select__trigger {
  border-color: var(--accent-color, #feb900);
  box-shadow: 0 0 0 3px rgba(254, 185, 0, 0.18);
}

.floating-select__caret {
  font-size: 13px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.floating-select.is-open .floating-select__caret {
  transform: rotate(180deg);
}

.floating-select__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 6px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-select.is-open .floating-select__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  color: #334155;
  cursor: pointer;
  transition: background 0.12s;
}

.floating-select__option:hover {
  background: #f1f5f9;
}

.floating-select__option.is-active {
  background: rgba(254, 185, 0, 0.14);
  color: #1e293b;
  font-weight: 600;
}

.floating-select__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex: 0 0 auto;
  transition: background 0.12s;
}

.floating-select__option.is-active .floating-select__dot {
  background: var(--accent-color, #feb900);
}

/* 장소(회사·학교) 자동완성 드롭다운 */
.place-ac-dropdown {
  position: absolute;
  z-index: 4000;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  padding: 4px;
}

.place-ac-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 9px 12px;
  cursor: pointer;
}

.place-ac-item:hover {
  background: #f1f5f9;
}

.place-ac-item__name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.place-ac-item__addr {
  font-size: 12px;
  color: #94a3b8;
}

.place-ac-empty {
  padding: 12px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

.military-only-full.is-hidden {
  display: none !important;
}

.military-details,
.form-collapse {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

.military-details.is-collapsed,
.form-collapse.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.address-field-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.address-field-wrap .address-field {
  flex: 1 1 auto;
  min-width: 0;
}

.address-field {
  position: relative;
}

.address-field__input,
#addrMain {
  width: 100%;
  cursor: pointer;
  background: #f8fafc;
  padding-right: 42px;
}

.address-field__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #2563eb;
  pointer-events: none;
}

.address-embed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  background: #fff;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.28s ease, margin-top 0.28s ease;
}

.address-embed.is-open {
  max-height: 520px;
  opacity: 1;
  margin-top: 10px;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.col-12.is-address-embed-open {
  position: relative;
  z-index: 200;
  isolation: isolate;
}

.resume-form-block:has(.address-embed.is-open) {
  position: relative;
  z-index: 199;
  transform: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .address-embed.is-open {
    max-height: min(420px, 62vh);
  }
}

body.address-embed-open .fab-nav,
body.address-embed-open .fab-nav-backdrop,
body.address-embed-open .bottom-nav,
body.address-embed-open #scroll-top {
  pointer-events: none !important;
}

.address-embed__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #2563eb;
  border-radius: 12px 12px 0 0;
}

.address-embed__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.address-embed__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.address-embed__close:hover {
  opacity: 1;
}

.address-embed__box {
  height: 420px;
  border: 1px solid #2563eb;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .address-embed__box {
    height: min(340px, calc(62vh - 46px));
    min-height: 280px;
  }
}

.address-embed__box iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  touch-action: auto;
}

.address-embed__box > * {
  width: 100% !important;
}

.hanja-convert-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.hanja-convert-btn:hover {
  background: rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

.hanja-convert-btn i {
  font-size: 13px;
}

.hanja-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.hanja-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hanja-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.hanja-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hanja-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  -webkit-transform: translateY(16px) scale(0.98);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: -webkit-transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease;
}

.hanja-modal.is-visible .hanja-modal__panel {
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
  opacity: 1;
}

.hanja-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
}

.hanja-modal__header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.hanja-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.hanja-modal__close:hover {
  color: #ef4444;
}

.hanja-modal__guide {
  margin: 0;
  padding: 14px 22px 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.hanja-modal__rows {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
}

.hanja-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.hanja-row__syllable {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 8px;
}

.hanja-row__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.hanja-opt {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  font-size: 20px;
  color: #1e293b;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.hanja-opt:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.hanja-opt.is-selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.hanja-row__none {
  font-size: 13px;
  color: #94a3b8;
  align-self: center;
}

.hanja-modal__preview {
  padding: 14px 22px;
  font-size: 14px;
  color: #475569;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.hanja-modal__preview strong {
  font-size: 18px;
  color: #0f172a;
  margin-left: 6px;
}

.hanja-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid #e2e8f0;
}

.hanja-btn-cancel {
  min-width: 88px;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}

.hanja-btn-cancel:hover {
  background: #f1f5f9;
}

.hanja-btn-apply {
  min-width: 120px;
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: transform 0.15s;
}

.hanja-btn-apply:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .hanja-modal,
  .hanja-modal__panel {
    transition: none;
  }
}

/* ── 인라인 캘린더 ── */
.cal-pop {
  position: absolute;
  z-index: 10020;
  width: 300px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.18);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
  transition: opacity 0.2s ease, -webkit-transform 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.cal-pop.is-open {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-year {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.cal-nav {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: #475569;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.cal-nav:hover {
  background: #e2e8f0;
}

.cal-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cal-month {
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.cal-month:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.cal-month.is-between {
  background: #e0edff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.cal-month.is-start,
.cal-month.is-end {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 700;
}

.cal-info {
  margin: 10px 2px 4px;
  font-size: 12px;
  color: #64748b;
  min-height: 16px;
}

.cal-foot {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.cal-btn {
  flex: 1;
  height: 36px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  transition: background 0.15s, border-color 0.15s;
}

.cal-btn-current {
  flex: 1.3;
}

.cal-btn-current.is-active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.cal-btn-clear:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.cal-btn-apply {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border: none;
  color: #fff;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.cal-btn-apply:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .cal-pop {
    transition: opacity 0.15s ease;
    -webkit-transform: none;
    transform: none;
  }
}

/* ── 이력서 입력 폼 ── */
.resume-form {
  max-width: 960px;
  margin: 0 auto;
}

.resume-form-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.resume-form-block__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #3b82f6;
}

.resume-form-block__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.resume-form-block__head span {
  font-size: 12px;
  font-weight: 500;
  color: #60a5fa;
  letter-spacing: 0.5px;
}

.resume-form-block .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.resume-form-block .form-control,
.resume-form-block .form-select {
  font-size: 14px;
  border-radius: 8px;
  border-color: #cbd5e1;
}

.resume-form-block .form-control:focus,
.resume-form-block .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* 인적사항 — 사진 + 기본정보 */
.resume-personal-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
}

@media (max-width: 640px) {
  .resume-personal-grid {
    grid-template-columns: 1fr;
  }
}

.resume-photo-upload {
  width: 140px;
  height: 180px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.resume-photo-upload:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.resume-photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.resume-photo-upload .photo-placeholder {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 12px;
}

.resume-photo-upload .photo-placeholder i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

/* 반복 항목 카드 */
.repeat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
}

.repeat-card__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.1s;
}

.repeat-card__remove:hover {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}

.repeat-card__remove:active {
  transform: scale(0.9);
}

.btn-add-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(59, 130, 246, 0.08);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-add-row:hover {
  background: rgba(59, 130, 246, 0.14);
}

.resume-form-actions .error-message {
  display: none;
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.resume-form-actions .loading {
  display: none;
  margin-bottom: 12px;
  font-size: 14px;
  color: #64748b;
}

.resume-form-actions {
  text-align: center;
  padding: 32px 0 16px;
}

.btn-input-complete {
  min-width: 220px;
  height: 54px;
  padding: 0 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-input-complete:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
}

.careers-section .privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.careers-section .privacy-check label {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  cursor: pointer;
}

/* ── 미리보기 모달 (페이드인) ── */
.resume-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-preview-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.resume-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.resume-preview-modal__panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-preview-modal.is-visible .resume-preview-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.resume-preview-modal__header {
  flex-shrink: 0;
  text-align: center;
  padding: 20px 24px 16px;
  color: #fff;
}

.resume-preview-modal__header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.resume-preview-modal__header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.resume-preview-modal__scroll {
  flex: 1;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.resume-preview-modal__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 0;
  flex-wrap: wrap;
}

.btn-preview-edit {
  min-width: 140px;
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-preview-edit:hover {
  background: #f1f5f9;
}

.btn-preview-submit {
  min-width: 200px;
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-preview-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-preview-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.resume-preview-modal__loading {
  display: none;
  text-align: center;
  color: #fff;
  font-size: 14px;
  padding: 8px;
}

/* ── 이력서 미리보기 문서 ── */
.resume-doc {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.65;
  padding: 0;
  background: #fff;
}

.resume-doc__top {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 240px;
}

@media (max-width: 640px) {
  .resume-doc__top {
    grid-template-columns: 1fr;
  }
}

.resume-doc__sidebar {
  background: #eceff3;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resume-doc__photo {
  width: 120px;
  height: 150px;
  background: #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
}

.resume-doc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume-doc__name-block {
  text-align: center;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid #d6dbe2;
}

.resume-doc__name-ko {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 5px;
  color: #0f172a;
}

.resume-doc__name-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
}

.resume-doc__sidebar-info {
  width: 100%;
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
}

.resume-doc__sidebar-info dt {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 16px;
}

.resume-doc__sidebar-info dt:first-child {
  margin-top: 0;
}

.resume-doc__sidebar-info dd {
  margin: 4px 0 0;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-all;
}

.resume-doc__main-top {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fbfcfe 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.resume-doc__hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 12px;
}

.resume-doc__hero-name {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #334155;
  margin: 0;
  line-height: 1.25;
}

.resume-doc__hero-name span {
  color: var(--accent-color, #feb900);
  margin-right: 8px;
}

.resume-doc__hero-sub {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #94a3b8;
  text-transform: uppercase;
}

.resume-doc__hero-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 22px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.resume-doc__section {
  padding: 0 32px 24px;
}

.resume-doc__section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3b82f6;
}

.resume-doc__section-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.resume-doc__section-head span {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 500;
}

.resume-doc__summary {
  font-size: 13px;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.resume-doc__work-item {
  margin-bottom: 16px;
}

.resume-doc__work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.resume-doc__work-company {
  font-weight: 700;
  font-size: 14px;
}

.resume-doc__work-meta {
  font-size: 12px;
  color: #64748b;
}

.resume-doc__work-duties {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #475569;
}

.resume-doc__work-duties li {
  margin-bottom: 4px;
}

.resume-doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.resume-doc__table th {
  background: #f1f5f9;
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.resume-doc__table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  text-align: center;
  vertical-align: middle;
}

.resume-doc__table td.text-left {
  text-align: left;
}

.resume-doc__dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .resume-doc__dual {
    grid-template-columns: 1fr;
  }
}

.resume-doc__list-item {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}

.resume-doc__list-date {
  flex-shrink: 0;
  width: 64px;
  color: #64748b;
}

.resume-doc__footer {
  padding: 24px 32px 32px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}

.resume-doc__declaration {
  font-size: 12px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.7;
}

.resume-doc__sign {
  font-size: 13px;
  font-weight: 600;
}

.resume-doc__empty {
  color: #94a3b8;
  font-size: 12px;
  font-style: italic;
}

/* 자기소개서 */
.resume-form-block--self-intro {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.self-intro-guide {
  font-size: 13px;
  color: #64748b;
  margin: -8px 0 20px;
  line-height: 1.6;
}

.self-intro-field {
  min-height: 120px;
  line-height: 1.75;
  resize: vertical;
}

.char-hint {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.resume-doc__self-intro-item {
  margin-bottom: 20px;
}

.resume-doc__self-intro-item:last-child {
  margin-bottom: 0;
}

.resume-doc__self-intro-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 8px;
}

.resume-doc__self-intro-body {
  font-size: 13px;
  color: #334155;
  line-height: 1.8;
  white-space: pre-wrap;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

/* 입사지원 현황 조회 — 결과 목록 */
.careers-page .status-check-area {
  margin: 0 0 24px;
}

.careers-status-item__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 4px;
}

.careers-status-position {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.careers-status-list .status-check-item {
  flex-direction: column;
  align-items: flex-start;
}

.status-접수 { background: #f1f5f9; color: #64748b; }
.status-검토-중 { background: #dbeafe; color: #2563eb; }
.status-면접 { background: #fef3c7; color: #d97706; }
.status-합격 { background: #dcfce7; color: #16a34a; }
.status-불합격 { background: #fee2e2; color: #dc2626; }
