/**
 * Petsure CTA Widget Styles
 *
 * Call-to-action section with position-aware button.
 *
 * @package Petsure_Core
 */

/* === Wrapper === */
.petsure-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 60px;
    border-radius: 20px;
    background: var(--petsure-accent);
    position: relative;
    overflow: hidden;
}

.petsure-cta-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/patterns/pattern-foot.png');
    background-repeat: repeat;
    background-size: 500px;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: plus-lighter;
}

.petsure-cta-wrapper>* {
    position: relative;
    z-index: 1;
}

/* === Content === */
.petsure-cta-content {
    flex: 1;
    min-width: 0;
}

.petsure-cta-title {
    font-size: 36px !important;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px !important;
    color: var(--petsure-primary) !important;
}

.petsure-cta-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px;
    color: rgba(var(--petsure-primary-rgb), 0.8);
}

/* === Actions row — phone + cta side by side === */
.petsure-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* === Button Wrapper === */
.petsure-cta-button-wrapper {
    display: flex;
}

/* === Image === */
.petsure-cta-image-wrapper {
    flex-shrink: 0;
    width: 40%;
    min-height: 500px;
}

.petsure-cta-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    position: absolute;
    object-position: bottom;
}

/* === Vertical Layout === */
.petsure-cta-layout-vertical {
    flex-direction: column;
    text-align: center;
}

.petsure-cta-layout-vertical .petsure-cta-description {
    max-width: 100%;
}

.petsure-cta-layout-vertical .petsure-cta-button-wrapper {
    justify-content: center;
}

.petsure-cta-layout-vertical .petsure-cta-image-wrapper {
    width: 100%;
    min-height: 300px;
    position: relative;
}

.petsure-cta-layout-vertical .petsure-cta-actions {
    justify-content: center;
    margin-top: 20px;
}

/* === Image Padding Compensation === */
.petsure-cta-layout-horizontal .petsure-cta-image-wrapper {
    margin: -80px -60px -80px 0;
}

.petsure-cta-layout-vertical .petsure-cta-image-wrapper {
    margin: 0 -60px -80px -60px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .petsure-cta-wrapper {
        flex-direction: column;
        padding: 60px 30px;
        gap: 30px;
    }

    .petsure-cta-image-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .petsure-cta-title {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .petsure-cta-wrapper {
        padding: 40px 20px;
    }

    .petsure-cta-title {
        font-size: 24px !important;
    }
}