/* Modal Styles */
.visa-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visa-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.modal-body img {
    width: 100%;
    height: auto;
}

.modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: var(--primary-color, #4361ee);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--secondary-color, #3f37c9);
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: #e9ecef;
    color: var(--dark-text, #212529);
}

.modal-btn-secondary:hover {
    background: #dee2e6;
}

/* Document Cards */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.document-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-card i {
    font-size: 20px;
    margin-bottom: 10px;
}

.document-card h4 {
    margin: 10px 0;
    font-size: 16px;
}

.document-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.document-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.download-doc {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.view-doc {
    background: var(--primary-color, #4361ee);
    color: white;
}

.download-doc {
    background: var(--success-color, #4cc9f0);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .modal-body iframe {
        height: 400px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
}