/**
 * Frontend styling for CODLEADE Landing Pages.
 */

.cl-lander-page-container {
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    background-color: #f8fafc;
}

.cl-lander-blocks {
    width: 100%;
}

.cl-lander-block {
    margin: 0;
    padding: 0;
}

.cl-lander-image-wrap {
    width: 100%;
}

.cl-lander-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.cl-lander-section-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cl-lander-form-container {
    background: #ffffff;
}

.cl-lander-cta-container {
    background: #ffffff;
    text-align: center;
}

.cl-lander-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--cl-primary, #1e293b);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 8px; /* Small radius as requested */
    font-size: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cl-lander-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cl-cta-icon {
     display: flex;
     align-items: center;
     justify-content: center;
}

/* Sticky Bar */
.cl-lander-sticky-bar {
    position: fixed;
    bottom: -120px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box; /* Added */
}

.cl-lander-sticky-bar.is-visible {
    bottom: 0;
}

.cl-lander-sticky-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    pointer-events: auto;
}

.cl-lander-sticky-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--cl-primary, #1e293b);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* Form Styling - Ensure it stands out in lander */
.cl-lander-form-container .codleade-checkout-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cl-highlight-form {
    animation: cl-pulse-highlight 2s ease-in-out;
}

@keyframes cl-pulse-highlight {
    0% { box-shadow: 0 0 0 0px var(--cl-primary); }
    50% { box-shadow: 0 0 0 10px var(--cl-primary-20); }
    100% { box-shadow: 0 0 0 0px var(--cl-primary); }
}

@media (max-width: 600px) {
    .cl-lander-section-inner {
        padding: 20px 15px;
    }
    
    .cl-lander-cta-btn {
        padding: 14px 20px;
        font-size: 16px;
        max-width: 100%; 
        border-radius: 8px; /* Small radius */
    }

    .cl-lander-sticky-bar {
        padding: 10px 15px 12px; /* Reduced bottom space */
    }
    
    .cl-lander-sticky-bar.is-visible {
        bottom: 8px; /* Closer to bottom but still floating */
    }

    .cl-lander-sticky-inner {
        max-width: 100%;
    }

    .cl-lander-sticky-btn {
        padding: 14px 15px;
        font-size: 14px;
        border-radius: 8px; /* Small radius */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}
