@charset "UTF-8";
/* 问卷预览页面基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #333;
}

.footer {
    width: 100%;
    padding: 20px 0;
}


/* 问卷容器 */
.questionnaire-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 问卷头部 */
.survey-header {
    background: #ffffff;
    padding: 45px 40px 35px;
    text-align: center;
    border-bottom: 3px solid #1890ff;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 30px;
}

    .survey-header h1 {
        font-size: 28px;
        color: #262626;
        margin: 0 0 12px 0;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .survey-header p {
        font-size: 15px;
        color: #8c8c8c;
        margin: 0;
        line-height: 1.8;
        max-width: 700px;
        margin: 0 auto;
    }

/* 问题容器 */
.questions-container {
    padding: 35px 40px 50px;
    background: white;
}

/* 问题样式 */
.question-item {
    padding: 0 0 30px 0;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .question-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .question-item.hidden,
    .question-item.hidden-by-show-logic,
    .question-item.hidden-by-skip-logic {
        display: none !important;
    }

.question-remark {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-left: 0;
}

/* 问题标题 */
.preview-question-title {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px;
}

/* 题型标签样式 */
.question-type-label {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
    font-weight: normal;
    align-self: center; /* 垂直居中对齐 */
}

.question-hint-label {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
    font-weight: normal;
    align-self: center; /* 垂直居中对齐 */
}

/* 文本题备注样式 */
.preview-question-remark {
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    background-color: #f8f9fa;
}

.preview-question-number {
    font-size: 16px;
    font-weight: 600;
    color: #1890ff;
    min-width: 28px;
    line-height: 1.6;
}

.question-title-text {
    font-size: 16px;
    font-weight: 500;
    color: #262626;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.required-mark {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
    margin-left: 2px;
}

/* 选项样式 */
.preview-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .preview-option:hover {
        background: #f0f7ff;
        border-color: #1890ff;
    }

    .preview-option input {
        width: 18px;
        height: 18px;
        margin: 0;
        cursor: pointer;
        accent-color: #1890ff;
    }

    .preview-option label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 15px;
        color: #595959;
        flex: 1;
        line-height: 1.5;
        user-select: none;
    }

    .preview-option input:checked + label {
        color: #1890ff;
        font-weight: 500;
    }

/* 选项图片容器 */
.preview-option-image {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 20%;
}

/* 选项图片 */
.preview-option-img {
    width: 100%; /* 图片填满容器 */
    height: auto; /* 高度自适应 */
    border-radius: 4px;
    object-fit: cover;
    cursor: zoom-in;
}

/* 选项文本 */
.preview-option-text {
    font-size: 14px;
    color: #333;
}

/* 输入框样式 */
.preview-text-input,
.preview-number-input,
.preview-date-input,
.preview-dropdown,
.preview-location-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .preview-text-input:focus,
    .preview-number-input:focus,
    .preview-date-input:focus,
    .preview-dropdown:focus,
    .preview-location-input:focus {
        outline: none;
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    }

    .preview-text-input::placeholder,
    .preview-number-input::placeholder,
    .preview-date-input::placeholder,
    .preview-location-input::placeholder {
        color: #bfbfbf;
    }

.preview-textarea-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 16px;
    min-height: 100px;
    background: white;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.6;
}

    .preview-textarea-input:focus {
        outline: none;
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    }

/* 数字输入框 */
.preview-number-input {
    -moz-appearance: textfield;
}

    .preview-number-input::-webkit-outer-spin-button,
    .preview-number-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

/* 评分题样式 */
.preview-rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.preview-rating-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

.preview-scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

    .preview-scale-item input {
        display: none;
    }

    .preview-scale-item label {
        cursor: pointer;
        font-size: 28px;
        color: #d9d9d9;
        transition: all 0.2s ease;
        padding: 6px;
        display: inline-block;
    }

        .preview-scale-item label:hover {
            color: #faad14;
            transform: scale(1.1);
        }

    .preview-scale-item input:checked + label {
        color: #faad14;
    }

    /* 数字评分样式 */
    .preview-scale-item label.number-rating {
        font-size: 15px;
        padding: 8px 14px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        font-weight: 500;
        min-width: 42px;
        background: white;
    }

        .preview-scale-item label.number-rating:hover {
            border-color: #1890ff;
            color: #1890ff;
        }

    .preview-scale-item input:checked + label.number-rating {
        background-color: #1890ff;
        color: white;
        border-color: #1890ff;
    }

.preview-rating-divider {
    width: 100%;
    max-width: 700px;
    height: 1px;
    background: #f0f0f0;
    margin: 10px auto;
}

.preview-rating-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    font-size: 13px;
    color: #8c8c8c;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 矩阵题样式 */
/* 矩阵表格水平滚动容器 */
.matrix-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

    .matrix-scroll-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .matrix-scroll-wrapper::-webkit-scrollbar-thumb {
        background: #d9d9d9;
        border-radius: 3px;
    }

.preview-matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

    .preview-matrix-table th,
    .preview-matrix-table td {
        padding: 12px 10px;
        text-align: center;
        border: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .preview-matrix-table th {
        background: #fafafa;
        font-weight: 500;
        color: #595959;
    }

    .preview-matrix-table td:first-child {
        text-align: left;
        background-color: #fafafa;
        font-weight: 500;
        color: #262626;
        padding-left: 14px;
        min-width: 120px;
    }

    .preview-matrix-table input[type="radio"],
    .preview-matrix-table input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #1890ff;
        cursor: pointer;
    }

/* 矩阵量表题单元格 */
.rating-matrix-cell {
    padding: 8px !important;
}

.rating-matrix-cell .preview-scale-item label {
    font-size: 24px;
    padding: 6px;
}

.rating-matrix-cell .preview-scale-item label.number-rating {
    font-size: 14px;
    padding: 6px 12px;
}

/* 维度图片 */
.dimension-image {
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: zoom-in;
    flex-shrink: 0;
    width: 140px;
    height: auto;
}

/* 维度文本 */
.dimension-label {
    vertical-align: middle;
    min-width: 0;
}

/* 图片预览遮罩层 */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

/* 图片预览容器 */
.image-preview-container {
    max-width: 90%;
    max-height: 90%;
}

/* 图片预览图片 */
.image-preview-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 图片预览关闭提示 */
.image-preview-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 排序题样式 */
.preview-sorting-container {
    margin-top: 12px;
}

.preview-sortable-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-sortable-item {
    padding: 12px 16px;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: move;
    font-size: 14px;
    color: #595959;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .preview-sortable-item:hover {
        border-color: #1890ff;
        background-color: #f0f7ff;
    }

    /* 排序题拖动样式 */
    .preview-sortable-item.sortable-ghost {
        opacity: 0.4;
        background: #f5f5f5;
        border: 1px dashed #1890ff;
    }

    .preview-sortable-item.sortable-chosen {
        border-color: #1890ff;
        box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
    }

    .preview-sortable-item.sortable-drag {
        opacity: 0.85;
        background: #f0f7ff;
    }

    .preview-sortable-item::before {
        content: '⋮⋮';
        color: #bfbfbf;
        font-size: 12px;
        letter-spacing: -2px;
        line-height: 1;
    }

/* 文件上传样式 */
.preview-file-upload-container {
    width: 100%;
}

.preview-file-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.preview-file-path-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fafafa;
    color: #8c8c8c;
}

.preview-file-select-btn {
    padding: 10px 20px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .preview-file-select-btn:hover {
        background: #40a9ff;
    }

    .preview-file-select-btn:active {
        background: #096dd9;
    }

/* 位置输入样式 */
.preview-location-container {
    width: 100%;
}

.preview-location-latlon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

    .preview-location-latlon label {
        font-weight: 500;
        color: #595959;
        font-size: 14px;
    }

/* 提交按钮样式 */
.preview-submit-button {
    width: 50%;
    display: block;
    margin: 20px auto 20px;
    padding: 14px 32px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .preview-submit-button:hover {
        background: #40a9ff;
    }

    .preview-submit-button:active {
        background: #096dd9;
    }

/* 高亮和错误样式 */
.question-highlight {
    animation: highlightPulse 1.2s ease-in-out;
    border: 2px solid #1890ff !important;
    background-color: #f0f7ff !important;
}

@keyframes highlightPulse {
    0% {
        background-color: #e6f7ff;
    }

    70% {
        background-color: #f0f7ff;
    }

    100% {
        background-color: #f0f7ff;
    }
}

.question-item.validation-error {
    border: 2px solid #ff4d4f !important;
    background-color: #fff2f0 !important;
    animation: validationShake 0.5s ease-in-out;
    border-radius: 4px;
    padding: 20px !important;
}

@keyframes validationShake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-8px);
    }

    40%, 80% {
        transform: translateX(8px);
    }
}

/* 错误提示样式 */
.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: #dc3545;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 10000;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10000;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loading-content {
    text-align: center;
    font-size: 18px;
    color: #666;
}

    .loading-content i {
        font-size: 48px;
        color: #007bff;
        margin-bottom: 16px;
        display: block;
    }

.rendering-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

    .rendering-loading-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(0) translateX(-50%);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 12px;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .questionnaire-container {
        margin-top: 10px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .questions-container {
        padding: 20px 24px 30px;
    }

    .survey-header {
        padding: 28px 24px 24px;
        margin-left: 8px;
        margin-right: 8px;
    }

        .survey-header h1 {
            font-size: 22px;
        }

        .survey-header p {
            font-size: 14px;
        }

    .question-item {
        margin-left: 0;
        margin-right: 0;
        padding: 4px 4px 20px 4px;
    }

    .preview-question-title {
        flex-wrap: wrap;
        min-width: 0;
        gap: 2px;
    }

    .preview-question-number {
        min-width: 20px;
    }

    .preview-option {
        padding: 10px 12px;
    }

        .preview-option input {
            width: 22px;
            height: 22px;
        }

        .preview-option label {
            font-size: 15px;
            line-height: 1.6;
        }

    .preview-rating-options {
        padding: 0 5px;
    }

    .preview-rating-labels {
        padding: 0 5px;
        max-width: 100%;
    }

        .preview-rating-labels span {
            white-space: normal;
            text-align: center;
            min-width: 48px;
        }

    .preview-scale-item label {
        font-size: 22px;
        padding: 6px;
    }

    .preview-scale-item label.number-rating {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 36px;
    }

    .matrix-scroll-wrapper {
        margin-top: 10px;
    }

    .preview-matrix-table {
        font-size: 13px;
    }

    .preview-matrix-table th,
    .preview-matrix-table td {
        padding: 8px 6px;
    }

    .preview-matrix-table td:first-child {
        min-width: 80px;
        padding-left: 8px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .preview-matrix-table td:first-child .dimension-image {
        margin-right: 0;
        width: 60px;
        height: auto;
    }

    .preview-matrix-table td:first-child .dimension-label {
        flex: 1;
        min-width: 80px;
    }

    .preview-matrix-table input[type="radio"],
    .preview-matrix-table input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .preview-submit-button {
        width: 80%;
        padding: 14px 24px;
        font-size: 16px;
    }

    .preview-file-input-group {
        flex-direction: column;
    }

    .preview-file-select-btn {
        width: 100%;
        justify-content: center;
    }

    .preview-location-latlon {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .preview-location-input {
        width: 100%;
    }

    .preview-sortable-item {
        padding: 12px 14px;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .questionnaire-container {
        max-width: 95%;
    }
}


/* 分页容器样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    margin: 20px auto 30px;
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
}

/* 分页按钮样式 */
.pagination-btn {
    padding: 12px 28px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .pagination-btn:hover:not(:disabled) {
        background: #40a9ff;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
    }

    .pagination-btn:active:not(:disabled) {
        background: #096dd9;
        transform: translateY(0);
    }

    .pagination-btn:disabled {
        background: #d9d9d9;
        color: #999;
        cursor: not-allowed;
        transform: none;
    }

/* 分页信息样式 */
.pagination-info {
    background: white;
    font-size: 15px;
    font-weight: 500;
    color: #595959;
    min-width: 80px;
    text-align: center;
}

/* ============================================ */
/* "其他"选项专用样式 - 不影响原有选项样式 */
/* ============================================ */

/* "其他"选项容器 - 只针对有"其他"输入框的选项 */
.preview-option.preview-option-has-other {
    flex-wrap: wrap; /* 允许换行 */
    align-items: flex-start; /* 顶部对齐 */
}

/* "其他"选项的label - 调整为不占据剩余空间 */
.preview-option-has-other label {
    flex: none; /* 不自动扩展 */
}

/* "其他"文本输入框容器（默认隐藏） */
.preview-other-input-wrapper {
    display: none; /* 默认隐藏 */
    margin-left: 4px; /* 缩小间距，紧挨着"其他"文本 */
    margin-top: 0; /* 与文本在同一行 */
    flex: 1 1 auto; /* 自动扩展，占据剩余空间 */
    min-width: 280px; /* 增加最小宽度，确保占位符文字完整显示 */
}

/* "其他"文本输入框 - 下划线样式 */
.preview-other-input {
    width: 100%; /* 占满容器宽度 */
    min-width: 280px; /* 增加最小宽度，确保占位符文字完整显示 */
    padding: 4px 0; /* 上下内边距 */
    border: none; /* 去掉所有边框 */
    border-bottom: 1px solid #d9d9d9; /* 只保留底部下划线 */
    border-radius: 0; /* 去掉圆角 */
    font-size: 14px;
    background: transparent; /* 透明背景 */
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none; /* 去掉焦点轮廓 */
    line-height: 1.5; /* 行高与文本对齐 */
}

    /* 下划线样式 - 聚焦效果 */
    .preview-other-input:focus {
        border-bottom-color: #1890ff; /* 焦点时下划线变蓝 */
        border-bottom-width: 2px; /* 焦点时下划线加粗 */
    }

    /* 下划线样式 - 悬停效果 */
    .preview-other-input:hover {
        border-bottom-color: #40a9ff; /* 悬停时下划线变浅蓝 */
    }

    /* 占位符样式 */
    .preview-other-input::placeholder {
        color: #bfbfbf;
    }

/* "其他"选项被选中时显示文本输入框 */
.preview-option:has(input:checked) .preview-other-input-wrapper {
    display: block; /* 选中时显示 */
    animation: fadeIn 0.2s ease;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .preview-other-input-wrapper {
        margin-left: 2px;
        min-width: 160px;
    }

    .preview-other-input {
        min-width: 160px;
        font-size: 16px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .questionnaire-container {
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .questions-container {
        padding: 16px 20px 24px;
    }

    .survey-header {
        padding: 24px 20px 20px;
        margin-left: 6px;
        margin-right: 6px;
    }

        .survey-header h1 {
            font-size: 20px;
        }

        .survey-header p {
            font-size: 13px;
        }

    .question-item {
        margin-bottom: 16px;
        padding-bottom: 16px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .preview-question-title {
        gap: 2px;
    }

    .preview-question-number {
        font-size: 15px;
        min-width: 18px;
    }

    .question-title-text {
        font-size: 15px;
    }

    .preview-option {
        padding: 8px 10px;
    }

        .preview-option label {
            font-size: 14px;
        }

    .preview-scale-item label {
        font-size: 20px;
        padding: 4px;
    }

    .preview-scale-item label.number-rating {
        font-size: 13px;
        padding: 5px 8px;
        min-width: 32px;
    }

    .preview-submit-button {
        width: 90%;
        padding: 12px 20px;
        font-size: 15px;
    }

    .pagination-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .preview-other-input-wrapper {
        min-width: 120px;
    }

    .preview-other-input {
        min-width: 120px;
    }
}

body{position: relative;padding:20px 0}
body::after{content:"";width: 100%;height:100%;position: fixed;inset: 0;background:#fff url(https://img5.tiancitycdn.com/cso/event/2026/7/cs260715act/images/bg_qa.jpg) no-repeat 50% 0;}
.questionnaire-container {z-index: 2;position: relative;margin:0 auto;}