/* Modern Visa Page Styling */
:root {
    --visa-primary: #2563eb;
    --visa-secondary: #1e40af;
    --visa-accent: #3b82f6;
    --visa-success: #10b981;
    --visa-warning: #f59e0b;
    --visa-danger: #ef4444;
    --visa-light: #f8fafc;
    --visa-dark: #1e293b;
    --visa-gray: #64748b;
    --visa-border: #e2e8f0;
    --visa-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --visa-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --visa-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Visa Page Styles */
.visa-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--visa-dark);
}

/* Section Title Enhancement */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Modern Hero Section */
.visa-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.visa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.visa-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(30, 64, 175, 0.6) 100%);
}

.visa-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    color: white !important;
    font-weight: bold !important;
}

.visa-hero .lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.visa-hero .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb, #000);    border: none;
    box-shadow: var(--visa-shadow-lg);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.visa-hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--visa-shadow-xl);
    background: linear-gradient(135deg, #059669, var(--visa-success));
}

/* Enhanced Feature Items */
.feature-item {
    display: flex;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--visa-border);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--visa-shadow-xl);
    border-color: var(--visa-accent);
}

.feature-item:hover::before {
    left: 100%;
}

.feature-icon {
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: var(--visa-shadow);
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--visa-dark);
}

.feature-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--visa-gray);
    line-height: 1.5;
}

/* Modern Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-secondary));
    color: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--visa-shadow-xl);
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.stat-card h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-card p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Enhanced Process Section */
.visa-process-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.visa-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1" fill="%2364748b" opacity="0.1"/></svg>') repeat;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: 0;
    right: 1rem;
    background: linear-gradient(135deg, var(--visa-warning), #d97706);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    z-index: 2;
    box-shadow: var(--visa-shadow);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--visa-shadow-lg);
    border: 3px solid var(--visa-border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.process-step:hover .step-icon {
    border-color: var(--visa-accent);
    transform: scale(1.05);
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--visa-primary);
}

.process-step h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--visa-dark);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--visa-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Visa Packages Grid */
.visa-packages .row {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Visa Cards */
.visa-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: var(--visa-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--visa-border);
    position: relative;
}

.visa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.visa-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--visa-shadow-xl);
    border-color: var(--visa-accent);
}

.visa-card:hover::before {
    transform: scaleX(1);
}

.visa-card-header {
    background: linear-gradient(135deg, var(--visa-primary) 0%, var(--visa-secondary) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.visa-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.visa-country {
    font-size: 1.3rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.visa-type {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.visa-card-body {
    padding: 2rem;
}

.visa-price {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.visa-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: top;
    position: relative;
    top: 8px;
    color: var(--visa-gray);
}

.visa-price .amount {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visa-processing-time {
    font-size: 0.9rem;
    color: var(--visa-gray);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    font-weight: 600;
}

.visa-processing-time i {
    margin-right: 0.5rem;
    color: var(--visa-primary);
    font-size: 1rem;
}

.visa-requirements-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--visa-dark);
    position: relative;
    padding-left: 1rem;
}

.visa-requirements-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    border-radius: 2px;
}

.visa-requirements-list {
    padding-left: 0;
    list-style-type: none;
    margin-bottom: 2rem;
}

.visa-requirements-list li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--visa-gray);
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.visa-requirements-list li:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transform: translateX(5px);
}

.visa-requirements-list li i {
    color: var(--visa-success);
    font-size: 0.9rem;
    margin-top: 2px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.visa-card .btn-primary {
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--visa-shadow);
}

.visa-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--visa-shadow-lg);
    background: linear-gradient(135deg, var(--visa-secondary), var(--visa-primary));
}

/* Enhanced Testimonials */
.visa-testimonials-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--visa-shadow);
    height: 100%;
    border: 1px solid var(--visa-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--visa-primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--visa-shadow-lg);
    border-color: var(--visa-accent);
}

.testimonial-rating {
    color: var(--visa-warning);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--visa-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    box-shadow: var(--visa-shadow);
    font-size: 1.1rem;
}

.author-info h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--visa-dark);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--visa-gray);
    margin-bottom: 0;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Enhanced Modal Styling */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--visa-shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-body {
    padding: 2rem;
}

.modal .form-control {
    border-radius: 12px;
    border: 2px solid var(--visa-border);
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    border-color: var(--visa-accent);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.modal .form-label {
    font-weight: 600;
    color: var(--visa-dark);
    margin-bottom: 0.5rem;
}

.modal .btn-secondary {
    background: var(--visa-gray);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.modal .btn-primary {
    background: linear-gradient(135deg, var(--visa-primary), var(--visa-accent));
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .visa-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .visa-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .visa-hero h1 {
        font-size: 2.5rem;
    }
    
    .stat-card h2 {
        font-size: 2.5rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
    }
    
    .step-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .visa-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .visa-hero h1 {
        font-size: 2rem;
    }
    
    .visa-hero .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .visa-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0 0.1rem;
    }
    
    .visa-country {
        font-size: 1.1rem;
    }
    
    .visa-price .amount {
        font-size: 2.5rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .visa-hero {
        height: 45vh;
        min-height: 300px;
        padding: 20px 0;
    }
    
    .visa-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .visa-hero .lead {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .visa-hero .btn {
        padding: 12px 24px;
        font-size: 1rem;
        width: auto;
        min-width: 200px;
    }
    
    .section-title {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .visa-card {
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
    
    .visa-card-body {
        padding: 1.5rem;
    }
    
    .visa-price .amount {
        font-size: 2rem;
    }
    
    .visa-requirements-list {
        font-size: 0.9rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 60px;
        height: 60px;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-card h2 {
        font-size: 1.8rem;
    }
    
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100%;
    }
    
    .modal-body {
        padding: 1.5rem;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .visa-hero {
        min-height: 280px;
        padding: 15px 0;
    }
    
    .visa-hero h1 {
        font-size: 1.5rem;
    }
    
    .visa-hero .lead {
        font-size: 0.95rem;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .visa-card-body {
        padding: 1rem;
    }
    
    .visa-price .amount {
        font-size: 1.8rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h2 {
        font-size: 1.5rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .visa-card:hover {
        transform: none;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print Styles */
@media print {
    .visa-hero,
    .btn,
    .modal {
        display: none !important;
    }
    
    .visa-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .section-title {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
}