body {
    font-family: Barlow Condensed;
    font-size: 24px;
    margin: 0 auto; 
    padding: 20px; 
    display: grid; 
    place-items: center;
    min-height: 100vh; 
    background-color: #001C28;
    color: white;
    box-sizing: border-box; 
}

legend {
  padding: 3px 6px;
}


#upper-survey-container {
    background: #02374F;
    /*border: 1px solid #B2DDD4;*/
    box-shadow: 0 0 15px 1px rgba(178, 221, 212, 0.6);   
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px;
    

}

.header-logo {
    position: absolute;
    top: 15px;          
    left: 15px;      
    height: 40px;        
    width: auto;        
    z-index: 999;       
}


#lower-survey-container, #second-survey-container {
    background: #02374F;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 440px;
    margin: 0 auto; 
    align-items: center;
    padding: 20px;
}

#second-survey-container {
    display: none; 
    opacity: 0;  
}

#lower-survey-container.hidden {
    opacity: 0; 
    pointer-events: none; 
}

#thank-you-page button {
    background-color: #6BD1AA;
    color: white;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 52px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
    font-size: 16px;
}

#thank-you-page {
    display: none;
    opacity: 0;
    padding-top: 20px;
}


#thank-you-page.show {
    display: block;
    opacity: 1;
}



/* Survey Question Styling */
.question {
    font-family: Open Sans;
    font-size: 20px;
    margin-bottom: 20px;
    padding-left: 15px; 
    padding-right: 15px; 
}

label {
    display: block;
    margin-bottom: 8px;
    padding-left: 15px; 
    padding-right: 15px; 
}

button {
    font-family: Open Sans;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #6BD1AA;
    color: white;
    border: 1px solid white;
    border-radius: 52px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    
}

button:disabled {
    background-color: #dcdcdc;
}

#progress-bar, #progress-bar-part2 {  
    height: 10px;
    background-color: #ddd;
    margin-top: 20px;
    border-radius: 5px;
}


#progress, #progress-part2 {     
    width: 0;
    height: 100%;
    background-color: #95C66F;
    border-radius: 5px;
}

#navigation-buttons, #navigation-buttons-part2 {
    text-align: center;
    margin-top: 20px; 
}


/* Warning message style */
#warning-message, #warning-message-part2 {
    margin-top: 10px;    
    text-align: center;
    color: red;
    font-size: 16px;
    min-height: 24px;    
    display: none;       
}

/* Start Page Style */
#start-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#start-page button {
    margin-top: 20px;
    min-width: 150px;
}





/* Info Button inside the Survey Container */
#info-button {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000; 
}

/* Info Popup (Overlay - styles mostly unchanged) */
#info-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* display: flex; */ 
    justify-content: center; 
    align-items: center;     
    z-index: 99999;
    overflow: hidden; 
}

/* Popup Content Box */
#info-content {
    background: white;
    color: black;
    padding: 20px;
    /* REMOVE padding-bottom: 50px; Footer is now inside */
    border-radius: 8px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto; 
}

/* Footer Bar Styles (No longer absolute) */
.popup-footer {
    /* REMOVE position: absolute, bottom, left, right, z-index */
    height: 50px;      
    background-color: #02374F; 
    padding: 0 10px;  
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    margin-top: 20px; 
    margin-left: -20px;
    margin-right: -20px; 
    margin-bottom: -20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px; 
}

/* Logo styles remain the same */
.popup-logo {
    height: 30px;
    width: auto;
    max-height: calc(100% - 10px);
}

#close-info {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10; /* Needs to be above footer if they overlap somehow, but shouldn't now */
}



#results-comparison-box div {
  
    padding: 3px 0; 
    font-family: Open Sans;
    font-size: 18px;
    

}

#results-summary-stats p {
    margin: 8px 0; 
}


/* Style for the specific link with class 'highlight-link' */
a.highlight-link {
    color: #6bd1aa;  
    text-decoration: underline;
}

a.highlight-link:hover {
    color: #ffcc00;  
    text-decoration: underline; 
}



/* Container for the share buttons */
#share-buttons-container {
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-top: 20px; 
    flex-wrap: wrap; 
}

/* Styling for the share buttons (anchor tags styled as buttons) */
.share-button {
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 

    /* --- Inherit appearance from previous button style --- */
    background-color: #6BD1AA; 
    color: white !important; 
    padding: 10px 15px;
    border: 1px solid white;
    border-radius: 52px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px; 
    font-family: Open Sans;
    text-decoration: none; 
    transition: background-color 0.2s ease; 
    min-width: 160px;
    justify-content: center; 
}

/* Style for the logos inside the buttons */
.share-button img {
    height: 16px;
    width: auto;
    display: block; 
}

/* Optional: Hover effects */
.share-button:hover {
    background-color: #5abf9a; 
    color: white;
}

/* Optional: Platform-specific background colors */
.share-button.linkedin {
    /* background-color: #0077B5; */ /* Example LinkedIn blue */
}

.share-button.x {
     /* background-color: #000000; */ /* Example X black */
}


/* Survey Success Message */
#survey-success {
    background: #02374F;
    border: 1px solid #B2DDD4;
    box-shadow: 0 0 15px 1px rgba(178, 221, 212, 0.6);
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

#success-content h3 {
    font-size: 1.8em;
    color: #6BD1AA;
}

#success-content p {
    font-size: 1.2em;
    margin: 10px 0;
    color: white;
}

#success-content button {
    padding: 10px 20px;
    background-color: #6BD1AA;
    color: white;
    border: 1px solid white;
    border-radius: 52px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-top: 20px;
}

#survey-success button {
    margin-top: 20px;
}

#survey-success {
    transition: opacity 0.5s ease-in-out;
}

#start-second-part-button {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    z-index: 1001 !important; 
}

#second-survey-container button {
    background-color: #6BD1AA;
    color: white;
    border: 1px solid white;
    border-radius: 52px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
}




#results-page {
    display: none; 
    text-align: center;
    padding: 20px; 
}

#results-page p {
    margin-bottom: 15px; 
    font-size: 1.05em; 
    color: white; 
}

#results-display-area ul { 
     list-style: none;
     padding: 0;
     margin: 0;
 }
 #results-display-area li { 
     margin-bottom: 5px;
     background: rgba(0, 0, 0, 0.1); 
     padding: 5px;
     border-radius: 3px;
 }
  #results-display-area h3 { 
     margin-top: 15px;
     margin-bottom: 5px;
      color: #6BD1AA; 
  }


#show-results-button {
    background-color: #6BD1AA;
    color: white;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 52px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
    font-size: 16px;
}



#results-summary-stats p {
    margin: 8px 0; 
}


/* Style for the specific link with class 'highlight-link' */
a.highlight-link {
    color: #6bd1aa;  
    text-decoration: underline;
}

a.highlight-link:hover {
    color: #ffcc00;  
    text-decoration: underline; 
}



/* Container for the share buttons */
#share-buttons-container {
    display: flex; 
    justify-content: center;
    gap: 15px; 
    margin-top: 20px; 
    flex-wrap: wrap; 
}

/* Styling for the share buttons (anchor tags styled as buttons) */
.share-button {
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 

    /* --- Inherit appearance from previous button style --- */
    background-color: #6BD1AA; 
    color: white !important; 
    padding: 10px 15px; 
    border: 1px solid white;
    border-radius: 52px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px; 
    font-family: Open Sans;
    text-decoration: none; 
    transition: background-color 0.2s ease; 
    min-width: 160px;
    justify-content: center; 
}

/* Style for the logos inside the buttons */
.share-button img {
    height: 16px;
    width: auto;
    display: block; 
}

/* Optional: Hover effects */
.share-button:hover {
    background-color: #5abf9a; /* Slightly darker shade on hover */
    color: white;
}

/* Optional: Platform-specific background colors */
.share-button.linkedin {
    /* background-color: #0077B5; */ /* Example LinkedIn blue */
}

.share-button.x {
     /* background-color: #000000; */ /* Example X black */
}


/* Responsive Design with Media Queries */
@media (max-width: 768px) {
    /* Survey Container */
    #survey-container {
        padding: 15px;
    }

    /* Adjust the size of the info button */
    #info-button {
        font-size: 20px;
    }
    
    #start-page h2 {
        /* Override inline style - smaller than 2em */
        font-size: 1.8em !important; 

    }   
    
    #start-page p {
        /* Make paragraph smaller than body default on tablets/large phones */
        font-size: 1.5rem; 
    }    

    /* Adjust the size of buttons on mobile */
    button {
        padding: 10px;
        font-size: 16px;
    }

    /* Adjust progress bar height */
    #progress-bar {
        height: 8px;
    }

    /* Adjust label text size */
    label {
        font-size: 14px;
    }

    /* Adjust question text size */
    .question p {
        font-size: 16px;
    }

    /* Warning message */
    #warning-message {
        font-size: 12px;
    }
    
    #results-comparison-box div {
        font-size: 1rem;
    }
    
    #results-page {
        padding: 0px; 
    }   
    
    #results-page p {
        font-size: 1em;
    }
    
}

/* For very small screens (portrait phones) */
@media (max-width: 480px) {

    /* Survey Container */
    #survey-container {
        width: 90%;
        padding: 10px;
    }


    #start-page h2 {
        /* Even smaller for small phones */
        font-size: 1.6em !important; 
    }

    #start-page p {
        /* Smaller paragraph for small phones */
        font-size: 1.3rem; 
    }
    
    /* Adjust button and input sizes */
    button {
        font-size: 14px;
        padding: 8px;
    }

    /* Adjust the font size for labels and text */
    label, .question p {
        font-size: 1rem !important;
    }

    /* Adjust the info button position for small screens */
    #info-button {
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
    
    #results-comparison-box div {
        font-size: 1rem;
    }
    #results-page {
        padding: 0px; 
    }   
    
    #results-page p {
        font-size: 1em;
        
    }


}