/* General Page Styles */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-image: url('/images/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Allow vertical scrolling */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    justify-content: flex-start; /* Align elements at the top */
}

/* Question Container */
.question-container {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
    border: 3px solid #2142a6;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px; /* Constrain the width */
    margin: 20px 0; /* Add spacing from top and bottom */
    flex-shrink: 0; /* Prevent container from shrinking */
}

/* Options Container */
.options {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensures left alignment */
    gap: 10px;
    text-align: left !important;
}

    .options div {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .options input[type="radio"] {
        margin-right: 10px;
    }

/* Button Container */
.button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px; /* Add space between buttons */
    margin-top: 20px;
    padding-bottom: 10px; /* Ensure some spacing inside the container */
}

.back-button, .next-button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Back Button */
.back-button {
    background-color: #414245;
    color: white;
}

/* Next Button */
.next-button {
    background-color: #0078d7;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .next-button:hover {
        background-color: #005fa3;
        transform: scale(1.05);
    }

    .next-button:disabled {
        background-color: #444;
        cursor: not-allowed;
    }

/* Logo Container */
.logo-container {
    margin-top:20px;
    display: flex;
    justify-content: left;
    align-items: center;
    margin-bottom: 10px;
   
}

.question-logo {
    max-width: 120px;
    height: auto;
}

/* Progress Bar Container */
.progress-bar-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Constrain the width */
    height: 20px; /* Height of the progress bar */
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background-color: #0078d7;
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 10px 0 0 10px; /* Ensure the left side is rounded */
}

.progress-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Fix for Full-Height Layout */
body::after {
    content: "";
    flex-grow: 1; /* Push the content up to fill the viewport */
}

/* Andet Textarea Styles */
.andet-input textarea {
    width: 100%; /* Span the full width of its container */
    min-height: 80px; /* Adjust as needed for multi-line input */
    padding: 10px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and borders in the element's width */
    resize: vertical; /* Allow vertical resizing */
}

.option-container {
    display: flex;
    align-items: center; /* Ensures radio button and label align properly */
    gap: 10px;
    width: 100%;
}

    .option-container.andet-option {
        flex-wrap: wrap;
    }
    .option-container label {
        flex: 1; /* Ensures the label takes up the remaining space */
        text-align: left; /* Explicit left alignment */
        word-break: break-word; /* Ensures text wraps properly */
    }


.options input[type="checkbox"] {
    margin-right: 15px; /* Increase spacing */
}

.options label {
    margin-left: 5px; /* Ensures spacing from input */
}

.text18-input {
    width: 100%;
}

    .text18-input textarea {
        width: 100%; /* Ensures it takes full width */
        min-height: 80px;
        padding: 10px;
        font-size: 16px;
        font-family: inherit;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
        resize: vertical;
        background-color: white;
        color: black;
    }




    .option-container label {
        display: inline-block; /* Allows wrapping */
        max-width: 90%; /* Prevents the label from stretching too wide */
        word-break: break-word; /* Ensures the text wraps properly */
        line-height: 1.4; /* Increases readability */
    }

