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

        :root {
            /* Light theme variables */
            --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            --bg-container: #ffffff;
            --bg-section: #f8fafc;
            --bg-input: #ffffff;
            --bg-input-focus: #ffffff;
            --bg-button: #334155;
            --bg-button-hover: #475569;
            --bg-role-card: #ffffff;
            --bg-role-hover: #f1f5f9;
            --bg-role-selected: #e0f2fe;
            --bg-star: #f1f5f9;
            --bg-star-hover: #fef3c7;
            --bg-star-active: #fbbf24;
            --bg-checkbox: #f1f5f9;
            --bg-checkbox-checked: #3b82f6;
            
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            --text-white: #ffffff;
            --text-error: #ef4444;
            --text-success: #10b981;
            
            --border-default: #e2e8f0;
            --border-focus: #3b82f6;
            --border-hover: #cbd5e1;
            --border-role: #e2e8f0;
            --border-role-hover: #3b82f6;
            --border-role-selected: #0ea5e9;
            
            --shadow-default: 0 4px 20px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 8px 25px rgba(59, 130, 246, 0.15);
            --shadow-button: 0 8px 25px rgba(51, 65, 85, 0.3);
        }

        [data-theme="dark"] {
            /* Dark theme variables */
            --bg-primary: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            --bg-container: #1e293b;
            --bg-section: #334155;
            --bg-input: #334155;
            --bg-input-focus: #1e40af;
            --bg-button: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
            --bg-button-hover: #60a5fa;
            --bg-role-card: #334155;
            --bg-role-hover: #3730a3;
            --bg-role-selected: #1e40af;
            --bg-star: #334155;
            --bg-star-hover: #fef3c7;
            --bg-star-active: #fbbf24;
            --bg-checkbox: #334155;
            --bg-checkbox-checked: #60a5fa;
            
            --text-primary: #f8fafc;
            --text-secondary: #e2e8f0;
            --text-muted: #94a3b8;
            --text-white: #ffffff;
            --text-error: #ef4444;
            --text-success: #10b981;
            
            --border-default: #475569;
            --border-focus: #60a5fa;
            --border-hover: #64748b;
            --border-role: #475569;
            --border-role-hover: #60a5fa;
            --border-role-selected: #60a5fa;
            
            --shadow-default: 0 20px 60px rgba(0, 0, 0, 0.3);
            --shadow-hover: 0 12px 30px rgba(96, 165, 250, 0.4);
            --shadow-button: 0 8px 25px rgba(96, 165, 250, 0.4);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: var(--bg-primary);
            min-height: 100vh;
            color: var(--text-primary);
            padding: 20px;
            transition: all 0.3s ease;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--bg-container);
            border-radius: 20px;
            padding: 40px;
            box-shadow: var(--shadow-default);
            border: 1px solid var(--border-default);
            transition: all 0.3s ease;
        }

        /* Theme Toggle Button */
        .theme-toggle {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: var(--bg-container);
            border: 2px solid var(--border-default);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: var(--shadow-default);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-hover);
        }

        /* Header */
        .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .header h1 {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .header p {
            font-size: 16px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* Section styling */
        .section {
            margin-bottom: 32px;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .section-icon {
            width: 24px;
            height: 24px;
            color: var(--border-focus);
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .required-mark {
            color: var(--text-error);
            margin-left: 4px;
        }

        /* Role selection */
        .role-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .role-option {
            background: var(--bg-role-card);
            border: 2px solid var(--border-role);
            border-radius: 12px;
            padding: 16px 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
        }

        .role-option:hover {
            border-color: var(--border-role-hover);
            background: var(--bg-role-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        .role-option.selected {
            border-color: var(--border-role-selected);
            background: var(--bg-role-selected);
            box-shadow: 0 0 0 1px var(--border-role-selected);
        }

        .role-icon {
            font-size: 24px;
            margin-bottom: 8px;
            display: block;
        }

        .role-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        /* Form controls */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .form-control {
            width: 100%;
            background: var(--bg-input);
            border: 2px solid var(--border-default);
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 14px;
            color: var(--text-primary);
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .form-control::placeholder {
            color: var(--text-muted);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--border-focus);
            background: var(--bg-input-focus);
            box-shadow: 0 0 0 1px var(--border-focus);
        }

        .form-control:hover {
            border-color: var(--border-hover);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 120px;
            line-height: 1.6;
        }

        /* Input with icon */
        .input-with-icon {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 16px;
        }

        .input-with-icon .form-control {
            padding-left: 48px;
        }

        /* Rating system - improved spacing */
        .rating-container {
            text-align: center;
            margin-top: 16px;
        }

        .stars {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .star {
            width: 44px;
            height: 44px;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 36px;
            position: relative;
        }

        .star::before {
            content: '★';
            color: #000000;
            transition: all 0.3s ease;
        }

        [data-theme="dark"] .star::before {
            color: #ffffff;
        }

        .star:hover::before,
        .star.active::before {
            color: #fbbf24;
        }

        .star:hover,
        .star.active {
            transform: scale(1.1);
        }

        .rating-labels {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 12px;
            padding: 0 20px;
        }

        .rating-text {
            color: var(--text-secondary);
            font-size: 14px;
            margin-top: 8px;
        }

        /* Character counter */
        .char-counter {
            text-align: right;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 8px;
        }

        .char-counter.warning {
            color: var(--text-error);
        }

        /* Checkbox */
        .checkbox-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            cursor: pointer;
        }

        .checkbox {
            width: 20px;
            height: 20px;
            background: var(--bg-checkbox);
            border: 2px solid var(--border-default);
            border-radius: 4px;
            position: relative;
            transition: all 0.3s ease;
        }

        .checkbox.checked {
            background: var(--bg-checkbox-checked);
            border-color: var(--bg-checkbox-checked);
        }

        .checkbox.checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .checkbox-label {
            font-size: 14px;
            color: var(--text-primary);
            cursor: pointer;
        }

        /* Submit button */
        .submit-btn {
            width: 100%;
            background: var(--bg-button);
            color: var(--text-white);
            border: none;
            border-radius: 12px;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 32px;
            position: relative;
            overflow: hidden;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .submit-btn:hover::before {
            left: 100%;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-button);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .submit-btn:disabled {
            background: var(--text-muted);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* SUCCESS OVERLAY - CRITICAL FIXES */
        .success-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .success-overlay.show {
            display: flex !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: all !important;
        }

        .success-overlay.hide {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        .success-card {
            position: relative;
            background: var(--bg-container);
            border-radius: 16px;
            padding: 32px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: var(--shadow-default);
            border: 1px solid var(--border-default);
            overflow: hidden;
            pointer-events: auto;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .success-overlay.show .success-card {
            transform: scale(1);
        }

        .success-icon {
            width: 48px;
            height: 48px;
            color: var(--text-success);
            margin: 0 auto 16px;
        }

        .success-content h2 {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .success-content p {
            font-size: 16px;
            color: var(--text-secondary);
            margin-bottom: 24px;
        }

        .another-feedback-btn {
            background: var(--bg-button);
            color: var(--text-white);
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            pointer-events: auto;
            z-index: 10000;
        }

        .another-feedback-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-button);
        }

        .another-feedback-btn:active {
            transform: translateY(0);
        }

        /* Error Icon */
        .error-icon {
            width: 48px;
            height: 48px;
            color: var(--text-error);
            margin: 0 auto 16px;
        }

        /* Try Again Button */
        .try-again-btn {
            background: var(--bg-button);
            color: var(--text-white);
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .try-again-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-button);
        }

        .try-again-btn:active {
            transform: translateY(0);
        }

        /* Confetti Animation */
        .confetti-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background: var(--text-success);
            opacity: 0.7;
            animation: confettiFall 3s ease-in-out infinite;
        }

        .confetti:nth-child(2) { background: #ef4444; animation-delay: 0.2s; }
        .confetti:nth-child(3) { background: #3b82f6; animation-delay: 0.4s; }
        .confetti:nth-child(4) { background: #facc15; animation-delay: 0.6s; }
        .confetti:nth-child(5) { background: #10b981; animation-delay: 0.8s; }

        @keyframes confettiFall {
            0% {
                transform: translateY(-100%) rotate(0deg);
                opacity: 0.7;
            }
            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* Loading state */
        .loading {
            display: none;
            text-align: center;
            padding: 40px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border-default);
            border-top: 3px solid var(--border-focus);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 16px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-text {
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Error messages */
        .error-message {
            color: var(--text-error);
            font-size: 12px;
            margin-top: 6px;
            display: none;
            font-weight: 500;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .container {
                padding: 24px 20px;
                margin: 10px;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 0;
            }

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

            .header h1 {
                font-size: 28px;
            }

            .rating-labels {
                display: none;
            }

            .theme-toggle {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 20px 16px;
            }

            .role-grid {
                grid-template-columns: 1fr;
            }

            .header h1 {
                font-size: 24px;
            }

            .stars {
                gap: 8px;
            }

            .star {
                width: 36px;
                height: 36px;
                font-size: 28px;
            }
        }

        /* Animations */
        .container {
            animation: slideUp 0.6s ease;
        }

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

        .role-option {
            animation: fadeIn 0.5s ease forwards;
        }

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