:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #dbeafe;
    --accent: #eff6ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

/* Custom Country Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.dropdown-trigger:hover {
    border-color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Document Styles */
.document-paper {
    background: white;
    padding: 60px 80px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #1a1a1a;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.document-paper h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 16px;
    text-align: center;
}

.document-paper h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-900);
}

.document-paper p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.document-paper ul {
    margin-bottom: 24px;
    padding-left: 24px;
    list-style-type: disc;
}

.document-paper li {
    margin-bottom: 12px;
}

/* Print Styles */
@media print {

    header,
    footer,
    .btn,
    .spinner,
    #prev-btn,
    #next-btn,
    #generate-btn,
    #copy-btn,
    #download-btn,
    #print-btn,
    .section-title {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .document-paper {
        box-shadow: none !important;
        padding: 40px !important;
        margin: 0 !important;
        max-width: none !important;
        border: none !important;
    }
}

.dropdown-search-container {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.dropdown-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.dropdown-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--accent);
    color: var(--primary);
}

.dropdown-item.selected {
    background: var(--primary);
    color: white;
}

.dropdown-item .flag {
    font-size: 1.25rem;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Utility Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #c3dafe;
    transform: translateY(-1px);
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mt-8 {
    margin-top: 48px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 48px;
}

/* Section Layouts */
section {
    padding: 80px 0;
}

.hero {
    margin-top: 80px;
}


.section-title {
    font-size: 3rem;
    font-weight: 850;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 64px;
    line-height: 1.6;
}

/* FAQ Item Hover */
.faq-item {
    transition: var(--transition);
    background-color: var(--white);
}

.faq-item:hover {
    border-color: var(--primary) !important;
    background-color: var(--gray-50);
    box-shadow: var(--shadow-sm);
}

/* Navbar */
nav {
    height: 90px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-100);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600);
}

.nav-link:hover {
    color: var(--primary);
}

/* Transitions */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}