/* ========================================
           CTA FOOTER SECTION
           ======================================== */
.footer-cta {
    position: fixed; /* Changed from relative to fixed */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9; /* Ensure it stays on top of other content */
    padding: 18px 12px; /* Adjusted padding */
    color: var(--text-dark, #07203a);
    overflow: hidden;
    background: var(--gradient-accent, linear-gradient(90deg,var(--cta-start),var(--cta-end))); /* Added background gradient */
    box-shadow: 0 -8px 30px rgba(2,6,23,0.12); /* Added shadow */
}

.footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 48, 75, 0.06), rgba(3, 120, 190, 0.05));
    pointer-events: none;
}

.footer-cta-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-cta-copy h2 {
    margin: 0 0 .35rem 0;
    font-size: 1.15rem; /* Adjusted font size */
    color: var(--cta-text, #ffffff); /* Using cta-text for consistency */
    line-height: 1.05;
    font-weight: 700;
}

.footer-cta-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95); /* Adjusted color */
    font-size: 0.95rem;
}

.footer-cta-action .btn-cta {
    display: inline-block; /* Changed to inline-block */
    background: #fff;
    color: var(--cta-end, #007A3D); /* Using cta-end for consistency */
    padding: 12px 20px;
    border-radius: 10px; /* Simplified border-radius */
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(10,45,40,0.12);
    transition: transform 160ms ease, box-shadow 160ms ease;
    border: unset;
}

.footer-cta-action .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 146, 68, 0.4);
    background: var(--gradient-cta); /* Assuming gradient-cta is defined globally */
    color: var(--white); /* Assuming white is defined globally */
}

/* Add subtle background image if available */
.footer-cta.has-bg {
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 255, 255, 0.85)), url('../assets/clinic-banner.jpg');
    background-size: cover;
    background-position: center;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .footer-cta {
        position: unset;
        transform: unset !important;
    }

    .footer-cta-inner {
        flex-direction: column;
        gap: 0.7rem;
    }

    .footer-cta-copy p {
        text-align: center;
    }

    .footer-cta-copy h2 {
        text-align: center;
    }
}
@media (max-width: 640px) {
    .footer-cta {
        padding: 1.5rem 1.5rem; /* Adjusted padding */
    }

    .footer-cta-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.6rem;
    }

    .footer-cta-copy h2 {
        font-size: 1rem; /* Adjusted font size */
    }

    .footer-cta-action .btn-cta {
        width: 100%;
        display: inline-block;
        padding: 8px 20px;
        font-size: 0.9rem;
        max-width: max-content;
    }
}

/* On print or when .no-fixed class applied to body, fall back to inline section */
@media print {
    .footer-cta {
        position: static;
        box-shadow: none;
    }
}

/* Utility: if you need the CTA not sticky, add .cta-inline to body to override */
body.cta-inline .footer-cta {
    position: static;
}

/* Theme colors for CTA, fallback to green shades if not globally defined */
:root {
    --cta-start: var(--green-primary, #009244);
    --cta-end: var(--green-dark, #007A3D); /* Assuming --green-dark needs a fallback */
    --cta-text: #ffffff;
}