.section{
    background: var(--element);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--element_shadow_dark);
    padding: var(--medium-padding);
    margin-bottom: var(--medium-padding);
    margin-left: var(--large-padding);
}

.section div {
    min-height: 2em;
    display:flex;
}

.section.list-container div {
    flex-direction: column;
    flex-wrap: nowrap;
    flex-grow: 1;
    max-height: 600em;
    clear: both; /* Ensure it doesn't get affected by floating elements */
    margin-bottom: var(--small-padding);
}

.section input:hover, select:hover, .modal-content input:hover {
    border-color: var(--navy);
}

.section .large-textarea {
    width: 100%;
    max-width: 100%;
    height: 120px;
    padding: var(--small-padding);
    box-sizing: border-box;
    resize: vertical;
    margin-bottom: var(--small-padding);
}

section.div.question, .question  {
    min-height: 1.5em;
    display: flex;
    white-space: nowrap; 
    overflow: show;
    margin-top: .25em;
}

section.div.questionl, .questionl  {
    display: flex;
    white-space: nowrap; 
    overflow: show;
}


.question label {
    display: block;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    max-width: 100%;
}

@media screen and (max-width: 768px) {

    .section div {
        flex-direction: column;
        gap: 0.5em;
    }

    .section input,
    .section select,
    .section textarea {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .question {
        margin-top: 1em;
        margin-bottom: 0.5em;
    }

    .question label {
        margin-left: 0;
        margin-bottom: 0.5em;
    }

}

