/**
 * Call to Action Block Frontend Styles
 */

/* CTA Container */
.zonkey-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zonkey-cta.cta-align-left {
    justify-content: flex-start;
}

.zonkey-cta.cta-align-right {
    justify-content: flex-end;
}

/* Shadow Variants */
.zonkey-cta.has-shadow.shadow-small {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.zonkey-cta.has-shadow.shadow-medium {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.zonkey-cta.has-shadow.shadow-large {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* CTA Inner */
.cta-inner {
    width: 100%;
}

/* CTA Icon */
.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cta-align-center .cta-icon {
    margin-left: auto;
    margin-right: auto;
}

.cta-align-left .cta-icon {
    margin-left: 0;
    margin-right: auto;
}

.cta-align-right .cta-icon {
    margin-left: auto;
    margin-right: 0;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
}

.cta-icon-image img {
    display: block;
}

/* CTA Title */
.cta-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

/* CTA Subtitle */
.cta-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

/* CTA Description */
.cta-description {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

.cta-description p {
    margin: 0 0 0.75rem 0;
}

.cta-description p:last-child {
    margin-bottom: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-align-center .cta-buttons {
    justify-content: center;
}

.cta-align-left .cta-buttons {
    justify-content: flex-start;
}

.cta-align-right .cta-buttons {
    justify-content: flex-end;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-speed, 0.3s) ease;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1.125rem;
    }

    .cta-description {
        font-size: 0.938rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-align-center .cta-buttons,
    .cta-align-left .cta-buttons,
    .cta-align-right .cta-buttons {
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 1.25rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .zonkey-cta {
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .cta-buttons {
        display: none;
    }
}

/* Disable animations if requested */
.disable-animations .cta-button {
    transition: none !important;
}
