/* Apply Modal (shared - also defined in home.css) */
.apply-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.apply-modal-overlay.active {
    display: flex;
}

.apply-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.apply-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.apply-modal-close:hover {
    color: #333;
}

.apply-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px 0;
}

.apply-modal-position {
    font-size: 15px;
    color: #008080;
    margin: 0 0 24px 0;
    font-weight: 600;
}

.apply-form-group {
    margin-bottom: 18px;
}

.apply-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.apply-required {
    color: #008080;
}

.apply-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.apply-form-input:focus {
    border-color: #008080;
}

.apply-file-upload {
    position: relative;
}

.apply-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.apply-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-file-label i {
    font-size: 20px;
    color: #008080;
}

.apply-file-upload input[type="file"]:hover ~ .apply-file-label,
.apply-file-label:hover {
    border-color: #008080;
    background: #f0fdfa;
}

.apply-file-name {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}

.apply-submit-btn {
    width: 100%;
    padding: 14px;
    background: #008080;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.apply-submit-btn:hover {
    background: #006666;
}

.apply-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.apply-success {
    text-align: center;
    padding: 30px 0;
}

.apply-success i {
    font-size: 56px;
    color: #22c55e;
    margin-bottom: 16px;
}

.apply-success p {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
}

.apply-success-sub {
    font-size: 15px;
    font-weight: 400;
    color: #666;
}

.apply-error {
    text-align: center;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    margin-top: 16px;
}

.apply-error i {
    margin-right: 6px;
}
