        /* ============================================================
           THEME VARIABLES — mirrors demo redesign exactly
           ============================================================ */
        :root[data-theme="light"] {
            --brand-blue:        #2536EB;
            --brand-blue-dark:   #1a28b8;
            --brand-blue-light:  #3d4ef0;
            --bg-primary:        #ffffff;
            --bg-secondary:      #f8f9fa;
            --bg-tertiary:       #f3f4f6;
            --surface-top:       #ffffff;
            --surface-bottom:    #fbfcff;
            --page-bg:           radial-gradient(circle at top right, #e6edff 0%, #f7f9ff 50%, #ffffff 100%);
            --text-primary:      #1f2937;
            --text-secondary:    #6b7280;
            --text-tertiary:     #9ca3af;
            --border-color:      #e5e7eb;
            --border-hover:      #d1d5db;
            --success-color:     #22c55e;
            --error-color:       #ef4444;
            --warning-color:     #f59e0b;
            --shadow-sm:         0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md:         0 4px 6px -1px rgb(0 0 0 / 0.1);
            --shadow-lg:         0 10px 25px -3px rgb(0 0 0 / 0.1);
            --shadow-xl:         0 20px 40px -5px rgb(0 0 0 / 0.15);
        }

        :root[data-theme="dark"] {
            --brand-blue:        #3d4ef0;
            --brand-blue-dark:   #2536EB;
            --brand-blue-light:  #5a6af5;
            --bg-primary:        #111827;
            --bg-secondary:      #1f2937;
            --bg-tertiary:       #374151;
            --surface-top:       #1a2538;
            --surface-bottom:    #131d2f;
            --page-bg:           radial-gradient(circle at top right, #172033 0%, #101827 52%, #0b1321 100%);
            --text-primary:      #f9fafb;
            --text-secondary:    #d1d5db;
            --text-tertiary:     #9ca3af;
            --border-color:      #374151;
            --border-hover:      #4b5563;
            --success-color:     #34d399;
            --error-color:       #f87171;
            --warning-color:     #fbbf24;
            --shadow-sm:         0 1px 2px 0 rgb(0 0 0 / 0.3);
            --shadow-md:         0 4px 6px -1px rgb(0 0 0 / 0.4);
            --shadow-lg:         0 10px 25px -3px rgb(0 0 0 / 0.5);
            --shadow-xl:         0 20px 40px -5px rgb(0 0 0 / 0.6);
        }

        /* ============================================================
           BASE
           ============================================================ */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--page-bg);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            transition: background 0.3s ease, color 0.3s ease;
        }

        /* ============================================================
           TOP NAV BAR
           ============================================================ */
        .survey-nav {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border-color);
            padding: 0.875rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow-sm);
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .survey-nav-logo {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            text-decoration: none;
        }

        .survey-nav-logo-mark {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .survey-nav-brand {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .survey-nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .survey-nav-step-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Theme toggle */
        .theme-toggle {
            display: inline-flex;
            align-items: center;
            padding: 0;
            background: transparent;
            border: none;
            box-shadow: none;
            backdrop-filter: none;
        }

        .theme-toggle-btn {
            background: none;
            border: none;
            width: 48px;
            height: 28px;
            cursor: pointer;
            padding: 0;
            border-radius: 999px;
            transition: none;
            line-height: 1;
            position: relative;
            display: inline-block;
        }

        .theme-toggle-track {
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 999px;
            background: #4b5563;
            border: 1px solid #374151;
            position: relative;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .theme-toggle-thumb {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
            transition: transform 0.2s ease;
        }

        .theme-toggle-btn.is-dark .theme-toggle-track {
            background: var(--brand-blue);
            border-color: var(--brand-blue);
        }

        .theme-toggle-btn.is-dark .theme-toggle-thumb {
            transform: translateX(20px);
        }

        .theme-toggle-btn:focus-visible {
            outline: 2px solid var(--brand-blue);
            outline-offset: 2px;
        }

        .theme-toggle-btn:hover { transform: none; }

        /* ============================================================
           PROGRESS HEADER (full-width bar below nav)
           ============================================================ */
        .survey-progress-header {
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border-color);
            padding: 0.625rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 95;
            transition: background 0.3s ease;
        }

        .survey-progress-inner {
            max-width: 720px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .survey-progress-track {
            flex: 1;
            height: 6px;
            background: var(--border-color);
            border-radius: 999px;
            overflow: hidden;
        }

        .survey-progress-fill {
            height: 6px;
            background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
            border-radius: 999px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 8px rgba(37, 54, 235, 0.4);
        }

        .survey-progress-text {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            white-space: nowrap;
            min-width: 42px;
            text-align: right;
        }

        /* ============================================================
           MAIN PAGE LAYOUT
           ============================================================ */
        .survey-page-body {
            max-width: 720px;
            margin: 0 auto;
            padding: 2.5rem 1.5rem 4rem;
            animation: pageFadeIn 0.4s ease both;
        }

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

        /* ============================================================
           WELCOME SPLASH
           ============================================================ */
        .survey-welcome {
            text-align: center;
            padding: 3rem 2rem;
            background: var(--bg-primary);
            border-radius: 20px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-lg);
            animation: stepIn 0.4s ease both;
        }

        .survey-welcome-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
        }

        .survey-welcome h1 {
            font-size: 1.875rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            line-height: 1.2;
        }

        .survey-welcome h1 span {
            color: var(--brand-blue);
        }

        .survey-welcome p {
            font-size: 1rem;
            color: var(--text-secondary);
            max-width: 440px;
            margin: 0 auto 2rem;
            line-height: 1.7;
        }

        .survey-welcome-meta {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2.25rem;
            flex-wrap: wrap;
        }

        .survey-welcome-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .survey-welcome-meta-dot {
            width: 8px;
            height: 8px;
            background: var(--success-color);
            border-radius: 50%;
        }

        /* ============================================================
           STEP CARD
           ============================================================ */
        .survey-step-card {
            background: var(--bg-primary);
            border-radius: 20px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            animation: stepIn 0.35s ease both;
        }

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

        .survey-step-header {
            background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
            padding: 1.5rem 2rem;
            color: white;
        }

        .survey-step-header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.25rem;
        }

        .survey-step-label {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            opacity: 0.85;
        }

        .survey-step-counter {
            font-size: 0.75rem;
            opacity: 0.8;
        }

        .survey-step-question {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.35;
            margin-top: 0.5rem;
        }

        .survey-step-hint {
            font-size: 0.85rem;
            opacity: 0.85;
            margin-top: 0.375rem;
            line-height: 1.5;
        }

        /* ============================================================
           STEP BODY
           ============================================================ */
        .survey-step-body {
            padding: 2rem;
        }

        /* ============================================================
           INPUT STYLES
           ============================================================ */
        .survey-field-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .survey-input {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            font-size: 0.95rem;
            font-family: 'DM Sans', sans-serif;
            color: var(--text-primary);
            background: var(--bg-primary);
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
        }

        .survey-input:focus {
            border-color: var(--brand-blue);
            box-shadow: 0 0 0 3px rgba(37, 54, 235, 0.1);
        }

        .survey-input::placeholder { color: var(--text-tertiary); }

        textarea.survey-input {
            resize: vertical;
            min-height: 120px;
            line-height: 1.6;
        }

        .survey-input.error {
            border-color: var(--error-color);
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
        }

        .survey-field-error {
            font-size: 0.8rem;
            color: var(--error-color);
            margin-top: 0.375rem;
            font-weight: 500;
        }

        /* ============================================================
           PILL GRID (industry / booking)
           ============================================================ */
        .survey-pill-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }

        .survey-pill-grid.cols-1 { grid-template-columns: 1fr; }
        .survey-pill-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

        .survey-pill {
            padding: 0.875rem 1rem;
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-primary);
            color: var(--text-secondary);
            font-size: 0.875rem;
            font-weight: 500;
            font-family: 'DM Sans', sans-serif;
            cursor: pointer;
            transition: all 0.18s ease;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 0.625rem;
        }

        .survey-pill:hover {
            border-color: var(--brand-blue);
            color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.04);
        }

        .survey-pill.active {
            background: var(--brand-blue);
            color: white;
            border-color: var(--brand-blue);
            box-shadow: 0 2px 8px rgba(37, 54, 235, 0.3);
        }

        .survey-pill-check {
            width: 18px;
            height: 18px;
            border: 2px solid currentColor;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            transition: all 0.18s ease;
        }

        .survey-pill.active .survey-pill-check {
            background: rgba(255,255,255,0.25);
            border-color: white;
        }

        /* ============================================================
           BUSINESS HOURS
           ============================================================ */
        .survey-hours-grid {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .survey-hours-row {
            display: grid;
            grid-template-columns: 90px 1fr;
            align-items: center;
            gap: 1rem;
            padding: 0.875rem 1rem;
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-primary);
            transition: border-color 0.2s, background 0.3s;
        }

        .survey-hours-row.inactive {
            opacity: 0.45;
        }

        .survey-hours-day {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .survey-hours-toggle {
            width: 36px;
            height: 20px;
            border-radius: 999px;
            background: var(--border-color);
            border: none;
            cursor: pointer;
            position: relative;
            transition: background 0.2s;
            flex-shrink: 0;
        }

        .survey-hours-toggle::after {
            content: '';
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: white;
            top: 3px;
            left: 3px;
            transition: transform 0.2s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }

        .survey-hours-toggle.on {
            background: var(--brand-blue);
        }

        .survey-hours-toggle.on::after {
            transform: translateX(16px);
        }

        .survey-hours-day-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .survey-hours-times {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: nowrap;
            min-width: 0;
        }

        .survey-hours-time-select {
            flex: 1 1 0;
            min-width: 120px;
            padding: 0.375rem 0.5rem;
            border: 1.5px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.825rem;
            font-family: 'DM Sans', sans-serif;
            color: var(--text-primary);
            background: var(--bg-secondary);
            cursor: pointer;
            outline: none;
            transition: border-color 0.2s;
        }

        .survey-hours-time-select:focus { border-color: var(--brand-blue); }

        .survey-hours-sep {
            font-size: 0.75rem;
            color: var(--text-tertiary);
            font-weight: 600;
        }

        /* ============================================================
           CONTACT FIELDS
           ============================================================ */
        .survey-contact-grid {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        /* ============================================================
           SOCIAL PLATFORMS
           ============================================================ */
        .survey-socials-wrap {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .survey-socials-platforms {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .survey-social-pill {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.5rem 0.875rem;
            border: 1.5px solid var(--border-color);
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
            font-family: 'DM Sans', sans-serif;
            cursor: pointer;
            background: var(--bg-primary);
            color: var(--text-secondary);
            transition: all 0.18s ease;
        }

        .survey-social-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

        .survey-social-pill.active {
            border-color: var(--brand-blue);
            color: var(--brand-blue);
            background: rgba(37,54,235,0.06);
        }

        .survey-social-input-row {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: center;
            gap: 0.75rem;
            animation: stepIn 0.25s ease both;
        }

        .survey-social-input-row .survey-input {
            width: 100%;
        }

        .survey-social-input-row .survey-input-error {
            grid-column: 2 / -1;
            margin-top: -0.1rem;
            line-height: 1.3;
        }

        .survey-social-icon-wrap {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .survey-social-icon-wrap svg { width: 22px; height: 22px; }

        /* ============================================================
           BRAND CHECK
           ============================================================ */
        .survey-brand-options {
            display: flex;
            flex-direction: column;
            gap: 0.875rem;
        }

        .survey-brand-option {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.125rem 1.25rem;
            border: 1.5px solid var(--border-color);
            border-radius: 14px;
            cursor: pointer;
            background: var(--bg-primary);
            text-align: left;
            font-family: 'DM Sans', sans-serif;
            transition: all 0.18s ease;
            width: 100%;
        }

        .survey-brand-option:hover {
            border-color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.04);
        }

        .survey-brand-option.active {
            border-color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.07);
        }

        .survey-brand-radio {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid var(--border-color);
            flex-shrink: 0;
            margin-top: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.18s ease;
        }

        .survey-brand-option.active .survey-brand-radio {
            border-color: var(--brand-blue);
            background: var(--brand-blue);
        }

        .survey-brand-radio-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: white;
            opacity: 0;
            transform: scale(0);
            transition: all 0.18s ease;
        }

        .survey-brand-option.active .survey-brand-radio-dot {
            opacity: 1;
            transform: scale(1);
        }

        .survey-brand-option-text strong {
            display: block;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.125rem;
        }

        .survey-brand-option-text span {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .survey-brand-colors-grid {
            display: grid;
            gap: 0.7rem;
            margin-top: 0.6rem;
        }

        .survey-brand-color-swatch {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 0.6rem 0.65rem;
            box-shadow: var(--shadow-sm);
        }

        .survey-brand-color-row {
            display: grid;
            grid-template-columns: 44px 52px 1fr auto;
            align-items: center;
            gap: 0.55rem;
        }

        .survey-brand-color-preview {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, 0.18);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.16s ease, box-shadow 0.16s ease;
            padding: 0;
        }

        .survey-brand-color-preview:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        .survey-brand-color-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.84);
            font-size: 0.78rem;
        }

        .survey-brand-color-native {
            width: 52px;
            height: 42px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: transparent;
            cursor: pointer;
            padding: 0;
            appearance: none;
            -webkit-appearance: none;
        }

        .survey-brand-color-native::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .survey-brand-color-native::-webkit-color-swatch {
            border: none;
            border-radius: 8px;
        }

        .survey-brand-color-hex {
            width: 100%;
            min-width: 0;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 0.88rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            font-family: "DM Sans", sans-serif;
            padding: 0.62rem 0.72rem;
            text-transform: uppercase;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .survey-brand-color-hex:focus {
            outline: none;
            border-color: var(--brand-blue);
            box-shadow: 0 0 0 3px rgba(37, 54, 235, 0.12);
        }

        .survey-brand-color-remove {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1rem;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.16s ease;
        }

        .survey-brand-color-remove:hover {
            border-color: #ef4444;
            color: #ef4444;
            background: rgba(239, 68, 68, 0.08);
        }

        .survey-brand-color-add {
            border: 1.5px dashed var(--border-color);
            border-radius: 12px;
            background: transparent;
            color: var(--text-secondary);
            padding: 0.75rem 0.9rem;
            font-size: 0.87rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            transition: all 0.18s ease;
        }

        .survey-brand-color-add:hover {
            border-color: var(--brand-blue);
            color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.06);
        }

        .add-color-plus {
            font-size: 1.05rem;
            line-height: 1;
            transform: translateY(-1px);
        }

        /* Logo upload zone */
        .survey-logo-upload {
            margin-top: 1rem;
            border: 2px dashed var(--border-color);
            border-radius: 14px;
            padding: 1.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            animation: stepIn 0.3s ease both;
        }

        .survey-logo-upload:hover {
            border-color: var(--brand-blue);
            background: rgba(37,54,235,0.04);
        }

        .survey-logo-upload p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 0.5rem;
        }

        .survey-logo-preview {
            max-width: 120px;
            max-height: 80px;
            object-fit: contain;
            border-radius: 8px;
            margin: 0 auto 0.5rem;
            display: block;
        }

        /* Color swatches */
        .survey-color-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-top: 0.75rem;
            animation: stepIn 0.3s ease both;
        }

        .survey-color-swatch {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 2px solid var(--border-color);
            cursor: pointer;
            overflow: hidden;
            position: relative;
        }

        .survey-color-swatch input[type="color"] {
            position: absolute;
            inset: -4px;
            width: calc(100% + 8px);
            height: calc(100% + 8px);
            opacity: 0;
            cursor: pointer;
        }

        .survey-color-swatch-preview {
            width: 100%;
            height: 100%;
            border-radius: 8px;
        }

        /* ============================================================
           FILE UPLOAD
           ============================================================ */
        .survey-file-dropzone {
            border: 2px dashed var(--border-color);
            border-radius: 14px;
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            background: var(--bg-secondary);
        }

        .survey-file-dropzone:hover, .survey-file-dropzone.drag-over {
            border-color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.04);
        }

        .survey-file-dropzone-icon {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
            display: block;
        }

        .survey-file-dropzone p {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .survey-file-dropzone .dropzone-cta {
            color: var(--brand-blue);
            font-weight: 600;
        }

        .survey-thumb-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .survey-thumb {
            position: relative;
            width: 80px;
            height: 80px;
            border-radius: 10px;
            border: 2px solid var(--border-color);
            overflow: hidden;
            background: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .survey-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .survey-thumb-icon { font-size: 1.5rem; }

        .survey-thumb-name {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.65);
            color: white;
            font-size: 0.6rem;
            padding: 2px 4px;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .survey-thumb-remove {
            position: absolute;
            top: 2px;
            right: 2px;
            background: rgba(239,68,68,0.9);
            color: white;
            border: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            font-size: 0.625rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        /* ============================================================
           NAVIGATION FOOTER
           ============================================================ */
        .survey-footer {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.25rem 2rem 1.75rem;
            border-top: 1px solid var(--border-color);
        }

        .survey-back-btn {
            background: none;
            border: none;
            font-size: 0.9rem;
            color: var(--text-tertiary);
            cursor: pointer;
            font-weight: 600;
            font-family: 'DM Sans', sans-serif;
            padding: 0.625rem 0;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .survey-back-btn:hover { color: var(--text-primary); }
        .survey-back-btn[hidden] { display: none; }

        .survey-next-btn {
            flex: 1;
            padding: 0.9375rem 1.5rem;
            background: var(--brand-blue);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 700;
            font-family: 'DM Sans', sans-serif;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .survey-next-btn:hover:not(:disabled) {
            background: var(--brand-blue-dark);
            transform: translateY(-1px);
            box-shadow: var(--shadow-lg);
        }

        .survey-next-btn:disabled {
            background: var(--bg-tertiary);
            color: var(--text-tertiary);
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .survey-skip-hint {
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-tertiary);
            padding: 0 2rem 1.5rem;
        }

        .survey-skip-btn {
            background: none;
            border: none;
            color: var(--brand-blue);
            font-size: 0.8rem;
            font-family: 'DM Sans', sans-serif;
            cursor: pointer;
            font-weight: 600;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        /* ============================================================
           SUCCESS STATE
           ============================================================ */
        .survey-success {
            background: var(--bg-primary);
            border-radius: 20px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-xl);
            padding: 3rem 2rem;
            text-align: center;
            animation: stepIn 0.5s ease both;
        }

        .survey-success-icon {
            width: 88px;
            height: 88px;
            background: linear-gradient(135deg, var(--success-color), #10b981);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.75rem;
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }

        @keyframes successPop {
            from { transform: scale(0); opacity: 0; }
            to   { transform: scale(1); opacity: 1; }
        }

        .survey-success h2 {
            font-size: 2rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
        }

        .survey-success > p {
            font-size: 1rem;
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 2rem;
        }

        .survey-success-summary {
            background: var(--bg-secondary);
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
            text-align: left;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        .survey-success-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.875rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-secondary);
        }

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

        .survey-success-row strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .survey-success-row span {
            color: var(--text-primary);
            font-weight: 500;
        }

        /* Loading spinner */
        .survey-loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.35);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        /* ============================================================
           RESPONSIVE
           ============================================================ */
        @media (max-width: 600px) {
            .survey-page-body { padding: 1.5rem 1rem 3rem; }
            .survey-step-body { padding: 1.5rem; }
            .survey-footer { padding: 1rem 1.5rem 1.5rem; }
            .survey-step-question { font-size: 1.1rem; }
            .survey-pill-grid { grid-template-columns: 1fr; }
            .survey-pill-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
            .survey-welcome h1 { font-size: 1.5rem; }
            .survey-welcome-meta { gap: 1rem; }
            .survey-hours-row { grid-template-columns: 80px 1fr; }
        }

        /* ============================================================
           LIVE SURVEY STYLE OVERRIDES
           ============================================================ */
        :root[data-theme="light"] {
            --brand-blue: #2536EB;
            --brand-blue-dark: #1a28b8;
            --brand-blue-light: #3d4ef0;
            --bg-primary: #ffffff;
            --bg-secondary: #f7f9ff;
            --bg-tertiary: #edf2ff;
            --surface-top: #ffffff;
            --surface-bottom: #fbfcff;
            --page-bg: radial-gradient(circle at top right, #e6edff 0%, #f7f9ff 50%, #ffffff 100%);
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-tertiary: #64748b;
            --border-color: #dbe3ff;
            --border-hover: #c6d3ff;
        }

        :root[data-theme="dark"] {
            --brand-blue: #5a6af5;
            --brand-blue-dark: #4352dd;
            --brand-blue-light: #7d89ff;
            --bg-primary: #111a2b;
            --bg-secondary: #0e1626;
            --bg-tertiary: #17243a;
            --surface-top: #1a2538;
            --surface-bottom: #131d2f;
            --page-bg: radial-gradient(circle at top right, #172033 0%, #101827 52%, #0b1321 100%);
            --text-primary: #e6edf9;
            --text-secondary: #b9c6dd;
            --text-tertiary: #8ba0bf;
            --border-color: #263753;
            --border-hover: #355178;
        }

        body {
            font-family: "DM Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: var(--page-bg);
            color: var(--text-primary);
        }

        .survey-theme-floating {
            position: static;
            margin-left: auto;
            z-index: 1;
            flex: 0 0 auto;
        }

        .survey-progress-track {
            pointer-events: none;
        }

        .business-hours-container {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .business-hours-row {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-bottom) 100%);
            transition: border-color 0.2s ease;
        }

        .business-hours-row.expanded {
            border-color: var(--brand-blue);
        }

        .business-hours-day {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            cursor: pointer;
        }

        .day-label {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .day-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .toggle-label {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .toggle-label.active {
            color: var(--brand-blue);
            font-weight: 700;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background-color: #d1d5db;
            border-radius: 999px;
            transition: 0.2s ease;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            top: 3px;
            background-color: #ffffff;
            border-radius: 50%;
            transition: 0.2s ease;
        }

        .toggle-switch input:checked + .toggle-slider {
            background-color: var(--brand-blue);
        }

        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }

        .business-hours-content {
            display: none;
            padding: 0 16px 16px;
        }

        .business-hours-content.expanded {
            display: block;
        }

        .business-hours-times {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        /* ============================================================
           STANDALONE ONBOARDING POLISH OVERRIDES
           ============================================================ */
        .survey-page-body {
            max-width: 920px;
            min-height: calc(100vh - 76px);
            padding: 2.5rem 1.5rem 5.5rem;
        }

        .survey-step-card {
            background: transparent;
            border: none;
            box-shadow: none;
            overflow: visible;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .survey-step-header {
            background: transparent;
            padding: 0;
            color: var(--text-primary);
        }

        .survey-step-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.8rem;
            flex-wrap: wrap;
        }

        .survey-step-number-label {
            font-size: 0.72rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            font-weight: 700;
            color: var(--text-tertiary);
        }

        .survey-step-question {
            margin-top: 0.4rem;
            font-size: clamp(1.55rem, 2.7vw, 2.05rem);
            line-height: 1.2;
            letter-spacing: -0.02em;
            color: var(--text-primary);
        }

        .survey-step-hint {
            color: var(--text-secondary);
            font-size: 0.96rem;
            line-height: 1.65;
            max-width: 68ch;
            margin-top: 0.4rem;
            opacity: 1;
        }

        .survey-step-body {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 22px;
            padding: 2rem 2.25rem;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
        }

        .survey-footer {
            padding: 0.35rem 0.25rem 0;
            border: none;
            gap: 0.75rem;
        }

        .survey-back-btn {
            margin-right: auto;
            font-size: 0.88rem;
        }

        .survey-header-review-btn {
            border: 1px solid var(--border-color);
            background: var(--bg-primary);
            color: var(--brand-blue);
            border-radius: 999px;
            padding: 0.36rem 0.82rem;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
        }

        .survey-header-review-btn:hover {
            border-color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.08);
            transform: translateY(-1px);
        }

        .survey-header-review-btn:disabled {
            opacity: 0.72;
            cursor: default;
            transform: none;
        }

        .survey-next-btn {
            flex: 0 0 auto;
            min-width: 220px;
        }

        .survey-welcome,
        .survey-success {
            border-radius: 26px;
            border: 1px solid var(--border-color);
            box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
        }

        .survey-review-grid {
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            background: var(--bg-primary);
        }

        .survey-review-row {
            display: grid;
            grid-template-columns: 140px 1fr auto;
            align-items: start;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
        }

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

        .survey-review-label {
            font-size: 0.82rem;
            color: var(--text-tertiary);
            font-weight: 700;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .survey-review-value {
            font-size: 0.9rem;
            color: var(--text-primary);
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        .survey-review-edit {
            border: 1px solid var(--border-color);
            background: var(--bg-primary);
            color: var(--brand-blue);
            border-radius: 999px;
            padding: 0.35rem 0.75rem;
            font-weight: 700;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .survey-review-edit:hover {
            border-color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.07);
        }

        .survey-input-error {
            margin-top: 0.38rem;
            font-size: 0.78rem;
            color: var(--error-color);
            font-weight: 600;
        }

        .survey-industry-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 0.75rem;
        }

        .survey-industry-tile {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            width: 100%;
            border: 1.5px solid var(--border-color);
            border-radius: 14px;
            background: var(--bg-primary);
            color: var(--text-primary);
            padding: 0.9rem 0.95rem;
            cursor: pointer;
            text-align: left;
            font-family: 'DM Sans', sans-serif;
            transition: all 0.18s ease;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        @media (hover: hover) and (pointer: fine) {
            .survey-industry-tile:hover {
                border-color: var(--brand-blue);
                background: rgba(37, 54, 235, 0.04);
                transform: translateY(-1px);
            }
        }

        .survey-industry-tile.active {
            border-color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.08);
            box-shadow: 0 6px 18px rgba(37, 54, 235, 0.16);
            color: var(--text-primary);
        }

        .survey-industry-tile.active .survey-industry-label,
        .survey-industry-tile.active .survey-industry-icon {
            color: var(--text-primary);
        }

        .survey-industry-icon {
            width: 30px;
            font-size: 1.2rem;
            text-align: center;
            flex-shrink: 0;
        }

        .survey-industry-label {
            font-size: 0.85rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .business-hours-container {
            gap: 0.875rem;
        }

        .business-hours-row {
            border: 1px solid var(--border-color);
            border-radius: 16px;
            background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-bottom) 100%);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
            overflow: clip;
        }

        .business-hours-row.expanded {
            border-color: rgba(37, 54, 235, 0.48);
            box-shadow: 0 14px 28px rgba(37, 54, 235, 0.15);
        }

        .business-hours-day {
            padding: 0.9rem 1rem;
        }

        .day-label {
            font-size: 0.98rem;
            letter-spacing: 0.02em;
        }

        .toggle-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 700;
        }

        .business-hours-content {
            padding: 0.25rem 1rem 1rem;
        }

        .inline-time-picker-group {
            display: flex;
            flex-direction: column;
            gap: 0.44rem;
            min-width: 0;
        }

        .time-label {
            font-size: 0.73rem;
            text-transform: uppercase;
            letter-spacing: 0.09em;
            color: var(--text-tertiary);
            font-weight: 700;
            padding-left: 0.12rem;
        }

        .inline-time-display {
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 44px;
            padding: 0.6rem 0.75rem;
            border-radius: 11px;
            border: 1px solid var(--border-color);
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .inline-time-display:hover {
            border-color: var(--brand-blue);
            background: rgba(37, 54, 235, 0.04);
        }

        .time-display-icon {
            width: 10px;
            height: 10px;
            border-right: 2px solid var(--text-tertiary);
            border-bottom: 2px solid var(--text-tertiary);
            transform: rotate(45deg) translateY(-1px);
            transition: transform 0.18s ease, border-color 0.18s ease;
            flex-shrink: 0;
            margin-left: 0.6rem;
        }

        .time-display-icon.open {
            transform: rotate(-135deg) translateY(-1px);
            border-color: var(--brand-blue);
        }

        .inline-time-picker-wrapper {
            margin-top: 0.2rem;
            border: 1px solid rgba(37, 54, 235, 0.2);
            border-radius: 14px;
            background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-bottom) 100%);
            padding: 0.65rem;
            box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
        }

        .time-picker-wheels {
            position: relative;
            display: grid;
            grid-template-columns: 1fr auto 1fr 1fr;
            align-items: center;
            gap: 0.38rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 0.5rem 0.45rem;
        }

        .time-picker-wheels::before {
            content: '';
            position: absolute;
            left: 0.45rem;
            right: 0.45rem;
            top: 50%;
            height: 34px;
            transform: translateY(-50%);
            border-radius: 9px;
            border: 1px solid rgba(37, 54, 235, 0.22);
            background: rgba(37, 54, 235, 0.06);
            pointer-events: none;
        }

        .time-wheel {
            height: 138px;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            position: relative;
            z-index: 1;
            scroll-snap-type: y proximity;
        }

        .time-wheel::-webkit-scrollbar {
            display: none;
        }

        .time-separator {
            z-index: 1;
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .time-option,
        .time-option-spacer {
            height: 34px;
            scroll-snap-align: center;
        }

        .time-option {
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 1rem;
            color: var(--text-tertiary);
            font-weight: 600;
            transition: all 0.16s ease;
        }

        .time-option.selected {
            color: var(--brand-blue);
            font-weight: 800;
            transform: scale(1.04);
        }

        .inline-time-done {
            width: 100%;
            margin-top: 0.6rem;
            border: none;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
            color: #fff;
            font-size: 0.86rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            padding: 0.55rem 0.8rem;
            cursor: pointer;
            transition: transform 0.16s ease, box-shadow 0.16s ease;
            box-shadow: 0 8px 18px rgba(37, 54, 235, 0.24);
        }

        .inline-time-done:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 20px rgba(37, 54, 235, 0.32);
        }

        .inline-time-done:active {
            transform: translateY(0);
        }

        .survey-anim-enter-fwd {
            animation: surveyPageEnterFwd 0.26s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .survey-anim-enter-back {
            animation: surveyPageEnterBack 0.26s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        @keyframes surveyPageEnterBack {
            from { opacity: 0; transform: translateY(-14px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 820px) {
            .survey-step-body {
                padding: 1.4rem 1.2rem;
                border-radius: 16px;
            }

            .survey-footer {
                flex-wrap: wrap;
            }

            .survey-next-btn {
                width: 100%;
                min-width: 0;
            }

            .survey-back-btn,
            .survey-header-review-btn {
                margin-right: 0;
            }

            .survey-review-row {
                grid-template-columns: 1fr auto;
                gap: 0.65rem;
            }

            .survey-review-label {
                grid-column: 1 / -1;
            }

            .business-hours-times {
                grid-template-columns: 1fr;
            }

            .survey-industry-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.58rem;
            }

            .survey-industry-tile {
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-align: center;
                padding: 0.72rem 0.52rem;
                min-height: 5.2rem;
                gap: 0.38rem;
            }

            .survey-industry-icon {
                width: auto;
                font-size: 1.1rem;
            }

            .survey-industry-label {
                font-size: 0.76rem;
                line-height: 1.2;
            }

            .survey-brand-color-row {
                grid-template-columns: 42px 48px 1fr auto;
                gap: 0.45rem;
            }

            .survey-brand-color-native {
                width: 48px;
                height: 38px;
            }
        }

        @media (max-width: 480px) {
            .survey-nav {
                padding: 0.7rem 0.85rem;
            }

            .survey-nav-step-label {
                display: none;
            }

            .survey-page-body {
                padding: 1rem 0.75rem 5rem;
                min-height: auto;
            }

            .survey-welcome {
                padding: 2rem 1rem;
                border-radius: 14px;
            }

            .survey-step-body {
                padding: 1rem 0.9rem;
                border-radius: 14px;
            }

            .survey-step-question {
                font-size: 1.28rem;
            }

            .survey-footer {
                gap: 0.55rem;
            }

            .survey-back-btn,
            .survey-next-btn {
                width: 100%;
                justify-content: center;
            }

            .survey-socials-platforms {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .survey-review-grid {
                grid-template-columns: 1fr;
            }

            .survey-review-row {
                grid-template-columns: 1fr auto;
                gap: 0.45rem;
            }

            .survey-review-label {
                grid-column: 1 / -1;
            }

            .survey-review-edit {
                justify-self: end;
                align-self: center;
                white-space: nowrap;
            }

            .survey-theme-floating {
                margin-left: 0.35rem;
            }

            .theme-toggle-btn {
                width: 44px;
                height: 26px;
            }

            .theme-toggle-thumb {
                width: 18px;
                height: 18px;
                top: 3px;
                left: 3px;
            }

            .theme-toggle-btn.is-dark .theme-toggle-thumb {
                transform: translateX(20px);
            }
        }
