* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    color: #1a202c;
}

/* ── Survey Card ── */
.survey-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 640px;
    width: 100%;
    overflow: hidden;
}

/* ── Header ── */
.survey-header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}

.survey-logo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 8px;
}

.survey-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.survey-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* ── Progress ── */
.progress-section {
    padding: 16px 32px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.progress-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ── Question Area ── */
.question-area {
    padding: 32px;
    min-height: 300px;
}

.question-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 16px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
    color: #1e293b;
    margin-bottom: 24px;
}

.options-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 15px;
    color: #374151;
    user-select: none;
}

.option-label:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.option-label:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Navigation ── */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.btn-back {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-back:hover:not(:disabled) {
    background: #e2e8f0;
    color: #334155;
}

.btn-back:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-next {
    background: #2563eb;
    color: #fff;
}

.btn-next:hover {
    background: #1d4ed8;
}

.btn-submit {
    background: #059669;
    color: #fff;
    padding: 10px 28px;
}

.btn-submit:hover {
    background: #047857;
}

/* ── Footer ── */
.survey-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 32px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
}

/* ── Complete Screen ── */
.complete-card {
    display: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 640px;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
}

.complete-icon {
    width: 64px;
    height: 64px;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

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

.complete-card p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 6px;
}

.complete-card .btn {
    margin-top: 28px;
}

/* ── Test Scenario Badge ── */
.scenario-badge {
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0 32px 0;
    padding: 10px 14px;
    border-left: 3px solid #ccc;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-label {
    flex: 1;
    color: #374151;
}

.badge-label strong {
    font-weight: 600;
}

.badge-uid {
    color: #6b7280;
    white-space: nowrap;
}

.badge-uid code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── Validation Hint ── */
.validation-hint {
    color: #dc2626;
    font-size: 13px;
    margin-top: 12px;
}
