/* Floating Action Buttons for Officer Engagement */

/* Floating Container */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

/* Main Floating Button */
.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6);
}

.fab-main.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

/* Sub Buttons */
.fab-sub {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-actions.open .fab-sub {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-sub:nth-child(2) {
    transition-delay: 0.05s;
}

.fab-sub:nth-child(3) {
    transition-delay: 0.1s;
}

.fab-sub:nth-child(4) {
    transition-delay: 0.15s;
}

.fab-sub:nth-child(5) {
    transition-delay: 0.2s;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.1);
}

.fab-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.fab-btn.call {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.fab-btn.schedule {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.fab-btn.feedback {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.fab-label {
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Pulse Animation for Main Button */
@keyframes fab-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(34, 197, 94, 0.7), 0 0 0 10px rgba(34, 197, 94, 0.1);
    }
}

.fab-main:not(.active) {
    animation: fab-pulse 2s infinite;
}

/* Notification Badge */
.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky CTA Bar */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    padding: 0.75rem 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-bar .cta-text {
    color: white;
    font-weight: 500;
}

.sticky-cta-bar .cta-text strong {
    color: #fbbf24;
}

.sticky-cta-bar .cta-btn {
    background: white;
    color: #1e40af;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.sticky-cta-bar .cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Social Proof Banner */
.social-proof-floating {
    position: fixed;
    bottom: 6rem;
    left: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    z-index: 998;
    max-width: 280px;
    animation: slideIn 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.social-proof-floating .sp-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-proof-floating .sp-icon {
    width: 32px;
    height: 32px;
    background: rgba(74, 222, 128, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-proof-floating .sp-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.social-proof-floating .sp-text strong {
    color: #4ade80;
}

.social-proof-floating .sp-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    position: relative;
}

.urgency-banner strong {
    color: #fbbf24;
}

.urgency-banner .countdown {
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Testimonial Slider */
.officer-testimonials {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content .quote {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.testimonial-content .author {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.testimonial-content .author strong {
    color: #4ade80;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }

    .fab-main {
        width: 54px;
        height: 54px;
    }

    .fab-btn {
        width: 44px;
        height: 44px;
    }

    .fab-label {
        display: none;
    }

    .social-proof-floating {
        left: 1rem;
        right: 1rem;
        max-width: none;
        bottom: 5rem;
    }

    .sticky-cta-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
}