/* Content Locker – Frontend CSS v2.0.0 */

.cl-wrap { border-radius: 8px; }

/* Gate */
.cl-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.cl-gate-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
}

/* File preview */
.cl-file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f0f6fc;
    border: 1px solid #b3d4f5;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #1a5276;
}

.cl-file-icon { font-size: 1.4rem; }

.cl-file-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.cl-headline {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.cl-subtext {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 24px;
    line-height: 1.5;
}

.cl-thankyou {
    font-size: 1rem;
    font-weight: 600;
    color: #16a34a;
    padding: 12px 0;
}

/* Form */
.cl-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.cl-email {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.cl-email:focus { border-color: #e87722; }

.cl-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.cl-consent-label input { margin-top: 2px; flex-shrink: 0; accent-color: #e87722; }
.cl-consent-label a { color: #e87722; }

.cl-btn {
    padding: 11px 20px;
    background: #e87722;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.cl-btn:hover    { background: #c96010; }
.cl-btn:active   { transform: scale(0.98); }
.cl-btn:disabled { background: #aaa; cursor: not-allowed; }

.cl-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

/* Download state — gate box switches to this after unlock */
.cl-gate-box--unlocked,
.cl-gate-box:has(.cl-download-btn) {
    background: #f0fdf4;
    border-color: #86efac;
}

.cl-file-icon-lg { font-size: 3rem; display: block; margin-bottom: 8px; }

.cl-download-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.cl-download-filename {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 16px;
}

.cl-download-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #16a34a;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.cl-download-btn:hover  { background: #15803d; color: #fff; }
.cl-download-btn:active { transform: scale(0.98); }
