.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 200, 1, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #ffc801, #ff6d01);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 200, 1, 0.3);
}

.modal-header h2 {
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}

.modal-footer {
    background: #111;
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 200, 1, 0.2);
}

.position-card-new {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.position-card-new.open {
    border-color: rgba(255, 200, 1, 0.3);
    box-shadow: 0 8px 30px rgba(255, 200, 1, 0.1);
}

.position-card-new.closed {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.position-header-new {
    margin-bottom: 20px;
}

.position-title-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc801;
    margin-bottom: 10px;
}

.position-status-new {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-status-new.open {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.position-status-new.closed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.position-description-new {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.requirements-preview-new {
    flex-grow: 1;
    margin-bottom: 25px;
}

.requirements-preview-new h4 {
    color: #ffc801;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.requirements-preview-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-preview-new li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.requirements-preview-new li::before {
    content: '•';
    color: #ffc801;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.position-footer-new {
    margin-top: auto;
}

.apply-btn-new {
    width: 100%;
    background: linear-gradient(135deg, #ffc801, #ff6d01);
    color: #000;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.apply-btn-new:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 200, 1, 0.3);
}

.apply-btn-new.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.application-form-new {
    padding: 0;
}

.form-section-new {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section-new:last-child {
    border-bottom: none;
}

.form-section-title-new {
    color: #ffc801;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffc801;
}

.form-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group-new {
    margin-bottom: 20px;
}

.form-label-new {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label-new.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input-new {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input-new:focus {
    outline: none;
    border-color: #ffc801;
    background: rgba(255, 200, 1, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 200, 1, 0.1);
}

.form-input-new::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-help-new {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 5px;
}

.age-requirement-new {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-submit, .btn-confirm {
    background: linear-gradient(135deg, #ffc801, #ff6d01);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover, .btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 200, 1, 0.3);
}

.confirmation-container {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 200, 1, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirmation-dialog.active .confirmation-container {
    transform: scale(1);
}

.confirmation-header {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    padding: 25px;
    text-align: center;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.confirmation-header h3 {
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.confirmation-body {
    padding: 30px;
    text-align: center;
}

.confirmation-body p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 15px;
}

.confirmation-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.confirmation-footer {
    background: #111;
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-container {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 25px;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-header h3 {
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.error-body {
    padding: 25px;
}

.error-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-body li {
    color: #ef4444;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.error-body li::before {
    content: '•';
    color: #ef4444;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.error-footer {
    background: #111;
    padding: 20px;
    text-align: center;
}

.btn-error-close {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-error-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .modal-container {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .form-section-new {
        padding: 20px;
    }
    
    .form-grid-new {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .position-card-new {
        padding: 20px;
        min-height: auto;
    }
}

body.modal-open {
    overflow: hidden;
}

.success-container {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-modal.active .success-container {
    transform: scale(1);
}

.success-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 25px;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-header h3 {
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.success-body {
    padding: 30px;
    text-align: center;
}

.success-body p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 15px;
}

.success-body .position-highlight {
    color: #ffc801;
    font-weight: 700;
}

.success-info {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.success-info h4 {
    color: #22c55e;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.success-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-info li {
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.success-info li::before {
    content: '•';
    color: #22c55e;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.success-footer {
    background: #111;
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-home {
    background: linear-gradient(135deg, #ffc801, #ff6d01);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-home:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 200, 1, 0.3);
}

.btn-reload {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-reload:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}