/* Conversion Optimization Styles */

/* 
 * Sticky Mobile Bottom Action Bar 
 * Visible only on mobile/tablet devices to drive immediate calls/chats
 */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    height: 60px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-call-sticky {
    background-color: #f8f9fa;
    color: #333;
    border-top: 1px solid #eee;
}

.btn-whatsapp-sticky {
    background-color: #25d366;
    color: white;
}

/* Show only on mobile devices */
@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    /* Adjust floating buttons to not overlap with the bar */
    .whatsapp-float,
    .instagram-float {
        bottom: 70px !important;
        /* Move up above the 60px bar */
    }

    .instagram-float {
        bottom: 135px !important;
        /* Stack above WhatsApp */
    }
}

/* 
 * Free Demo / Water Check Modal 
 * A high-converting lead magnet popup
 */
.offer-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.offer-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 18px 18px 0 0;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.modal-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.close-offer {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: 0.2s;
}

.close-offer:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.offer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pulse-btn {
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 210, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

/* Mobile adjust for modal */
@media (max-width: 768px) {
    .offer-modal-content {
        width: 85%;
    }
}