/* Support forms + category tabs.
 * Lifted verbatim out of support.php's inline <style> on 2026-09-21 when the
 * supplier application moved to its own page — both pages need these rules and
 * neither should carry a second copy. Moved as a block, not rule by rule, so
 * nothing could be missed on the way out.
 * Loads AFTER css/omnivalve-2025.css (head-2025.php); keep it that way.
 */
        /* Support Page - Category Selection */
        
        .support-header {
            background: linear-gradient(135deg, #0b1a2a 0%, #112a3d 50%, #0e2233 100%);
            padding: 30px 0 0 0;
            color: white;
            position: relative;
            overflow: hidden;
            border-bottom: 3px solid rgba(0, 136, 204, 0.45);
        }

        /* Animated gradient orbs */
        .support-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(0, 136, 204, 0.1) 0%, rgba(20, 60, 100, 0.3) 40%, transparent 70%);
            border-radius: 50%;
            animation: float 15s ease-in-out infinite;
        }

        .support-header::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -5%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(0, 150, 200, 0.12) 0%, rgba(20, 50, 90, 0.3) 40%, transparent 70%);
            border-radius: 50%;
            animation: float 12s ease-in-out infinite reverse;
        }
        
        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, -20px) scale(1.05); }
        }
        
        /* Grid pattern overlay */
        .hero-pattern {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            pointer-events: none;
        }
        
        /* Diagonal accent lines */
        .hero-accents {
            position: absolute;
            top: 0;
            right: 0;
            width: 40%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }
        
        .hero-accents::before,
        .hero-accents::after {
            content: '';
            position: absolute;
            width: 200%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transform-origin: right center;
        }
        
        .hero-accents::before {
            top: 30%;
            right: 0;
            transform: rotate(-15deg);
        }
        
        .hero-accents::after {
            top: 60%;
            right: 0;
            transform: rotate(-15deg);
        }
        
        .support-header .container {
            position: relative;
            z-index: 1;
        }
        
        .support-title {
            text-align: center;
            padding-bottom: 25px;
        }
        
        .support-title h1 {
            font-size: 2.2rem;
            font-weight: 700;
            margin: 0 0 0.4rem 0;
            color: #ffffff;
            letter-spacing: -0.02em;
        }

        .support-title h1::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background: #0088cc;
            margin: 10px auto 0;
            border-radius: 2px;
        }

        .support-title p {
            color: rgba(255,255,255,0.7);
            margin: 0;
            font-size: 1.05rem;
        }
        
        /* Category Tabs */
        .category-tabs {
            display: grid;
            /* minmax(0, 1fr), NOT 1fr. A bare 1fr track is minmax(auto, 1fr), so a
               grid item whose content will not shrink pushes its own track wider
               than its share — which is why "Get Help" (description: "Report a
               product issue or ask a general question") rendered noticeably wider
               than "AI Assistant" once there were only two tabs. minmax(0, 1fr)
               lets the text wrap and keeps the tracks equal.
               Column count matches the number of tabs: it was left at 3 when the
               Supplier Application tab moved to its own page on 2026-09-21, which
               also left a dead third of the bar empty. */
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0;
            background: rgba(255,255,255,0.05);
            border-radius: 12px 12px 0 0;
            overflow: hidden;
        }
        
        .category-tab {
            padding: 20px 15px;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            background: transparent;
            color: rgba(255,255,255,0.7);
            border-bottom: 3px solid transparent;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
        }
        
        .category-tab:hover {
            background: rgba(255,255,255,0.08);
            color: white;
        }
        
        .category-tab.active {
            background: white;
            color: #333;
            border-bottom: 3px solid #0088cc;
        }
        
        .category-tab-icon {
            width: 48px;
            height: 48px;
            margin: 0;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            transition: all 0.3s ease;
        }

        /* Compact tab bar once a tab has been selected */
        .category-tabs.compact .category-tab {
            padding: 10px 15px;
        }
        .category-tabs.compact .category-tab-icon {
            width: 32px;
            height: 32px;
            font-size: 1.35rem;
        }
        .category-tabs.compact .tab-desc {
            display: none;
        }
        
        .category-tab-icon i {
            transition: all 0.3s ease;
        }
        
        .category-tab.active .category-tab-icon i {
            color: #0088cc;
        }
        
        .category-tab h3 {
            font-size: 0.95rem;
            font-weight: 600;
            margin: 0 0 6px 0;
        }

        .category-tab .tab-desc {
            font-size: 0.9rem;
            opacity: 0.8;
            margin: 0;
        }
        
        .category-tab.active .tab-desc {
            color: #666;
        }
        
        /* AI Assistant Tab - Special Styling */
        .category-tab[data-category="livesupport"] .category-tab-icon {
            position: relative;
        }
        
        .ai-icon-wrap {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(30, 58, 95, 0.35);
            transition: all 0.3s ease;
        }
        
        .category-tab.active .ai-icon-wrap {
            background: linear-gradient(135deg, #0077b6 0%, #0096d6 100%);
            box-shadow: 0 4px 16px rgba(0, 119, 182, 0.4);
        }
        
        .ai-icon-wrap svg {
            width: 26px;
            height: 26px;
            fill: rgba(255,255,255,0.85);
            transition: all 0.3s ease;
        }
        
        .category-tab.active .ai-icon-wrap svg {
            fill: #ffffff;
        }
        
        .category-tab[data-category="livesupport"] .live-indicator {
            position: absolute;
            top: 0px;
            right: 0px;
            width: 10px;
            height: 10px;
            background: #16a34a;
            border-radius: 50%;
            border: 2px solid #1a2332;
            animation: pulse-live 2s ease-in-out infinite;
        }
        
        .category-tab.active[data-category="livesupport"] .live-indicator {
            border-color: #ffffff;
        }
        
        .category-tab[data-category="livesupport"] .live-indicator.offline {
            background: #dc2626;
            animation: none;
        }
        
        @keyframes pulse-live {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(1.2); }
        }
        
        /* Form Section */
        .form-section {
            background: white;
            min-height: 500px;
        }
        
        .form-panel {
            display: none;
            padding: 0;
        }
        
        .form-panel.active {
            display: block;
        }
        
        .form-panel iframe {
            width: 100%;
            border: none;
            display: block;
        }

        /* Sub-toggle inside the combined Problem/Inquiry tab */
        .support-subtoggle {
            display: flex;
            justify-content: center;
            gap: 6px;
            max-width: 480px;
            margin: 1.75rem auto 1rem;
            background: #eef1f5;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 5px;
        }
        .support-subtoggle button {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0.7rem 1rem;
            border: none;
            background: transparent;
            color: #64748b;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 9px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .support-subtoggle button:hover {
            color: #903C3C;
        }
        .support-subtoggle button.active {
            background: #ffffff;
            color: #903C3C;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12);
        }
        .sub-panel {
            display: none;
        }
        .sub-panel.active {
            display: block;
        }

        /* Dark mode for the sub-toggle */
        [data-theme="dark"] .support-subtoggle {
            background: #0f172a;
            border-color: #334155;
        }
        [data-theme="dark"] .support-subtoggle button {
            color: #94a3b8;
        }
        [data-theme="dark"] .support-subtoggle button:hover {
            color: #e59a86;
        }
        [data-theme="dark"] .support-subtoggle button.active {
            background: #1e293b;
            color: #e59a86;
        }

        /* Native Form Container */
        .native-form-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 30px;
        }
        


        /* Progress Bar */
        .form-progress {
            margin-bottom: 28px;
        }

        .progress-bar {
            height: 4px;
            background: #e5e7eb;
            border-radius: 2px;
            margin-bottom: 14px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #0088cc, #00a8e8);
            width: 33.33%;
            transition: width 0.4s ease;
            border-radius: 2px;
        }
        
        .progress-steps {
            display: flex;
            justify-content: space-between;
        }
        
        .progress-step {
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0.4;
            transition: opacity 0.3s ease;
        }
        
        .progress-step.active,
        .progress-step.completed {
            opacity: 1;
        }
        
        .step-number {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #e5e7eb;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }
        
        .progress-step.active .step-number {
            background: #0088cc;
            color: white;
        }
        
        .progress-step.completed .step-number {
            background: #16a34a;
            color: white;
        }
        
        .step-label {
            font-size: 0.78rem;
            font-weight: 500;
            color: #374151;
        }
        
        /* Product picker (Problem Reporting step 1). Icons + category colors are
           lifted from the products page card-cat-icon set, so the tile the
           customer clicks here looks like the product they clicked there. */
        .product-pick-grid {
            display: grid;
            /* full-width rows: four model tags plus the check badge need the
               room to stay inline next to the product name */
            grid-template-columns: 1fr;
            gap: 10px;
        }
        /* Three columns inline: icon, product line, model tags. */
        .product-pick {
            position: relative;
            display: grid;
            grid-template-columns: 40px 1fr auto;
            align-items: center;
            gap: 14px;
            text-align: left;
            background: #fff;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            padding: 14px 42px 14px 14px;
            cursor: pointer;
            font: inherit;
            transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }
        .product-pick:hover {
            border-color: #0088cc;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 136, 204, 0.12);
        }
        .product-pick.selected {
            border-color: #0088cc;
            background: linear-gradient(135deg, #fff 0%, #f1f9fe 100%);
            box-shadow: 0 4px 14px rgba(0, 136, 204, 0.18);
        }
        .product-pick.selected .pp-check { opacity: 1; }
        /* Same product line-drawings the Get a Quote page uses for its category
           tabs, dimmed until chosen exactly like rfq.php's .category-tab-icon. */
        .pp-img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 8px;
            opacity: 0.5;
            transition: opacity 0.18s ease;
        }
        .product-pick:hover .pp-img { opacity: 0.7; }
        .product-pick.selected .pp-img { opacity: 1; }
        .pp-model {
            font-weight: 700;
            color: #1e293b;
            font-size: 0.92rem;
            line-height: 1.25;
            text-align: left;
            white-space: nowrap;
        }
        .pp-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 4px;
        }
        .pp-tag {
            font-size: 0.62rem;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            background: #eef2f6;
            color: #64748b;
        }
        .product-pick.selected .pp-tag { background: #0088cc; color: #fff; }
        .pp-check {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            color: #0088cc;
            opacity: 0;
            transition: opacity 0.18s ease;
        }
        .product-pick-error {
            color: #dc2626;
            font-size: 0.82rem;
            margin-top: 12px;
            display: none;
        }
        .product-pick-error.show { display: block; }
        /* Read-back of the step 1 choice on the Product Details step */
        .chosen-product {
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 11px 14px;
            background: #f8fafc;
        }
        .chosen-product .cp-icon {
            flex: 0 0 auto;
            width: 38px;
            height: 38px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #475569 0%, #64748b 100%);
            color: #fff;
            font-size: 0.85rem;
        }
        .chosen-product .cp-icon.has-img { background: none; }
        .chosen-product .cp-icon .pp-img { width: 38px; height: 38px; opacity: 1; margin: 0; }
        .chosen-product .pp-text { display: flex; flex-direction: column; min-width: 0; }
        .chosen-product .cp-label {
            font-size: 0.66rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #6b7280;
            font-weight: 700;
        }
        .chosen-product .cp-value { font-weight: 700; color: #1e293b; font-size: 0.9rem; }
        .chosen-product .cp-change {
            margin-left: auto;
            background: none;
            border: none;
            padding: 0;
            color: #0088cc;
            font: inherit;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: underline;
            white-space: nowrap;
        }


        /* Form Steps */
        .form-step {
            display: none;
            animation: fadeIn 0.4s ease;
        }
        
        .form-step.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .step-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .step-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }
        
        .step-title h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1f2937;
            margin: 0 0 4px 0;
        }
        
        .step-title p {
            font-size: 0.9rem;
            color: #6b7280;
            margin: 0;
        }
        
        /* Form Grid */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .form-grid.cols-4 {
            grid-template-columns: repeat(4, 1fr);
        }
        
        .form-group.span-2 {
            grid-column: span 2;
        }
        
        /* Form Groups */
        .modern-form .form-group {
            margin-bottom: 0;
        }
        
        .modern-form .form-group label {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }
        
        .modern-form .form-group label .required {
            color: #dc2626;
        }
        
        .modern-form .form-group input,
        .modern-form .form-group select,
        .modern-form .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.2s ease;
            background: #fff;
            box-sizing: border-box;
        }
        
        .modern-form .form-group input:focus,
        .modern-form .form-group select:focus,
        .modern-form .form-group textarea:focus {
            outline: none;
            border-color: #0088cc;
            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
        }
        
        .modern-form .form-group input.error,
        .modern-form .form-group select.error,
        .modern-form .form-group textarea.error {
            border-color: #dc2626;
        }
        
        .modern-form .form-group input::placeholder,
        .modern-form .form-group textarea::placeholder {
            color: #9ca3af;
        }
        
        .field-error {
            display: block;
            font-size: 0.8rem;
            color: #dc2626;
            margin-top: 5px;
            min-height: 18px;
        }

        .id-toggle {
            display: inline-flex;
            border: 1px solid #cbd2da;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        .id-toggle-opt {
            background: #fff;
            border: none;
            padding: 9px 18px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #6b7280;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
        }
        .id-toggle-opt + .id-toggle-opt { border-left: 1px solid #cbd2da; }
        .id-toggle-opt.active { background: #0088cc; color: #fff; }

        /* File Upload Zone */
        .file-upload-zone {
            border: 2px dashed #d1d5db;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f9fafb;
            position: relative;
        }
        
        .file-upload-zone:hover,
        .file-upload-zone.dragover {
            border-color: #0088cc;
            background: #f0f9ff;
        }
        
        .file-upload-zone .file-input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }
        
        .upload-content i {
            font-size: 2.5rem;
            color: #9ca3af;
            margin-bottom: 15px;
        }
        
        .file-upload-zone:hover .upload-content i,
        .file-upload-zone.dragover .upload-content i {
            color: #0088cc;
        }
        
        .upload-content p {
            margin: 0 0 8px 0;
            color: #374151;
            font-weight: 500;
        }
        
        .browse-link {
            color: #0088cc;
            text-decoration: underline;
        }
        
        .upload-hint {
            font-size: 0.8rem;
            color: #9ca3af;
        }
        
        .file-list {
            margin-top: 15px;
        }
        
        .file-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
            background: #f3f4f6;
            border-radius: 8px;
            margin-bottom: 8px;
        }
        
        .file-item .file-name {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            color: #374151;
        }
        
        .file-item .file-name i {
            color: #0088cc;
        }
        
        .file-item .remove-file {
            background: none;
            border: none;
            color: #dc2626;
            cursor: pointer;
            padding: 5px;
            font-size: 1rem;
        }
        
        /* Step Actions */
        .step-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 30px;
            padding-top: 30px;
            border-top: 1px solid #e5e7eb;
        }
        
        .btn-back,
        .btn-next,
        .btn-submit {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }
        
        .btn-back {
            background: #f3f4f6;
            color: #374151;
        }
        
        .btn-back:hover {
            background: #e5e7eb;
        }
        
        .btn-next {
            background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
            color: white;
        }
        
        .btn-next:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
        }
        
        .btn-submit {
            background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
            color: white;
        }
        
        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
        }
        
        .btn-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Mobile Responsive for Modern Form */
        @media (max-width: 768px) {
            .native-form-container {
                padding: 25px 20px;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .form-grid.cols-4 {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .form-group.span-2 {
                grid-column: span 1;
            }
            
            .progress-steps {
                gap: 10px;
            }
            
            .step-label {
                display: none;
            }
            
            .step-header {
                flex-direction: column;
                text-align: center;
            }
            
            .step-actions {
                flex-direction: column;
                gap: 15px;
            }
            
            .btn-back,
            .btn-next,
            .btn-submit {
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            .form-grid.cols-4 {
                grid-template-columns: 1fr;
            }
        }
        
        /* Supplier Form Specific Styles */
        .section-subtitle {
            font-size: 0.95rem;
            font-weight: 700;
            color: #1f2937;
            padding: 12px 0 8px;
            margin: 20px 0 12px;
            border-bottom: 2px solid #e5e7eb;
            letter-spacing: 0.02em;
        }
        
        .section-subtitle:first-child {
            margin-top: 0;
        }
        
        .sup-note {
            background: #fffbeb;
            border-left: 4px solid #d97706;
            padding: 12px 16px;
            margin: 12px 0 20px;
            font-size: 0.85rem;
            color: #92400e;
            border-radius: 0 6px 6px 0;
            line-height: 1.5;
        }
        
        .sup-note strong {
            color: #78350f;
        }
        
        .question-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 10px 0;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .question-row:last-child {
            border-bottom: none;
        }
        
        .question-row label {
            flex: 1;
            font-size: 0.9rem;
            color: #374151;
            line-height: 1.4;
            font-weight: 400;
        }
        
        .question-row select {
            min-width: 120px;
            max-width: 140px;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 0.9rem;
            color: #374151;
            background: #fff;
            cursor: pointer;
            transition: border-color 0.2s ease;
            flex-shrink: 0;
        }
        
        .question-row select:focus {
            outline: none;
            border-color: #0088cc;

            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
        }
        
        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 8px;
            margin: 8px 0 16px;
        }
        
        .checkbox-grid.cols-2 {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .checkbox-grid label {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.88rem;
            color: #374151;
            transition: all 0.2s ease;
            background: #fff;
        }
        
        .checkbox-grid label:hover {
            border-color: #0088cc;
            background: #f0f9ff;
        }
        
        .checkbox-grid input[type="checkbox"] {
            accent-color: #0088cc;
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
        
        .checkbox-grid input[type="checkbox"]:checked + span {
            color: #0088cc;
            font-weight: 500;
        }
        
        .checkbox-other-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 0.88rem;
            margin-top: 4px;
        }
        
        .signature-pad-wrapper {
            border: 2px dashed #d1d5db;
            border-radius: 8px;
            background: #fafafa;
            position: relative;
            overflow: hidden;
            transition: border-color 0.2s ease;
        }
        
        .signature-pad-wrapper:hover,
        .signature-pad-wrapper.active {
            border-color: #0088cc;
        }
        
        .signature-pad-wrapper canvas {
            display: block;
            width: 100%;
            height: 200px;
            cursor: crosshair;
        }
        
        .signature-actions {
            display: flex;
            justify-content: flex-end;
            padding: 8px 12px;
            background: #f9fafb;
            border-top: 1px solid #e5e7eb;
        }
        
        .signature-actions button {
            background: none;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            padding: 4px 12px;
            font-size: 0.8rem;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .signature-actions button:hover {
            background: #fee2e2;
            border-color: #fca5a5;
            color: #dc2626;
        }
        
        .form-info-text {
            font-size: 0.82rem;
            color: #6b7280;
            margin: 2px 0 0;
            font-style: italic;
        }
        
        /* Supplier form mobile adjustments */
        @media (max-width: 768px) {
            .question-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .question-row select {
                width: 100%;
                max-width: none;
            }
            
            .checkbox-grid {
                grid-template-columns: 1fr;
            }
            
            .checkbox-grid.cols-2 {
                grid-template-columns: 1fr;
            }
        }
        
        /* Loading State */
        .form-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 80px 20px;
            text-align: center;
        }
        
        .form-loading.hidden {
            display: none;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e0e0e0;
            border-top-color: #0088cc;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* AI Assistant Panel */
        .live-support-panel {
            padding: 40px 20px;
            text-align: center;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .live-support-status {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 50px;
            margin-bottom: 25px;
            font-weight: 600;
            color: #166534;
        }
        
        .live-support-status.offline {
            background: #fef2f2;
            border-color: #fecaca;
            color: #991b1b;
        }
        
        .live-support-status .status-dot {
            width: 10px;




            height: 10px;
            background: #16a34a;
            border-radius: 50%;
            animation: pulse-live 2s ease-in-out infinite;
        }
        
        .live-support-status.offline .status-dot {
            background: #dc2626;
            animation: none;
        }
        
        .live-support-panel h2 {
            font-size: 1.5rem;
            margin: 0 0 10px 0;
            color: #1f2937;
        }
        
        .live-support-panel .support-desc {
            color: #6b7280;
            margin: 0 0 30px 0;
            line-height: 1.6;
        }
        
        .live-support-hours {
            background: #f9fafb;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 30px;
        }
        
        .live-support-hours h4 {
            margin: 0 0 10px 0;
            font-size: 0.9rem;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .live-support-hours p {
            margin: 0;
            color: #6b7280;
            font-size: 0.95rem;
        }
        
        .btn-start-chat {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 15px 35px;
            background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .btn-start-chat:hover {
            background: linear-gradient(135deg, #0077bb 0%, #005599 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
        }
        
        .btn-start-chat:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .btn-start-chat i {
            font-size: 1.2rem;
        }
        
        .offline-message {
            background: #fef3c7;
            border: 1px solid #fcd34d;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
        }
        
        .offline-message p {
            margin: 0;
            color: #92400e;
        }
        
        .offline-message a {
            color: #92400e;
            font-weight: 600;
        }
        
        /* Help Bar */
        .help-bar {
            background: #f8f9fa;
            padding: 20px 0;
            text-align: center;
            border-top: 1px solid #e0e0e0;
        }
        
        .help-bar p {
            margin: 0;
            color: #666;
            font-size: 0.95rem;
        }
        
        .help-bar a {
            color: #0088cc;
            font-weight: 600;

            text-decoration: none;
        }
        
        .help-bar a:hover {
            text-decoration: underline;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .category-tabs {
                grid-template-columns: 1fr;
            }
            
            .category-tab {
                padding: 15px;
                display: flex;
                align-items: center;
                text-align: left;
                gap: 15px;
            }
            
            .category-tab-icon {
                margin: 0;
                width: 40px;
                height: 40px;
                font-size: 1.5rem;
            }
            
            .category-tab h3 {
                margin: 0;
            }
            
            .category-tab .tab-desc {
                display: none;
            }
            

            .support-title h1 {
                font-size: 1.5rem;
            }
            
            .live-support-panel {
                padding: 30px 15px;
            }
        }
