/* ── Question Block ───────────────────────────────────────────────────────── */

.question-block {
    margin-bottom: 28px;
    padding: 20px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.question-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 10px;
    line-height: 1.45;
}

.badge-benchmark {
    display: inline-block;
    background: #ebf4ff;
    color: #2b6cb0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ── Choice (SingleChoice / MultiChoice) ────────────────────────────────── */

.choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #2d3748;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.choice-btn:hover {
    border-color: #90cdf4;
    background: #ebf8ff;
}

.choice-btn--selected {
    border-color: #3182ce;
    background: #ebf4ff;
    color: #1a365d;
    font-weight: 600;
}

.choice-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.choice-limit-hint {
    font-size: 0.82rem;
    color: #718096;
    margin: 0 0 0.5rem;
}

.choice-limit-reached {
    color: #c05621;
    font-weight: 600;
}

.choice-radio,
.choice-check {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #3182ce;
}

/* ── NPS ─────────────────────────────────────────────────────────────────── */

.nps-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 10px;
}

.nps-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.nps-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.15s;
}

.nps-btn:active { transform: scale(0.94); }

.nps-btn--detractor  { background: #fff5f5; color: #c53030; }
.nps-btn--passive    { background: #fffff0; color: #975a16; }
.nps-btn--promoter   { background: #f0fff4; color: #276749; }

.nps-btn--selected   { border-color: currentColor; transform: scale(1.08); }

.nps-selected-label {
    font-size: 0.875rem;
    color: #4a5568;
    margin: 4px 0 0;
}

/* ── Scale Grid — Mobile (default) ──────────────────────────────────────── */

.scale-hint {
    font-size: 0.8125rem;
    color: #718096;
    margin: 0 0 12px;
}

.scale-grid-desktop { display: none; }

.scale-card {
    padding: 14px;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 10px;
}

.scale-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px;
}

.scale-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scale-btn {
    min-height: 40px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 0.8125rem;
    color: #4a5568;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
}

.scale-btn:hover { border-color: #90cdf4; }

.scale-btn--selected {
    border-color: #3182ce;
    background: #ebf4ff;
    color: #1a365d;
    font-weight: 600;
}

/* ── Scale Grid — Desktop ────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .scale-grid-mobile  { display: none; }
    .scale-grid-desktop { display: block; overflow-x: auto; }
}

.scale-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.scale-table thead th {
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #4a5568;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

.scale-table-label-col { width: 40%; text-align: left !important; }
.scale-table-option-col { min-width: 70px; }

.scale-table tbody tr:hover td { background: #f7fafc; }

.scale-table-label {
    padding: 10px 8px;
    color: #2d3748;
    border-bottom: 1px solid #f0f0f0;
}

.scale-table-cell {
    padding: 6px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.scale-radio-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    color: #718096;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.scale-radio-btn:hover { border-color: #90cdf4; }

.scale-radio-btn--selected {
    border-color: #3182ce;
    color: #3182ce;
    background: #ebf4ff;
}

/* ── Open-Ended Editor ───────────────────────────────────────────────────── */

.open-ended-editor.dxbl-htmleditor {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.open-ended-editor.dxbl-htmleditor:focus-within {
    border-color: #3182ce;
}

/* ── Survey Shell ─────────────────────────────────────────────────────────── */

.survey-shell {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 12px 80px;
}

.survey-header {
    margin-bottom: 20px;
}

.survey-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px;
}

.survey-progress-label {
    font-size: 0.8125rem;
    color: #718096;
    margin: 6px 0 12px;
}

/* ── Section Navigation ──────────────────────────────────────────────────── */

.survey-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
}

.survey-nav .dxbl-btn {
    flex: 1;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
}
