/**
 * Sticky Mobile CTA Styles
 * 
 * Creates a fixed bottom CTA bar for mobile devices to improve conversion rates
 */

/* Mobile Sticky CTA Container */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Show only on mobile devices (below 768px) */
@media (max-width: 767px) {
    .mobile-sticky-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

/* Hide when scrolling up (optional - can be controlled via JS) */
.mobile-sticky-cta.hidden {
    transform: translateY(100%);
}

/* CTA Buttons Container */
.mobile-sticky-cta__buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
    align-items: center;
}

/* Primary CTA Button */
.mobile-sticky-cta__button {
    flex: 1;
    padding: 5px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 52px;
    box-sizing: border-box;
}

/* 
 * ProBox Brand Colors - Applied
 * Quote Button (Left): #8DC740 (Light Green)
 * Call Button (Right): #0E4222 (Dark Green)
 */

/* Primary Button Style (Left button - "Get my quote") */
.mobile-sticky-cta__button--primary {
    background: #8DC740;
    color: #ffffff;
    border: 2px solid #8DC740;
}

.mobile-sticky-cta__button--primary:hover {
    background: #7AB635;
    color: #ffffff;
    border-color: #7AB635;
}

/* Secondary Button Style (Right button - "Call") */
.mobile-sticky-cta__button--secondary {
    background: #0E4222;
    color: #ffffff;
    border: 2px solid #0E4222;
}

.mobile-sticky-cta__button--secondary:hover {
    background: #0A311A;
    color: #ffffff;
    border-color: #0A311A;
}

/* Icon support in buttons */
.mobile-sticky-cta__button-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    vertical-align: middle;
}

/* Ensure icon fonts display properly */
.mobile-sticky-cta__button-icon i {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

/* Icon positioning for specific ProBox icons */
.mobile-sticky-cta__button-icon .icon-right-arrow {
    font-size: 14px;
}

.mobile-sticky-cta__button-icon .icon-phone-call1 {
    font-size: 16px;
}

/* Add bottom padding to body to prevent content from being hidden behind the sticky bar */
@media (max-width: 767px) {
    body.has-mobile-sticky-cta {
        padding-bottom: 80px;
    }
}

/* Adjust padding if WordPress admin bar is present */
@media (max-width: 767px) {
    body.admin-bar.has-mobile-sticky-cta {
        padding-bottom: 80px;
    }
}

/* Animation for initial load */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-sticky-cta.animate-in {
    animation: slideUp 0.3s ease-out;
}