/* Promo section styles */
.calendly-promo {
    width: 300px;
    height: 200px;
    position: relative;
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: -4px -6px 14px rgba(0,0,0,0.1);
}

.promo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Animation styles */
.animate-slide-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-in.visible {
    opacity: 1;
}

.animate-fade-up {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.3s;
}

.animate-fade-up.visible {
    transform: translateY(0);
    opacity: 1;
}

.promo-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(255,255,255,1));
    padding: 10px;
    color: #333;
    text-align: center;
    min-height: calc(200px - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.promo-text {
    display: block;
    color: #000;
    /* text-shadow: 1px 1px 4px rgba(0,0,0,0.6); */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 100%;
}

.promo-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #6a1b9a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    width: 210px;
    border: 3px solid #4a0d6e;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
}

.promo-button.visible {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.promo-button:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(178, 146, 195, 0.4);
}

@media (max-width: 768px) {
    .promo-content {
        padding: 1.5rem;
    }
    
    .promo-text {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .promo-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .promo-img {
        height: 250px;
    }
}


/* Initial popup styles */
.popup-container {
    position: fixed;
    overflow: hidden;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #B292C3, #9575CD, #B292C3, #9575CD);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 3px solid #6a1b9a;
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    width: auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap:15px;
}

.popup-container.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.popup-container.hide {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.popup-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    color: #fff;
    transition: all 0.3s ease;
    flex: 1;
}

.arrow-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid #fff;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-container.show .arrow-button {
    transform: scale(1);
}

.popup-container.show .arrow-button.pulse {
    animation: arrowPulse 1s ease-in-out;
    animation-fill-mode: forwards;
}

.arrow-button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 110000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    box-sizing: border-box;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 10px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    margin-top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: #B292C3;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    background: #6a1b9a;
    transform: scale(1.1);
}

.modal-content h3 {
    color: #6a1b9a;
    margin: 30px 0 0 0;
    font-size: 20px;
    font-weight: bold;
}

.modal-content p {
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.calendly-inline-widget {
    width: 100%;
    min-width: 320px;
    height: 700px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #B292C3, #9575CD);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.modal-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 146, 195, 0.4);
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes arrowPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.arrow-button.pulse {
    animation: arrowPulse 1s ease-in-out !important;
}

/* Responsive design */
@media (max-width: 480px) {
    .violin-emoji {
        width: 40px;
        height: 40px;
    }
    .popup-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .popup-content {
        gap: 10px;
    }

    .popup-text {
        font-size: 16px;
    }   

    .cta-container {
        padding: 15px;
        max-width: none;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-overlay {
        align-items: flex-start;
        padding: 10px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 0;
        width: 100%;
        max-width: none;
        border-radius: 15px;
        max-height: 95vh;
    }
    
    .close-button {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
    
    .calendly-inline-widget {
        width: 100%;
        min-width: 320px;
        height: 500px;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .modal-content h3 {
        font-size: 18px;
    }
    
    .modal-content p {
        margin: 0 0 15px 0;
        font-size: 14px;
    }
}