/* Bubble CTA Styles */
.bubble-cta-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    transition: all 0.5s ease;
    transform: translateY(0);
}

.bubble-cta-container.hidden {
    transform: translateY(200%);
}

.bubble-cta-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bright-aqua) 0%, var(--deep-teal) 100%);
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.bubble-cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.bubble-cta-button span {
    position: relative;
    z-index: 1;
}

/* Bubble Animation */
@keyframes bubble {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: bubble 1s ease-out forwards;
}

/* Overlay */
.bubble-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    overflow: hidden;
}

.bubble-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bubble Background */
.bubble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble-bg span {
    position: absolute;
    bottom: -50px;
    background: rgba(0, 225, 217, 0.1);
    border-radius: 50%;
    animation: float-up 15s infinite linear;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Form Styles */
.cta-form-container {
    position: relative;
    z-index: 2;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.bubble-overlay.active .cta-form-container {
    transform: scale(1);
    opacity: 1;
}

.close-cta {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-cta:hover {
    color: var(--deep-teal);
}

.cta-form h3 {
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.cta-form p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.cta-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-form .form-control:focus {
    border-color: var(--bright-aqua);
    box-shadow: 0 0 0 0.25rem rgba(0, 225, 217, 0.25);
}

.cta-form .btn {
    width: 100%;
    padding: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--bright-aqua) 0%, var(--deep-teal) 100%);
    border: none;
    transition: all 0.3s ease;
}

.cta-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    background: var(--light-green);
    color: var(--deep-teal);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px dashed var(--bright-aqua);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bubble-cta-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .bubble-cta-button {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }
    
    .cta-form-container {
        padding: 1.5rem;
    }
    
    .cta-form h3 {
        font-size: 1.5rem;
    }
}
