/* Brand tokens inherited from styles.css :root */

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

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
        }

        /* Navbar — uses site-wide styles from styles.css */

        /* Main container — scoped to questionnaire content only */
        .rollup-container {
            max-width: 600px;
            margin: 0 auto;
            padding: 3rem 2rem;
        }

        /* Banner */
        .banner {
            text-align: center;
            margin-bottom: 3rem;
        }

        .banner h1 {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .banner p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* Progress bar */
        .progress-section {
            margin-bottom: 2rem;
        }

        .progress-text {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .progress-bar {
            background: var(--border);
            height: 6px;
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-fill {
            background: var(--accent);
            height: 100%;
            transition: width 0.3s ease;
        }

        /* Card */
        .card {
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .step-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 1.5rem;
        }

        /* Form groups */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            margin-bottom: 0.5rem;
            cursor: pointer;
            border-radius: 6px;
            transition: background-color 0.2s ease;
            font-weight: 500;
        }

        .form-group label:hover {
            background-color: #f0f9f7;
        }

        /* Radio buttons */
        input[type="radio"],
        input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--border);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        input[type="checkbox"] {
            border-radius: 4px;
        }

        input[type="radio"]:hover,
        input[type="checkbox"]:hover {
            border-color: var(--accent);
        }

        input[type="radio"]:checked,
        input[type="checkbox"]:checked {
            background-color: var(--accent);
            border-color: var(--accent);
        }

        input[type="radio"]:checked::after,
        input[type="checkbox"]:checked::after {
            content: '';
            display: block;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
            position: relative;
            top: -2px;
            left: 4px;
        }

        input[type="checkbox"]:checked::after {
            width: 5px;
            height: 9px;
            top: -3px;
            left: 3px;
        }

        /* Text input */
        input[type="text"],
        input[type="number"] {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            transition: border-color 0.2s ease;
        }

        input[type="text"]:focus,
        input[type="number"]:focus,
        select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(29,107,74, 0.1);
        }

        /* Other input field (hidden by default) */
        .other-input-wrapper {
            margin-top: 0.75rem;
            display: none;
        }

        .other-input-wrapper.visible {
            display: block;
        }

        /* Error message */
        .error-message {
            color: #dc2626;
            font-size: 0.85rem;
            margin-top: 0.5rem;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        /* Step visibility */
        .step {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .step.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Buttons */
        .button-group {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            justify-content: space-between;
        }

        button {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 6px;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-primary {
            background-color: var(--accent);
            color: white;
            flex: 1;
        }

        .btn-primary:hover:not(:disabled) {
            background-color: var(--primary-light);
        }

        .btn-primary:disabled {
            background-color: var(--border);
            cursor: not-allowed;
        }

        .btn-secondary {
            background-color: var(--bg);
            color: var(--text);
            border: 1px solid var(--border);
            flex: 1;
            font-weight: 600;
        }

        .btn-secondary:hover {
            background-color: var(--border);
            border-color: var(--text-muted);
        }

        .btn-secondary:disabled {
            color: var(--text-muted);
            border-color: var(--border);
            cursor: not-allowed;
            background-color: var(--bg);
        }

        /* Utility */
        .hidden {
            display: none;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        /* ── MOBILE: Rollup questionnaire ── */
        @media (max-width: 768px) {
            .rollup-container { padding: 2rem 1rem; }
            .banner h1 { font-size: 1.4rem; }
            .card { padding: 1.25rem; }
            .step-title { font-size: 1.1rem; }

            /* Bigger touch targets for labels */
            .form-group label { padding: 0.85rem 0.75rem; min-height: 48px; font-size: .95rem; }

            /* Radio/checkbox bigger */
            input[type="radio"], input[type="checkbox"] { width: 24px; height: 24px; }
            input[type="radio"]:checked::after, input[type="checkbox"]:checked::after {
                width: 5px; height: 10px; top: -1px; left: 6px;
            }
            input[type="checkbox"]:checked::after {
                width: 6px; height: 10px; top: -2px; left: 5px;
            }

            /* Inputs */
            input[type="text"], input[type="number"], select {
                min-height: 48px; padding: 0.85rem 1rem; font-size: 1rem;
            }

            /* Buttons */
            button { min-height: 48px; padding: 0.85rem 1.5rem; font-size: 1rem; }
            .button-group { flex-direction: column-reverse; gap: 0.75rem; }
            .button-group button { width: 100%; }
        }

        @media (max-width: 480px) {
            .rollup-container { padding: 1.5rem 0.75rem; }
            .banner h1 { font-size: 1.25rem; }
            .card { padding: 1rem; }
        }
