/* =========================================================
   Content Lead Gate — Styles
   ========================================================= */

/* The gated content wrapper added by JS */
.clg-gated-content {
    position: relative;
}

.clg-gated-content--blurred .clg-gated-content__inner {
    -webkit-filter: blur(var(--clg-blur, 6px));
            filter: blur(var(--clg-blur, 6px));
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: filter 0.4s ease;
    /* Fade content to transparent toward the bottom to soften the cut */
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
            mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    max-height: 260px;
    overflow: hidden;
}

/* Gate overlay card */
.clg-gate {
    display: none; /* shown by JS after it activates */
    text-align: center;
    margin: 0 auto 2rem;
    padding: 2.5rem 2rem;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.clg-gate--active {
    display: block;
}

.clg-gate__headline {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a202c;
    line-height: 1.3;
}

.clg-gate__subtext {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.clg-gate__form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.clg-gate__input {
    flex: 1 1 200px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid #cbd5e0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    color: #1a202c;
}

.clg-gate__input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.clg-gate__btn {
    flex: 0 0 auto;
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: #2b6cb0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.clg-gate__btn:hover {
    background: #2c5282;
}

.clg-gate__btn:active {
    transform: scale(0.97);
}

.clg-gate__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Inline feedback message */
.clg-gate__message {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    min-height: 1.2em;
    color: #e53e3e; /* error red by default */
}

.clg-gate__message--success {
    color: #276749;
}

/* Revealed state — remove blur */
.clg-gated-content--revealed .clg-gated-content__inner {
    -webkit-filter: none;
            filter: none;
    -webkit-mask-image: none;
            mask-image: none;
    max-height: none;
    overflow: visible;
}
