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

        /* Hidden-field helper for demo mode */
        .hidden-field { display: none !important; }

        :root {
            --primary: #ff6b35;
            --primary-dark: #e55a2b;
            --dark: #1a1a2e;
            --light: #f8f9fa;
            --gray: #6c757d;
        }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background: var(--dark);
            color: white;
            min-height: 100vh;
        }

        .header {
            background: rgba(0,0,0,0.3);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 2rem;
        }

        .controls {
            background: rgba(255,255,255,0.05);
            border-radius: 12px;
            padding: 1.5rem;
            height: fit-content;
        }

        .controls h2 {
            color: var(--primary);
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
        }

        .form-group { margin-bottom: 1.2rem; }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.7);
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 0.7rem;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 6px;
            background: rgba(255,255,255,0.1);
            color: white;
            font-size: 0.95rem;
        }

        .form-group select option {
            background: #1a1a2e;
            color: white;
        }

        .form-group input::placeholder {
            color: rgba(255,255,255,0.4);
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .theme-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }

        .theme-option {
            padding: 0.6rem;
            border: 2px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            font-size: 0.8rem;
            transition: all 0.2s;
        }

        .theme-option:hover { transform: scale(1.02); }

        .theme-option.selected {
            border-color: var(--primary);
            background: rgba(255,107,53,0.2);
        }

        .theme-1 { background: linear-gradient(135deg, #1a1a2e, #ff6b35); }
        .theme-2 { background: linear-gradient(135deg, #ffffff, #3498db); color: #333; }
        .theme-3 { background: linear-gradient(135deg, #ff6b35, #27ae60); }
        .theme-4 { background: linear-gradient(135deg, #1a1a2e, #ffd700); }
        .theme-5 { background: linear-gradient(135deg, #e74c3c, #f39c12); }

        .preview-frame {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            min-height: 600px;
            position: relative;
        }

        .preview-header {
            background: #f0f0f0;
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-bottom: 1px solid #ddd;
        }

        .preview-dot { width: 12px; height: 12px; border-radius: 50%; }
        .dot-red { background: #ff5f56; }
        .dot-yellow { background: #ffbd2e; }
        .dot-green { background: #27c93f; }

        .preview-url {
            background: white;
            flex: 1;
            padding: 0.4rem 0.8rem;
            border-radius: 4px;
            font-size: 0.8rem;
            color: #666;
            margin-left: 1rem;
        }

        .preview-content {
            height: calc(100% - 40px);
            overflow: auto;
        }

        .preview-content iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .actions {
            margin-top: 1.5rem;
            display: flex;
            gap: 1rem;
        }

        .btn {
            flex: 1;
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s;
        }

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

        .btn-primary:hover {
            background: var(--primary-dark);
        }

        .btn-secondary {
            background: rgba(255,255,255,0.1);
            color: white;
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.2);
        }

        .success-message {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--dark);
            border: 2px solid var(--primary);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            z-index: 1000;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }

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

        .success-message h3 { color: var(--primary); margin-bottom: 1rem; }
        .success-message p { margin-bottom: 1rem; color: rgba(255,255,255,0.7); }

        .overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 999;
        }

        .overlay.show { display: block; }

        .image-preview {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            margin-top: 1rem;
            padding: 0.75rem;
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
        }

        .image-preview img {
            width: 100%;
            height: 60px;
            object-fit: cover;
            border-radius: 4px;
        }

        .image-preview-label {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
            margin-bottom: 0.25rem;
        }

        @media (max-width: 900px) {
            .container { grid-template-columns: 1fr; }
            .preview-frame { min-height: 400px; }
        }
    </style>
    <style>
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: '${data.headingFont}', system-ui, sans-serif;
            background: ${theme.bg};
            color: ${theme.text};
            line-height: 1.6;
        }
        header {
            background: rgba(0,0,0,0.2);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo { font-size: 1.5rem; font-weight: 700; color: ${theme.accent}; }
        .hero {
            padding: 5rem 2rem;
            text-align: center;
            background: linear-gradient(${heroOverlay}, ${heroOverlay}), url(${images.hero});
            background-size: cover;
            background-position: center;
        }
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        .hero p {
            font-size: 1.3rem;
            opacity: 0.9;
        }
        .services {
            max-width: 1200px;
            margin: 4rem auto;
            padding: 0 2rem;
        }
        .services h2 {
            text-align: center;
            margin-bottom: 2rem;
            font-size: 2rem;
            color: ${theme.accent};
        }
        .service-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
        }
        .cta {
            background: ${theme.accent};
            color: white;
            padding: 4rem 2rem;
            text-align: center;
        }
        .cta h2 { margin-bottom: 1rem; }
        .phone {
            font-size: 2.5rem;
            font-weight: 700;
        }
        .contact {
            max-width: 1000px;
            margin: 4rem auto;
            padding: 3rem 2rem;
            background: #f8f9fa;
            color: #1a1a2e;
        }
        .contact h2 {
            text-align: center;
            margin-bottom: 1rem;
            font-size: 2rem;
        }
        .form-container {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            margin: 2rem auto;
            max-width: 500px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .form-container h3 {
            margin-bottom: 1rem;
            color: #ff6b35;
        }
        .form-container input,
        .form-container select,
        .form-container textarea {
            width: 100%;
            padding: 0.8rem;
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 1rem;
            font-family: inherit;
        }
        .form-container button {
            background: #ff6b35;
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
        }
        .form-container button:hover {
            background: #e55a2b;
        }
        .contact-info {
            text-align: center;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #ddd;
        }
        .contact-info p {
            margin: 0.5rem 0;
            font-size: 1.1rem;
        }
        footer {
            background: rgba(0,0,0,0.3);
            padding: 2rem;
            text-align: center;
            opacity: 0.7;
        }
