/*
* User-Friendly Enhancements for Mongolia eVisa Website
* Focus on readability, accessibility, and mobile-first design
*/

/* ===== ENHANCED TYPOGRAPHY ===== */
body {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Better heading hierarchy */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

/* Enhanced paragraph styling */
p {
    margin-bottom: 1.25rem;

    color: var(--text);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
}

/* ===== IMPROVED CONTENT ORGANIZATION ===== */

/* Better list styling */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Enhanced bullet points */
.content-list {
    list-style: none;
    padding-left: 0;
}

.content-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.content-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Better table styling */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-align: left;
}

.table td {
    padding: 0.875rem 1rem;
    border-color: var(--border);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(196, 39, 47, 0.02);
}

/* ===== ENHANCED VISUAL HIERARCHY ===== */

/* Better section spacing */
.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2.5rem 0;
}

.section-lg {
    padding: 5rem 0;
}

/* Improved content containers */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-wrapper {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* Better card design */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* ===== IMPROVED BUTTONS & CTAs ===== */

/* Enhanced button styling */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e63946);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 39, 47, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a91e25, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 39, 47, 0.4);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

/* CTA sections */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===== ENHANCED NAVIGATION ===== */

/* Better navigation styling */
.navbar {
    padding: 1rem 0;
    background: white !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(196, 39, 47, 0.05);
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(196, 39, 47, 0.1);
}

/* Dropdown improvements */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(196, 39, 47, 0.05);
    color: var(--primary);
}

/* ===== IMPROVED FORMS ===== */

/* Better form styling */
.form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 39, 47, 0.15);
    background: white;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text);
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== MOBILE-FIRST RESPONSIVE ENHANCEMENTS ===== */

/* Mobile typography */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .content-wrapper {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-wrapper {
        padding: 2rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
}

/* ===== ENHANCED VISUAL ELEMENTS ===== */

/* Better icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(196, 39, 47, 0.3);
}

/* Progress indicators */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--light);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.6s ease;
}

/* Status badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--dark);
}

.badge-info {
    background: var(--info);
    color: white;
}

/* ===== LOADING STATES ===== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PRINT STYLES ===== */

@media print {
    .navbar,
    .footer,
    .btn,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .content-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

