:root {
    --survey-gray: #929398;
    --control-border: #b6b8be;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: var(--survey-gray);
    font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}

.survey {
    max-width: 1600px;
    padding-top: 12px;
    padding-bottom: 16px;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.question-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    min-height: 34px;
}

.question-text {
    color: black;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
}

.answer-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

    .answer-options label {
        color: black;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        cursor: pointer;
        font-size: 19px;
        line-height: 1.35;
    }

    .answer-options input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        border: 1px solid var(--control-border);
        border-radius: 50%;
        background: #fff;
        margin: 0;
        cursor: pointer;
    }

        .answer-options input[type="radio"]:checked {
            border: 7px solid #4388ed;
        }

        .answer-options input[type="radio"]:focus-visible {
            outline: 2px solid #4388ed;
            outline-offset: 2px;
        }

.text-answer .form-control {
    width: 100%;
    height: 33px;
    min-height: 33px;
    border: 1px solid var(--control-border);
    border-radius: 4px;
    padding: 3px 9px;
    color: #555;
    font-size: 18px;
    box-shadow: none;
}

    .text-answer .form-control:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
    }

@media (max-width: 1100px) {
    .question-row {
        grid-template-columns: 1fr;
        row-gap: 7px;
        padding: 9px 0;
        border-bottom: 1px solid #eee;
    }

    .answer-options {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 20px;
    }
}

@media (max-width: 575.98px) {

    .question-text,
    .answer-options label {
        color: black;
        font-size: 16px;
    }

    .answer-options {
        gap: 12px 15px;
    }

        .answer-options input[type="radio"] {
            width: 21px;
            height: 21px;
            flex-basis: 21px;
        }

        .answer-options label {
            gap: 6px;
        }
}

.title .line {
    color: black;
}
