/**
 * CSG CTA Widget Styles
 *
 * @package CsgPersonalized
 * @since   1.0.1
 */

/* Section container */
.csg-el-cta {
    position: relative;
    background: linear-gradient(135deg, var(--csg-secondary, #0B1C2C), var(--csg-primary, #D4AF37));
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}

/* Background overlay element */
.csg-el-cta__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Content wrapper */
.csg-el-cta__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

/* Title */
.csg-el-cta__title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 20px 0;
}

/* Gradient text span */
.csg-el-cta__title-gradient {
    background: linear-gradient(135deg, #93c5fd, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.csg-el-cta__desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
}

/* Button container */
.csg-el-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Primary button */
.csg-el-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 9999px;
    background: #ffffff;
    color: var(--csg-primary, #D4AF37);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.csg-el-cta__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Secondary button */
.csg-el-cta__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.csg-el-cta__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .csg-el-cta {
        padding: 72px 20px;
    }

    .csg-el-cta__title {
        font-size: 2rem;
    }

    .csg-el-cta__desc {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .csg-el-cta__btn-primary,
    .csg-el-cta__btn-secondary {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .csg-el-cta {
        padding: 56px 16px;
    }

    .csg-el-cta__title {
        font-size: 1.75rem;
    }

    .csg-el-cta__actions {
        flex-direction: column;
    }

    .csg-el-cta__btn-primary,
    .csg-el-cta__btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}
