:root {
    --nav-height: 45px;
    --nav-padding: 1rem;
    --font-size: 14px;
}

body {
    margin: 0;
    padding-top: var(--nav-height);
    font-size: var(--font-size);
}

.main-nav {
    background-color: white;
    border-top: 2px solid #e6007e;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
}

.nav-content {
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--nav-padding);
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    height: 100%;
}

.main-nav li {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: calc(var(--font-size) * 0.9);
    line-height: 1.2;
    text-align: center;
    padding: 0.25rem 0;
    display: inline-block;
}

.main-nav a.active {
    color: #e6007e;
    border-bottom: 2px solid #e6007e;
}

.main-nav a:hover {
    color: #e6007e;
    border-bottom: 2px solid #e6007e;
}

.logos {
    text-align: left;
}

.logos img {
    max-height: 1.5rem;
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-left: 0.2rem;
}

.goal-banner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 0.5rem auto;
}

.eden-banner {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0), 0 -4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    padding: 2rem;
}

.eden-banner h2 {
    color: #4a0e8f;
    margin-bottom: 0.5rem;
}

.eden-banner p {
    color: #333;
    margin: 0;
    font-size: 0.9rem;
}

.top-banner {
    display: flex;
    max-width: 1000px;
    justify-content: center;
    margin: 20px auto;
    gap: 20px;
}

.studies-banner {
    display: flex;
    max-width: 1000px;
    justify-content: center;
    margin: 20px auto;
    gap: 20px;
}

.card {
    flex: 1;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

.card h3 {
    color: #4a0e8f;
    margin-bottom: 10px;
}

.card h4 {
    margin-bottom: 20px;
}

.card p {
    color: #333;
}

.card-studies {
    flex: 1;
    padding: 1rem;
    background-color: #fff; /* White background */
    border: 2px solid transparent; /* Transparent border for layout */
    border-radius: 0;
    box-shadow: none; /* Remove shadow for a flatter look */
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    transition: color 0.3s; /* Transition for text color */
}

.card-studies img {
    height: 50px; /* Set a specific height for all images */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the image fits within the specified height */
    margin-bottom: 10px; /* Optional: Add some space below the image */
    flex-shrink: 0; /* Prevent the image from shrinking */
}

.card-studies h3,
.card-studies h4,
.card-studies p {
    color: inherit; /* Inherit color from parent */
    margin: 0; /* Reset margin */
}

.card-studies:hover {
    color: #8a2be2;
}

.container {
    width: 95%;
    max-width: 1000px;
    margin: 4vw auto;
    padding: 1vw;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(74, 14, 143, 0.104);
}

#graph-container {
    height: 65vh;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    margin: 2vw 0;
    margin-bottom: 1rem;
}

#graph {
    position: absolute;
    top: 50%; /* Position from the top */
    left: 50%; /* Position from the left */
    transform: translate(-50%, -50%); /* Center the graph */
    width: 100%;
    height: auto;
    max-width: 800px; /* Optional: Set a max width for the graph */
    max-height: 100%; /* Optional: Set a max height for the graph */
}

#text-container-incentivise,
#text-container-scale,
#text-container-target {
    width: 100%;
    margin: 2vw 0;
    padding: 2vw;
    background-color: #ffffff;
    border: 1px solid #8a2be2;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    white-space: pre-wrap;
    display: block;
    margin-bottom: 0.5em;
}
.form-container,
#generateForm {
    width: 90%; /* Set the width of the form container */
    max-width: 800px; /* Optional: Set a maximum width */
    margin: 0 auto; /* Center the form */
    padding: 1rem; /* Padding for the form */
}

.form-row {
    display: flex; /* Use flexbox for alignment */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: space-between; /* Space between items */
    margin-bottom: 1rem; /* Space between rows */
}

.form-group {
    flex: 1; /* Allow each group to take equal space */
    min-width: 200px; /* Minimum width for each input */
    margin-right: 1rem; /* Space between groups */
}

.form-group:last-child {
    margin-right: 0; /* Remove margin from the last group */
}

label {
    display: block; /* Ensure labels are block elements */
    margin-bottom: 0.5rem; /* Space between label and input */
    font-weight: bold; /* Make labels bold for better visibility */
}

select, input[type="number"] {
    width: 100%; /* Full width of the container */
    padding: 0.5rem; /* Padding for inputs */
    border: 1px solid #ccc; /* Border for inputs */
    border-radius: 4px; /* Rounded corners */
}

/* Media Query for Small Screens */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Stack items vertically */
    }

    .form-group {
        margin-right: 0; /* Remove right margin */
        margin-bottom: 1rem; /* Space between stacked items */
    }
}

#analysisForm {
    width: 100%; /* Set the width to 80% of the parent container */
    max-width: 800px; /* Optional: Set a maximum width */
    margin: 0 auto; /* Center the form horizontally */
    padding: 1rem; /* Optional: Add padding for better spacing */
    border-radius: 8px; /* Optional: Rounded corners */
    background-color: #f9f9f9; /* Optional: Background color */
}

textarea[name="What"] {
    width: 100%;
    max-width: 100%;
    height: 20vh;
    margin: 2vw auto;
    padding: 1vw;
    font-size: 1rem;
    border: 2px solid #8a2be2;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    resize: vertical;
    display: block;
    box-sizing: border-box;
}

#plot-explanation {
    width: 100%;
    margin: 2vw 0;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.inner-dropdown-toggle {
    border: none;
    cursor: pointer;
    align-items: center;
    color: #4a0e8f;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.dropdown-toggle {
    width: 100%;
    padding: 1vw 0;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #4a0e8f;
}

.dropdown-toggle:after {
    content: '\25BC';
    float: right;
    color: #4a0e8f;
}

.dropdown-toggle.active:after {
    content: '\25B2';
}

.dropdown-content {
    display: none;
    padding: 1vw 0;
}

.dropdown-content.show {
    display: block;
}

button[type="submit"],
.submit-button {
    display: inline-block;
    width: 45%;
    max-width: 180px;
    padding: 1vw 2vw;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #4a0e8f, #8a2be2);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 14, 143, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button[type="submit"]:hover,
.submit-button:hover {
    background: linear-gradient(45deg, #8a2be2, #4a0e8f);
    box-shadow: 0 6px 20px rgba(74, 14, 143, 0.6);
    transform: translateY(-2px);
}

button[type="submit"]::after,
.submit-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

button[type="submit"]:hover::after,
.submit-button:hover::after {
    top: -100%;
    left: -100%;
}

#generateButton {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

#generateButton:hover {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #4a0e8f;
}

h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #4a0e8f;
}

#spinnerOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(243, 232, 255, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: #4a0e8f;
    border-right-color: #8a2be2;
    border-bottom-color: #4a0e8f;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4a0e8f;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.signature {
    font-size: 0.8em;
    color: #4a0e8f;
    font-style: italic;
    text-align: left;
    margin: 20px 0;
}

.signature a {
    color: #8a2be2;
    text-decoration: none;
}

.signature a:hover {
    text-decoration: underline;
}

h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 1em 0;
}

ul {
    list-style-type: disc;
    padding-left: 2em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

#target-toggle,
#collab-copilot-toggle,
#rev-refiner-toggle {
    width: 100%;
    padding: 1vw 1vw;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    color: #4a0e8f;
}

#target-toggle:after,
#collab-copilot-toggle:after,
#rev-refiner-toggle:after {
    content: '\25BC';
    float: right;
    color: #4a0e8f;
}

#target-toggle.active:after,
#collab-copilot-toggle.active:after,
#rev-refiner-toggle.active:after {
    content: '\25B2';
}

#target.dropdown-content,
#collab-copilot.dropdown-content,
#rev-refiner.dropdown-content {
    display: none;
}

#target.dropdown-content.show,
#collab-copilot.dropdown-content.show,
#rev-refiner.dropdown-content.show {
    display: block;
}

.module-logo {
    max-width: 25%;
    height: auto;
    margin: 0 auto;
}

.pattern-image {
    max-width: 100%;
    height: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    animation: fadeIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5em;
    color: #4a0e8f;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #e6007e;
    text-decoration: none;
}

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

.info-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #8a2be2;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-button:hover {
    background-color: #e0e0e0;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-icon {
    margin-right: 0.5rem;
}

.footer {
    background-color: #ffffff;
    color: #333;
    padding: 2rem 3rem;
    text-align: left;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    margin-right: 2rem;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section:not(:last-child) {
    margin-right: 3rem;
}

.footer h2,
.footer h3 {
    color: #4a0e8f;
}

.learn-more {
    color: #8a2be2;
    text-decoration: none;
}

.learn-more:hover {
    text-decoration: underline;
}

.social-links {
    list-style-type: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 1.5rem;
    margin-right: 1rem;
}

.social-links a {
    color: #4a0e8f;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.motivation-background {
    background-color: #ffffff;
    /*background-color: #fcfcfcdc;*/
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    gap: 0.5rem;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
}

.logo-item img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.logo-item span {
    font-weight: bold;
}

#back-to-top {
    position: fixed;
    bottom: 30px; /* Distance from the bottom */
    right: 30px; /* Distance from the right */
    background-color: #8a2be2; /* Bright color for visibility */
    color: white; /* Text color */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    padding: 15px 20px; /* Increased padding for a larger button */
    font-size: 18px; /* Larger font size */
    cursor: pointer; /* Pointer cursor on hover */
    z-index: 1000; /* Ensure it is above other content */
    display: none; /* Initially hidden */
    transition: opacity 0.3s, background-color 0.3s; /* Smooth transition */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

#back-to-top.show {
    display: block; /* Show the button */
    opacity: 1; /* Fully opaque when shown */
}

#back-to-top:hover {
    background-color: #2ecc71; /* Change color on hover */
}

#dendrogramPlot, #overviewPlot, #comparisonPlot {
    width: 100%;
    height: 400px;  /* Adjust height as needed */
    margin-bottom: 2rem;
}

/* Form Styling */
form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(74, 14, 143, 0.1);
}

form div {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a0e8f;
    font-weight: 600;
    font-size: 0.95rem;
}

form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

form input:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

form input:hover {
    border-color: #8a2be2;
}

/* Update existing button styles to match form */
form button[type="submit"] {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

form button[type="submit"].active {
    background-color: orange; /* Change to orange when active */
    color: white; /* Change text color for better contrast */
}
/* Styling for the dropdown */
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none; /* Removes default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

select:hover {
    border-color: #8a2be2;
}

/* Style for the placeholder option */
select option[value=""] {
    color: #666;
}

.form-grid {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    gap: 1rem; /* Space between rows */
}

.form-row {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space between items */
    align-items: center; /* Center items vertically */
}

.form-group {
    flex: 1; /* Allow each group to take equal space */
    margin-right: 1rem; /* Space between groups */
}

.form-group:last-child {
    margin-right: 0; /* Remove margin from the last group */
}

label {
    display: block; /* Ensure labels are block elements */
    margin-bottom: 0.5rem; /* Space between label and input */
}

select, input[type="number"] {
    width: 100%; /* Full width of the container */
    padding: 0.5rem; /* Padding for inputs */
    border: 1px solid #ccc; /* Border for inputs */
    border-radius: 4px; /* Rounded corners */
    box-shadow: none; /* Remove shadow for a flatter look */
}

.plots-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.plot-wrapper {
    width: 100%;
    margin-bottom: 30px;
    clear: both;  /* Prevent overlapping */
}

#dendrogramPlot, 
#overviewPlot, 
#comparisonPlot {
    width: 100% !important;  /* Force full width */
    height: 500px !important;  /* Fixed height */
    margin: 0 auto;  /* Center in container */
}

/* Taller height for overview plot */
#overviewPlot {
    width: 100% !important;
    height: 800px !important;  /* Increased height */
    margin: 0 auto;
}

/* Hide any overflow that might cause scrolling */
.js-plotly-plot {
    width: 100% !important;
}
/* Media Queries */
@media (max-width: 600px) {
    :root {
        --nav-height: 35px;
        --font-size: 12px;
    }

    .main-nav li {
        margin-right: 0.5rem;
    }

    .eden-banner {
        padding: 0.75rem 20px;
    }

    .eden-banner h2 {
        font-size: 1.2rem;
    }

    .eden-banner p {
        font-size: 0.8rem;
    }

    .top-banner,
    .studies-banner {
        flex-direction: column;
    }

    .card,
    .card-studies {
        margin: 0px auto; /* Center horizontally by using auto margins */
        max-width: 80%; /* Maintain max width */
        max-height: 20%; /* Maintain max height */
        display: block; /* Ensure they are block elements */
    }

    .container,
    #text-container,
    #plot-explanation,
    textarea[name="What"] {
        padding: 4vw;
        margin: 4vw 0;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .footer-content {
        display: flex;
        flex-direction: column; /* Stack vertically */
        align-items: center; /* Center align items */
    }

    .footer-section {
        width: 100%; /* Make sections full width */
        text-align: left;
        margin-bottom: 1rem; /* Add space between sections */
    }

    .logo-container {
        flex-direction: column; /* Change to column for vertical alignment */
        align-items: center; /* Center items */
    }
    
    form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    form input {
        padding: 0.6rem 0.8rem;
    }

    .form-grid {
        grid-template-columns: 1fr;  /* Single column on mobile */
    }
    
    .left-column, .right-column {
        grid-column: 1;
    }

    .plots-container {
        padding: 10px;
    }
    
    #dendrogramPlot, 
    #comparisonPlot {
        height: 400px !important;
    }
    
    #overviewPlot {
        height: 600px !important;  /* Adjusted height for mobile */
    }
    #dendrogramPlot, #overviewPlot, #comparisonPlot {
        height: 300px;  /* Smaller height on mobile */
    }
}

#text-container-target,
#text-container-incentivise,
#text-container-scale {
    height: 600px; /* Set the height to 500px */
    overflow-y: auto; /* Allow vertical scrolling if content exceeds height */
    /* Optional: Add padding and border for better appearance */
    padding: 1rem; 
    border: 1px solid #ccc; /* Optional: Add a border */
    border-radius: 4px; /* Optional: Rounded corners */
    background-color: #ffffff; /* Optional: Background color */
}

/* Add these styles if they're not already present */
.progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin-bottom: 20px;
}

.progress-bar {
    height: 20px;
    width: 0%;
    background-color: #007BFF;
    border-radius: 5px;
    text-align: center;
    color: white;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

/* Survey Form Styles */
.survey-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(74, 14, 143, 0.1);
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.survey-form h1 {
    color: #4a0e8f;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.survey-form h2 {
    color: #4a0e8f;
    font-size: 1.5rem;
    margin: 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e6e6e6;
}

.survey-form label {
    display: block;
    margin: 0.8rem 0;
    font-weight: normal;
    color: #333;
    text-align: left;
}

.survey-form label:has(input[type="radio"]),
.survey-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
    margin: 0.3rem 0;
    cursor: pointer;
    position: relative;
}

.survey-form input[type="radio"],
.survey-form input[type="checkbox"] {
    margin: 0.3rem 0.8rem 0 0;
    flex-shrink: 0;
}

.survey-form input[type="text"],
.survey-form input[type="number"],
.survey-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.survey-form input[type="text"]:focus,
.survey-form input[type="number"]:focus,
.survey-form textarea:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.survey-form button {
    background: linear-gradient(45deg, #4a0e8f, #8a2be2);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
    width: 100%;
}

.survey-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

/* Progress bar */
.progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 24px;
    background: linear-gradient(45deg, #4a0e8f, #8a2be2);
    border-radius: 8px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Slide transitions */
.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active {
    display: block;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .survey-container {
        margin: 1rem;
        padding: 1rem;
    }

    .question-group {
        padding: 1rem;
    }
}

/* Ranking inputs section */
.ranking-inputs {
    padding-left: 1rem;
}

.ranking-inputs label {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.ranking-inputs input[type="number"] {
    width: 60px;
    margin-left: 1rem;
}

/* Hover effects */
.survey-form label:has(input[type="radio"]):hover,
.survey-form label:has(input[type="checkbox"]):hover {
    background-color: #f5f0ff;
    border-radius: 4px;
}

/* Question group styling */
.question-group {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.question-group > label:first-child {
    font-weight: 600;
    color: #4a0e8f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: block;
    text-align: left;
}

/* Radio and Checkbox options styling */
.survey-form label:has(input[type="radio"]),
.survey-form label:has(input[type="checkbox"]) {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    margin: 0.3rem 0;
    cursor: pointer;
}

.survey-form input[type="radio"],
.survey-form input[type="checkbox"] {
    margin: 0;
    justify-self: start;
}

/* Text input styling */
.survey-form input[type="text"],
.survey-form input[type="number"] {
    width: calc(100% - 2rem);
    margin-left: 2rem;
    margin-top: 0.5rem;
}

/* Textarea styling */
.survey-form textarea {
    width: calc(100% - 2rem);
    margin-left: 2rem;
    margin-top: 0.5rem;
    min-height: 100px;
}

/* Ranking inputs section */
.ranking-inputs {
    margin-left: 2rem;
}

.ranking-inputs label {
    display: grid;
    grid-template-columns: auto 60px;
    gap: 1rem;
    align-items: center;
    margin: 0.5rem 0;
}

.ranking-inputs input[type="number"] {
    width: 60px;
    margin: 0;
}

/* Hover effects */
.survey-form label:has(input[type="radio"]):hover,
.survey-form label:has(input[type="checkbox"]):hover {
    background-color: #f5f0ff;
    border-radius: 4px;
}

.password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 20px auto;
    max-width: 500px;
    padding: 0 20px;
}

#passwordInput {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    width: 200px;
    transition: border-color 0.3s;
}

#passwordInput:focus {
    outline: none;
    border-color: #27ae60;
}

#enterSurveyButton {
    height: 50px;
    padding: 0 2rem;
    background: #27ae60;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#enterSurveyButton:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.logo-group {
    display: flex; /* Use flexbox to align items in a row */
    justify-content: center; /* Center the logos horizontally */
    align-items: center; /* Center the logos vertically */
    gap: 20px; /* Optional: Add space between logos */
}

.logo-item img {
    max-width: 100%; /* Ensure logos are responsive */
    height: auto; /* Maintain aspect ratio */
    width: 150px; /* Set a fixed width for logos, adjust as needed */
}

/* Button group styling */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.back-button {
    background: #f5f5f5 !important;
    color: #4a0e8f !important;
    border: 2px solid #4a0e8f !important;
}

.back-button:hover {
    background: #e8e8e8 !important;
    transform: translateY(-2px);
}

/* Update existing button styles to work with the group */
.survey-form button {
    flex: 1;  /* Make buttons take equal space */
    max-width: 200px;  /* Limit maximum width */
}


