@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Wrapper principal ──────────────────────────────────────────────────── */
.content-locker-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border: none;
    padding: 36px 32px 28px;
    margin: 30px auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(22, 44, 61, 0.08);
    border-radius: 16px;
    max-width: 440px;
    position: relative;
    overflow: visible;   /* visible para o dropdown não ser cortado */
    box-sizing: border-box;
}

.content-locker-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #00C2B8 0%, #4F73F5 100%);
}

/* ─── Ícone de cadeado ───────────────────────────────────────────────────── */
.clec-lock-icon {
    font-size: 34px;
    display: block;
    text-align: center;
    margin-bottom: 10px;
    animation: clec-bounce 1.8s ease-in-out infinite;
}

@keyframes clec-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* ─── Cabeçalho do formulário ────────────────────────────────────────────── */
.email-capture-form { text-align: center; width: 100%; }

.email-capture-form h3 {
    margin: 0 0 6px;
    color: #162C3D;
    font-size: 21px;
    font-weight: 700;
}

.email-capture-form p {
    color: #556b7d;
    font-size: 14px;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ─── Wrapper de campo ───────────────────────────────────────────────────── */
.clec-field-wrap {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
    position: relative;
}

/* ─── Erro inline ────────────────────────────────────────────────────────── */
.clec-field-error {
    display: block;
    color: #d32f2f;
    font-size: 12px;
    text-align: left;
    position: absolute;
    bottom: -18px;
    left: 4px;
    line-height: 1;
}

/* ─── Inputs comuns (text, email) — altura e estilo idênticos ────────────── */
.email-capture-form input[type="email"],
.email-capture-form input[type="text"] {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #e1e5e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #162C3D;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.email-capture-form input[type="email"]:focus,
.email-capture-form input[type="text"]:focus {
    outline: none;
    border-color: #00C2B8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,194,184,0.12);
}

/* ─── Campo de telefone: wrapper unificado (mesma altura dos outros inputs) ── */
.clec-phone-field {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;                 /* igual aos inputs de texto */
    border: 2px solid #e1e5e8;
    border-radius: 10px;
    background: #f8fafc;
    box-sizing: border-box;
    overflow: visible;            /* deixar dropdown aparecer fora */
    transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
    position: relative;
}

.clec-phone-field:focus-within {
    border-color: #00C2B8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,194,184,0.12);
}

/* Divisor vertical entre o picker e o input numérico */
.clec-phone-sep {
    flex-shrink: 0;
    width: 1px;
    height: 26px;
    background: #dde2e8;
    margin: 0 2px;
}

/* Input numérico — sem borda própria (herda do .clec-phone-field) */
.clec-phone-field > input[type="tel"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 14px !important;
    font-size: 15px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #162C3D;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.clec-phone-field > input[type="tel"]:focus {
    outline: none;
    box-shadow: none !important;
    border: none !important;
}

/* ─── Seletor de país customizado ────────────────────────────────────────── */
.clec-cpicker {
    position: relative;
    flex-shrink: 0;
    height: 100%;
}

/* Botão trigger: bandeira + código + chevron */
.clec-cpicker-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 8px 0 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    white-space: nowrap;
    outline: none;
    border-radius: 8px 0 0 8px;
    transition: background 0.15s;
}

.clec-cpicker-btn:hover,
.clec-cpicker-btn.open {
    background: rgba(0, 194, 184, 0.07);
}

.clec-sel-flag {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.clec-sel-code {
    font-size: 13px;
    font-weight: 600;
    color: #162C3D;
    min-width: 28px;
}

.clec-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.clec-cpicker-btn.open .clec-chevron {
    transform: rotate(180deg);
}

/* ─── Painel dropdown ────────────────────────────────────────────────────── */
.clec-cdropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -2px;               /* alinha com a borda do .clec-phone-field */
    z-index: 99999;
    width: 270px;
    background: #ffffff;
    border: 2px solid #e1e5e8;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(22, 44, 61, 0.14);
    overflow: hidden;
}

.clec-cdropdown.clec-hidden { display: none; }

/* Campo de busca */
.clec-csearch-wrap {
    padding: 10px 10px 8px;
    border-bottom: 1px solid #f0f4f8;
}

.clec-csearch {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e1e5e8;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #162C3D;
    background: #f8fafc;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.clec-csearch:focus {
    border-color: #00C2B8;
    background: #fff;
}

/* Lista de países */
.clec-clist {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    max-height: 230px;
    overflow-y: auto;
}

.clec-clist::-webkit-scrollbar { width: 5px; }
.clec-clist::-webkit-scrollbar-track { background: transparent; }
.clec-clist::-webkit-scrollbar-thumb { background: #dde2e8; border-radius: 4px; }

/* Item de país */
.clec-country-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #162C3D;
    transition: background 0.12s;
}

.clec-country-option:hover { background: #f0f9f9; }

.clec-csel {
    background: #e6f9f8;
    font-weight: 600;
}

.clec-opt-flag {
    font-size: 20px;
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}

.clec-opt-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clec-opt-code {
    font-size: 12px;
    color: #8a9bb0;
    font-weight: 500;
    flex-shrink: 0;
}

/* ─── Botão principal ────────────────────────────────────────────────────── */
.email-capture-form button[type="submit"],
#clec-submit-btn {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 24px;
    margin-top: 8px;
    background: linear-gradient(135deg, #00C2B8 0%, #00a89f 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0.2px;
    box-sizing: border-box;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.email-capture-form button[type="submit"]:hover,
#clec-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,194,184,0.30);
}

.email-capture-form button[type="submit"]:active,
#clec-submit-btn:active  { transform: translateY(0); }

.email-capture-form button[type="submit"]:disabled,
#clec-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ─── Feedback de envio ──────────────────────────────────────────────────── */
#clec-message {
    margin-top: 12px;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

#clec-message.success { display:block; color:#008a83; background:#e6f9f8; border:1px solid #ccefee; }
#clec-message.error   { display:block; color:#d32f2f; background:#fdeaea; border:1px solid #f9caca; }

/* ─── Proteção de conteúdo ───────────────────────────────────────────────── */
.clec-protected-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

@media print { body { display: none !important; } }

/* ─── Animação de sucesso ────────────────────────────────────────────────── */
.clec-success-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    width: 100%;
}

.clec-check-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00C2B8 0%, #00a89f 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    box-shadow: 0 8px 24px rgba(0,194,184,0.35);
    animation: clec-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes clec-pop {
    0%   { transform: scale(0.3); opacity: 0; }
    70%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}