/* =====================================================
   아카데미 지원서 페이지 전용 스타일 (kr/academy/apply)
   ===================================================== */

/* 공고 제목 / 교육 일정 가운데 정렬 */
.apply-sub-tit { text-align: center; }

/* 교육 일정 강조 배지 */
.apply-schedule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 22px;
    background: #f4f7fb;
    border: 1px solid #dce6f2;
    border-radius: 999px;
    color: #1a4f8b;
}
.apply-schedule-icon { flex-shrink: 0; color: #1a73c8; }
.apply-schedule-label {
    font-size: 14px;
    font-weight: 600;
    color: #5a7fa8;
    letter-spacing: -0.01em;
    padding-right: 12px;
    border-right: 1px solid #cdddef;
}
.apply-schedule-date {
    font-size: 17px;
    font-weight: 700;
    color: #143a63;
    letter-spacing: 0.01em;
}
@media screen and (max-width: 768px) {
    .apply-schedule { flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding: 12px 18px; }
    .apply-schedule-label { padding-right: 0; border-right: none; }
    .apply-schedule-date { font-size: 15px; width: 100%; text-align: center; }
}

/* 지원 단계 타이틀 */
.apply-step-title { font-size: 20px; font-weight: 700; color: #151515; padding-bottom: 12px; border-bottom: 2px solid #000; margin-bottom: 0; }
.apply-step-note { font-size: 14px; font-weight: 400; color: #888; margin-left: 8px; }
.apply-step-desc { font-size: 15px; color: #555; line-height: 1.7; margin: 16px 0 24px; }

/* 필수 표시 */
.required { color: var(--clr-primary, #e41c23); font-style: normal; margin-left: 2px; }

/* 라디오 버튼 */
.radio-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 24px; font-size: 15px; cursor: pointer; }

/* ── 지원 자격 확인 / 자기소개서 공통 ──────────────────
   라벨(th) 100% 전체 너비 위 / 입력(td) auto 아래
   sub.css .form-container .form-list > li .th (0,3,1)을 override하려면
   동일 specificity (0,3,1) 이상 필요 → .form-container 추가
   ─────────────────────────────────────────────────── */
/* 지원 자격 확인: row - 라벨(flex:1) 왼쪽 / 폼 오른쪽 */
.form-container .form-list-stacked > li { flex-direction: row; align-items: center; gap: 24px; flex-wrap: nowrap; }
.form-container .form-list-stacked > li .th { flex: 1; width: auto; padding-top: 0; }
.form-container .form-list-stacked > li .td { width: auto; min-width: 230px; flex-shrink: 0; white-space: nowrap; text-align: end; }

/* 자기소개서: column - 라벨 위 / textarea 아래 */
.form-container .form-list-essay > li { flex-direction: column; gap: 10px; }
.form-container .form-list-essay > li .th { flex: 1; width: auto; padding-top: 0; }
.form-container .form-list-essay > li .td { width: 100%; }

/* 자기소개서 textarea */
.essay-textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.char-count { display: block; text-align: right; font-size: 13px; color: #999; margin-top: 6px; }

/* ── 진행 단계 표시 (STEP 1 인증 → STEP 2 작성) ───────*/
.apply-steps { display: flex; align-items: center; justify-content: center; gap: 16px; list-style: none; margin: 0 0 40px; padding: 0; }
.apply-steps-item { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #aaa; }
.apply-steps-item + .apply-steps-item::before { content: ''; width: 40px; height: 1px; background: #ddd; margin-right: 16px; }
.apply-steps-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; font-size: 14px; font-weight: 600; }
.apply-steps-item.is-current { color: #151515; font-weight: 600; }
.apply-steps-item.is-current .apply-steps-num { background: #151515; border-color: #151515; color: #fff; }
.apply-steps-item.is-done { color: #1a8c4e; }
.apply-steps-item.is-done .apply-steps-num { background: #e6f7ef; border-color: #a3d9bc; color: #1a8c4e; }

/* ── STEP 1: 이메일 인증 게이트 ───────────────────────*/
.verify-gate { display: flex; justify-content: center; padding: 24px 0 64px; }
.verify-gate-card { width: 100%; max-width: 520px; border: 1px solid #e5e5e5; border-radius: 12px; padding: 40px; text-align: center; }
.verify-gate-title { font-size: 22px; font-weight: 700; color: #151515; margin: 0 0 12px; }
.verify-gate-desc { font-size: 15px; color: #555; line-height: 1.7; margin: 0 0 28px; }


/* CONSENT_FIRST: 동의서 문서 제목 — 지원서 섹션 제목보다 가볍게 둔다(읽는 문서의 표제). */
.consent-doc-title { font-size: 20px; font-weight: 700; color: #151515; margin: 24px 0 4px; }
.consent-doc-intro { font-size: 16px; color: #444; line-height: 1.7; margin: 32px 0 0; }

/* CONSENT_FIRST: 인증 카드 안의 이름·연락처 입력 */
.verify-gate-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; text-align: left; }
.verify-gate-field { display: block; }
.verify-gate-label { display: block; font-size: 14px; font-weight: 500; color: #151515; margin-bottom: 6px; }
.verify-gate-label .required { color: #e41c23; font-style: normal; margin-left: 2px; }
.verify-gate-fields input { width: 100%; box-sizing: border-box; font-size: 16px; }

.verify-gate-row { display: flex; flex-direction: column; gap: 10px; }
.verify-gate-row input[type="email"] { width: 100%; box-sizing: border-box; font-size: 16px; }
.verify-gate-row #btnSendVerify { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; color: #fff; background: #151515; padding: 17px 30px; border: 1px solid #151515; border-radius: 8px; cursor: pointer; transition: all ease .35s; white-space: nowrap; }
.verify-gate-row #btnSendVerify:hover { background: #fff; color: #151515; }
.verify-gate-row #btnSendVerify:disabled { opacity: 0.4; cursor: not-allowed; background: #151515; color: #fff; }
.verify-gate .form-feedback { margin-top: 12px; }
.verify-gate-resend { display: none; font-size: 14px; color: #666; margin-top: 16px; }
.verify-gate-resend button { background: none; border: none; padding: 0; font-size: 14px; color: #666; text-decoration: underline; cursor: pointer; }

/* ── STEP 2: 인증 완료 바 ─────────────────────────────*/
.verify-bar { display: flex; align-items: center; gap: 12px; background: #f8f8f8; border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px 20px; margin-bottom: 8px; }
.verify-bar-email { font-size: 15px; color: #151515; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verify-bar-reset { margin-left: auto; flex-shrink: 0; background: none; border: none; padding: 0; font-size: 13px; color: #1a73c8; cursor: pointer; text-decoration: underline; }
.email-verified-badge { font-size: 13px; font-weight: 600; color: #1a8c4e; background: #e6f7ef; border: 1px solid #a3d9bc; border-radius: 4px; padding: 3px 10px; white-space: nowrap; flex-shrink: 0; }

/* 모바일 */
@media screen and (max-width: 768px) {
    .verify-gate-card { padding: 28px 20px; }
    .apply-steps-item + .apply-steps-item::before { width: 20px; margin-right: 8px; }
}

/* ── 피드백 / 에러 ───────────────────────────────────*/
.form-feedback { font-size: 14px; color: #888; margin-top: 8px; }
.form-error { font-size: 14px; color: #e41c23; background: #fff0f0; border: 1px solid #fcc; border-radius: 6px; padding: 12px 16px; margin-top: 16px; }

/* ── 공통 보정 ───────────────────────────────────────*/
.form-container .form-list .th small { display: block; font-size: 13px; font-weight: 400; color: #888; margin-top: 4px; line-height: 1.5; }

/* 기본정보 / 지원 자격 확인 / 자기소개서 폼그룹 상단 여백 */
#mainForm .form-container { margin-top: 16px; }

/* 예정/마감 공고 dim 공통 */
.sub-container.is-upcoming::before,
.sub-container.is-closed::before {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.sub-container.is-upcoming::before { content: attr(data-upcoming-msg); text-align: center; }
.sub-container.is-closed::before   { content: '본 공고는 마감되었습니다'; }

/* ── 개인정보 동의 상세 문서 (.cont 내부) ─────────────*/
.form-container .privacy-use .cont .privacy-doc { line-height: 1.7; color: #333; }
.form-container .privacy-use .cont .privacy-doc h5 { font-size: 17px; font-weight: 700; color: #151515; margin: 28px 0 12px; }
.form-container .privacy-use .cont .privacy-doc h5:first-child { margin-top: 0; }
.form-container .privacy-use .cont .privacy-doc p { margin: 8px 0; }
.form-container .privacy-use .cont .privacy-doc .privacy-doc-tit { font-weight: 600; color: #151515; margin-top: 20px; }
.form-container .privacy-use .cont .privacy-doc .privacy-doc-list { margin: 6px 0 12px; padding-left: 4px; }
.form-container .privacy-use .cont .privacy-doc .privacy-doc-list li { position: relative; padding-left: 14px; margin: 4px 0; }
.form-container .privacy-use .cont .privacy-doc .privacy-doc-list li::before { content: '·'; position: absolute; left: 4px; }
.form-container .privacy-use .cont .privacy-doc .privacy-doc-note { color: #d33; font-size: 15px; margin-top: 12px; }

.form-container .privacy-use .cont .privacy-doc-table-wrap { overflow-x: auto; margin: 12px 0 4px; }
.form-container .privacy-use .cont .privacy-doc-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; background: #fff; }
.form-container .privacy-use .cont .privacy-doc-table th,
.form-container .privacy-use .cont .privacy-doc-table td { border: 1px solid #ddd; padding: 10px 12px; text-align: center; vertical-align: middle; word-break: keep-all; }
.form-container .privacy-use .cont .privacy-doc-table th { background: #f7f7f7; font-weight: 600; color: #151515; }
.form-container .privacy-use .cont .privacy-doc-table td { color: #444; }
