/* ============================================================================
 * Pulsify.Survey.Rendering — question component stylesheet
 *
 * Served as a static web asset by the Razor Class Library at
 * /_content/Pulsify.Survey.Rendering/css/questions.css. Both
 * Pulsify.Web.Runtime (survey-taking host) and Pulsify.Web.Builder.Client
 * (editor preview) reference this file so the shared question components
 * render identically in either host.
 * ============================================================================ */

.question-text {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.question-text .required-mark {
    color: #ef4444;
    margin-left: 4px;
}

.question-description {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    margin-top: -12px;
}

/* Display Text / Info Question */
.display-text-container {
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.display-text-title {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 600;
    color: #0369a1;
}

.display-text-content {
    font-size: 18px;
    line-height: 1.7;
    color: #1e293b;
}

.display-text-content p {
    margin: 0 0 12px 0;
}

.display-text-content p:last-child {
    margin-bottom: 0;
}

.display-text-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Options (Radio & Checkbox) */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.option-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.option-item.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f0f0ff 0%, #f5f3ff 100%);
}

.option-label {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    flex: 1;
}

.option-item.selected .option-label {
    font-weight: 600;
    color: #4338ca;
}

/* Custom Radio */
.custom-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-item.selected .custom-radio {
    border-color: #6366f1;
}

.custom-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.option-item.selected .custom-radio-inner {
    opacity: 1;
    transform: scale(1);
}

/* Custom Checkbox */
.custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-item.selected .custom-checkbox {
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.custom-checkbox svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.option-item.selected .custom-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

/* Other Text Input */
.other-text-input {
    flex: 1;
    margin-left: 8px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.other-text-input:focus {
    border-color: #6366f1;
}

/* Textarea */
.custom-textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-textarea:focus {
    border-color: #6366f1;
}

.custom-textarea::placeholder {
    color: #94a3b8;
}

.char-count {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 12px;
    text-align: right;
}

/* Text Input */
.custom-text-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-text-input:focus {
    border-color: #6366f1;
}

.custom-text-input::placeholder {
    color: #94a3b8;
}

/* Numeric Input */
.custom-numeric-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-numeric-input:focus {
    border-color: #6366f1;
}

/* Select/Dropdown */
.custom-select {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s ease;
}

.custom-select:focus {
    border-color: #6366f1;
}

/* Scale */
.scale-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.scale-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.scale-button {
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scale-button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.scale-button.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}

.scale-label {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: #94a3b8;
}

/* Slider */
.slider-container {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
}

.slider-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-label {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.custom-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.slider-value-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.slider-value {
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
}

.slider-unit {
    font-size: 14px;
    color: #94a3b8;
}

.slider-range-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-top: -8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

/* Matrix */
.matrix-table-container {
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.matrix-table tbody tr {
    transition: background-color 0.15s ease;
}

.matrix-table tbody tr:hover {
    background-color: #f8fafc;
}

.matrix-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.matrix-table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

.matrix-row-header,
.matrix-col-header {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
}

.matrix-row-header {
    text-align: left;
    min-width: 150px;
}

.matrix-col-header {
    min-width: 80px;
}

.matrix-row-label {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.matrix-cell {
    text-align: center;
    padding: 12px 8px;
}

.matrix-cell:has(.matrix-select) {
    padding: 8px;
}

.matrix-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.matrix-radio:hover {
    border-color: #6366f1;
}

.matrix-radio.selected {
    border-color: #6366f1;
}

.matrix-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.matrix-radio.selected .matrix-radio-inner {
    opacity: 1;
    transform: scale(1);
}

.matrix-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.matrix-checkbox:hover {
    border-color: #6366f1;
}

.matrix-checkbox.selected {
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.matrix-checkbox svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.matrix-checkbox.selected svg {
    opacity: 1;
    transform: scale(1);
}

.matrix-select {
    padding: 12px 40px 12px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    min-width: 180px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.matrix-select:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.matrix-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.matrix-select option {
    padding: 12px 16px;
    background: #ffffff;
    color: #1e293b;
}

.matrix-select option:checked {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}

/* Matrix Numeric Input */
.matrix-numeric-input {
    width: 100%;
    max-width: 120px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.matrix-numeric-input:hover {
    border-color: #cbd5e1;
}

.matrix-numeric-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.matrix-numeric-input::placeholder {
    color: #94a3b8;
}

/* Matrix Text Input */
.matrix-text-input {
    width: 100%;
    min-width: 150px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.matrix-text-input:hover {
    border-color: #cbd5e1;
}

.matrix-text-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.matrix-text-input::placeholder {
    color: #94a3b8;
}

/* ============================================
   ADVANCED GRID (Mixed Column Types)
   ============================================ */

.advanced-grid-container {
    overflow-x: auto;
}

.advanced-grid-table {
    min-width: 100%;
}

.advanced-grid-col-header {
    min-width: 120px;
    text-align: center;
    vertical-align: bottom;
}

.advanced-grid-col-header span {
    display: block;
}

.advanced-grid-col-type {
    font-size: 10px;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 2px;
}

.advanced-grid-cell {
    min-width: 100px;
    vertical-align: middle;
    padding: 8px 12px !important;
}

/* Advanced Grid Radio Group - Scale Style */
.advanced-grid-radio-group {
    display: inline-flex;
    gap: 2px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.advanced-grid-radio {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    position: relative;
}

.advanced-grid-radio:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

.advanced-grid-radio.selected {
    border-color: #6366f1;
    background: #6366f1;
}

.advanced-grid-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.15s ease;
}

.advanced-grid-radio.selected .advanced-grid-radio-inner {
    background: #ffffff;
}

/* Number inside radio button */
.advanced-grid-radio-number {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1;
}

.advanced-grid-radio:hover .advanced-grid-radio-number {
    color: #6366f1;
}

.advanced-grid-radio.selected .advanced-grid-radio-number {
    color: #ffffff;
}

/* Advanced Grid Checkbox Group */
.advanced-grid-checkbox-group {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Single Checkbox (centered) */
.advanced-grid-checkbox-single {
    display: flex;
    justify-content: center;
    align-items: center;
}

.advanced-grid-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.advanced-grid-checkbox:hover {
    border-color: #a5b4fc;
    background: #f5f5ff;
}

.advanced-grid-checkbox.selected {
    border-color: #6366f1;
    background: #6366f1;
}

.advanced-grid-checkbox svg {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.advanced-grid-checkbox.selected svg {
    opacity: 1;
}

/* Advanced Grid Inputs */
.advanced-grid-numeric-input,
.advanced-grid-text-input,
.advanced-grid-constant-sum-input {
    width: 100%;
    max-width: 100px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 13px;
    font-family: inherit;
    color: #1e293b;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.advanced-grid-text-input {
    max-width: 150px;
    text-align: left;
}

.advanced-grid-numeric-input:hover,
.advanced-grid-text-input:hover,
.advanced-grid-constant-sum-input:hover {
    border-color: #cbd5e1;
}

.advanced-grid-numeric-input:focus,
.advanced-grid-text-input:focus,
.advanced-grid-constant-sum-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Advanced Grid Dropdown */
.advanced-grid-dropdown,
.advanced-grid-rank-select {
    width: 100%;
    max-width: 120px;
    padding: 8px 10px;
    padding-right: 28px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-size: 13px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.advanced-grid-rank-select {
    max-width: 70px;
    text-align: center;
    padding-left: 12px;
}

.advanced-grid-dropdown:hover,
.advanced-grid-rank-select:hover {
    border-color: #cbd5e1;
}

.advanced-grid-dropdown:focus,
.advanced-grid-rank-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Total Column Header & Cell */
.advanced-grid-total-header {
    background: #f1f5f9 !important;
    font-weight: 600;
    min-width: 80px;
}

.advanced-grid-total-cell {
    text-align: center;
    vertical-align: middle;
    background: #f8fafc;
}

.advanced-grid-total-cell .total-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.advanced-grid-total-cell.valid .total-badge {
    background: #dcfce7;
    color: #166534;
}

.advanced-grid-total-cell.over .total-badge {
    background: #fee2e2;
    color: #991b1b;
}

.advanced-grid-total-cell.under .total-badge {
    background: #fef3c7;
    color: #92400e;
}

/* Advanced Grid Mobile Responsive */
@media (max-width: 768px) {
    .advanced-grid-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .advanced-grid-table {
        font-size: 12px;
    }

    .advanced-grid-cell {
        padding: 6px 8px !important;
    }

    .advanced-grid-numeric-input,
    .advanced-grid-text-input,
    .advanced-grid-constant-sum-input {
        max-width: 80px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .advanced-grid-dropdown,
    .advanced-grid-rank-select {
        max-width: 100px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .advanced-grid-radio {
        width: 20px;
        height: 20px;
    }

    .advanced-grid-checkbox {
        width: 18px;
        height: 18px;
    }
}

/* Matrix Mobile */
.matrix-mobile-container {
    display: none;
}

.matrix-mobile-row {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.matrix-mobile-row-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.matrix-mobile-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Ranking */
.ranking-instruction {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.ranking-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
}

.ranking-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ranking-item.dragging {
    opacity: 0.5;
    border-color: #6366f1;
    cursor: grabbing;
}

.ranking-item.drag-over {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f0f0ff 0%, #f5f3ff 100%);
}

.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.rank-handle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.rank-handle::before {
    content: "⋮⋮";
    font-size: 14px;
    letter-spacing: -2px;
}

.rank-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
}

/* Image Options */
.image-options-container {
    margin-top: 16px;
}

.image-options-grid {
    display: grid;
    gap: 16px;
}

.image-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.image-option-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.image-option-card.selected {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.image-option-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.image-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-option-placeholder {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #94a3b8;
}

.image-option-label {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
}

.image-option-card.selected .image-option-label {
    background: linear-gradient(135deg, #f0f0ff 0%, #f5f3ff 100%);
    color: #4338ca;
}

.image-option-radio {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-option-radio.selected {
    border-color: #6366f1;
    background: #ffffff;
}

.image-option-radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.image-option-radio.selected .image-option-radio-inner {
    opacity: 1;
    transform: scale(1);
}

.image-option-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-option-checkbox.selected {
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.image-option-checkbox svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.image-option-checkbox.selected svg {
    opacity: 1;
    transform: scale(1);
}

/* Date Picker */
.custom-date-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-date-input:focus {
    border-color: #6366f1;
}

/* File Upload */
.file-upload-hint {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.file-upload-container {
    border: none;
}

.uploaded-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.file-icon {
    font-size: 20px;
}

.file-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.file-size {
    font-size: 12px;
    color: #94a3b8;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-remove-file:hover {
    color: #ef4444;
    background: #fef2f2;
}

.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #6366f1;
    background: #f8fafc;
}

.upload-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.upload-icon {
    color: #94a3b8;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.upload-hint-text {
    font-size: 13px;
    color: #94a3b8;
}

.upload-progress {
    margin-top: 16px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.upload-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.upload-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 14px;
}

/* MaxDiff */
.maxdiff-instruction {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.maxdiff-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
}

.maxdiff-header {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.header-best {
    color: #22c55e;
}

.header-worst {
    color: #ef4444;
}

.maxdiff-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.maxdiff-row:last-child {
    border-bottom: none;
}

.maxdiff-row.selected-best {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

.maxdiff-row.selected-worst {
    background: linear-gradient(90deg, transparent 50%, rgba(239, 68, 68, 0.1) 100%);
}

.maxdiff-best-col,
.maxdiff-worst-col {
    display: flex;
    justify-content: center;
}

.maxdiff-item-col {
    text-align: center;
}

.item-text {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
}

.maxdiff-radio {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maxdiff-radio:hover:not(.disabled) {
    border-color: #94a3b8;
}

.maxdiff-radio.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.maxdiff-radio.best.selected {
    border-color: #22c55e;
    background: #22c55e;
}

.maxdiff-radio.worst.selected {
    border-color: #ef4444;
    background: #ef4444;
}

.maxdiff-radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.maxdiff-radio.selected .maxdiff-radio-inner {
    opacity: 1;
    transform: scale(1);
}

.maxdiff-progress {
    text-align: center;
    padding: 16px;
    color: #64748b;
    font-size: 14px;
}

.maxdiff-nav {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.btn-maxdiff-next {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-maxdiff-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.maxdiff-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Conjoint */
.conjoint-instruction {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.conjoint-container {
    margin-top: 16px;
}

.concepts-grid {
    display: grid;
    gap: 16px;
}

.concept-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.concept-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.concept-card.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f0f0ff 0%, #f5f3ff 100%);
}

.concept-header {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.concept-attributes {
    flex: 1;
}

.concept-attribute {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.concept-attribute:last-child {
    border-bottom: none;
}

.attr-name {
    color: #64748b;
    font-size: 14px;
}

.attr-level {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.concept-select {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.concept-radio {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.concept-radio.selected {
    border-color: #6366f1;
}

.concept-radio-inner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.concept-radio.selected .concept-radio-inner {
    opacity: 1;
    transform: scale(1);
}

.concept-card.none-option {
    background: #f8fafc;
}

.concept-none-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.conjoint-progress {
    text-align: center;
    padding: 16px;
    color: #64748b;
    font-size: 14px;
}

.conjoint-nav {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.btn-conjoint-next {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-conjoint-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.conjoint-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Navigation Buttons (inside card) */
.survey-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

/* .btn / .btn-primary / .btn-secondary moved back to Web.Runtime/wwwroot/css/app.css.
   They were bleeding into the editor preview's Bootstrap chrome (device toggles,
   DxPager) — those globally-scoped rules belong with the runtime's Survey.razor
   navigation buttons, not in the shared component stylesheet. */

/* Validation Message */
.validation-message {
    margin-top: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    color: #dc2626;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #fecaca;
}

/* Loading & Error */
.survey-loading-container,
.survey-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f7 100%);
}

.survey-error-message {
    color: #dc2626;
    margin-top: 16px;
    font-size: 15px;
}

/* Completion Screen */
.completion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f7 100%);
}

.completion-card {
    text-align: center;
    padding: 48px 56px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 20px 40px -8px rgba(99,102,241,0.1);
    max-width: 480px;
}

.completion-icon {
    margin-bottom: 24px;
}

.completion-icon.success {
    color: #22c55e;
}

.completion-icon.error {
    color: #ef4444;
}

.completion-icon.warning {
    color: #f59e0b;
}

.completion-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.completion-card p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .survey-header {
        padding: 16px 20px;
    }

    .survey-logo {
        font-size: 18px;
    }

    .progress-bar-wrapper {
        width: 80px;
    }

    .survey-main {
        padding: 20px 16px;
    }

    .survey-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .question-text {
        font-size: 20px;
    }

    .survey-footer {
        padding: 16px 20px;
    }

    /* .btn / .btn-primary mobile overrides also moved to Web.Runtime app.css. */

    /* Matrix Mobile */
    .matrix-container {
        display: none;
    }

    .matrix-mobile-container {
        display: block;
    }

    .matrix-select {
        min-width: 100%;
        width: 100%;
        padding: 14px 40px 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .matrix-numeric-input {
        max-width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .matrix-text-input {
        min-width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .image-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .completion-card {
        padding: 32px 24px;
    }

    .completion-card h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .survey-card {
        padding: 24px 20px;
    }

    .question-text {
        font-size: 18px;
    }

    .scale-container {
        gap: 6px;
    }

    .scale-button {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .image-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Question Media Styles */
.question-media {
    margin-bottom: 1.5rem;
    text-align: center;
}

.question-media-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.question-media-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .question-media-image,
    .question-media-video {
        max-height: 250px;
    }
}

/* Constant Sum Question */
.constant-sum-container {
    max-width: 500px;
}

.constant-sum-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.constant-sum-label {
    flex: 1;
    font-size: 0.95rem;
}

.constant-sum-input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.constant-sum-input:focus {
    border-color: var(--primary-color, #4361ee);
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.constant-sum-total {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.constant-sum-total.valid {
    background: #d4edda;
    color: #155724;
}

.constant-sum-total.invalid {
    background: #f8d7da;
    color: #721c24;
}

.total-error {
    font-weight: normal;
    font-size: 0.85rem;
}

/* Semantic Differential Question */
.semantic-differential-container {
    max-width: 700px;
}

.semantic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.semantic-label {
    width: 100px;
    font-size: 0.9rem;
    color: #495057;
}

.semantic-label.left {
    text-align: right;
}

.semantic-label.right {
    text-align: left;
}

.semantic-scale {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.semantic-point {
    position: relative;
    cursor: pointer;
}

.semantic-point input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.semantic-point .point-indicator {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
}

.semantic-point:hover .point-indicator {
    border-color: var(--primary-color, #4361ee);
    transform: scale(1.1);
}

.semantic-point.selected .point-indicator,
.semantic-point input:checked + .point-indicator {
    border-color: var(--primary-color, #4361ee);
    background: var(--primary-color, #4361ee);
}

/* Free Format Question */
.free-format-container {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 100px;
}

@media (max-width: 768px) {
    .constant-sum-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .constant-sum-input {
        width: 100%;
    }

    .semantic-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .semantic-label {
        width: auto;
        text-align: center !important;
    }

    .semantic-scale {
        gap: 0.25rem;
    }

    .semantic-point .point-indicator {
        width: 20px;
        height: 20px;
    }
}

/* ===== ACBC (Adaptive Choice-Based Conjoint) ===== */

.acbc-container {
    margin-top: 16px;
}

.acbc-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Stage Indicator */
.acbc-stage-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.stage-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stage-step.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
}

.stage-step.completed {
    background: #dcfce7;
    border-color: #22c55e;
}

.stage-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.stage-step.active .stage-number {
    background: rgba(255,255,255,0.3);
    color: white;
}

.stage-step.completed .stage-number {
    background: #22c55e;
    color: white;
}

.stage-name {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.stage-step.active .stage-name {
    color: white;
}

.stage-step.completed .stage-name {
    color: #15803d;
}

/* Stage Instructions */
.stage-instruction {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    text-align: center;
}

/* BYO Stage */
.acbc-byo-stage {
    padding: 16px 0;
}

.byo-attributes {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.byo-attribute {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.byo-attribute-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.byo-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.byo-level {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.byo-level:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.byo-level.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f0f0ff 0%, #f5f3ff 100%);
}

.byo-level-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.byo-level-text {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.byo-level.selected .byo-level-text {
    color: #4338ca;
    font-weight: 600;
}

/* Screening Stage */
.acbc-screening-stage {
    padding: 16px 0;
}

.screening-concept {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.screening-card {
    max-width: 400px;
    width: 100%;
}

.screening-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.screening-btn {
    padding: 14px 32px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.screening-btn:hover {
    border-color: #cbd5e1;
}

.screening-btn.yes {
    color: #22c55e;
}

.screening-btn.yes:hover,
.screening-btn.yes.selected {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.screening-btn.maybe {
    color: #f59e0b;
}

.screening-btn.maybe:hover,
.screening-btn.maybe.selected {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.screening-btn.no {
    color: #ef4444;
}

.screening-btn.no:hover,
.screening-btn.no.selected {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Choice Stage */
.acbc-choice-stage {
    padding: 16px 0;
}

/* Override for ACBC Choice Tasks - use flex for better wrapping */
.acbc-choice-stage .concepts-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Improved concept card for ACBC */
.acbc-choice-stage .concept-card {
    flex: 1 1 220px;
    max-width: 280px;
    min-width: 220px;
}

.acbc-choice-stage .concept-card.none-option {
    display: flex;
    flex-direction: column;
    flex: 0 1 180px;
    min-width: 160px;
}

.acbc-choice-stage .concept-card.none-option .concept-header {
    color: #dc2626;
}

.acbc-choice-stage .concept-card.none-option.selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.acbc-choice-stage .concept-card.none-option.selected .concept-header {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.acbc-choice-stage .concept-none-text {
    font-style: normal;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    padding: 20px 12px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive: Stack cards on smaller screens */
@media (max-width: 700px) {
    .acbc-choice-stage .concept-card {
        flex: 1 1 45%;
        max-width: none;
    }
}

@media (max-width: 500px) {
    .acbc-choice-stage .concept-card {
        flex: 1 1 100%;
    }
}

/* Calibration Stage */
.acbc-calibration-stage {
    padding: 16px 0;
}

.calibration-concept {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.calibration-card {
    max-width: 400px;
    width: 100%;
}

.calibration-scale {
    width: 100%;
    max-width: 600px;
}

.calibration-label {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.calibration-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.calibration-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.calibration-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.calibration-btn.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

/* Progress & Navigation */
.acbc-progress {
    text-align: center;
    padding: 16px;
    color: #64748b;
    font-size: 14px;
}

.acbc-nav {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.btn-acbc-next {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-acbc-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ACBC Responsive */
@media (max-width: 768px) {
    .acbc-stage-indicator {
        flex-wrap: wrap;
    }

    .stage-step {
        padding: 6px 12px;
    }

    .stage-name {
        display: none;
    }

    .byo-levels {
        flex-direction: column;
    }

    .byo-level {
        width: 100%;
        justify-content: center;
    }

    .screening-options {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .screening-btn {
        width: 100%;
    }

    .calibration-options {
        flex-direction: column;
        width: 100%;
    }

    .calibration-btn {
        width: 100%;
    }
}
