/**
 * CTA Box Plugin CSS
 */

/* Banner styles */
.cta-box-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    gap:15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Remove padding when lead image is set to cover */
.cta-box-banner.lead-image-cover {
    padding: 0;
}

.cta-box-banner-left {
    flex: 0 0 60%;
    padding: 20px;
}

.cta-box-banner-right {
    flex: 0 0 40%;
    position: relative;
}

.cta-box-button-container {
    display: flex;
}

.cta-box-button {
    border-radius: 10px;
    padding: 12px 16px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-box-button:hover {
    opacity: 0.9;
}

.cta-box-button-container.left {
    justify-content: flex-start;
}

.cta-box-button-container.right {
    justify-content: flex-end;
}

.cta-box-button-container.center {
    justify-content: center;
}

.cta-box-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}

.cta-box-banner-title {
    font-size: 2rem;
    margin: 0;
}

.cta-box-banner-description {
    margin: 25px 0px;
}

.cta-box-banner-link {
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.cta-box-banner-link:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* Banner image position styles */
.cta-box-banner-image-top,
.cta-box-banner-image-bottom {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important; /* Changed from cover to contain */
}

.cta-box-banner-image-left {
    border-radius: 15px 0 0 15px;
    height: 100%;
    object-position: center;
}

.cta-box-banner-top {
    width: 100%;
    height: auto;
    line-height: 0;
    overflow: visible !important;
}

.cta-box-banner-bottom {
    width: 100%;
    height: auto;
    line-height: 0;
    overflow: visible !important;
}

.cta-box-banner-left-image,
.cta-box-banner-right {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image caption styles */
.cta-box-image-caption {
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.cta-box-image-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.cta-box-image-description {
    font-size: 14px;
    margin: 0;
    color: #666;
}

/* Modal styles */
.cta-box-modal {
    display: none !important; /* Override with maximum specificity */
    justify-content: center;
    align-items: center;
    pointer-events: all;
    z-index: 11006;
    background: rgba(26, 44, 55, 0.40);
    user-select: auto;
    position: fixed;
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    bottom: 0;
    left: 0;
    top: 0; /* Ensure full coverage */
}

/* Override specific theme styles that might cause flash */
html body .documentation .cta-box-modal,
html body .cta-box-modal,
body section.cta-box-modal,
body .cta-box-modal,
body div.cta-box-modal,
.documentation section.cta-box-modal {
    display: none !important;
}

/* Only show modal when explicitly activated with higher specificity */
html body .cta-box-modal.is-active,
body section.cta-box-modal.is-active,
.documentation section.cta-box-modal.is-active {
    display: flex !important;
}

/* Hide modals on page load before JS loads */
html.no-js .cta-box-modal {
    display: none !important; /* Force hide with !important */
}

/* Modal popup wrapper */
.cta-box-modal-popup-wrapper {
    animation-duration: 0.5s;
    background-color: #1A2C3766;
    position: relative;
    border-radius: 8px;
    box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
    width: auto;
    overflow: visible;
    max-width: 100%;
    max-height: 100%;
    pointer-events: all;
}

.cta-box-modal-popup-close-btn {
    display: flex;
    margin-top: 20px;
    right: 20px;
    opacity: 1;
    z-index: 9999;
    pointer-events: all;
    cursor: pointer;
    position: absolute;
    color: #515962!important;
    line-height: 1;
    transition: all .3s;
    text-decoration: none!important;
}
.eicon-close {
    font-family: 'Open Sans'!important;
    font-size: 20px!important;
    top: 20px!important;
    font-style: normal;
}
.eicon-close::before {
    content: 'x';
    position: relative;
    left: 13px;
    top: -13px;
}

.cta-box-modal-popup-content {
    position: relative;
    display: flex;
    background-color: #FFFFFF;
    width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0px 4px 18px -12px rgba(14, 25, 32, 0.05), 0px 1px 2px -1px rgba(14, 25, 32, 0.29);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    height: fit-content;
    max-width: 850px;
}

.cta-box-modal-popup-content-thanks {
    display: none;
    padding-top: 100px;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    text-decoration: none;
    line-height: 33px;
}

.cta-box-modal-popup-content-title {
    color: #000000;
    font-family: inherit;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    text-decoration: none;
    line-height: 33px;
    margin-bottom: 40px!important;
}

.cta-box-modal-popup-content-subtitle {
    text-align: left;
    
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0px;
    margin-bottom: 8px;
}

.cta-box-modal-popup-content-left {
    width: 58%;
    border-style: solid;
    border-width: 0px;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    text-align: justify;
    margin: 0;
    padding: 32px;
}

.cta-box-modal-popup-content-left-form {
    background: white;
    min-width: 340px!important;
    margin: 0!important;
}

.cta-box-modal-popup-content-left-form form {
    display: block!important;
    margin: 0 !important;
}

.cta-box-modal-popup-content-left-form input {
  
    border: 1px solid #E0E2E4!important;
    height: 20px!important;
    padding: 12px 14px 12px 41px!important;
    margin-bottom: 10px!important;
}

.cta-box-modal-popup-content-left-form .forminator-row-last {
    margin-bottom: 0!important;
}

.cta-box-modal-popup-content-left-form button {
    
    width: 100%!important;
    font-size: 16px!important;
    font-style: normal!important;
    font-weight: 600!important;
    line-height: 28px!important;
    margin-top: -24px!important;
}

.cta-box-modal-popup-content-right {
    width: 42%;
}

.cta-box-modal-popup-content-right img {
    height: 100%;
    width: auto;
    border-radius: 0 8px 8px 0;
}

.cta-box-modal-popup-content-terms {
    margin: 0;
    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    text-align: center;
}

/* Full width modal content when no image is present */
.cta-box-modal-popup-content.no-image {
    max-width: 680px;
}

.cta-box-modal-popup-content-left.full-width {
    width: 100%;
    border-radius: 8px;
}

/* Ensure the modal always looks clean */
.cta-box-modal-popup-content.no-image .cta-box-modal-popup-content-left {
    border-radius: 8px;
}

/* Modal image position variants */
.cta-box-modal-popup-content.image-left {
    display: flex;
    flex-direction: row; /* Reset flex direction */
}

.cta-box-modal-popup-content.image-top {
    flex-direction: column;
}

.cta-box-modal-popup-content.image-bottom {
    flex-direction: column-reverse;
}

.cta-box-modal-popup-content-top,
.cta-box-modal-popup-content-bottom {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.cta-box-modal-popup-content-top img,
.cta-box-modal-popup-content-bottom img {
    width: 100%;
    max-height: 250px;
    object-position: center;
}

.cta-box-modal-popup-content-left-side {
    width: 42%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-box-modal-popup-content-left-side img {
    height: 100%;
    width: 100%;
    object-position: center;
    border-radius: 8px 0 0 8px;
}

/* Fix for "Left of Content" image position */
.cta-box-modal-popup-content.image-left .cta-box-modal-popup-content-left-side {
    display: flex;
    width: 42%;
}

.cta-box-modal-popup-content.image-left .cta-box-modal-popup-content-left-side img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.cta-box-modal-popup-content.image-left .cta-box-modal-popup-content-left {
    width: 58%;
}

/* Adjust content when image is at top or bottom */
.cta-box-modal-popup-content.image-top .cta-box-modal-popup-content-left,
.cta-box-modal-popup-content.image-bottom .cta-box-modal-popup-content-left {
    width: 100%;
    max-width: 100%;
    padding: 32px 40px;
    box-sizing: border-box;
}

.cta-box-modal-popup-content-top {
    margin-bottom: 0;
    line-height: 0;
}

.cta-box-modal-popup-content-bottom {
    margin-top: 0;
    line-height: 0;
}

.cta-box-modal-popup-content.image-top {
    max-width: 680px;
    width: 100%;
}

.cta-box-modal-popup-content.image-bottom {
    max-width: 680px;
    width: 100%;
}

.cta-box-modal-popup-content.image-top .cta-box-modal-popup-content-top img {
    border-radius: 8px 8px 0 0;
    display: block;
}

.cta-box-modal-popup-content.image-bottom .cta-box-modal-popup-content-bottom img {
    border-radius: 0 0 8px 8px;
    display: block;
}

/* Mobile adjustments for different image positions */
@media (max-width: 768px) {
    .cta-box-modal-popup-wrapper {
        width: 95%;
        max-width: 95%;
        margin: 0 auto;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        padding: 0;
    }
    
    .cta-box-modal-popup-content {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
        overflow: hidden;
        height: auto;
        max-height: none;
    }
    
    .cta-box-modal-popup-content-top,
    .cta-box-modal-popup-content-bottom {
        max-height: none;
        height: auto;
    }
    
    .cta-box-modal-popup-content-top img,
    .cta-box-modal-popup-content-bottom img {
        max-height: none;
        height: auto;
    }
    
    .cta-box-modal-popup-content-left {
        width: 100% !important;
        padding: 20px !important;
        box-sizing: border-box;
    }
    
    .cta-box-modal-popup-content-left-form {
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Fix overflow issues in form */
    .cta-box-modal-popup-content-left-form form,
    .cta-box-modal-popup-content-left-form input,
    .cta-box-modal-popup-content-left-form button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .cta-box-banner {
        flex-direction: column !important;
        width: 90% !important; /* Ensure we have some margin on smaller screens */
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content from spilling outside */
    }
    
    /* Force the content to stay within the box */
    .cta-box-banner-content {
        width: 100% !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    .cta-box-banner-left-image,
    .cta-box-banner-right {
        width: 100% !important;
        flex: none !important;
        order: 1;
        max-height: 250px !important;
    }
    
    .cta-box-banner-image-left {
        border-radius: 15px 15px 0 0 !important;
        height: 250px !important;
        width: 100% !important;
    }
    
    .cta-box-banner-image {
        border-radius: 0 0 15px 15px !important;
        height: 250px !important;
        width: 100% !important;
    }
    
    /* Ensure images properly contain within their containers */
    .cta-box-banner img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Fix image caption on mobile */
    .cta-box-image-caption {
        position: relative !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .cta-box-banner-top,
    .cta-box-banner-bottom {
        width: 100%;
        height: auto;
        line-height: normal;
    }
    
    .cta-box-banner img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    /* Specifically fix top images */
    .cta-box-banner-image-top {
        height: auto !important;
        max-height: none !important;
        border-radius: 15px 15px 0 0 !important;
    }
    
    /* Specifically fix bottom images */
    .cta-box-banner-image-bottom {
        height: auto !important;
        max-height: none !important;
        border-radius: 0 0 15px 15px !important;
    }

    /* Force height:auto for all images to maintain aspect ratio */
    .cta-box-banner-image-top,
    .cta-box-banner-image-bottom,
    .cta-box-banner-image-left,
    .cta-box-banner-image {
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
        object-fit: contain !important; /* Show full image without cropping */
    }
    
    /* Fix containers to allow full image display */
    .cta-box-banner-top,
    .cta-box-banner-bottom,
    .cta-box-banner-left-image,
    .cta-box-banner-right {
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    /* Ensure images display at full height and maintain aspect ratio */
    .cta-box-banner img {
        width: 100% !important;
        height: auto !important; 
        object-fit: contain !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    /* Fix modal image display as well */
    .cta-box-modal-popup-content-top img,
    .cta-box-modal-popup-content-bottom img,
    .cta-box-modal-popup-content-right img,
    .cta-box-modal-popup-content-left-side img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .cta-box-banner {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
    }
    
    .cta-box-banner.lead-image-cover {
        padding: 0 !important;
    }
    
    /* Fix content to stay within its container */
    .cta-box-banner-content {
        width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        order: 2 !important;
    }
    
    /* Improve image display on mobile */
    .cta-box-banner-left-image,
    .cta-box-banner-right {
        width: 100% !important;
        flex: none !important;
        order: 1 !important;
        height: auto !important;
        max-height: 200px !important;
        overflow: hidden !important;
    }
    
    /* Fix image borders for better mobile appearance */
    .cta-box-banner-image-left {
        border-radius: 8px 8px 0 0 !important;
        height: auto !important;
        max-height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .cta-box-banner-image {
        border-radius: 8px 8px 0 0 !important;
        height: auto !important;
        max-height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* Make buttons more touchable on mobile */
    .cta-box-button {
        padding: 12px 20px !important;
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .cta-box-button-container {
        width: 100% !important;
    }
    
    /* Fix for "contain" style images on mobile */
    /* Images with contain style shouldn't be restricted by fixed heights */
    .cta-box-banner img[style*="contain"],
    .cta-box-banner-image-top[style*="contain"],
    .cta-box-banner-image-bottom[style*="contain"],
    .cta-box-banner-image-left[style*="contain"],
    .cta-box-banner-image[style*="contain"] {
        height: auto !important;
        max-height: none !important;
        padding: 15px !important;
        max-width: 100% !important;
        width: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Containers for contain-style images need to be flexible */
    .cta-box-banner-left-image:has(img[style*="contain"]),
    .cta-box-banner-right:has(img[style*="contain"]),
    .cta-box-banner-top:has(img[style*="contain"]),
    .cta-box-banner-bottom:has(img[style*="contain"]) {
        height: auto !important;
        min-height: 200px !important;
        max-height: none !important;
        width: 100% !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fix for "cover" style images on mobile devices */
    /* Proper height and display for cover images on mobile */
    .cta-box-banner img[style*="cover"],
    .cta-box-banner-image-top[style*="cover"],
    .cta-box-banner-image-bottom[style*="cover"],
    .cta-box-banner-image-left[style*="cover"],
    .cta-box-banner-image[style*="cover"] {
        object-fit: cover !important;
        height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        object-position: center !important;
        padding: 0 !important;
        border-radius: 8px 8px 0 0 !important;
    }
    
    /* Container adjustments for cover images */
    .cta-box-banner-left-image:has(img[style*="cover"]),
    .cta-box-banner-right:has(img[style*="cover"]),
    .cta-box-banner-top:has(img[style*="cover"]),
    .cta-box-banner-bottom:has(img[style*="cover"]) {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
        overflow: hidden !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Special case for lead-image-cover setting */
    .cta-box-banner.lead-image-cover img[style*="cover"] {
        height: 250px !important;
        max-width: none !important;
        width: 100% !important;
    }

    /* Fix for "cover" style images on mobile devices */
    .cta-box-banner img[style*="cover"],
    .cta-box-banner-image-top[style*="cover"],
    .cta-box-banner-image-bottom[style*="cover"],
    .cta-box-banner-image-left[style*="cover"],
    .cta-box-banner-image[style*="cover"] {
        object-fit: cover !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        object-position: center !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Ensure containers for cover-style images have proper dimensions */
    .cta-box-banner-left-image img[style*="cover"],
    .cta-box-banner-right img[style*="cover"],
    .cta-box-banner-top img[style*="cover"],
    .cta-box-banner-bottom img[style*="cover"] {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
    }
    
    /* Adjust container heights for cover images */
    .cta-box-banner-left-image,
    .cta-box-banner-right,
    .cta-box-banner-top,
    .cta-box-banner-bottom {
        height: auto !important;
    }
    
    .cta-box-banner-left-image:has(img[style*="cover"]),
    .cta-box-banner-right:has(img[style*="cover"]),
    .cta-box-banner-top:has(img[style*="cover"]),
    .cta-box-banner-bottom:has(img[style*="cover"]) {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    
    /* Ensure nothing overrides these cover settings */
    body .cta-box-banner img[style*="cover"] {
        height: 250px !important;
        object-fit: cover !important;
    }
}

/* Mobile approach for cover images - IMPORTANT: High specificity to override conflicting rules */
@media (max-width: 768px) {
    /* Convert cover to contain with highest specificity selectors */
    body .cta-box-banner img[style*="cover"],
    body .cta-box-banner-image-top[style*="cover"],
    body .cta-box-banner-image-bottom[style*="cover"],
    body .cta-box-banner-image-left[style*="cover"],
    body .cta-box-banner-image[style*="cover"] {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        display: block !important;
        max-width: 100% !important;
    }
    
    /* Container adjustments with highest specificity */
    body .cta-box-banner .cta-box-banner-left-image,
    body .cta-box-banner .cta-box-banner-right,
    body .cta-box-banner .cta-box-banner-top,
    body .cta-box-banner .cta-box-banner-bottom {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        width: 100% !important;
        overflow: visible !important;
        position: static !important;
    }
    
    /* Remove any fixed height and positioning constraints from parent elements */
    body .cta-box-banner,
    body .cta-box-banner.lead-image-cover {
        padding-bottom: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Clear any container-specific height restrictions for cover images */
    body .cta-box-banner-left-image:has(img[style*="cover"]),
    body .cta-box-banner-right:has(img[style*="cover"]),
    body .cta-box-banner-top:has(img[style*="cover"]),
    body .cta-box-banner-bottom:has(img[style*="cover"]) {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Simple approach for all cover-style images on mobile */
@media (max-width: 768px) {
    /* Redefine cover as contain without padding for better mobile viewing */
    .cta-box-banner img[style*="cover"],
    .cta-box-banner-image-top[style*="cover"],
    .cta-box-banner-image-bottom[style*="cover"],
    .cta-box-banner-image-left[style*="cover"],
    .cta-box-banner-image[style*="cover"] {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 0 !important;
        display: block !important;
        max-width: 100% !important;
        max-height: none !important;
    }
    
    /* Ensure containers adapt to content */
    .cta-box-banner-left-image:has(img[style*="cover"]),
    .cta-box-banner-right:has(img[style*="cover"]),
    .cta-box-banner-top:has(img[style*="cover"]),
    .cta-box-banner-bottom:has(img[style*="cover"]) {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    /* Remove any background-image implementations we might have added */
    .cta-box-bg-image {
        display: none !important;
    }
}

/* Background-image based cover implementation for mobile */
.cta-box-bg-image {
    background-size: cover !important;
    background-position: center center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* Mobile optimizations for cover images */
@media (max-width: 768px) {
    /* Make container position relative to ensure background-image works */
    .cta-box-banner-left-image,
    .cta-box-banner-right,
    .cta-box-banner-top,
    .cta-box-banner-bottom {
        position: relative !important;
    }
    
    /* Force proper height for containers with cover images */
    .cta-box-banner-left-image:has(img[style*="cover"]),
    .cta-box-banner-right:has(img[style*="cover"]),
    .cta-box-banner-top:has(img[style*="cover"]),
    .cta-box-banner-bottom:has(img[style*="cover"]) {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        overflow: hidden !important;
    }
    
    /* Use transform as a backup to ensure image fills container properly */
    .cta-box-banner img[style*="cover"] {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: none !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Reset the cover image in case the JS doesn't run */
    .cta-box-banner-image-top[style*="cover"],
    .cta-box-banner-image-bottom[style*="cover"],
    .cta-box-banner-image-left[style*="cover"],
    .cta-box-banner-image[style*="cover"] {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Responsive adjustments for banner image positions */
@media (max-width: 768px) {
    .cta-box-banner {
        flex-direction: column;
    }
    
    .cta-box-banner-left,
    .cta-box-banner-right {
        flex: 0 0 100%;
    }
    
    .cta-box-banner-image {
        border-radius: 0 0 15px 15px;
    }
    
    .cta-box-modal-popup-content {
        flex-direction: column;
        width: 95%;
        max-width: 550px;
    }
    
    .cta-box-modal-popup-content-left,
    .cta-box-modal-popup-content-right {
        width: 100%;
    }
    
    .cta-box-modal-popup-content-right img {
        border-radius: 0 0 8px 8px;
    }
}

/* Responsive styles for the CTA box */
@media (max-width: 992px) {
    .cta-box-banner-title {
        font-size: 1.75rem;
    }
    
    .cta-box-banner-description {
        margin: 15px 0;
    }
    
    /* Adjust vertical alignment on tablets */
    .cta-box-banner-content {
        padding: 15px !important;
    }
}

@media (max-width: 768px) {
    .cta-box-banner {
        flex-direction: column !important;
    }
    
    .cta-box-banner-left-image,
    .cta-box-banner-right {
        width: 100% !important;
        flex: none !important;
        order: 1;
    }
    
    .cta-box-banner-content {
        width: 100%;
        padding: 20px !important;
        order: 2;
    }
    
    .cta-box-banner-image-left {
        border-radius: 15px 15px 0 0 !important;
        height: 250px !important;
    }
    
    .cta-box-banner-image {
        border-radius: 0 0 15px 15px !important;
        height: 250px !important;
    }
    
    .cta-box-banner-title {
        font-size: 1.9rem;
    }
    
    /* Fix image caption on mobile */
    .cta-box-image-caption {
        position: relative;
        border-radius: 0;
    }
    
    /* Ensure modal is properly sized on mobile */
    .cta-box-modal-popup-content {
        flex-direction: column;
        width: 95%;
        max-width: 550px;
    }
    
    .cta-box-modal-popup-content-left,
    .cta-box-modal-popup-content-right,
    .cta-box-modal-popup-content-left-side {
        width: 100% !important;
    }
    
    .cta-box-modal-popup-content-right img,
    .cta-box-modal-popup-content-left-side img {
        border-radius: 0 0 8px 8px !important;
        width: 100%;
        max-height: 250px;
        object-fit: cover;
    }
    
    .cta-box-modal-popup-content-left-form {
        min-width: auto !important;
    }
}

@media (max-width: 576px) {
    .cta-box-banner {
        margin: 0 10px;
    }
    
    .cta-box-banner-title {
        font-size: 2.15rem;
    }
    
    .cta-box-banner-description {
        font-size: 16px;
        margin: 30px 0;
    }
    
    .cta-box-button {
        padding: 10px 14px;
        font-size: 14px;
        width: 100%;
    }
    
    .cta-box-button-container {
        width: 100%;
    }
    
    .cta-box-banner-image-top,
    .cta-box-banner-image-bottom {
        max-height: 200px;
    }
    
    .cta-box-modal-popup-content-title {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 20px !important;
    }
    
    .cta-box-modal-popup-content-thanks {
        font-size: 24px;
        line-height: 28px;
        padding-top: 50px;
    }
    
    .cta-box-modal-popup-content-left {
        padding: 20px;
    }
}

/* Acumba form styling */
.cta-box-acumba-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.cta-box-acumba-form .acumba-form-group {
    margin-bottom: 15px;
}

.cta-box-acumba-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.cta-box-acumba-form input[type="email"] {
    width: 100%;
    border-radius: 100px !important;
    border: 1px solid #E0E2E4 !important;
    height: 48px !important;
    padding: 12px 14px 12px 20px !important;
    font-size: 16px;
    box-sizing: border-box;
    
}

.cta-box-acumba-form .acumba-submit-btn {
    background: #265CF2 !important;
    border-radius: 100px !important;
    width: 100% !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 28px !important;
    padding: 10px 20px !important;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.cta-box-acumba-form .acumba-submit-btn:hover {
    background: #1e4ed8 !important;
    transform: translateY(-2px);
}

.cta-box-form-error {
    padding: 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #e74c3c;
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
    border-radius: 4px;
}