/* Professional Modal Design - Beautiful & Modern */

/* Modal Backdrop with blur effect */
.recruitment-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recruitment-modal-backdrop.active {
    display: block;
    opacity: 1;
}

/* Modal Container with smooth appearance */
.recruitment-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1050;
    width: 90%;
    max-width: 900px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.recruitment-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Content with premium shadow */
.recruitment-modal-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12),
                0 10px 30px rgba(102, 126, 234, 0.15);
    overflow: hidden;
    position: relative;
}

/* Modal Header with gradient */
.recruitment-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 35px;
    position: relative;
    overflow: hidden;
}

/* Decorative pattern in header */
.recruitment-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.recruitment-modal-header h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    position: relative;
    z-index: 1;
}

.recruitment-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recruitment-modal-title i {
    font-size: 1.2rem;
    margin-right: 12px;
    opacity: 0.9;
}

.recruitment-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.recruitment-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body with better spacing */
.recruitment-modal-body {
    padding: 40px 35px;
    max-height: 60vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Custom Scrollbar */
.recruitment-modal-body::-webkit-scrollbar {
    width: 6px;
}

.recruitment-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.recruitment-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* Form Styles - Professional */
.recruitment-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.recruitment-form-row .recruitment-form-group {
    flex: 1;
}

.recruitment-form-group {
    margin-bottom: 25px;
    position: relative;
}

.recruitment-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.recruitment-form-label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.recruitment-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.recruitment-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.recruitment-form-control:hover {
    border-color: #cbd5e1;
}

/* File Input Special Styling */
.recruitment-file-input-wrapper {
    position: relative;
}

.recruitment-form-control[type="file"] {
    padding: 10px;
    border-style: dashed;
    background: #f8f9fa;
    cursor: pointer;
}

.recruitment-form-control[type="file"]:hover {
    background: #e9ecef;
    border-color: #667eea;
}

/* Form Helper Text */
.recruitment-form-helper {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.recruitment-form-helper i {
    font-size: 0.75rem;
    margin-right: 5px;
    color: #667eea;
}

/* Checkbox with custom style */
.recruitment-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.recruitment-checkbox-wrapper:hover {
    border-color: rgba(102, 126, 234, 0.2);
}

.recruitment-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.recruitment-checkbox-label {
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    line-height: 1.5;
}

.recruitment-checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.recruitment-checkbox-label a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Modal Footer with gradient border */
.recruitment-modal-footer {
    padding: 25px 35px;
    background: white;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Professional Buttons */
.recruitment-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.recruitment-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
}

.recruitment-btn:hover::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.recruitment-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.recruitment-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.recruitment-btn-primary:active {
    transform: translateY(-1px);
}

.recruitment-btn-secondary {
    background: #e9ecef;
    color: #495057;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.recruitment-btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Loading State */
.recruitment-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.recruitment-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-message {
    display: none;
    padding: 20px;
    background: linear-gradient(135deg, #56ab2f, #a8e063);
    color: white;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    animation: successPulse 0.5s ease;
}

.success-message.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recruitment-modal {
        width: 95%;
        max-width: none;
    }

    .recruitment-modal-header {
        padding: 25px;
    }

    .recruitment-modal-body {
        padding: 25px;
        max-height: 70vh;
    }

    .recruitment-modal-footer {
        padding: 20px 25px;
        flex-direction: column;
    }

    .recruitment-form-row {
        flex-direction: column;
        gap: 0;
    }

    .recruitment-btn {
        width: 100%;
        justify-content: center;
    }

    .recruitment-modal-title {
        font-size: 1.2rem;
    }
}

/* Accessibility */
.recruitment-modal:focus {
    outline: none;
}

.recruitment-form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Input validation states */
.recruitment-form-control.is-valid {
    border-color: #28a745;
}

.recruitment-form-control.is-invalid {
    border-color: #dc3545;
}

.recruitment-form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.recruitment-form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}