/**
 * Animated CTA Banner Block Styles
 */

.animated-cta-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

@property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@supports (background: linear-gradient(var(--angle), #201E1E, #402022)) {
    .animated-cta-banner__background {
        background:
            linear-gradient(var(--angle), #201E1E, #402022),
            linear-gradient(calc(var(--angle) + 180deg), #7D2D3F, #402022);
        background-blend-mode: hard-light;
        animation: angleFlow 8s linear infinite;
    }
}

.animated-cta-banner__background {
    position: relative;
    width: 100%;
    padding: 80px 0;
    --angle: 0;
    background:
        linear-gradient(var(--angle), #201E1E, #402022),
        linear-gradient(calc(var(--angle) + 180deg), #7D2D3F, #402022);
    background-blend-mode: hard-light;
    animation: angleFlow 8s linear infinite;
    will-change: background, transform;
}

@keyframes angleFlow {
    to {
        --angle: 360deg;
    }
}

.animated-cta-banner__background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -30%,
            /* center above hero, so arc drops down */
            rgba(255, 45, 45, 0.35),
            rgba(255, 45, 45, 0.15) 30%,
            rgba(255, 45, 45, 0.05) 50%,
            transparent 80%);

    mix-blend-mode: screen;
    pointer-events: none;
    filter: blur(40px);
    animation: lightSweepU 12s ease-in-out infinite;
    transform-origin: 50% 0%;
    will-change: transform, filter;
}

@keyframes lightSweepU {
    0% {
        transform: rotate(-25deg) translateX(-30%) translateY(0);
    }

    50% {
        transform: rotate(25deg) translateX(30%) translateY(0);
    }

    100% {
        transform: rotate(-25deg) translateX(-30%) translateY(0);
    }
}

.animated-cta-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-cta-banner__shape {
    position: absolute;
    top: 0;
    left: 20%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.animated-cta-banner__text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 76px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    max-width: 650px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 43px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0.86px;
    color: white;
    background-image: url('../../../dist/images/cta-lines.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.animated-cta-banner__highlight {
    background: linear-gradient(90deg, #CB343B 0.77%, rgba(125, 45, 63, 0.40) 80.1%);
    color: #ffffff;
    padding: 4px;
    display: inline-block;
    margin: 0 4px;
}

.animated-cta-banner__button {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-left: 24px;
    border-radius: 110px;
    border: 1px solid #AC4A45;
    background: linear-gradient(51deg, #CB343B -24.28%, rgba(125, 45, 63, 0.20) 69.87%);
    transition: all 0.3s ease-in-out;
}

.animated-cta-banner__pill {
    display: flex;
    align-items: center;
}

.animated-cta-banner__arrow {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease-in-out;
}

.animated-cta-banner__button svg path {
    fill: #ED2738;
    transition: fill 0.3s ease-in-out;
}

.animated-cta-banner__pill:hover .animated-cta-banner__button {
    background: linear-gradient(51deg, #fff -24.28%, rgba(255, 255, 255, 0.20) 69.87%);
    color: #fff;
    border-color: #fff;
 }

 .animated-cta-banner__pill:hover .animated-cta-banner__button svg path  {
    fill: #fff;
 }

/* Responsive Styles */
/* Tablet (768px - 1919px) */
@media (max-width: 1919px) and (min-width: 768px) {
    .animated-cta-banner__container {
        padding: 50px 30px;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .animated-cta-banner__background {
        min-height: auto;
    }

    .animated-cta-banner__container {
        padding: 30px 20px;
    }

    .animated-cta-banner__text {
        font-size: 18px;
        padding: 14px 30px;
    }


    .animated-cta-banner__button {
        width: 56px;
        height: 56px;
    }

    .animated-cta-banner__arrow {
        width: 14px;
        height: 14px;
    }

    .animated-cta-banner__highlight {
        padding: 2px 12px;
        font-size: 18px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .animated-cta-banner__pill {
        display: flex;
    }

    .animated-cta-banner__highlight {
        font-size: 15px;
        padding: 2px 5px;
    }


    .animated-cta-banner__text {
        font-size: 15px;
        padding: 14px;
    }

    .animated-cta-banner__button {
        width: 50px;
        height: 50px;
        margin-left: 16px;
    }
}

/* Accessibility */
.animated-cta-banner__pill:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 4px;
}

.animated-cta-banner__pill:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .animated-cta-banner__background {
        animation: none;
        background-position: 0% 50%;
    }

    .animated-cta-banner__pill,
    .animated-cta-banner__button,
    .animated-cta-banner__arrow {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .animated-cta-banner__background {
        animation: none;
        background: #1a1a2e;
    }

    .animated-cta-banner__pill {
        border: 2px solid #333;
    }
}