/* ===============================
   CONTENT GATE CSS
   Plug & Play for Case Studies
================================ */

/* PREVIEW BLUR (teaser of locked content) */
.cs-gate-blur {
    filter: blur(5px);
    height: 250px;
    overflow: hidden;
    position: relative;
    pointer-events: none;
    user-select: none;
    margin-bottom: 40px;
}

.cs-gate-blur::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.85) 60%,
            #fff 100%);
}

/* HIDDEN CONTENT UNTIL UNLOCKED */
.cs-gate-hidden {
    display: none;
}

/* FORM (initially hidden, reveal smoothly) */
.cs-gate-form {
    padding: 25px 20px;
    background: #fafafa;
    max-width: 650px;
    margin: 0 auto;
}

/* AFTER UNLOCK 🎉 */
.cs-gate.unlocked .cs-gate-blur {
    filter: none;
    height: auto;
}

.cs-gate.unlocked .cs-gate-blur::after {
    display: none;
}

.cs-gate.unlocked .cs-gate-hidden {
    display: block;
}

.cs-gate.unlocked .cs-gate-form {
    display: none !important;
}

/* UNLOCK FORM WRAPPER (controls visibility & animation) */
.cs-gate-unlock-wrapper {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
    margin-bottom: 40px;
}

.cs-gate-unlock-wrapper.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cs-gate.unlocked .cs-gate-unlock-wrapper {
  display: none !important;
}