/* ========================================
   Apply - 공통
   ======================================== */
.apply-page,
.apply-detail-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.apply-header {
    text-align: center;
    margin-bottom: 60px;
}

.apply-title {
    font-size: 64px;
    font-weight: 700;
    color: #01447C;
    margin-bottom: 30px;
}

.apply-desc {
    font-size: 22px;
    color: #666;
    line-height: 1.7;
}

/* ========================================
   Apply - 리스트 안내 카드
   ======================================== */
.apply-guide {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 40px 60px;
}

.apply-guide-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.apply-guide-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.apply-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 38px;
    border-radius: 19px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    flex-shrink: 0;
}

.apply-chip--intern { background-color: #5a8f29; }
.apply-chip--hire { background-color: #01447C; }
.apply-chip--consult { background-color: #D9531E; }

.apply-guide-text {
    font-size: 18px;
    color: #222;
}

.apply-guide-notes {
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
}

.apply-guide-bullet {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
}

.apply-guide-small {
    font-size: 14px;
    color: #888;
    line-height: 1.9;
}

/* ========================================
   Apply - 카테고리 탭
   ======================================== */
.apply-tabs {
    display: flex;
    margin-top: 50px;
}

a.apply-tab,
a.apply-tab:link,
a.apply-tab:visited,
a.apply-tab:hover,
a.apply-tab:active {
    flex: 1;
    height: 60px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

a.apply-tab.active,
a.apply-tab.active:link,
a.apply-tab.active:visited,
a.apply-tab.active:hover,
a.apply-tab.active:active {
    background-color: #01447C;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

/* ========================================
   Apply - 기업 카드 그리드
   ======================================== */
.apply-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.apply-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background-color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-height: 315px;
}

.apply-card:hover {
    border-color: #01447C;
    box-shadow: 0 4px 12px rgba(1, 68, 124, 0.08);
}

.apply-card-logo {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.apply-card-logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #6aad2a;
    letter-spacing: -1px;
}

.apply-card-logo-img {
    max-width: 80%;
    max-height: 100px;
    object-fit: contain;
}

.apply-card-name {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    padding: 4px 16px 14px;
}

.apply-card-body {
    flex: 1;
    background-color: #f2f2f2;
    padding: 16px 20px;
}

.apply-card-industry {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.apply-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1.8;
}

.apply-card-label {
    font-weight: 700;
    color: #222;
    min-width: 60px;
}

.apply-card-value {
    color: #444;
}

/* ========================================
   Apply - 페이지네이션
   ======================================== */
.apply-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 60px 0;
}

.apply-page-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-page-btn.active {
    background-color: #01447C;
    color: #ffffff;
    border-color: #01447C;
}

.apply-page-btn:hover:not(.active) {
    border-color: #01447C;
    color: #01447C;
}

/* ========================================
   Apply - 상세 페이지
   ======================================== */
.apply-detail-page {
    padding-bottom: 80px;
}

.apply-section {
    margin-bottom: 100px;
}

.apply-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

/* 기업 정보 */
.apply-company {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 30px;
}

.apply-company-logo {
    width: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-company-logo-box {
    width: 250px;
    height: 120px;
    border: 1px dashed #bbb;
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-company-info {
    flex: 1;
    min-width: 0;
}

.apply-company-header {
    height: 80px;
    background-color: #01447C;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.apply-company-name {
    font-size: 22px;
    font-weight: 700;
}

.apply-company-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-company-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 34px;
    padding: 0 14px;
    background-color: #E2A020;
    color: #ffffff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
}

.apply-company-badge--semi { background-color: #E2A020; }
.apply-company-badge--bio { background-color: #5a8f29; }
.apply-company-badge--battery { background-color: #2A8EC5; }

.apply-company-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 34px;
    padding: 0 14px;
    background-color: #ffffff;
    color: #01447C;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.apply-company-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid #e0e0e0;
}

.apply-company-table th,
.apply-company-table td {
    height: 50px;
    padding: 0 20px;
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.apply-company-table th {
    background-color: #F3F5F8;
    color: #222;
    font-weight: 600;
    width: 110px;
}

.apply-company-table td {
    color: #444;
}

.apply-company-desc {
    font-size: 15px;
    color: #444;
    margin-bottom: 30px;
}

/* 체크박스 라인 */
.apply-company-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 18px 30px;
    border: 2px solid #5a8f29;
    border-radius: 30px;
    margin-bottom: 14px;
}

.apply-company-check-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.apply-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #222;
    cursor: pointer;
}

.apply-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #5a8f29;
    cursor: pointer;
}

.apply-company-note {
    text-align: right;
    font-size: 13px;
    color: #888;
}

/* 모집정보 테이블 */
.apply-recruit-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid #e0e0e0;
}

.apply-recruit-head {
    height: 70px !important;
    background-color: #01447C !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    text-align: left !important;
}

.apply-recruit-table th,
.apply-recruit-table td {
    min-height: 50px;
    padding: 14px 20px;
    font-size: 15px;
    text-align: left;
    vertical-align: middle;
    white-space: pre-line;
    border-bottom: 1px solid #f0f0f0;
}

.apply-recruit-table tbody th {
    background-color: #F3F5F8;
    color: #222;
    font-weight: 600;
    width: 110px;
}

.apply-recruit-table tbody td {
    color: #444;
}

/* 참여하기 버튼 */
.apply-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.btn-apply-join {
    width: 280px;
    height: 55px;
    background-color: #01447C;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-apply-join:hover {
    background-color: #013366;
}

/* ========================================
   Apply - 참여하기 폼 모달
   ======================================== */
.apply-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

.apply-modal-overlay.open {
    display: flex;
}

.apply-modal {
    position: relative;
    width: 900px;
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 50px 80px;
}

.apply-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    color: #222;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.apply-modal-close:hover {
    color: #01447C;
}

.apply-form-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #222;
    padding-bottom: 14px;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
}

.apply-form-title--sub {
    margin-top: 60px;
}

.apply-form-section {
    margin-bottom: 30px;
}

.apply-form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.apply-form-section-sub {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-left: 4px;
}

.apply-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.apply-form-grid--repeater {
    margin-bottom: 4px;
}

.apply-form-required {
    font-size: 12px;
    font-weight: 400;
    color: #E4007F;
    margin-left: 8px;
}

.apply-form-grid--triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
}

.apply-form-input {
    height: 40px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    padding: 0 12px;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
}

.apply-form-input::placeholder {
    color: #aaa;
}

.apply-form-input:focus {
    border-color: #01447C;
}

.apply-form-input--full {
    grid-column: 1 / -1;
}

.apply-form-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    padding: 12px;
    font-size: 14px;
    color: #222;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
}

.apply-form-textarea::placeholder {
    color: #aaa;
}

.apply-form-textarea:focus {
    border-color: #01447C;
}

.apply-form-add {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.btn-apply-add {
    background: none;
    border: none;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-apply-add:hover {
    color: #01447C;
}

.btn-apply-remove {
    grid-column: 1 / -1;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    text-align: right;
}

.btn-apply-remove:hover {
    color: #e53935;
}

.certificate-row,
.experience-row {
    position: relative;
    padding-top: 16px;
    padding-bottom: 8px;
    margin-top: 16px;
    border-top: 1px dashed #d0d0d0;
}

.certificate-row:first-child,
.experience-row:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.apply-form-sign {
    margin-top: 40px;
    text-align: center;
}

.apply-form-sign-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
}

.apply-form-sign-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #222;
}

.apply-form-sign-input {
    width: 50px;
    height: 32px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.apply-form-sign-input--name {
    width: 140px;
}

.apply-form-sign-label {
    margin-left: 16px;
}

.apply-form-submit {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-apply-submit {
    width: 240px;
    height: 50px;
    background-color: #01447C;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-apply-submit:hover {
    background-color: #013366;
}

/* ========================================
   Apply - Mobile
   ======================================== */
@media (max-width: 768px) {
    .apply-page,
    .apply-detail-page {
        padding: 0;
    }

    .apply-header {
        margin-bottom: 30px;
    }

    .apply-title {
        font-size: 32px;
    }

    .apply-desc {
        font-size: 14px;
    }

    .apply-guide {
        padding: 24px 16px;
    }

    .apply-guide-item {
        gap: 14px;
    }

    .apply-chip {
        width: 80px;
        height: 30px;
        font-size: 13px;
    }

    .apply-guide-text {
        font-size: 13px;
    }

    .apply-guide-bullet,
    .apply-guide-small {
        font-size: 12px;
    }

    .apply-tabs {
        margin-top: 30px;
    }

    .apply-tab {
        height: 44px;
        font-size: 14px;
    }

    .apply-grid {
        grid-template-columns: 1fr;
    }

    .apply-card {
        max-height: 315px;
    }

    /* 상세 */
    .apply-section {
        margin-bottom: 50px;
    }

    .apply-company {
        flex-direction: column;
        gap: 16px;
    }

    .apply-company-logo {
        width: 100%;
    }

    .apply-company-header {
        height: auto;
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .apply-company-name {
        font-size: 16px;
    }

    /* 기업정보 테이블 모바일 레이아웃: 1행에 라벨/정보 */
    .apply-company-table {
        display: block;
    }

    .apply-company-table tbody {
        display: block;
    }

    .apply-company-table tbody tr {
        display: flex;
        flex-wrap: wrap;
    }

    .apply-company-table tbody th,
    .apply-company-table tbody td {
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }

    .apply-company-table tbody th {
        width: 30%;
        flex-shrink: 0;
    }

    .apply-company-table tbody td {
        width: 70%;
        flex-shrink: 0;
    }

    .apply-company-table tbody td[colspan="3"] {
        width: 70%;
    }

    /* 모집정보 테이블 모바일 레이아웃: 1행에 라벨/정보 */
    .apply-recruit-table {
        display: block;
    }

    .apply-recruit-table thead,
    .apply-recruit-table tbody {
        display: block;
    }

    .apply-recruit-table thead tr {
        display: block;
    }

    .apply-recruit-table .apply-recruit-head {
        display: flex;
        align-items: center;
        width: 100%;
        height: 70px;
    }

    .apply-recruit-table tbody tr {
        display: flex;
        flex-wrap: wrap;
    }

    .apply-recruit-table tbody th,
    .apply-recruit-table tbody td {
        box-sizing: border-box;
    }

    .apply-recruit-table tbody th {
        width: 30%;
        flex-shrink: 0;
    }

    .apply-recruit-table tbody td {
        width: 70%;
        flex-shrink: 0;
    }

    .apply-company-check {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 18px;
        border-radius: 16px;
    }

    .btn-apply-join {
        width: 100%;
        max-width: 280px;
    }

    /* 모달 */
    .apply-modal {
        padding: 40px 20px;
    }

    .apply-form-grid {
        grid-template-columns: 1fr;
    }

    .apply-form-grid--triple {
        grid-template-columns: 1fr;
    }

    .apply-form-sign-row {
        flex-wrap: wrap;
    }
}

/* 알림/상태 */
.apply-alert {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}
.apply-alert--success {
    background-color: #eaf6ef;
    color: #226c3f;
    border: 1px solid #a9d7b9;
}
.apply-alert--error {
    background-color: #fdecea;
    color: #8c1d18;
    border: 1px solid #f5b7b1;
}
.apply-alert ul { margin: 0; padding-left: 18px; }

.apply-empty {
    text-align: center;
    color: #667085;
    padding: 40px 0;
}

.apply-company-logo-img {
    max-width: 250px;
    max-height: 120px;
    object-fit: contain;
}

.apply-form-position {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
    color: #01447C;
    font-weight: 500;
}
