body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: calc(100% - 32px); /* Adjust width to account for padding */
}

.question {
    margin-bottom: 20px;
    padding: 20px; /* Increased padding to make space for background text */
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    width: 95%; /* Inner containers set to 95% of parent width */
    position: relative; /* Required for child element positioning */
    overflow: hidden; /* Ensure the background text doesn't overflow */
}

.question::before {
    content: attr(data-container-name); /* Use the data-container-name attribute */
    position: absolute;
    right: 100px; /* Align the text to the right */
    top: 20%;
    left: 90%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(0, 0, 0, 0.1); /* Light color for background text */
    white-space: nowrap;
    pointer-events: none; /* Ensure it doesn't interfere with other elements */
    z-index: 0; /* Ensure it is behind the content */
}

.question > * {
    position: relative;
    z-index: 1; /* Ensure child elements are above the background text */
}

input[type="file"] {
    margin-bottom: 20px;
    display: block;
}

input[type="text"],
select {
    width: calc(100% - 60px); /* Adjust width to account for padding and indentation */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form {
    margin-top: 20px;
    width: 100%;
}

#legend {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    background-color: #ccc;
    margin-right: 5px;
    border: 1px solid #000;
}

.legend-text {
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
}

.checkbox-group div {
    margin-right: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.checkbox-group label {
    margin-left: 5px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap; /* Wrap radio buttons to new lines if they overflow */
}

.radio-group div {
    display: flex;
    align-items: center;
    margin-right: 10px; /* Space between radio button groups */
}

.darker-select {
    background-color: #C6CBCA;
    color: #030303;
}

.lighter-select {
    background-color: #FAFCFB;
    color: #000;
}
