/* Social Proof Floating Card 
    Position: Bottom Left (Desktop) / Coordinated Stack (Mobile)
*/
.social-proof-card {
    position: fixed;
    bottom: 24px; /* Base position on desktop */
    left: 24px;
    right: auto;
    z-index: 9999; /* Ensure it's on top of everything */
    
    background-color: #ffffff;
    border-left: 4px solid #006c4e; /* Brett Academy Cricket Green Accent */
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 46, 34, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 108, 78, 0.08);
    border-right: 1px solid rgba(0, 108, 78, 0.08);
    border-bottom: 1px solid rgba(0, 108, 78, 0.08);
    
    padding: 14px 18px;
    max-width: 320px;
    min-width: 280px;
    
    cursor: pointer;
    overflow: hidden;
    
    /* Animation States */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: bottom 0.35s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.4s ease, 
                box-shadow 0.3s ease;
    
    /* Font Handling */
    font-family: 'Open Sans', 'Montserrat', system-ui, sans-serif;
}

/* Mobile responsive layout & seamless coordination with Floating CTA */
@media (max-width: 768px) {
    .social-proof-card {
        bottom: 15px; /* Sits next to WhatsApp when floating CTA is hidden */
        left: 15px;
        right: 85px;
        max-width: none;
        min-width: 0;
        padding: 12px 16px;
    }

    /* When the Floating Join CTA is active, smoothly slide the toast above it */
    body.has-floating-cta .social-proof-card {
        bottom: 74px;
        right: 15px;
    }
}

/* Visible State */
.social-proof-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Exiting State */
.social-proof-card.exiting {
    opacity: 0;
    transform: translateY(20px);
}

/* Inner Layout */
.social-proof-card .sp-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

/* Icon */
.social-proof-card .sp-icon {
    font-size: 24px;
    background: #e6f4ea; /* Light emerald green bg */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #006c4e;
    flex-shrink: 0;
}

/* Text */
.social-proof-card .sp-text {
    flex: 1;
}

.social-proof-card .sp-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.social-proof-card .sp-subtitle {
    margin: 2px 0 0 0;
    font-size: 11.5px;
    color: #64748b;
}

/* Close Button */
.social-proof-card .sp-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    transition: color 0.2s ease;
}

.social-proof-card .sp-close:hover {
    color: #0f172a;
}

/* Hover Effect on Card */
.social-proof-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 46, 34, 0.16);
}
