body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column; /* Change to column layout */
    min-height: 100vh;
    margin: 0; /* Remove default body margins */
    background-color: #f0f0f0;
    position: relative; /* Add this */
    padding-bottom: 80px; /* Add space for footer */
}

.container {
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.question-container {
    position: relative;
    min-height: 100vh; /* Change from fixed height to minimum height */
    height: auto; /* Allow container to grow with content */
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%;
    overflow: visible; /* Change from hidden to visible */
    margin-top: 40px; /* Moves the question container below the progress bar */
    box-sizing: border-box;
    padding-bottom: 80px; /* Add padding to prevent content from being hidden behind footer */
}

#questionText {
    position: relative; /* Change from fixed to relative */
    margin-top: 100px; /* Some spacing from top of container */
    margin-bottom: 20px;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    background: white;
    z-index: 1; /* Ensure question text is above backgrounds */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    color: #000;
}

.question {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 2rem 0;
  /* margin: 4rem 0 4rem 0; */
  width: 100%;
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  height: auto; /* Allow question to take natural height */
}

#options {
    margin-top: 20px; /* Reduce margin since question is now in normal flow */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.question h1 {
    margin-bottom: 15px;
}

.option {
    min-height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option:hover {
  background-color: #e0e0e0;
}

.option input[type="radio"] {
  margin-right: 10px;
}

button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%; /* Initial width */
    transition: width 0.3s ease-in-out;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  background-color: #FFFFFF;
}

*, *:before, *:after {
  box-sizing: inherit;
}

#barba-wrapper, 
.barba-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

.content-wrapper {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 20px; /* Add padding to prevent horizontal scroll */
    box-sizing: border-box; /* Include padding in width calculation */
    min-height: min-content; /* Add this to allow content to determine height */
    margin-bottom: 80px; /* Add margin to prevent content from being hidden behind footer */
}

.options-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 20px 10px; /* Add some padding */
    box-sizing: border-box;
    margin-bottom: 60px; /* Add space for navigation buttons */
    height: auto; /* Allow container to grow with content */
}

.option {
  width: 100%;
  max-width: 100%; /* Ensure option doesn't exceed container width */
  padding: 20px;  /* Changed from padding: 20px 0 to add horizontal padding */
  margin: 8px 0;
  font-size: 1.2rem;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.5s ease forwards;
  text-align: center;  /* Added to center option text */
  box-sizing: border-box; /* Include padding in width calculation */
}

.option:hover {
  border-bottom: 2px solid rgba(0, 0, 0, 0.8);
  padding-left: 10px;
}

.option.selected {
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid #000;
  padding-left: 20px;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #000;
  transition: width 0.3s ease;
  z-index: 9999; /* Ensure the bar stays on top without hiding the question */
}

.nav-buttons {
  position: fixed;
  bottom: 60px; /* Changed from 40px to place it above footer */
  left: 40px;
  display: flex;
  gap: 15px;
}

button {
  padding: 15px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  background: #000;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

.question-counter {
  position: fixed;
  bottom: 60px; /* Changed from top: 40px to bottom: 60px */
  right: 20px;
  font-size: 1.5rem;  /* Increased from 1.2rem */
  font-weight: 500;
  opacity: 0.7;
  padding: 15px;
  z-index: 100000;
  background: transparent;
}

@keyframes slideIn {
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.main-title {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-title.hiding {
  opacity: 0;
  transform: translate(-50%, -20px);
}

.result-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.result-container.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.result-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.result-score {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 20px 0;
  background: none;
  border: none;
  text-align: center;
  font-size: 1.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.result-container.visible .result-title,
.result-container.visible .result-score {
  opacity: 1;
  transform: translateY(0);
}

/* Remove the .credit-link styles entirely */

.top-title {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  padding: 15px;
  background: transparent;
  z-index: 1000;
  /* background-color: #FFFFFF; */
  padding: 10px;
  /* width: 100%; */
}

.top-title a {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* gap: 15px; */
}

.logo-image {
  height: 100px; /* Adjusted height to match two lines of text */
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.primary-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.secondary-text {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.menu-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 40px 40px 40px; /* Increased top padding to account for header */
    background-color: #FFFFFF;
    box-sizing: border-box;
    position: absolute; /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    overflow-y: auto;  /* Enable vertical scrolling */
    max-height: 100vh; /* Limit height to viewport height */
    padding-bottom: 80px; /* Increase bottom padding to account for footer height */
    height: 100vh;
}

.menu-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    z-index: 1;
    margin: 20px 0;
    color: rgba(0, 0, 0, 0.8);
    width: 100%;
}

.menu-items {
    width: 100%;
    max-width: 800px;  /* Matched with options-container */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;  /* Matched with option margins */
    z-index: 1;
    margin-bottom: 40px;
}

.menu-item {
    position: relative;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-item.selected {
    background-color: rgba(0, 0, 0, 0.1);
}

.menu-item {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
    text-align: center;
    box-shadow: none;
    border-radius: 0;
    /* display: block; */
}

.menu-item:hover {
    border-bottom: 2px solid rgba(0, 0, 0, 0.8);
    padding-left: 30px;  /* Increased padding to match option hover effect */
    background: rgba(0, 0, 0, 0.05);
}

.menu-item a {
    text-decoration: none;
    color: black;
}

.menu-item a, 
.menu-item a label,
.menu-items a {
    text-decoration: none;
    color: black;
}

/* Update the menu item link styles with more specific selectors */
.menu-item a,
.menu-item a label,
.menu-items a,
.menu-container .menu-items .menu-item a {
    text-decoration: none;
    color: black !important;
    display: block;
    width: 100%;
}

.user-form {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 80px; /* Add space for the fixed header */
    padding: 20px;
}

.user-form input[type="text"],
.user-form input[type="email"],
.user-form input[type="tel"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    transition: all 0.3s ease;
}

.user-form input:focus {
    outline: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.8);
}

.assessment-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.numeric-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.numeric-input {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    transition: border-color 0.3s;
}

.numeric-input:focus {
    border-color: #007bff;
    outline: none;
}

.next-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.next-button:hover {
    background-color: #0056b3;
}

.unit-label {
    margin-left: 8px;
    color: #666;
}

.time-input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.time-input {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  width: 200px;
  text-align: center;
  transition: border-color 0.3s;
}

.time-input:focus {
  border-color: #007bff;
  outline: none;
}

.question.visible {
  opacity: 1;
  transform: translateY(0);
}

.subquestion-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 1em;
  text-align: left;
}

.multiple-subquestions-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Change from flex-start to center */
}

.subquestion {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;  /* Change from left to center */
}

.subquestion-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;  /* Update margin to be even on all sides */
    text-align: center;  /* Change from left to center */
}

.subquestion-choices {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;  /* Change from flex-start to center */
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.subquestion-choices .option {
    flex: 0 1 150px;  /* Change from flex: 1 to flex: 0 1 150px */
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 5px;  /* Add margin for better spacing */
}

.subquestion-choices .option:hover {
    padding-left: 10px;  /* Keep consistent padding on hover */
    height: 60px;  /* Maintain same height on hover */
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    background-color: #ffffff;
    /* padding: 10px 20px; */
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.logo-image {
    width: 60px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.primary-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.secondary-text {
    font-size: 0.9rem;
}

.slider-container {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.range-slider {
    width: 100%;
    height: 25px;
    margin: 20px 0;
}

.slider-value {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

@media (max-width: 768px) {
    .logo-container {
        text-align: center;
    }
}

.footer {
    position: fixed;  /* Change from absolute to fixed */
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    background-color: #fff;
    z-index: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #333;
}

/* Add this media query for mobile responsiveness */
@media (max-width: 768px) {
    .footer {
        font-size: 12px;
        padding: 10px;
    }
}

/* ...existing code... */

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-header {
    margin-bottom: 40px;
    text-align: left;
    padding: 0 20px;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.video-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.video-playlist {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.video-wrapper:nth-child(1) { animation-delay: 0.4s; }
.video-wrapper:nth-child(2) { animation-delay: 0.6s; }
.video-wrapper:nth-child(3) { animation-delay: 0.8s; }

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s ease;
}

.video-wrapper:hover iframe {
    transform: scale(1.02);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .video-container {
        margin-top: 100px;
        padding: 0 15px;
    }
    
    .video-header {
        padding: 0 10px;
    }

    .video-title {
        font-size: 2rem;
    }

    .video-description {
        font-size: 1rem;
    }

    .video-wrapper {
        margin-bottom: 20px;
    }
}

/* Remove any previous video-related styles */

/* ...existing code... */