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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #374151;
}

.av-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.av-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.av-logo {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
}

.av-logo span {
    color: #2563eb;
}

.av-nav {
    display: flex;
    gap: 30px;
}

.av-nav a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.av-nav a:hover,
.av-nav a.active {
    color: #2563eb;
}

.av-header-flags {
    display: flex;
    gap: 10px;
}

.av-header-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.av-header-flag:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.av-header-flag.active {
    opacity: 1;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.av-main {
    padding-top: 100px;
    padding-bottom: 60px;
}

.av-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.av-lang-switcher {
    text-align: center;
    margin-bottom: 20px;
}

.av-lang-btn {
    background: none;
    border: none;
    font-size: 20px;
    margin: 0 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.av-lang-btn:hover {
    opacity: 0.8;
}

.av-lang-btn.active {
    opacity: 1;
    font-weight: bold;
}

.av-form-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f3f4f6;
}

.av-title {
    color: #111827;
    margin: 0 0 10px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.av-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 16px;
}

.av-loading {
    display: none;
    margin: 40px 0;
}

.av-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: avisionSpin 1s linear infinite;
    margin: 0 auto;
}

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

.av-loading-text {
    color: #111827;
    font-weight: 600;
    margin-top: 20px;
    font-size: 18px;
}

.av-loading-sub {
    color: #6b7280;
    font-size: 14px;
}

.av-form {
    text-align: left;
}

.av-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.av-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    background: #f9fafb;
    transition: 0.3s;
    font-family: inherit;
}

.av-input:focus {
    border-color: #2563eb;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.av-submit-btn {
    width: 100%;
    background: #111827;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.av-submit-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.av-trust-box {
    margin-top: 25px;
    text-align: left;
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.av-trust-title {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.av-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.av-trust-list li {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.av-comparison-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.av-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 40px;
}

.av-comp-table-container {
    overflow-x: auto;
}

.av-comp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.av-comp-th {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    width: 50%;
    font-weight: 700;
}

.av-comp-th.av-agency {
    background: #6b7280;
}

.av-comp-th.av-avi {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.av-comp-td {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    color: #374151;
}

.av-check {
    color: #10b981;
    font-weight: bold;
    font-size: 18px;
}

.av-cross {
    color: #ef4444;
    font-weight: bold;
    font-size: 18px;
}

.av-demo-section {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.av-demo-title {
    text-align: center;
    font-size: 20px;
    color: #111827;
    margin-bottom: 20px;
}

.av-demo-chat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.av-demo-msg-user {
    background: #dbeafe;
    color: #1e40af;
    padding: 10px 15px;
    border-radius: 12px 12px 0 12px;
    margin-bottom: 15px;
    text-align: right;
    margin-left: auto;
    max-width: 80%;
    font-size: 14px;
}

.av-demo-msg-avi {
    background: #fff;
    color: #334155;
    padding: 12px 15px;
    border-radius: 12px 12px 12px 0;
    border: 1px solid #e2e8f0;
    max-width: 90%;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.av-demo-avatar {
    font-size: 20px;
    flex-shrink: 0;
}

.av-reviews-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.av-reviews-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.av-reviews-scroll::-webkit-scrollbar {
    height: 8px;
}

.av-reviews-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.av-reviews-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.av-review-card {
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: start;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.av-stars {
    color: #f59e0b;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.av-review-text {
    font-style: italic;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.av-review-author {
    font-weight: 700;
    color: #111827;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.av-author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.av-av-1 { background: #f87171; }
.av-av-2 { background: #fbbf24; }
.av-av-3 { background: #34d399; }
.av-av-4 { background: #60a5fa; }
.av-av-5 { background: #818cf8; }
.av-av-6 { background: #f472b6; }

.av-cta-section {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    margin-top: 40px;
}

.av-cta-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    padding: 18px 35px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.av-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

.av-cta-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.av-trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.av-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.av-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.av-chat-btn {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    animation: avPulse 2s infinite;
}

.av-chat-btn:hover {
    transform: scale(1.1);
}

@keyframes avPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.av-chat-icon {
    font-size: 30px;
}

.av-chat-tooltip {
    position: absolute;
    right: 70px;
    background: #111827;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.av-chat-btn:hover .av-chat-tooltip {
    opacity: 1;
    right: 75px;
}

.av-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    border: 1px solid #e5e7eb;
    transform-origin: bottom right;
    animation: avChatPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.av-chat-header {
    background: #111827;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.av-chat-status {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
}

.av-chat-body {
    padding: 20px;
    background: #f9fafb;
    height: 200px;
    overflow-y: auto;
}

.av-chat-msg {
    background: #fff;
    padding: 12px;
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
}

.av-chat-input-area {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.av-chat-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f3f4f6;
    cursor: not-allowed;
    font-size: 13px;
    font-family: inherit;
}

@media (max-width: 768px) {
    .av-header-container {
        padding: 15px 20px;
    }
    
    .av-nav {
        display: none;
    }
    
    .av-form-card {
        padding: 1.5rem;
    }
    
    .av-title {
        font-size: 24px;
    }
    
    .av-section-title {
        font-size: 22px;
    }
    
    .av-comp-th {
        font-size: 14px;
        padding: 15px 10px;
    }
    
    .av-comp-td {
        font-size: 13px;
        padding: 12px 10px;
    }
    
    .av-review-card {
        min-width: 260px;
        max-width: 260px;
    }
    
    .av-cta-btn {
        font-size: 16px;
        padding: 15px 25px;
    }
}

/* GBP category select — local-audit form */
.avision-category-field {
    margin-bottom: 1em;
}
.avision-category-search {
    margin-bottom: 0.5em;
}
.av-form-select,
.av-form-select.av-input {
    display: block;
    width: 100%;
    min-height: 2.5em;
}
