/* ==========================================================
   심사위원 모집 · 신청 — 페이지 전용 스타일
   scope: .judge-apply-page
   ========================================================== */

.judge-apply-page .ja-wrap {
    /* max-width: 1020px; */
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* ---------------------------------------------------------- 히어로 */
.judge-apply-page .ja-hero {
    text-align: center;
    padding: 1rem 1rem 2.25rem;
}
.judge-apply-page .ja-hero__badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.judge-apply-page .ja-hero__badge.is-open {
    background: rgba(255, 92, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 92, 0, 0.3);
}
.judge-apply-page .ja-hero__badge.is-closed {
    background: #f2f2f3;
    color: #888;
    border: 1px solid #e5e5e5;
}
.judge-apply-page .ja-hero__title {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
}
.judge-apply-page .ja-hero__desc {
    font-size: 1.02rem;
    color: #666;
    letter-spacing: -0.02em;
    line-height: 1.4;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------------------------------------------------------- 섹션 공통 */
.judge-apply-page .ja-section {
    margin-bottom: 3rem;
}
.judge-apply-page .ja-sec-title {
    position: relative;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #1a1a1a;
    padding-left: 0.85rem;
    margin: 0 0 1.25rem;
}
.judge-apply-page .ja-sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    border-radius: 4px;
    background: var(--primary);
}

/* ---------------------------------------------------------- 안내 카드 그리드 */
.judge-apply-page .ja-cards {
    display: grid;
    gap: 1rem;
}
@media (max-width: 767px) {
    .judge-apply-page .ja-cards { grid-template-columns: 1fr; }
}
.judge-apply-page .ja-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 14px 34px -28px rgba(0, 0, 0, 0.22);
}
.judge-apply-page .ja-card__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.judge-apply-page .ja-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1e8, #ffe0cc);
    color: var(--primary);
}
.judge-apply-page .ja-card__icon .material-symbols-outlined { font-size: 24px; }
.judge-apply-page .ja-card__title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #222;
    margin: 0;
}

/* 리스트(자격/서류) */
.judge-apply-page .ja-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.judge-apply-page .ja-list li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.2rem;
    font-size: 0.96rem;
    color: #555;
    letter-spacing: -0.02em;
    line-height: 1.5;
}
.judge-apply-page .ja-list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.75rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

/* 스텝(신청방법) */
.judge-apply-page .ja-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ja-step;
}
.judge-apply-page .ja-steps li {
    counter-increment: ja-step;
    position: relative;
    padding: 0.4rem 0 0.4rem 2.1rem;
    font-size: 0.96rem;
    color: #555;
    letter-spacing: -0.02em;
    line-height: 1.55;
}
.judge-apply-page .ja-steps li::before {
    content: counter(ja-step);
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 분야 칩 */
.judge-apply-page .ja-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.judge-apply-page .ja-chip {
    padding: 0.4rem 0.9rem;
    background: #f7f7f8;
    border: 1px solid #ececec;
    border-radius: 100px;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: -0.02em;
}
.judge-apply-page .ja-note {
    font-size: 0.86rem;
    color: #8a8a8a;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0;
}

/* 관리자 공고(리치텍스트) */
.judge-apply-page .ja-notice {
    margin-top: 1rem;
    padding: 1.5rem 1.6rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 16px;
}
.judge-apply-page .ja-notice h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.75rem;
}
.judge-apply-page .ja-notice .ja-richtext { color: #555; line-height: 1.7; letter-spacing: -0.01em; }
.judge-apply-page .ja-notice .ja-richtext p { margin: 0 0 0.6rem; }

/* 문의 */
.judge-apply-page .ja-contact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.9rem 1.25rem;
    background: #fff;
    border: 1px dashed #d9d9d9;
    border-radius: 12px;
    font-size: 0.94rem;
    color: #555;
    letter-spacing: -0.02em;
}
.judge-apply-page .ja-contact .material-symbols-outlined { color: var(--primary); font-size: 20px; }

/* ---------------------------------------------------------- 양식 다운로드 */
.judge-apply-page .ja-download {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, #fff7f2, #fff);
    border: 1px solid #ffe0cc;
    border-radius: 16px;
}
.judge-apply-page .ja-download__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ffe0cc;
    color: var(--primary);
}
.judge-apply-page .ja-download__icon .material-symbols-outlined { font-size: 28px; }
.judge-apply-page .ja-download__body { flex: 1 1 auto; }
.judge-apply-page .ja-download__title { font-weight: 700; color: #1a1a1a; letter-spacing: -0.03em; }
.judge-apply-page .ja-download__desc { font-size: 0.88rem; color: #8a8a8a; letter-spacing: -0.02em; }
.judge-apply-page .ja-download__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: background 0.25s, transform 0.25s;
}
.judge-apply-page .ja-download__btn:hover { background: var(--primary-dark2); color: #fff; transform: translateY(-1px); }
.judge-apply-page .ja-download__none { font-size: 0.92rem; color: #999; }
@media (max-width: 575px) {
    .judge-apply-page .ja-download { flex-direction: column; align-items: flex-start; }
    .judge-apply-page .ja-download__btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------- 신청 폼 */
.judge-apply-page .ja-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 16px 38px -30px rgba(0, 0, 0, 0.25);
}
@media (max-width: 575px) {
    .judge-apply-page .ja-form { padding: 1.25rem; }
}
.judge-apply-page .ja-form-row { margin-bottom: 1.25rem; }
.judge-apply-page .ja-form-row:last-of-type { margin-bottom: 0; }
.judge-apply-page .ja-label {
    display: block;
    font-size: 0.96rem;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.judge-apply-page .ja-label.req::after {
    content: "*";
    margin-left: 0.25rem;
    color: #de4f41;
}
.judge-apply-page .ja-input {
    width: 100%;
    height: calc(2.5rem + 6px);
    padding: 0.5rem 0.9rem;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    color: #333;
    letter-spacing: -0.02em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.judge-apply-page .ja-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.12);
}
.judge-apply-page .ja-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.84rem;
    color: #8a8a8a;
    letter-spacing: -0.02em;
}

/* 파일 업로드 */
.judge-apply-page .ja-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    border: 1.5px dashed #d9d9d9;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.judge-apply-page .ja-file:hover { border-color: var(--primary); background: #fff7f2; }
.judge-apply-page .ja-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.judge-apply-page .ja-file__icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #fff; border: 1px solid #eee; color: var(--primary);
}
.judge-apply-page .ja-file__icon .material-symbols-outlined { font-size: 22px; }
.judge-apply-page .ja-file__text { font-size: 0.94rem; color: #666; letter-spacing: -0.02em;}
.judge-apply-page .ja-file__text b { color: var(--primary); font-weight: 600; }
.judge-apply-page .ja-file__name { color: #222; font-weight: 600; }

/* 제출 버튼 */
.judge-apply-page .ja-submit-wrap { margin-top: 1.75rem; text-align: center; }
.judge-apply-page .ja-submit {
    display: inline-block;
    min-width: 220px;
    padding: 0.95rem 2.5rem;
    background: var(--black, #141414);
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    border: 0;
    border-radius: 100px;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}
.judge-apply-page .ja-submit:hover { background: var(--primary); transform: translateY(-1px); }
@media (max-width: 575px) {
    .judge-apply-page .ja-submit { width: 100%; min-width: 0; }
}

/* 로그인 필수 안내 CTA */
.judge-apply-page .ja-login-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.judge-apply-page .ja-signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.5rem;
    background: #fff;
    color: #333;
    font-weight: 600;
    border: 1px solid #d9d9d9;
    border-radius: 100px;
    letter-spacing: -0.02em;
    transition: border-color 0.2s, color 0.2s;
}
/* 로그인 CTA의 로그인 버튼(공용 .ja-download__btn)도 CTA 안에서만 높이 축소 */
.judge-apply-page .ja-login-cta .ja-download__btn {
    padding: 0.5rem 1.5rem;
}
.judge-apply-page .ja-login-cta .ja-download__btn,
.judge-apply-page .ja-signup-btn {
    font-size: 0.95rem;
}
.judge-apply-page .ja-signup-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.judge-apply-page .ja-login-cta .material-symbols-outlined { font-size: 20px; }

/* 안내(마감/회차없음) */
.judge-apply-page .ja-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
    color: #777;
    letter-spacing: -0.02em;
}
.judge-apply-page .ja-state .material-symbols-outlined {
    color: #000000;
    margin: 0.3rem 0.5rem;
}

/* 모집 분야 및 인원 — 공고문 표(.tableA)를 담는 전체 폭 카드 */
.judge-apply-page .ja-card--wide {
    grid-column: 1 / -1;
}
.judge-apply-page .ja-fields {
    font-size: 0.92rem;
}
.judge-apply-page .ja-fields thead th:nth-child(1) { width: 22%; }
.judge-apply-page .ja-fields thead th:nth-child(2) { width: 10%; }
.judge-apply-page .ja-fields tbody td {
    padding: 0.75rem 0.9rem;
    line-height: 1.55;
}
.judge-apply-page .tableA .td-category {
    text-align: left;
}
.judge-apply-page .ja-fields__desc {
    text-align: left;
    word-break: keep-all;
}
.judge-apply-page .ja-card--wide .ja-list {
    margin-top: 0.7rem;
}
@media (max-width: 767px) {
    .judge-apply-page .ja-fields { font-size: 0.86rem; }
    .judge-apply-page .ja-fields thead th:nth-child(1) { width: 26%; }
}

/* 개인정보 제공 동의 — 체크 + 전문 보기(새창) */
.judge-apply-page .ja-agree {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
}
/* 체크 모양은 공통 template.css(input[type=checkbox] + label::before)가 그린다 — 여기선 타이포만 */
.judge-apply-page .ja-agree__check { display: inline-block; }
.judge-apply-page .ja-agree__check label {
    font-size: 0.97rem;
    color: #333;
    letter-spacing: -0.02em;
    line-height: 1.4;
}
.judge-apply-page .ja-agree__view {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d5d5d5;
    border-radius: 100px;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.judge-apply-page .ja-agree__view:hover { border-color: var(--primary); color: var(--primary); }
.judge-apply-page .ja-agree__view .material-symbols-outlined { font-size: 18px; }
.judge-apply-page .ja-submit:disabled {
    background: #c9c9c9;
    cursor: not-allowed;
    transform: none;
}

/* 개인정보 제공 동의 전문 — 레이어 팝업 / 단독 페이지 공용 본문 */
.ja-popup {
    line-height: 1.7;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
.ja-popup__title {
    margin: 0 0 1.3rem;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid #141414;
    font-size: 1.3rem;
    font-weight: 700;
    color: #141414;
}
.ja-popup__sec { margin-bottom: 1.5rem; }
.ja-popup__sec:last-child { margin-bottom: 0; }
.ja-popup__sec-title {
    margin: 0 0 0.5rem;
    font-size: 1.03rem;
    font-weight: 700;
    color: #141414;
}
.ja-popup__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ja-popup__list > li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.96rem;
    color: #555;
}
.ja-popup__list > li::before {
    content: "◦";
    position: absolute;
    left: 0;
    color: #888;
}
.ja-popup__sub {
    margin: 0.6rem 0 0;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: #f7f7f7;
    font-size: 0.93rem;
}
.ja-popup__sub dt { font-weight: 700; color: #333; }
.ja-popup__sub dd { margin: 0.25rem 0 0 0.6rem; color: #666; }

/* 단독 페이지(폴백 · 새 탭) — popup 레이아웃 */
.popup-body { margin: 0; background: #fff; color: #333; }
.popup-body .ja-popup-page { padding: 1.8rem 1.6rem 2.2rem; }
.ja-popup__foot { margin-top: 1.8rem; text-align: center; }
.ja-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 140px;
    padding: 0.7rem 1.6rem;
    border: 0;
    border-radius: 100px;
    background: #141414;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}
.ja-popup__close:hover { background: var(--primary, #ff5c00); }
.ja-popup__close .material-symbols-outlined { font-size: 18px; }

/* ── 레이어 팝업(딤) ── */
body.ja-modal-open { overflow: hidden; }
.ja-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}
.ja-modal[hidden] { display: none; }
.ja-modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.ja-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 680px;
    max-height: 86vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.ja-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #eee;
}
.ja-modal__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: #141414;
    letter-spacing: -0.02em;
}
.ja-modal__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ja-modal__x:hover { background: #141414; color: #fff; }
.ja-modal__body {
    padding: 1.4rem;
    overflow-y: auto;
}
.ja-modal__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.4rem 1.3rem;
    border-top: 1px solid #eee;
}
.ja-modal__agree,
.ja-modal__close {
    min-width: 130px;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ja-modal__agree {
    border: 0;
    background: #141414;
    color: #fff;
    font-weight: 700;
}
.ja-modal__agree:hover { background: var(--primary, #ff5c00); }
.ja-modal__close {
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #333;
}
.ja-modal__close:hover { border-color: #141414; }
@media (max-width: 575px) {
    .ja-modal { padding: 0.8rem; }
    .ja-modal__dialog { max-height: 92vh; }
    .ja-modal__agree,
    .ja-modal__close { flex: 1 1 auto; min-width: 0; }
}

/* .ja-fields 열 폭 변형 — 기업아이템 모집 공고의 표들 (기본값은 모집 분야 표 기준) */
.judge-apply-page .ja-fields--even thead th:nth-child(1),
.judge-apply-page .ja-fields--even thead th:nth-child(2) { width: 33.33%; }
.judge-apply-page .ja-fields--even thead th { vertical-align: top; }
.judge-apply-page .ja-fields--even thead th .ja-note { display: block; margin: 0.2rem 0 0; font-weight: 500; }
.judge-apply-page .ja-fields--even tbody td { vertical-align: top; text-align: left; }

.judge-apply-page .ja-fields--num thead th:nth-child(1) { width: 10%; }
.judge-apply-page .ja-fields--num thead th:nth-child(2) { width: 50%; }

.judge-apply-page .ja-fields--score thead th:nth-child(1) { width: 24%; }
.judge-apply-page .ja-fields--score thead th:nth-child(2) { width: 12%; }
.judge-apply-page .ja-card--wide .ja-list { margin-top: 0.9rem; }
