.apply-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.apply-modal-overlay.active {
    display: flex;
}
.apply-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: applyFadeIn 0.3s ease;
    margin: auto;
}
@keyframes applyFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.apply-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}
.apply-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.apply-modal-header h3 span {
    color: #00BFFF;
}
.apply-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.apply-modal-close:hover {
    color: #ef4444;
}
.apply-modal-body {
    padding: 24px;
}
.apply-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.apply-form-group {
    margin-bottom: 16px;
}
.apply-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.apply-required {
    color: #ef4444;
}
.apply-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.apply-input:focus {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 3px rgba(0,191,255,0.15);
    background: #fff;
}
.apply-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}
.apply-textarea:focus {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 3px rgba(0,191,255,0.15);
    background: #fff;
}
.apply-file-wrap {
    position: relative;
}
.apply-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 2;
}
.apply-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #6b7280;
    font-size: 14px;
}
.apply-file-label svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #00BFFF;
}
.apply-file-wrap:hover .apply-file-label {
    border-color: #00BFFF;
    background: #f0f9ff;
}
.apply-file-input.has-file + .apply-file-label {
    border-color: #10b981;
    background: #f0fdf4;
    color: #059669;
}
.apply-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}
.apply-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.apply-btn svg {
    width: 18px;
    height: 18px;
}
.apply-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}
.apply-btn-secondary:hover {
    background: #e5e7eb;
}
.apply-btn-primary {
    background: #00BFFF;
    color: #fff;
}
.apply-btn-primary:hover {
    background: #0099cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,191,255,0.3);
}
@media (max-width: 576px) {
    .apply-form-row {
        grid-template-columns: 1fr;
    }
    .apply-modal-box {
        max-width: 100%;
        border-radius: 12px;
    }
    .apply-modal-body {
        padding: 16px;
    }
}
