/* ============================================
   CTA Section Enhancements
   ============================================ */

.subscribe-wrap {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(240, 253, 244, 0.5) 50%,
            rgba(255, 255, 255, 1) 100%);
}

/* Decorative gradient circles */
.subscribe-wrap::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
            rgba(76, 175, 80, 0.15) 0%,
            rgba(144, 238, 144, 0.1) 30%,
            transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

.subscribe-wrap::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
            rgba(129, 199, 132, 0.15) 0%,
            rgba(102, 187, 106, 0.1) 30%,
            transparent 70%);
    border-radius: 50%;
    animation: float 18s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.9;
    }
}

.subscribe-div {
    background: linear-gradient(135deg,
            rgba(144, 238, 144, 0.15) 0%,
            rgba(76, 175, 80, 0.1) 25%,
            rgba(102, 187, 106, 0.15) 50%,
            rgba(129, 199, 132, 0.1) 75%,
            rgba(144, 238, 144, 0.15) 100%) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.2);
    border: 3px solid rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.subscribe-div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(240, 253, 244, 0.9) 25%,
            rgba(232, 245, 233, 0.92) 50%,
            rgba(237, 247, 237, 0.9) 75%,
            rgba(255, 255, 255, 0.93) 100%);
    z-index: -1;
    animation: gradientShift 8s ease infinite;
}

/* Animated gradient background effect */
.subscribe-div::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(76, 175, 80, 0.08) 0%,
            transparent 50%,
            rgba(144, 238, 144, 0.06) 70%,
            transparent 100%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced CTA Heading with Gradient Text */
.subscribe-div h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg,
            #2e7d32 0%,
            #43a047 25%,
            #4caf50 50%,
            #66bb6a 75%,
            #81c784 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInDown 0.8s ease-out, gradientMove 5s ease infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.subscribe-div p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #495057 !important;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Enhanced Call Now Button */
.subscribe-div .btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4),
        0 0 0 0 rgba(76, 175, 80, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4),
            0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    50% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4),
            0 0 0 15px rgba(76, 175, 80, 0);
    }
}

.subscribe-div .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.subscribe-div .btn:hover::before {
    width: 300px;
    height: 300px;
}

.subscribe-div .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #45a049 0%, #4caf50 100%) !important;
}

.subscribe-div .btn:active {
    transform: translateY(-1px) scale(1.02);
}

.subscribe-div .btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.subscribe-div .btn:hover svg {
    transform: rotate(15deg) scale(1.1);
    animation: ring 0.5s ease-in-out;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(15deg) scale(1.1);
    }

    25% {
        transform: rotate(-10deg) scale(1.15);
    }

    50% {
        transform: rotate(20deg) scale(1.1);
    }

    75% {
        transform: rotate(-5deg) scale(1.15);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscribe-wrap {
        padding: 2rem 0;
    }

    .subscribe-div {
        border-width: 2px;
    }

    .subscribe-div .btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.875rem 2rem !important;
    }
}

@media (max-width: 576px) {
    .subscribe-div {
        padding: 2rem 1rem !important;
        border-radius: 1.5rem !important;
    }

    .subscribe-div h2 {
        margin-bottom: 1rem !important;
    }

    .subscribe-div p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Animation keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .subscribe-wrap::before,
    .subscribe-wrap::after,
    .subscribe-div::before,
    .subscribe-div::after,
    .subscribe-div h2,
    .subscribe-div p,
    .subscribe-div .btn {
        animation: none !important;
    }

    .subscribe-div .btn:hover {
        transform: none;
    }

    .subscribe-div h2 {
        background-position: 0% 50% !important;
    }
}

/* ============================================
   Modern CTA Section Styles
   ============================================ */

.cta-modern-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
}

.cta-modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 50%, #e8f5ec 100%);
    border: 1px solid rgba(76, 175, 80, 0.15);
    padding: 2rem;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background gradient layer */
.cta-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(76, 175, 80, 0.03) 0%,
            rgba(67, 160, 71, 0.08) 50%,
            rgba(56, 142, 60, 0.05) 100%);
    z-index: 1;
}

/* Floating decorative shapes */
.cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 2;
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    animation: floatShape 12s ease-in-out infinite;
}

.cta-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    background: radial-gradient(circle, rgba(56, 142, 60, 0.1) 0%, transparent 70%);
    animation: floatShape 15s ease-in-out infinite reverse;
}

.cta-shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: -30px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.12) 0%, transparent 70%);
    animation: floatShape 10s ease-in-out infinite 2s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -15px) scale(1.1);
    }

    66% {
        transform: translate(-15px, 10px) scale(0.95);
    }
}

/* Badge styling */
.cta-badge {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(56, 142, 60, 0.08));
    color: #2e7d32;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid rgba(76, 175, 80, 0.25);
    letter-spacing: 0.025em;
}

/* Title styling */
.cta-title {
    color: #1a1a2e;
    line-height: 1.2;
    text-align: center;
}

/* Gradient text */
.cta-gradient-text {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 50%, #4caf50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 4s ease infinite;
}

@keyframes gradientText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Description */
.cta-description {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

/* Primary button (Call) */
.cta-btn-primary {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.cta-btn-primary svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: #ffffff !important;
    color: #ffffff !important;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.45);
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%) !important;
    color: #ffffff !important;
}

/* Secondary button (WhatsApp) */
.cta-btn-secondary {
    background: #ffffff !important;
    color: #25D366 !important;
    border: 2px solid #25D366 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.cta-btn-secondary svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cta-btn-secondary:hover {
    transform: translateY(-3px);
    background: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.cta-btn-secondary:hover svg {
    fill: #ffffff;
}

/* Z-index for content */
.z-10 {
    z-index: 10;
}

/* Center alignment fixes */
.cta-modern-card .row {
    width: 100%;
}

.cta-modern-card .col-lg-8 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Trust indicators with green checkmarks - only target trust section, not buttons */
.cta-modern-wrap .d-flex.flex-wrap.gap-4 .d-flex.align-items-center.gap-2 svg {
    fill: #43a047 !important;
}

/* Ensure button icons stay white */
.cta-btn-primary svg,
.cta-btn-primary svg path {
    fill: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-modern-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .cta-title {
        font-size: 1.75rem !important;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        min-width: auto;
    }

    .cta-shape-1,
    .cta-shape-2,
    .cta-shape-3 {
        display: none;
    }
}

@media (max-width: 576px) {
    .cta-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

    .cta-title {
        font-size: 1.5rem !important;
    }

    .cta-description {
        font-size: 0.9375rem !important;
    }
}