/* =========================================================
   CTA COMMUN
========================================================= */

.mdcf-cta {
    position: relative;
    margin: var(--mdcf-space-xl) 0;
    border-radius: var(--mdcf-radius-md);
    overflow: hidden;
    background: var(--mdcf-color-white);
    border: 1px solid var(--mdcf-color-border);
}

.mdcf-cta__inner {
    position: relative;
    z-index: 2;
    padding: var(--mdcf-space-lg);
    text-align: center;
}

.mdcf-cta__title {
    margin: 0 0 var(--mdcf-space-sm);
    color: var(--mdcf-color-primary);
}

.mdcf-cta__text {
    max-width: 720px;
    margin: 0 auto var(--mdcf-space-md);
    color: var(--mdcf-color-text);
}

.mdcf-cta__action {
    margin: var(--mdcf-space-md) 0 0;
}

/* =========================================================
   CTA IMAGE BACKGROUND
========================================================= */

.mdcf-cta--has-background {
    position: relative;
    min-height: 355px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: var(--mdcf-radius-md);
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mdcf-cta--has-background .mdcf-cta__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            90deg,
            rgba(32, 55, 69, 0.82) 0%,
            rgba(32, 55, 69, 0.55) 45%,
            rgba(32, 55, 69, 0.12) 100%
    );
}

.mdcf-cta--has-background .mdcf-cta__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: left;
}

.mdcf-cta--has-background .mdcf-cta__title {
    max-width: 820px;
    margin: 0 0 var(--mdcf-space-sm);
    color: var(--mdcf-color-white);
    line-height: 1.15;
    text-wrap: balance;
}

.mdcf-cta--has-background .mdcf-cta__text {
    max-width: 680px;
    margin: 0 0 var(--mdcf-space-md);
    color: var(--mdcf-color-white);
    font-size: 1.05rem;
    line-height: 1.6;
}

.mdcf-cta--has-background .mdcf-cta__action {
    margin: var(--mdcf-space-md) 0 0;
}

.mdcf-cta--has-background .button {
    background: var(--mdcf-color-white);
    color: var(--mdcf-color-primary);
    border-color: var(--mdcf-color-white);
}
