/* CTA Block Builder – Public Styles
   Version: 1.1.78
   Author: Team Belajar Digital Official */
.cta-block {
    width: 100%;
    margin: 30px auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative; /* Support absolute badges */
}

.cta-title {
    font-family: inherit;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-description {
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Actions row */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.cta-actions.only-button-1 {
    margin-top: 10px;
}

/* Header eyebrow badge */
.cta-header-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 25px; /* Increased space below badge */
}

.cta-header-badge.is-card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.05);
}


/* Pricing */
.cta-price-section {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.cta-price-section.is-card {
    display: inline-flex;
    background: #ffffff;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    align-items: baseline;
    justify-content: center;
}
.cta-price-section.is-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}
.cta-price       { font-size: 28px; font-weight: 800; }
.cta-discount    { font-size: 16px; text-decoration: line-through; opacity: 0.6; }
.cta-price-label { font-size: 14px; opacity: 0.7; margin-left: 4px; }

/* Core Sections */
.cta-body {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px; /* Bottom buffer */
}

/* Footer disclaimer */
.cta-footer {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.85em;
    margin-top: 25px; /* Separate from content */
}

.cta-footer.is-card {
    background: rgba(0,0,0,0.08); /* Darker for better contrast */
    padding: 25px 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    opacity: 1;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0; /* Flush to bottom of body content */
}

/* Shadow Utility Classes */
[id^="cta-"] {
    transition: all 0.3s ease;
}

/* ══ COUNTDOWN TIMER ═════════════════════════════ */
.cta-countdown-timer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--cta-cd-gap, 15px);
    width: var(--cta-cd-width, auto);
    margin: 20px 0;
    font-family: var(--cta-cd-font-family, inherit);
    letter-spacing: var(--cta-cd-letter-spacing, 0);
    transition: all 0.3s ease;
}

.cta-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--cta-cd-unit-padding, 10px);
    border-radius: var(--cta-cd-unit-radius, 4px);
    background: var(--cta-cd-unit-bg, transparent);
    min-width: 60px;
    transition: all 0.3s ease;
}

.cta-cd-unit:hover {
    background: var(--cta-cd-hover-bg, transparent);
    transform: translateY(-2px);
}

.cta-cd-digit {
    font-size: var(--cta-cd-digit-size, 24px);
    font-weight: var(--cta-cd-digit-weight, 700);
    line-height: 1.1;
    color: var(--cta-cd-digit-color, #333);
}

.cta-cd-label {
    font-size: var(--cta-cd-label-size, 12px);
    font-weight: var(--cta-cd-label-weight, 400);
    color: var(--cta-cd-label-color, #666);
    margin-top: 4px;
    text-transform: uppercase;
}

.cta-cd-sep {
    font-size: var(--cta-cd-digit-size, 24px);
    font-weight: var(--cta-cd-digit-weight, 700);
    color: var(--cta-cd-digit-color, #333);
    margin-top: -15px; /* Offset for better vertical alignment */
}

/* --- Styles --- */

/* Style 2: Block Cards */
.cta-cd-style-style-2 .cta-cd-unit {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

/* Style 3: Circle Style */
.cta-cd-style-style-3 .cta-cd-unit {
    border-radius: 50%;
    width: calc(var(--cta-cd-digit-size) * 2.5);
    height: calc(var(--cta-cd-digit-size) * 2.5);
    justify-content: center;
    aspect-ratio: 1/1;
}

/* Style 4: Minimal Digital */
.cta-cd-style-style-4 .cta-cd-unit {
    padding: 0;
    min-width: auto;
}
.cta-cd-style-style-4 .cta-cd-digit {
    font-family: monospace;
    background: #000;
    color: #4ade80;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Style 5: Progress Bar Style */
.cta-cd-style-style-5 {
    flex-direction: column;
}
.cta-cd-progress-wrap {
    width: 100%;
    background: rgba(0,0,0,0.05);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.cta-cd-progress-bar {
    height: 100%;
    background: var(--cta-cd-digit-color, #3b82f6);
    width: 0%;
    transition: width 1s linear;
}
.cta-cd-progress-text {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

/* --- Effects --- */
.cta-cd-blink .cta-cd-digit {
    animation: cta-cd-blink-anim 1s step-start infinite;
}
@keyframes cta-cd-blink-anim {
    50% { opacity: 0.3; color: var(--cta-cd-warning-color, #ef4444); }
}

/* Unit colors & Shadows (if not uniform) */
.cta-cd-unit-d .cta-cd-digit { color: var(--cta-cd-d-color); text-shadow: var(--cta-cd-shadow-d, none); }
.cta-cd-unit-h .cta-cd-digit { color: var(--cta-cd-h-color); text-shadow: var(--cta-cd-shadow-h, none); }
.cta-cd-unit-m .cta-cd-digit { color: var(--cta-cd-m-color); text-shadow: var(--cta-cd-shadow-m, none); }
.cta-cd-unit-s .cta-cd-digit { color: var(--cta-cd-s-color); text-shadow: var(--cta-cd-shadow-s, none); }

.cta-cd-unit-d .cta-cd-label { color: var(--cta-cd-d-label-color); }
.cta-cd-unit-h .cta-cd-label { color: var(--cta-cd-h-label-color); }
.cta-cd-unit-m .cta-cd-label { color: var(--cta-cd-m-label-color); }
.cta-cd-unit-s .cta-cd-label { color: var(--cta-cd-s-label-color); }

/* Warning State */
.cta-cd-warning .cta-cd-digit {
    color: var(--cta-cd-warning-color, #ef4444) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-countdown-timer {
        transform: scale(var(--cta-cd-mobile-scale, 0.8));
    }
    .cta-cd-mobile-stack {
        flex-direction: column;
    }
}



/* Version: 1.1.39 */

/* ══ 1. MODERN MINIMAL ══ */
.cta-block.style-1 {
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

/* ══ 2. BORDERED SHARP ══ */
.cta-block.style-2 {
    text-align: center;
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

/* ══ 3. SOFT ELEGANCE ══ */
.cta-block.style-3 {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

/* ══ 4. SPLIT LANDSCAPE ══ */
.cta-block.style-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 40px 50px;
}
@media (max-width: 768px) {
    .cta-block.style-4 { flex-direction: column; text-align: center; padding: 40px 30px; }
}

/* ══ 5. GHOST TREND ══ */
.cta-block.style-5 {
    background: transparent !important;
    border: 2px dashed rgba(0,0,0,0.2) !important;
    box-shadow: none;
    text-align: center;
}
.cta-block.style-5 .cta-button {
    background: #000 !important;
    color: #fff !important;
}

/* ══ 6. VIBRANT MESH ══ */
.cta-block.style-6 {
    background-color: var(--cta-bg-color, #6366f1) !important;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%) !important;
    background-size: cover;
    color: #ffffff !important;
    text-align: center;
}
.cta-block.style-6 .cta-title, .cta-block.style-6 .cta-description { color: #fff !important; }
.cta-block.style-6 .cta-button { background: #fff !important; color: #000 !important; font-weight: 700; }

/* ══ 7. NOIR PREMIUM ══ */
.cta-block.style-7 {
    background: #0f172a !important;
    border: 1px solid #1e293b;
    color: #f8fafc !important;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.cta-block.style-7 .cta-title { color: #fff !important; }
.cta-block.style-7 .cta-description { color: #94a3b8 !important; }

/* ══ 8. NEUMORPHIC PURE ══ */
.cta-block.style-8 {
    background: #e0e5ec !important;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff !important;
    border: none !important;
    text-align: center;
}
.cta-block.style-8 .cta-button {
    background: #e0e5ec !important;
    box-shadow: 6px 6px 12px #bebebe, -6px -6px 12px #ffffff !important;
    border: none !important;
}
.cta-block.style-8 .cta-button:hover {
    box-shadow: inset 4px 4px 8px #bebebe, inset -4px -4px 8px #ffffff !important;
}

/* ══ 9. DUO TONE BENTO ══ */
.cta-block.style-9 {
    display: flex;
    flex-direction: row;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.cta-block.style-9 .cta-body { flex-direction: row; padding: 0; }
.cta-block.style-9 .cta-content { flex: 1.5; padding: 50px; text-align: left; }
.cta-block.style-9 .cta-actions { 
    flex: 1; background: var(--cta-bg-color, #f8fafc); 
    margin: 0 !important; padding: 40px; 
    justify-content: center; flex-direction: column;
}
@media (max-width: 768px) {
    .cta-block.style-9 .cta-body { flex-direction: column; }
}

/* ══ 10. GLASS GLOW ══ */
.cta-block.style-10 {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}
.cta-block.style-10::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at top right, var(--cta-bg-color, #3b82f6), transparent 400px);
    opacity: 0.1; z-index: -1;
}

/* ══ ANIMATIONS ══════════════════════════════════ */

/* 1. Slow Pulse */
.cta-anim-pulse {
    animation: cta-pulse 4s ease-in-out infinite;
}
@keyframes cta-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* 2. Diagonal Slide */

/* Enhanced button hover effects */
.cta-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Glow effect */
.cta-button[data-hover="glow"]:hover {
    box-shadow: 0 0 20px currentColor;
    transform: translateY(-2px);
}

/* Slide background */
.cta-button[data-hover="slide"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
}
.cta-button[data-hover="slide"]:hover:before {
    left: 0;
}

/* Ripple effect (simple) */
.cta-button[data-hover="ripple"] {
    overflow: hidden;
}
.cta-button[data-hover="ripple"]:after {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0);
    opacity: 0; transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}
.cta-button[data-hover="ripple"]:hover:after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Apply hover bg and scale variables if provided */
.cta-button:hover {
    background-color: var(--cta-btn-hover-bg, unset);
    transform: scale(var(--cta-btn-hover-scale, 1)) translateY(-2px);
}
.cta-anim-slide {
    position: relative;
    overflow: hidden;
}
.cta-anim-slide::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: cta-slide 6s linear infinite;
}
@keyframes cta-slide {
    0% { transform: translate(-30%, -30%) rotate(45deg); }
    100% { transform: translate(30%, 30%) rotate(45deg); }
}

/* 3. Surface Shine */
.cta-anim-shine {
    position: relative;
    overflow: hidden;
}
.cta-anim-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    animation: cta-shine 4s infinite;
}
@keyframes cta-shine {
    0% { left: -100%; }
    20%, 100% { left: 150%; }
}

/* 4. Floating Glow */
.cta-anim-floating {
    animation: cta-float 5s ease-in-out infinite;
}
@keyframes cta-float {
    0%, 100% { transform: translateY(0); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    50% { transform: translateY(-10px); box-shadow: 0 25px 25px rgba(0,0,0,0.05); }
}

/* Edge Glow */
.cta-anim-glow {
    border: 1px solid rgba(255,255,255,0.1);
    animation: cta-glow 3s alternate infinite;
}
@keyframes cta-glow {
    from { box-shadow: 0 0 5px rgba(255,255,255,0.05); }
    to { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
}

/* Rainbow Flow */
.cta-anim-rainbow {
    background-size: 200% 200% !important;
    animation: cta-rainbow 5s linear infinite !important;
}
@keyframes cta-rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ripple Waves */
.cta-anim-ripple {
    position: relative;
    overflow: hidden;
}
.cta-anim-ripple::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: cta-ripple 4s infinite;
    pointer-events: none;
}
@keyframes cta-ripple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Moving Particles (Simulated) */
.cta-anim-particles {
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
                      radial-gradient(circle at 70% 60%, rgba(255,255,255,0.1) 1px, transparent 1px),
                      radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 1px, transparent 1px) !important;
    background-size: 100px 100px !important;
    animation: cta-particles 10s linear infinite;
}
@keyframes cta-particles {
    from { background-position: 0 0; }
    to { background-position: 100px 200px; }
}

/* Badge Animations */
.cta-badge-blink {
    animation: cta-blink 1s step-start infinite;
}
@keyframes cta-blink {
    50% { opacity: 0; }
}

.cta-badge-pulse {
    animation: cta-pulse-badge 1.5s ease-in-out infinite;
}
@keyframes cta-pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cta-badge-shake {
    animation: cta-shake 0.5s ease-in-out infinite;
}
@keyframes cta-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.cta-badge-bounce {
    animation: cta-bounce 1s ease-in-out infinite;
}
@keyframes cta-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Button Animations */
.cta-button-blink {
    animation: cta-blink 1s step-start infinite;
}
.cta-button-pulse {
    animation: cta-pulse-badge 1.5s ease-in-out infinite;
}
.cta-button-shake {
    animation: cta-shake 0.5s ease-in-out infinite;
}
.cta-button-bounce {
    animation: cta-bounce 1s ease-in-out infinite;
}

/* Countdown Animations (Triggers on unit change because elements are re-rendered) */
.cta-cd-anim-fade .cta-cd-digit {
    animation: cta-cd-fade-in 0.4s ease-out;
}
@keyframes cta-cd-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-cd-anim-scale .cta-cd-digit {
    animation: cta-cd-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cta-cd-scale-in {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cta-cd-anim-bounce .cta-cd-digit {
    animation: cta-cd-bounce-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes cta-cd-bounce-in {
    0% { transform: translateY(8px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.cta-cd-anim-flip .cta-cd-digit {
    animation: cta-cd-flip-in 0.6s ease-out;
    backface-visibility: hidden;
}
@keyframes cta-cd-flip-in {
    from { transform: rotateX(-90deg); opacity: 0; }
    to { transform: rotateX(0); opacity: 1; }
}


