/* Review tile: the survey form and the question editor behind it. */

.question {
    margin-bottom: 15px;
    position: relative;
}

.question label {
    display: inline-block;
    margin-right: 10px;
}

.question .value-display {
    font-weight: bold;
    color: #333;
    position: absolute;
    right: 0;
    top: 0;
}

.choice-options {
    width: 100%;
    margin-top: 10px;
}

.choice-options .choice-option {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

.choice-options .choice-option.selected {
    background-color: #42f5b6;
    color: #333;
    border-color: #4CAF50;
}

.closest-answer {
    text-align: center;
    width: 100%;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Binary questions render a real checkbox rather than the shell default. */
.question input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* The progress ring sits in the top-right corner of a question row. */
.value-chart {
    position: absolute;
    right: 0;
    top: 5px;
}

.btn-check {
    height: 2em;
    vertical-align: bottom;
}

/* --- question editor --- */

.question-editor .editor-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.question-editor .answer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.question-editor .answer label {
    margin-bottom: 0;
    white-space: nowrap;
}

.question-editor .answer input[type="text"] {
    width: 150px;
}

.question-editor .answer input[type="number"] {
    width: 80px;
}
