 :root {
            --primary: #0f172a;
            --accent:  #3b82f6;
            --bg:      #f8fafc;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            color: #1e293b;
        }

        /* Fix: replace @apply (broken with CDN) with real CSS */
        .input-field {
            width: 100%;
            padding: 0.625rem 1rem;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-family: 'Inter', sans-serif;
            color: #1e293b;
            outline: none;
            transition: box-shadow 0.2s, border-color 0.2s;
        }
        .input-field:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
        }
        .input-field.input-error {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
        }
        textarea.input-field { resize: vertical; }

        .label-text {
            display: block;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #64748b;
            margin-bottom: 6px;
        }

        .btn-primary {
            padding: 0.75rem 1.5rem;
            background: #0f172a;
            color: #fff;
            font-weight: 600;
            border-radius: 0.5rem;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background 0.2s, transform 0.15s;
            box-shadow: 0 4px 14px rgba(15,23,42,0.18);
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
        }
        .btn-primary:hover { background: #1e293b; transform: translateY(-1px); }

        .btn-secondary {
            padding: 0.6rem 1rem;
            background: #fff;
            color: #334155;
            font-weight: 500;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: background 0.15s;
            font-family: 'Inter', sans-serif;
            font-size: 0.875rem;
        }
        .btn-secondary:hover { background: #f8fafc; }

        .glass-card {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.4);
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #f1f5f9; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        /* Document type toggle */
        .doc-toggle {
            display: flex;
            background: #f1f5f9;
            border-radius: 10px;
            padding: 4px;
            gap: 2px;
        }
        .doc-toggle-btn {
            flex: 1;
            padding: 8px 16px;
            border-radius: 8px;
            border: none;
            background: transparent;
            font-family: 'Inter', sans-serif;
            font-size: 0.875rem;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
        }
        .doc-toggle-btn.active {
            background: #0f172a;
            color: #fff;
            box-shadow: 0 2px 8px rgba(15,23,42,0.2);
        }

        /* Validation error text */
        .field-error {
            font-size: 0.75rem;
            color: #ef4444;
            margin-top: 4px;
            display: none;
        }
        .field-error.visible { display: block; }

        /* Modal overlay */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15,23,42,0.5);
            backdrop-filter: blur(4px);
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }
        .modal-overlay.visible {
            opacity: 1;
            pointer-events: all;
        }
        .modal-box {
            background: #fff;
            border-radius: 16px;
            padding: 32px;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            transform: translateY(10px);
            transition: transform 0.2s;
        }
        .modal-overlay.visible .modal-box { transform: translateY(0); }

        /* PDF validation toast */
        .toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #ef4444;
            color: #fff;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 0.875rem;
            font-weight: 600;
            box-shadow: 0 8px 24px rgba(239,68,68,0.3);
            transform: translateY(80px);
            opacity: 0;
            transition: all 0.3s;
            z-index: 1000;
        }
        .toast.visible { transform: translateY(0); opacity: 1; }

       .main-container{
        max-width: 95%;
        margin-top: 2rem;
        padding:1rem;
       }
        
        .amqig__wrapper {
            --amqig-blue:    #2563eb;
            --amqig-blue-dk: #1d4ed8;
            --amqig-green:   #059669;
            --amqig-amber:   #d97706;
            --amqig-red:     #dc2626;
            --amqig-black:   #0f172a;
            --amqig-white:   #ffffff;
            --amqig-bg:      #f8fafc;
            --amqig-surface: #ffffff;
            --amqig-border:  #e2e8f0;
            --amqig-muted:   #64748b;
            --amqig-text:    #1e293b;

            font-family: 'Inter', ui-sans-serif, sans-serif;
            background: var(--amqig-bg);
            color: var(--amqig-text);
            padding: 64px 20px;
            box-sizing: border-box;
            width: 100%;
            margin-top: 48px;
        }
        .amqig__wrapper * { box-sizing: border-box; }
        .amqig__inner { max-width: 95%; margin: 0 auto; }

        /* Dividers */
        .amqig__divider { display: flex; align-items: center; gap: 14px; margin: 52px 0 30px; }
        .amqig__divider-line { flex: 1; height: 1px; background: var(--amqig-border); }
        .amqig__divider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amqig-blue); flex-shrink: 0; }

        /* Typography */
        .amqig__h2 { font-size: 1.55rem; font-weight: 800; color: var(--amqig-black); margin: 0 0 6px; line-height: 1.2; letter-spacing: -0.02em; }
        .amqig__h2 span { color: var(--amqig-blue); }
        .amqig__lead { font-size: 0.97rem; color: var(--amqig-muted); margin: 0 0 22px; line-height: 1.65; }
        .amqig__body { font-size: 0.97rem; line-height: 1.78; color: #334155; margin: 0 0 16px; }
        .amqig__body strong { color: var(--amqig-black); font-weight: 600; }

        /* Hero */
        .amqig__hero { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 55%, #1a1a2e 100%); border-radius: 16px; padding: 44px 40px; margin-bottom: 48px; position: relative; overflow: hidden; }
        .amqig__hero::after { content: 'PDF'; position: absolute; right: -10px; top: -20px; font-size: 9rem; font-weight: 800; color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none; user-select: none; }
        .amqig__hero-tag { display: inline-block; background: rgba(59,130,246,0.3); color: #93c5fd; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
        .amqig__hero-title { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
        .amqig__hero-title span { color: #93c5fd; }
        .amqig__hero-body { font-size: 0.95rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin: 0; max-width: 560px; }

        /* Tab toggle for Quote/Invoice content */
        .amqig__tab-nav { display: flex; gap: 4px; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 28px; width: fit-content; }
        .amqig__tab-btn { padding: 9px 24px; border-radius: 9px; border: none; background: transparent; font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--amqig-muted); cursor: pointer; transition: all 0.2s; }
        .amqig__tab-btn.amqig__active { background: var(--amqig-blue); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,0.25); }
        .amqig__tab-content { display: none; }
        .amqig__tab-content.amqig__visible { display: block; }

        /* Stats */
        .amqig__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
        .amqig__stat { background: var(--amqig-surface); border: 1px solid var(--amqig-border); border-radius: 12px; padding: 18px 16px; text-align: center; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
        .amqig__stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
        .amqig__stat::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--amqig-blue); }
        .amqig__stat-val { font-size: 1.8rem; font-weight: 800; color: var(--amqig-blue); line-height: 1; margin-bottom: 5px; }
        .amqig__stat-lbl { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amqig-muted); }

        /* Steps */
        .amqig__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
        .amqig__step { background: var(--amqig-surface); border: 1px solid var(--amqig-border); border-radius: 12px; padding: 20px; transition: box-shadow 0.2s; }
        .amqig__step:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
        .amqig__step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--amqig-blue); color: #fff; font-size: 0.78rem; font-weight: 800; margin-bottom: 10px; }
        .amqig__step-title { font-size: 0.9rem; font-weight: 700; color: var(--amqig-black); margin: 0 0 5px; }
        .amqig__step-body { font-size: 0.84rem; color: var(--amqig-muted); line-height: 1.6; margin: 0; }

        /* Comparison table */
        .amqig__table-wrap { overflow-x: auto; margin: 22px 0; border-radius: 12px; border: 1px solid var(--amqig-border); }
        .amqig__table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
        .amqig__table thead tr { background: var(--amqig-black); color: #fff; }
        .amqig__table th { padding: 12px 16px; text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
        .amqig__table td { padding: 12px 16px; border-bottom: 1px solid var(--amqig-border); color: var(--amqig-text); vertical-align: top; }
        .amqig__table tbody tr:last-child td { border-bottom: none; }
        .amqig__table tbody tr:nth-child(even) td { background: #f8fafc; }
        .amqig__table tbody tr:hover td { background: #eff6ff; }

        .amqig__badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
        .amqig__badge-blue  { background: #dbeafe; color: #1d4ed8; }
        .amqig__badge-green { background: #d1fae5; color: #065f46; }
        .amqig__badge-amber { background: #fef3c7; color: #92400e; }
        .amqig__badge-red   { background: #fee2e2; color: #991b1b; }

        /* Callout */
        .amqig__callout { border-left: 4px solid var(--amqig-blue); background: #eff6ff; border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0; }
        .amqig__callout p { font-size: 1rem; font-weight: 600; color: var(--amqig-black); line-height: 1.5; margin: 0; }
        .amqig__callout span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--amqig-muted); margin-top: 5px; }

        /* Warn */
        .amqig__warn { border-left: 4px solid var(--amqig-amber); background: #fffbeb; border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 20px 0; display: flex; gap: 12px; align-items: flex-start; }
        .amqig__warn-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
        .amqig__warn-text { font-size: 0.88rem; color: #78350f; line-height: 1.6; margin: 0; }
        .amqig__warn-text strong { color: #92400e; }

        /* Checklist */
        .amqig__checklist { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
        .amqig__checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: #334155; line-height: 1.6; }
        .amqig__check-icon { width: 18px; height: 18px; border-radius: 50%; background: #d1fae5; color: #059669; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
        .amqig__checklist li strong { color: var(--amqig-black); font-weight: 600; }

        /* FAQ */
        .amqig__faq-list { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
        .amqig__faq-item { background: var(--amqig-surface); border: 1px solid var(--amqig-border); border-radius: 12px; overflow: hidden; }
        .amqig__faq-q { width: 100%; background: none; border: none; text-align: left; padding: 18px 22px; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--amqig-black); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background 0.15s; }
        .amqig__faq-q:hover { background: #f8fafc; }
        .amqig__faq-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--amqig-blue); color: #fff; font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: transform 0.25s, background 0.2s; }
        .amqig__faq-item.amqig__open .amqig__faq-icon { transform: rotate(45deg); background: var(--amqig-red); }
        .amqig__faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 22px; }
        .amqig__faq-item.amqig__open .amqig__faq-a { max-height: 500px; }
        .amqig__faq-a p { font-size: 0.9rem; line-height: 1.75; color: #475569; margin: 0 0 18px; }
        .amqig__faq-a strong { color: var(--amqig-black); }

        /* Disclaimer */
        .amqig__disclaimer { background: #f1f5f9; border: 1px solid var(--amqig-border); border-radius: 12px; padding: 20px 24px; margin-top: 48px; display: flex; gap: 14px; align-items: flex-start; }
        .amqig__disclaimer-icon { font-size: 1.2rem; flex-shrink: 0; }
        .amqig__disclaimer-text { font-size: 0.82rem; color: var(--amqig-muted); line-height: 1.65; margin: 0; }
        .amqig__disclaimer-text strong { color: var(--amqig-text); }

        @media (max-width: 640px) {
            .amqig__hero { padding: 28px 22px; }
            .amqig__hero-title { font-size: 1.5rem; }
            .amqig__h2 { font-size: 1.3rem; }
            .amqig__stats { grid-template-columns: repeat(2,1fr); }
            .amqig__tab-nav { width: 100%; }
            .amqig__tab-btn { flex: 1; text-align: center; }
        }