/* Reset default styles */
* {
    box-sizing: border-box;
}

/* Full height layout - Essential for flexbox full height */
html {
    height: 100% !important;
}

body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* Hide old Bootstrap header completely */
#header-site {
    display: none !important;
}

/* ============================================================================
   HEADER COMPONENT - Figma Design
   ============================================================================ */

.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #D7DAE9;
    box-shadow: 0px 1px 12px 4px rgba(140, 142, 172, 0.25);
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
    position: sticky;
    height: 96px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 17px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 80px;
    height: 80px;
}

.logo-container img.select-languages-logo{
    width: 120px;
    height: 120px;
}

.header-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.21;
    color: #445065;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #353559;
    font-size: 18px;
    padding: 5px 0;
    border-bottom: 2.2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #5F97FB;
}

.nav-link.active {
    font-weight: 500;
    border-bottom-color: #5F97FB;
    color: #5F97FB;
}

.nav-link i {
    font-size: 24px;
}

/* Header Responsive */
@media (max-width: 1024px) {
    .site-header {
        padding: 8px 40px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-nav {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 8px 20px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    .header-title {
        font-size: 16px;
        display: none; /* Hide title on mobile */
    }
    
    .logo-container img {
        height: 60px;
        width: 60px;
    }
    
    .header-nav {
        gap: 16px !important;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-link i {
        font-size: 18px;
}

    .nav-link span {
        font-size: 12px;
    }
}

/* Main content area - takes remaining space but doesn't stretch */
.main-content {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background-color: transparent;
    padding-bottom: 50px;
    /* align-items: center; */ /* REMOVED - prevents children from being full width */
    /* Removed justify-content: center to allow footer to stick properly at bottom */
    /*backdrop-filter: blur(5px);*/ /* Optional blur effect */
}

/* Custom footer styles based on Figma design */
.questionnaire-footer {
    /*background-color: #FFFFFF;*/
    /*border-top: 1px solid #D7DAE9;*/
    padding: 24px 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.questionnaire-footer .footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.05em;
    color: #445065;
    margin: 0;
    white-space: nowrap;
}

.footer-links {
    font-size: 12px;
    line-height: 1.221;
    letter-spacing: 0.05em;
    color: #445065;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-links a {
    color: #445065;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    margin: 0 8px;
    color: #445065;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .questionnaire-footer {
        padding: 24px 60px;
    }
}

@media (max-width: 768px) {
    .questionnaire-footer {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        align-items: center;
    }
    
    .footer-copyright, 
    .footer-links {
        text-align: center;
        justify-content: center;
    }
    
    .footer-copyright {
        white-space: normal;
    }
}