/* BCX Lead Capture, modal da raspadinha. 0.1.0, calderon 18/06/2026. */

.bcx-lc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(5px); /* vidro fosco: desfoca o fundo, look premium. calderon 21/06 */
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999990;
    padding: 16px;
    animation: bcxLcFadeIn .2s ease;
}
.bcx-lc-overlay.is-open { display: flex; }
.bcx-lc-overlay.is-min  { display: none; }

@keyframes bcxLcFadeIn { from { opacity: 0 } to { opacity: 1 } }

.bcx-lc-modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    max-width: 380px;
    width: 100%;
    padding: 22px 22px 18px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    color: #1e293b;
}
.bcx-lc-close {
    position: absolute; top: 8px; right: 12px;
    background: transparent; border: 0;
    font-size: 28px; line-height: 1;
    color: #94a3b8; cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}
.bcx-lc-close:hover { background: #f1f5f9; color: #475569; }

.bcx-lc-header { text-align: center; margin: 4px 0 14px; padding: 0 34px; } /* recuo lateral pro titulo centralizado nao entrar embaixo do X. calderon 21/06 */
.bcx-lc-title { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.bcx-lc-subtitle { font-size: 13px; color: #64748b; margin: 0; }

.bcx-lc-canvas-wrap {
    position: relative;
    margin: 0 auto 8px;
    width: 260px; height: 130px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bcx-primary, #EC5424) 0%, var(--bcx-primary-dark, #f97316) 100%);
    box-shadow: inset 0 2px 8px rgba(0,0,0,.15);
}
.bcx-lc-prize {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.bcx-lc-prize-amount { font-size: 44px; font-weight: 900; line-height: 1; }
.bcx-lc-prize-label { font-size: 13px; font-weight: 700; letter-spacing: .5px; margin-top: 2px; }
.bcx-lc-prize-hint  { font-size: 11px; opacity: .9; margin-top: 4px; }
.bcx-lc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.bcx-lc-canvas:active { cursor: grabbing; }

.bcx-lc-instruction { text-align: center; font-size: 12px; color: #64748b; margin: 0 0 12px; }

.bcx-lc-form { display: none; }
.bcx-lc-form.is-visible { display: block; animation: bcxLcSlideUp .25s ease; }
@keyframes bcxLcSlideUp { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
.bcx-lc-form-cta { text-align:center;font-size:14px;color:#1e293b;margin:0 0 12px;font-weight:600; }
.bcx-lc-input-row { display:flex; gap:8px; }
.bcx-lc-input-wrap { flex:1; display:flex; align-items:center; background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:10px; padding:0 12px; }
.bcx-lc-input-wrap:focus-within { border-color:var(--bcx-primary, #EC5424); background:#fff; }
/* O anel de foco global do tema (:focus-visible{outline:brand !important}) pintava um
   retangulo extra em cima do input (autofocado ao abrir). Suprime aqui (especificidade
   maior + !important): o unico indicador de foco do campo e a borda do wrap acima. calderon 21/06 */
.bcx-lc-input:focus, .bcx-lc-input:focus-visible,
.bcx-lc-input-wrap:focus-within, .bcx-lc-input-wrap:focus-visible { outline: none !important; box-shadow: none !important; }
.bcx-lc-flag { font-size: 16px; margin-right: 6px; }
.bcx-lc-input { flex:1; border:0; background:transparent; outline:none; padding:12px 0; font-size:15px; color:#1e293b; }
.bcx-lc-submit {
    background: var(--bcx-primary, #EC5424); color: #fff; border: 0;
    font-weight: 700; font-size: 14px;
    padding: 0 18px; border-radius: 10px;
    cursor: pointer; transition: background .15s ease;
}
.bcx-lc-submit:hover { background: var(--bcx-primary-dark, #d4471c); }
.bcx-lc-submit:disabled { opacity: .55; cursor: not-allowed; }
.bcx-lc-msg { font-size: 12px; margin: 8px 0 0; min-height: 16px; text-align: center; }
.bcx-lc-msg.is-error   { color: #dc2626; }
.bcx-lc-msg.is-success { color: #16a34a; }
.bcx-lc-disclaimer { font-size: 11px; color: #94a3b8; margin: 10px 0 0; text-align: center; line-height: 1.4; }

.bcx-lc-success { display: none; text-align: center; padding: 16px 4px; }
.bcx-lc-success.is-visible { display: block; animation: bcxLcSlideUp .25s ease; }
.bcx-lc-success-icon {
    width: 56px; height: 56px;
    background: #dcfce7; color: #16a34a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.bcx-lc-success-title { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.bcx-lc-success-text  { font-size: 13px; color: #475569; margin: 0; line-height: 1.5; }

@media (max-width: 420px) {
    .bcx-lc-modal { padding: 18px 16px; }
    .bcx-lc-title { font-size: 17px; }
    .bcx-lc-canvas-wrap { width: 100%; max-width: 280px; height: 120px; }
    .bcx-lc-prize-amount { font-size: 38px; }
}
