/* Global styling for Vovo visa tools */
:root {
    color-scheme: light;
    --brand-primary: #0b7285;
    --brand-accent: #0ea5e9;
    --surface: #ffffff;
    --background: #f4f8fb;
    --text-main: #1f2a37;
    --text-muted: #4b5563;
    --border-soft: #dbe5ed;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text-main);
    line-height: 1.65;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: linear-gradient(135deg, var(--brand-primary), #128297);
    color: #fff;
    text-align: center;
    padding: 3.5rem 1.5rem 3rem;
}

.site-header h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.2;
}

.site-header p {
    margin: 0 auto;
    max-width: 720px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}

.site-header__bar {
    max-width: 1100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header__content {
    max-width: 760px;
    margin: 0 auto;
}

.site-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.site-nav--header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.panel .site-nav--header {
    justify-content: flex-start;
}

.nav-link {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

button.nav-link {
    border: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.35);
    color: #0b3d47;
    font-weight: 600;
}

.active-stage {
    background: rgba(20, 184, 166, 0.25);
    color: #083944;
    font-weight: 600;
}

.panel .nav-link {
    background: rgba(11, 114, 133, 0.12);
    color: var(--brand-primary);
}

.panel .nav-link:hover,
.panel .nav-link:focus-visible {
    background: rgba(11, 114, 133, 0.22);
}

.panel .active-stage {
    background: var(--brand-accent);
    color: #fff;
}

main {
    max-width: 1100px;
    margin: -2.5rem auto 4rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 3rem clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-lg);
}

section + section {
    margin-top: 3rem;
}

select,
button {
    font: inherit;
}

.input-row {
    display: grid;
    gap: 1.5rem;
}

.input-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.input-row select {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: #f1f7fb;
}

.primary-action {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: var(--brand-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-action:hover {
    background: #0b8fd1;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.panel {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: #f8fdff;
}

.panel h2,
.panel h3 {
    margin-top: 0;
}

.grid-two {
    display: grid;
    gap: 1.5rem;
}

.checklist {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 1rem 0 0;
}

.muted {
    color: var(--text-muted);
}

.country-links {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 2rem;
}

.country-card {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.country-card h3 {
    margin-top: 0;
}

.clipboard {
    width: 100%;
    min-height: 160px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: #ffffff;
    padding: 1rem;
    font-family: "Source Code Pro", "Courier New", monospace;
    margin-top: 1.25rem;
    resize: vertical;
}

nav.site-nav {
    margin-top: 3rem;
}

nav.site-nav a + a {
    color:white !important;
    margin-left: 1.25rem;
}

@media (min-width: 720px) {
    .grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .input-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* New Components for Enhanced Functionality */

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* FAQ Accordion */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background: #f8fdff;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f1f7fb;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1.25rem;
    max-height: 500px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--brand-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

/* Emergency Contacts Cards */
.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.emergency-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emergency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.emergency-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.emergency-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0.5rem 0;
}

.emergency-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Price Tables */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.price-table th {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
}

.price-table tr:hover {
    background: #f8fdff;
}

.price-value {
    font-weight: 600;
    color: var(--brand-primary);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.tip-card h3 {
    margin-top: 0;
    color: var(--brand-primary);
}

/* Question Cards */
.question-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 1.5rem 0;
}

.question-tips {
    background: #f8fdff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1rem 0;
}

.question-tips h4 {
    margin-top: 0;
    color: var(--brand-primary);
}

.question-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.progress-info {
    background: #f8fdff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.requirement-item {
    background: #f8fdff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Checklist Items */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fdff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.checklist-item:hover {
    background: #f1f7fb;
}

.checklist-item input[type="checkbox"] {
    margin-top: 0.25rem;
    transform: scale(1.2);
}

.checklist-summary {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.compliance-pass {
    color: #10b981;
    font-weight: 600;
}

.compliance-warning {
    color: #f59e0b;
    font-weight: 600;
}

.compliance-pending {
    color: #ef4444;
    font-weight: 600;
}

/* Rejection Reasons */
.rejection-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.reason-card {
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.reason-card h3 {
    margin-top: 0;
    color: #dc2626;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.service-card h3 {
    margin-top: 0;
    color: var(--brand-primary);
}

/* Timeline */
.timeline-container {
    margin: 2rem 0;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-soft);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    z-index: 1;
}

.timeline-content {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.timeline-item.latest .timeline-content {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(11, 114, 133, 0.1);
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.timeline-notes {
    color: var(--text-muted);
    font-style: italic;
    margin: 0.5rem 0 0;
}

/* Tracker Components */
.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tracker-info h3 {
    margin-top: 0;
    color: var(--brand-primary);
}

.tracker-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fdff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

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

/* Stages Grid */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stage-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.stage-card h3 {
    margin-top: 0;
    color: var(--brand-primary);
}

/* Form Enhancements */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: #f1f7fb;
    font-family: inherit;
    resize: vertical;
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    margin-top: 4rem;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section li {
    position: relative;
    padding-left: 1rem;
}

.footer-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.footer-section li:hover::before {
    transform: translateX(3px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    padding: 0.25rem 0;
    border-radius: 4px;
    position: relative;
}

.footer-section a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--brand-accent);
}

.footer-bottom p {
    margin: 0;
    font-weight: 500;
}

/* Footer responsive improvements */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section li::before {
        display: none;
    }
    
    .footer-section li {
        padding-left: 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(11, 114, 133, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 114, 133, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .site-header__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-nav--header {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.35rem 0.65rem;
    }

    .hamburger {
        display: flex;
    }

    .site-nav--header.mobile-hidden {
        display: none;
    }

    .site-nav--header.mobile-visible {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .tracker-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tracker-actions {
        justify-content: stretch;
    }

    .tracker-actions .primary-action {
        flex: 1;
    }

    .question-actions {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 641px) {
    .hamburger {
        display: none;
    }
}
