/**
 * Sidebar CTA Module - Collabstr Style
 * Desktop: Sticky sidebar with 9px top padding
 * Mobile: Collapsed bottom bar (expandable)
 */

/* ========================================
   SIDEBAR CTA CARD - DESKTOP
   ======================================== */

.ac-spp-sidebar-cta {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 9px; /* 9px top padding as requested */
}

/* Hide mobile-only elements on desktop */
.ac-spp-cta-mobile-header,
.ac-spp-cta-mobile-close {
    display: none;
}

/* ========================================
   PRICING SECTION
   ======================================== */

.ac-spp-cta-pricing {
    text-align: center;
    margin-bottom: 20px;
}

.ac-spp-cta-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 6px;
}

.ac-spp-cta-price-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* ========================================
   PRIMARY CTA BUTTON
   ======================================== */

.ac-spp-cta-primary-btn {
    width: 100%;
    padding: 16px 24px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ac-spp-cta-primary-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.ac-spp-cta-primary-btn:active {
    transform: translateY(0);
}

.ac-spp-cta-primary-btn svg {
    flex-shrink: 0;
}

/* ========================================
   HOW IT WORKS LINK
   ======================================== */

.ac-spp-cta-help-link {
    text-align: center;
    margin-bottom: 20px;
}

.ac-spp-cta-help-link a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ac-spp-cta-help-link a:hover {
    color: #6366f1;
    text-decoration: underline;
}

/* ========================================
   DIVIDER
   ======================================== */

.ac-spp-cta-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

/* ========================================
   CONTACT METHODS
   ======================================== */

.ac-spp-cta-contact-methods {
    margin-bottom: 20px;
}

.ac-spp-cta-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.ac-spp-cta-contact-btn {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
}

.ac-spp-cta-contact-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.ac-spp-cta-contact-btn:last-child {
    margin-bottom: 0;
}

/* WhatsApp Button */
.ac-spp-cta-whatsapp {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.ac-spp-cta-whatsapp:hover {
    background: #20ba5a;
    border-color: #20ba5a;
    color: #ffffff;
}

/* Email Button */
.ac-spp-cta-email {
    background: #f9fafb;
    color: #1a1a1a;
}

.ac-spp-cta-email:hover {
    background: #f3f4f6;
}

/* Phone Button */
.ac-spp-cta-phone {
    background: #f9fafb;
    color: #1a1a1a;
}

.ac-spp-cta-phone:hover {
    background: #f3f4f6;
}

/* ========================================
   TRUST BADGE
   ======================================== */

.ac-spp-cta-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #ecfdf5;
    border-radius: 8px;
    color: #059669;
    font-size: 13px;
    font-weight: 500;
}

.ac-spp-cta-trust-badge svg {
    flex-shrink: 0;
}

/* ========================================
   MOBILE RESPONSIVE - COLLAPSED BOTTOM BAR
   ======================================== */

@media (max-width: 768px) {

    /* Fixed bottom bar */
    .ac-spp-sidebar-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 16px 16px 0 0;
        padding: 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    /* Mobile Collapsed Header (visible by default) */
    .ac-spp-cta-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        cursor: pointer;
        background: #ffffff;
        border-radius: 16px 16px 0 0;
    }

    .ac-spp-cta-mobile-price {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
    }

    .ac-spp-cta-expand-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #6366f1;
        color: #ffffff;
        border: none;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .ac-spp-cta-expand-btn:active {
        transform: scale(0.95);
    }

    .ac-spp-expand-icon {
        transition: transform 0.3s ease;
    }

    /* Full Content (hidden by default on mobile) */
    .ac-spp-cta-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 20px;
    }

    /* Expanded State */
    .ac-spp-sidebar-cta[data-expanded="true"] .ac-spp-cta-content {
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
    }

    .ac-spp-sidebar-cta[data-expanded="true"] .ac-spp-expand-icon {
        transform: rotate(180deg);
    }

    .ac-spp-sidebar-cta[data-expanded="true"] .ac-spp-expand-text::after {
        content: '';
    }

    /* Mobile Close Button (only visible when expanded) */
    .ac-spp-cta-mobile-close {
        display: none;
        width: 100%;
        padding: 12px;
        background: #f9fafb;
        border: none;
        border-top: 1px solid #e5e7eb;
        color: #666;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 20px;
    }

    .ac-spp-sidebar-cta[data-expanded="true"] .ac-spp-cta-mobile-close {
        display: flex;
    }

    /* Adjust content styling for mobile */
    .ac-spp-cta-pricing {
        margin-bottom: 16px;
    }

    .ac-spp-cta-price {
        font-size: 28px;
    }

    .ac-spp-cta-primary-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .ac-spp-cta-divider {
        margin: 16px 0;
    }

    .ac-spp-cta-contact-btn {
        padding: 11px 14px;
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .ac-spp-cta-mobile-header {
        padding: 14px 16px;
    }

    .ac-spp-cta-mobile-price {
        font-size: 15px;
    }

    .ac-spp-cta-expand-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .ac-spp-sidebar-cta[data-expanded="true"] .ac-spp-cta-content {
        padding: 16px;
    }

    .ac-spp-cta-price {
        font-size: 26px;
    }
}
