/* ============================================================
   PREMIUM B2B HYBRID FEATURES (Before/After, Hotspots, ROI)
   ============================================================ */

/* 1. Before/After Slider */
.kx-compare-wrap {
    padding: 5rem 1.5rem;
    background: #ffffff;
    text-align: center;
}
.kx-compare-header {
    margin-bottom: 3rem;
}
.kx-compare-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--kx-dark);
}
.kx-compare-header span {
    color: var(--kx-green);
}
.kx-compare {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: #0f172a;
}
.kx-compare img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.kx-compare__after {
    clip-path: inset(0 0 0 50%); /* JS will update this */
}
.kx-compare__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}
.kx-compare__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 500px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    cursor: ew-resize;
    position: relative;
}
.kx-compare__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.95);
    border: 3px solid var(--kx-green);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kx-green);
    font-size: 1.5rem;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.kx-compare__label {
    position: absolute;
    bottom: 24px;
    padding: 8px 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kx-compare__label--before { left: 24px; }
.kx-compare__label--after { right: 24px; }

/* 2. Hotspot (Inside Keckex) */
.kx-hotspot-container {
    position: relative;
    display: block;
    width: 100%;
}
.kx-hotspot {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Glowing center dot */
.kx-hotspot::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--kx-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--kx-green);
    transition: all 0.3s;
}
/* Pulse ring */
.kx-hotspot::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 1px solid var(--kx-green);
    border-radius: 50%;
    z-index: -1;
    animation: kx-pulse 2.5s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes kx-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.kx-hotspot:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 50;
}
.kx-hotspot:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--kx-green);
}

/* 3. ROI Calculator (Minimalist) */
.kx-roi-wrap {
    padding: 5rem 1.5rem;
    background: #f8fafc;
}
.kx-roi-calc {
    background: #fff;
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 768px) {
    .kx-roi-calc {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}
.kx-roi-header h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--kx-dark);
    margin-bottom: 1rem;
}
.kx-roi-header p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
}
.kx-roi-slider-group {
    margin-bottom: 2.5rem;
}
.kx-roi-slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.kx-roi-range {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
}
.kx-roi-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--kx-green);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(151, 215, 0, 0.4);
    transition: transform 0.2s;
}
.kx-roi-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.kx-roi-result {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}
.kx-roi-result p {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.kx-roi-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--kx-green);
    line-height: 1;
    margin-bottom: 0;
}
.kx-roi-value span {
    font-size: 1.5rem;
    color: #94a3b8;
}

/* 4. Form Refinement */
.lp-contact-section {
    padding: 6rem 1.5rem;
    background: #ffffff;
}
.kx-premium-form {
    background: #fff;
    padding: 3.5rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 800px;
    margin: 0 auto;
}
.kx-premium-form .form-control {
    border: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
    padding: 1.25rem 0.5rem;
    background: transparent;
    transition: all 0.3s;
    font-size: 1.05rem;
}
.kx-premium-form .form-control:focus {
    box-shadow: none;
    border-color: var(--kx-green);
    background: rgba(248, 250, 252, 0.5);
}
.kx-premium-form .form-label {
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kx-premium-btn {
    background: var(--kx-green);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(151, 215, 0, 0.3);
    transition: all 0.3s;
}
.kx-premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(151, 215, 0, 0.4);
    color: white;
}
