:root {
    --primary-color: #253F62;
    --secondary-color: #Ce7F19;
    --tertiary-color: #D6552E;
    --quaternary-color: #80215A;
    --background-color: #f5f5f7;
    --text-color: #333;
    --border-color: #d1d1d6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

#header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    height: 40px;
    margin-right: 1rem;
}

.tagline {
    font-size: 14px;
}

#footer {
    background-color: var(--primary-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1001;
}


main {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
}

h1, h2 {
    margin-bottom: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"] {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

button {
    background-color: var(--primary-color);
    padding: 10px 15px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: var(--secondary-color);
}

#view-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

#view-options button {
    flex: 1;
    margin: 0 0.25rem;
    font-size: 0.9rem;
    padding: 0.5rem;
}

#view-options button.active {
    background-color: var(--secondary-color);
}

.indicators {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: #f0f0f0;
    padding: 0.5rem;
    border-radius: 4px;
}

.indicators i {
    margin-right: 0.5rem;
}

#progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

#progress-bar {
    width: 0;
    height: 10px;
    background-color: var(--tertiary-color);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.question {
    margin-bottom: 2rem;
}

.question p {
    margin-bottom: 0.5rem;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip:hover .tooltiptext,
.tooltip.active .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 600px) {
    .tooltip .tooltiptext {
        width: 160px;
        margin-left: -80px;
    }
    
    /* Ensure hover doesn't activate tooltip on touch devices */
    .tooltip:hover .tooltiptext {
        visibility: hidden;
        opacity: 0;
    }
    
    .tooltip.active .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
}

.scale-options {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    margin-top: 1rem;
}

.scale-option {
    flex: 1;
    min-width: 60px;
    max-width: 80px;
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-option label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1;
    font-size: 0.8rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.25rem;
    text-align: center;
}

.scale-option label span {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
}

.scale-option label small {
    font-size: 0.6rem;
    line-height: 1;
    max-width: 100%;
}

.scale-option input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 40px;
}

.navigation-buttons button {
    flex: 1;
    margin: 0 0.25rem;
}

@media (max-width: 600px) {
    main {
        padding: 0 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    #view-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    #view-options button {
        margin: 0;
    }

    .scale-options {
        flex-wrap: wrap;
    }

    .scale-option {
        min-width: calc(25% - 0.25rem);
        max-width: calc(25% - 0.25rem);
    }
    
    .scale-option label {
        font-size: 0.7rem;
        padding: 0.15rem;
    }
    
    .scale-option label span {
        font-size: 0.9rem;
    }
    
    .scale-option label small {
        font-size: 0.5rem;
    }

    .question p {
        font-size: 0.9rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navigation-buttons button {
        margin: 0;
    }
}


.slider-container {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.slider-labels span {
    font-size: 0.8rem;
    color: var(--text-color);
}

@media (max-width: 600px) {
    .scale-options {
        display: none;
    }

    .slider-container {
        display: block;
    }


}
#questionnaire-info {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

#questionnaire-header {
    display: flex;
    justify-content: flex-end;
}

#toggle-info {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#toggle-info:hover {
    background-color: var(--primary-color);
    color: white;
}

#questionnaire-details {
    margin-top: 10px;
}

#questionnaire-details h2 {
    margin-top: 0;
}

.hidden {
    display: none;
}

.menu {
    position: right;
  }
  
  .menu-toggle {
    display: none;
    cursor: pointer;
  }
  
  .hamburger {
    width: 30px;
    height: 3px;
    background-color: white;
    position: relative;
  }
  
  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: all 0.3s ease;
  }
  
  .hamburger::before {
    top: -8px;
  }
  
  .hamburger::after {
    top: 8px;
  }
  
  .menu-items {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .menu-items > li {
    position: relative;
    margin-right: 20px;
  }
  
  .menu-items > li:hover {
    background-color: var(--tertiary-color);
    
  }
  
  .menu-items a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
  }
  
  .submenu {
    display: none;
    color: #fff;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    background-color: var(--tertiary-color);
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    
  }
  
  .submenu > li:hover {
    background-color: var(--secondary-color);
  
  }
  
  .has-submenu {
    background-color: var(--primary-color);
  
  }
  
  .has-submenu :hover{
    background-color: var(--tertiary-color);
  
  }
  
  .has-submenu:hover .submenu {
    display: block;
    
  }
  
  .header-actions {
    display: flex;
    align-items: center;
  }
  
  .header-actions button {
    margin-left: 10px;
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  
  @media screen and (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .menu-items {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--primary-color);
    }
  
    .menu-items.active {
      display: flex;
    }
  
    .menu-items > li {
      margin-right: 0;
    }
  
    .submenu {
      position: static;
      background-color: rgba(0, 0, 0, 0.1);
    }
  
    .header-actions {
      flex-direction: column;
    }
  
    .header-actions button {
      margin-left: 0;
      margin-top: 10px;
    }
  }

  #initial-forms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    min-height: 80vh;
}

.section {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section h2 {
    color: var(--primary-color);
    margin-top: 0;
}

@media (max-width: 768px) {
    #initial-forms {
        flex-direction: column;
    }
}