/**
 * JW Dual Calendly CTA Styles
 */

/* Base Container */
.jw-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
}

/* Background */
.jw-cta__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.jw-cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.jw-cta__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

/* Background Hover Effects */
.jw-cta--bg-zoom:hover .jw-cta__bg {
    transform: scale(1.1);
}

/* Content */
.jw-cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

/* Title */
.jw-cta__title {
    margin: 0 0 15px;
    color: #ffffff;
}

/* Description */
.jw-cta__description {
    margin-bottom: 20px;
    color: #ffffff;
}

/* Buttons Container */
.jw-cta__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.jw-cta__buttons--horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.jw-cta__buttons--vertical {
    flex-direction: column;
}

/* Button Wrapper */
.jw-cta__button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Buttons */
.jw-cta__button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    min-width: 140px;
}

.jw-cta__button--new-client {
    background-color: #8B5CF6;
    color: #ffffff;
}

.jw-cta__button--new-client:hover {
    background-color: #7C3AED;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.jw-cta__button--returning-client {
    background-color: #10B981;
    color: #ffffff;
}

.jw-cta__button--returning-client:hover {
    background-color: #059669;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Price Labels */
.jw-cta__price {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* Animated Items Base State */
.jw-cta__animated-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Fade Up Animation */
.jw-cta--hover-fade-up .jw-cta__animated-item {
    opacity: 0;
    transform: translateY(20px);
}

.jw-cta--hover-fade-up:hover .jw-cta__animated-item {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Down Animation */
.jw-cta--hover-fade-down .jw-cta__animated-item {
    opacity: 0;
    transform: translateY(-20px);
}

.jw-cta--hover-fade-down:hover .jw-cta__animated-item {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Left Animation */
.jw-cta--hover-fade-left .jw-cta__animated-item {
    opacity: 0;
    transform: translateX(20px);
}

.jw-cta--hover-fade-left:hover .jw-cta__animated-item {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Right Animation */
.jw-cta--hover-fade-right .jw-cta__animated-item {
    opacity: 0;
    transform: translateX(-20px);
}

.jw-cta--hover-fade-right:hover .jw-cta__animated-item {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom In Animation */
.jw-cta--hover-zoom-in .jw-cta__animated-item {
    opacity: 0;
    transform: scale(0.8);
}

.jw-cta--hover-zoom-in:hover .jw-cta__animated-item {
    opacity: 1;
    transform: scale(1);
}

/* No Animation */
.jw-cta--hover-none .jw-cta__animated-item {
    opacity: 1;
    transform: none;
}

/* Staggered animation delays */
.jw-cta__title.jw-cta__animated-item {
    transition-delay: 0s;
}

.jw-cta__description.jw-cta__animated-item {
    transition-delay: 0.1s;
}

.jw-cta__buttons.jw-cta__animated-item {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 767px) {
    .jw-cta__buttons--horizontal {
        flex-direction: column;
    }
    
    .jw-cta__button {
        width: 100%;
        min-width: auto;
    }
}

/* Editor Styles - Always show content */
.elementor-editor-active .jw-cta__animated-item {
    opacity: 1 !important;
    transform: none !important;
}
