/* ==========================================================================
   AI PILOTS — AGENCY FLEET AUDIT FLOATING DOCK & CONVERSION SYSTEM
   Engineered for maximum agency lead capture & zero performance drag
   ========================================================================== */

/* 1. Floating Conversion Dock (Desktop & Mobile) */
.fleet-dock-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 8px 10px 8px 18px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(2, 132, 199, 0.35);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(120px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.fleet-dock-wrap.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.fleet-dock-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    flex-shrink: 0;
    animation: dock-pulse 2s infinite ease-in-out;
}

@keyframes dock-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.fleet-dock-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.fleet-dock-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.fleet-dock-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.fleet-dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.fleet-dock-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

.fleet-dock-dismiss {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.fleet-dock-dismiss:hover {
    color: #ffffff;
}

/* 2. Instant Fleet Audit Modal Drawer */
.fleet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fleet-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.fleet-modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem;
    box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.fleet-modal-overlay.is-active .fleet-modal-card {
    transform: scale(1) translateY(0);
}

.fleet-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.fleet-modal-close:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.fleet-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid rgba(29, 78, 216, 0.2);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.fleet-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.fleet-modal-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.fleet-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 600px) {
    .fleet-form-grid {
        grid-template-columns: 1fr;
    }
}

.fleet-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.fleet-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.fleet-form-input, .fleet-form-select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}

.fleet-form-input:focus, .fleet-form-select:focus {
    border-color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.fleet-form-submit {
    width: 100%;
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.95rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.fleet-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.45);
}

.fleet-form-trust {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 0.76rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

/* 3. Exit Intent Micro-Banner */
.fleet-exit-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(29, 78, 216, 0.15);
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 640px;
    width: calc(100% - 32px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.fleet-exit-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 4. Form Target Focus Glow */
.form-target-glow {
    animation: form-glow-pulse 1.8s ease-in-out 2;
    border-color: #10b981 !important;
}

@keyframes form-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.35); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fleet-dock-wrap {
        left: 12px;
        right: 12px;
        bottom: 16px;
        border-radius: 14px;
        justify-content: space-between;
        padding: 10px 14px;
    }
    .fleet-dock-subtitle {
        display: none;
    }
    .fleet-modal-card {
        padding: 1.5rem;
    }
    .fleet-exit-banner {
        display: none; /* Hide exit banner on small mobile to avoid blocking viewport */
    }
}
