:root {
    --primary-color: #2c5282; /* Rich blue - conveys trust and professionalism */
    --secondary-color: #4299e1; /* Lighter blue */
    --accent-color: #f6ad55; /* Orange - creates nice contrast with blue */
    --text-color: #2d3748;
    --light-color: #f7fafc;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero section */
#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0px;
    padding-bottom: 00px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.hero-image video {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Button styles */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

section.animate__animated {
    opacity: 1;
}

section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* About section */
.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-card {
    flex-basis: calc(33.33% - 30px);
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 30vh;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Visa types section */
#visa-types {
    padding: 80px 0;
}

.visa-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.visa-category {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: white;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
    position: relative;
    transition: all 0.3s ease;
}

.visa-category:nth-child(2) {
    animation-delay: 0.2s;
}

.visa-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 0.5s ease;
    border-radius: 3px 0 0 3px;
}

.visa-category:hover::before {
    height: 100%;
}

.visa-main-card {
    padding: 25px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.visa-main-card::after {
    content: 'Нажмите для подробностей';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 12px;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visa-main-card:hover::after {
    opacity: 1;
}

.visa-category.active .visa-main-card::after {
    content: 'Нажмите, чтобы свернуть';
}

.visa-main-card:hover {
    background-color: rgba(66, 153, 225, 0.05);
}

.visa-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.visa-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
}

.visa-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.2), transparent);
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    border-radius: 50%;
}

.visa-category:hover .visa-icon::after {
    transform: scale(1.5);
    opacity: 1;
}

.visa-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.visa-main-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    flex-grow: 1;
}

.toggle-btn, .toggle-subcategory {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.toggle-btn:hover, .toggle-subcategory:hover {
    background-color: var(--primary-color);
    color: white;
}

.toggle-btn::before, .toggle-subcategory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.toggle-btn:hover::before, .toggle-subcategory:hover::before {
    transform: scale(1);
    opacity: 0.1;
}

.toggle-btn i, .toggle-subcategory i {
    transition: transform 0.3s ease;
}

.toggle-btn.active i, .toggle-subcategory.active i {
    transform: rotate(180deg);
}

.visa-main-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.visa-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.visa-subcategories.active {
    max-height: 2000px; /* Set a large value to accommodate all content */
}

.visa-subcategory {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 25px;
}

.subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subcategory-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.subcategory-header:hover::after {
    width: 100%;
}

.subcategory-header.active::after {
    width: 100%;
    background-color: var(--primary-color);
}

.subcategory-header:hover {
    background-color: rgba(66, 153, 225, 0.05);
    padding-left: 5px;
}

.subcategory-header h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
}

.subcategory-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding-right: 40px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.subcategory-content.active {
    max-height: 1000px; /* Set a large value to accommodate all content */
    padding-bottom: 20px;
}

.subcategory-content p {
    margin-bottom: 10px;
}

.subcategory-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.subcategory-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.subcategory-content.active li {
    opacity: 1;
    transform: translateX(0);
}

.subcategory-content.active li:nth-child(1) { transition-delay: 0.1s; }
.subcategory-content.active li:nth-child(2) { transition-delay: 0.15s; }
.subcategory-content.active li:nth-child(3) { transition-delay: 0.2s; }
.subcategory-content.active li:nth-child(4) { transition-delay: 0.25s; }
.subcategory-content.active li:nth-child(5) { transition-delay: 0.3s; }
.subcategory-content.active li:nth-child(6) { transition-delay: 0.35s; }
.subcategory-content.active li:nth-child(7) { transition-delay: 0.4s; }
.subcategory-content.active li:nth-child(8) { transition-delay: 0.45s; }
.subcategory-content.active li:nth-child(9) { transition-delay: 0.5s; }
.subcategory-content.active li:nth-child(10) { transition-delay: 0.55s; }
.subcategory-content.active li:nth-child(n+11) { transition-delay: 0.6s; }

.subcategory-content li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 15px;
    margin-right: 5px;
}

/* Responsive styles for visa categories */
@media (max-width: 992px) {
    .visa-main-card {
        padding: 20px;
    }
    
    .visa-icon {
        width: 50px;
        height: 50px;
    }
    
    .visa-icon i {
        font-size: 25px;
    }
    
    .visa-main-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav li {
        margin: 0 15px;
    }
    
    #hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .feature-card {
        flex-basis: 100%;
    }
    
    .footer-logo,
    .footer-links,
    .footer-social {
        flex-basis: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .quiz-screen {
        padding: 20px;
    }
    
    #ad-container {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

/* Addition animations for questions */
.question-enter {
    animation: questionEnter 0.5s ease forwards;
}

.question-exit {
    animation: questionExit 0.5s ease forwards;
}

.result-success {
    background-color: rgba(72, 187, 120, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.result-warning {
    background-color: rgba(237, 137, 54, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.result-danger {
    background-color: rgba(229, 62, 62, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

@keyframes questionEnter {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes questionExit {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-50px); opacity: 0; }
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.4s ease;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-color) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Focus states for accessibility */
.toggle-btn:focus, .toggle-subcategory:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.subcategory-header:focus-within {
    background-color: rgba(66, 153, 225, 0.05);
}

/* Checker section */
#quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quiz-screen {
    display: none;
    padding: 40px;
}

.quiz-screen.active {
    display: block;
}

.quiz-screen h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.quiz-screen p {
    margin-bottom: 30px;
}

.question {
    margin-bottom: 30px;
}

.question h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.options label {
    display: flex;
    margin-bottom: 10px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.options label:hover {
    background-color: rgba(66, 153, 225, 0.1);
}

.options input[type="radio"] {
    margin-right: 10px;
}

/* Styling for country options with flags */
.option-with-flag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.country-flag {
    font-size: 1.5rem;
    margin-left: 10px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

#welcome-screen {
    text-align: center;
}

#welcome-screen button {
    margin: 0 auto;
    display: block;
}

/* Center button in visa-refusal section */
#visa-refusal button {
    margin: 20px auto;
    display: block;
}

/* Contact section */
#contact {
    background-color: var(--light-color);
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 40px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    width: 100%;
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-logo {
    flex-basis: 30%;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-links,
.footer-social {
    flex-basis: 30%;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul,
.footer-social ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
}

.social-icons li {
    margin-right: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Ad container */
#ad-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 300px;
    height: 250px;
    z-index: 1000;
    overflow: hidden;
    display: none;
}

#ad-banner {
    padding: 10px;
    background-color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ad-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-color);
}

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

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

.bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

/* Keyframe animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 36px;
    }
    
    .feature-card {
        flex-basis: calc(50% - 20px);
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav li {
        margin: 0 15px;
    }
    
    #hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .feature-card {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .quiz-screen {
        padding: 20px;
    }
    
    #ad-container {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 1200px) {
    .visa-categories {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .visa-header {
        flex-wrap: wrap;
    }
    
    .visa-icon {
        margin-bottom: 10px;
    }
    
    .visa-main-card h3 {
        font-size: 20px;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .toggle-btn {
        margin: 0 auto;
    }
    
    .subcategory-header h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .visa-main-card {
        padding: 15px;
    }
    
    .visa-subcategory {
        padding: 0 15px;
    }
    
    .subcategory-content {
        padding-right: 5px;
    }
    
    .subcategory-content ul {
        padding-left: 10px;
    }
    
    .subcategory-content li::before {
        width: 10px;
    }
}

/* Animations */
.visa-category {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.visa-category:nth-child(2) {
    animation-delay: 0.2s;
}

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

/* Hover effects */
.visa-main-card:hover {
    background-color: rgba(66, 153, 225, 0.05);
}

.subcategory-header:hover h4 {
    color: var(--secondary-color);
}

/* Pulse animation on first load */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(66, 153, 225, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(66, 153, 225, 0); }
}

.visa-category:first-child .toggle-btn {
    animation: pulse 2s infinite;
    animation-delay: 2s;
}

.visa-category.active:first-child .toggle-btn {
    animation: none;
}

@media (max-width: 768px) {
    .visa-main-card::after {
        position: static;
        display: block;
        text-align: center;
        margin-top: 10px;
        opacity: 0.7;
    }
}

/* FAQ Section Styles */
#faq {
    padding: 60px 0;
    background-color: var(--light-color);
}

.faq-container {
    margin-top: 30px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-group {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-group:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.faq-group-title {
    background-color: var(--primary-color);
    padding: 15px 25px;
    color: white;
}

.faq-group-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(66, 153, 225, 0.05);
}

.faq-question h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    flex-grow: 1;
}

.faq-toggle {
    background: none;
    border: none;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.faq-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer.active {
    max-height: 1000px;
    padding: 0 25px 20px;
}

.faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.6;
}

.faq-answer ul {
    margin-top: 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.faq-answer.active li {
    opacity: 1;
    transform: translateY(0);
}

.faq-answer.active li:nth-child(1) { transition-delay: 0.1s; }
.faq-answer.active li:nth-child(2) { transition-delay: 0.15s; }
.faq-answer.active li:nth-child(3) { transition-delay: 0.2s; }
.faq-answer.active li:nth-child(4) { transition-delay: 0.25s; }
.faq-answer.active li:nth-child(5) { transition-delay: 0.3s; }

/* Animation for FAQ answers */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for FAQ */
@media (max-width: 768px) {
    .faq-question h4 {
        font-size: 16px;
    }
    
    .faq-group-title h3 {
        font-size: 18px;
    }
}

/* Visa Guide Styles */
#visa-guide {
    padding: 60px 0;
}

.visa-guide-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.visa-guide-tabs {
    display: flex;
    background-color: var(--primary-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.visa-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.visa-tab:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.visa-tab:hover {
    color: white;
}

.visa-tab.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.visa-tab.active:before {
    width: 80%;
}

.visa-guide-content {
    padding: 30px;
    position: relative;
    min-height: 500px;
}

.visa-guide-panel {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.visa-guide-panel.active {
    display: block;
}

.visa-guide-card {
    background-color: white;
    border-radius: var(--border-radius);
}

.visa-guide-card h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visa-guide-card h3 i {
    color: var(--accent-color);
}

/* Visa Steps */
.visa-steps {
    list-style: none;
    counter-reset: step-counter;
}

.visa-step {
    display: flex;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: stepIn 0.5s ease forwards;
}

.visa-step:nth-child(1) { animation-delay: 0.1s; }
.visa-step:nth-child(2) { animation-delay: 0.2s; }
.visa-step:nth-child(3) { animation-delay: 0.3s; }
.visa-step:nth-child(4) { animation-delay: 0.4s; }
.visa-step:nth-child(5) { animation-delay: 0.5s; }
.visa-step:nth-child(6) { animation-delay: 0.6s; }
.visa-step:nth-child(7) { animation-delay: 0.7s; }

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(44, 82, 130, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-color);
    margin-bottom: 10px;
}

.step-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.step-content ul li {
    margin-bottom: 8px;
    position: relative;
}

/* Tips List */
.tips-list {
    list-style: none;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: stepIn 0.5s ease forwards;
}

.tip-item:nth-child(1) { animation-delay: 0.1s; }
.tip-item:nth-child(2) { animation-delay: 0.2s; }
.tip-item:nth-child(3) { animation-delay: 0.3s; }
.tip-item:nth-child(4) { animation-delay: 0.4s; }
.tip-item:nth-child(5) { animation-delay: 0.5s; }

.tip-item i {
    color: var(--success-color);
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
}

.tip-item div {
    flex: 1;
}

.tip-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.tip-item p {
    color: var(--text-color);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visa-guide-tabs {
        flex-direction: column;
    }
    
    .visa-tab {
        text-align: center;
    }
    
    .visa-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
}

/* Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#scrollToTop.show {
  opacity: 0.8;
}

#scrollToTop:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Legal pages (Impressum and Privacy Policy) */
.legal-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.legal-header h1 {
    font-size: 36px;
    margin: 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.legal-content section {
    margin-bottom: 30px;
    padding: 0;
    opacity: 1;
}

.legal-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.legal-content p, 
.legal-content ul {
    margin-bottom: 15px;
}

.legal-content ul {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .legal-header {
        padding: 30px 0;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-content {
        padding: 0 15px 40px;
    }
}
