/* =========================================================================
   TESTE GRÁTIS — card de oferta + modal de cadastro.
   Componente compartilhado pelas variantes do teste A/B (home /v2/ e /oferta/).
   Sem dependência de style.css nem de oferta.css: pode entrar em qualquer página.
   ========================================================================= */

:root {
    --lf-tg-accent: #ff4f00;
    --lf-tg-accent-dark: #e04600;
}

.lf-tg-card {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e6e8eb;
    border-radius: 22px;
    padding: 34px 28px 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
    text-align: center;
    font-family: inherit;
    color: #0f172a;
}

.lf-tg-card__selo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lf-tg-card__titulo {
    margin: 14px 0 6px;
    font-size: clamp(23px, 4vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.lf-tg-card__sub {
    margin: 0 auto 20px;
    max-width: 460px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #475569;
}

.lf-tg-card__itens {
    list-style: none;
    margin: 0 auto 24px;
    padding: 0;
    max-width: 430px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.lf-tg-card__itens li {
    position: relative;
    padding-left: 30px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #334155;
}

.lf-tg-card__itens li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

.lf-tg-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 430px;
    border: none;
    border-radius: 999px;
    background: var(--lf-tg-accent);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    padding: 17px 26px;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 10px 24px rgba(255, 79, 0, .28);
}

.lf-tg-card__btn:hover { background: var(--lf-tg-accent-dark); transform: translateY(-1px); }
.lf-tg-card__btn:active { transform: translateY(0); }

.lf-tg-card__nota {
    margin: 14px auto 0;
    max-width: 430px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #64748b;
}

/* Skin escura — usada na landing /oferta/ (fundo dark). */
.lf-tg-card--dark {
    background: rgba(15, 23, 42, .72);
    border-color: rgba(148, 163, 184, .28);
    color: #e2e8f0;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
}
.lf-tg-card--dark .lf-tg-card__titulo { color: #f8fafc; }
.lf-tg-card--dark .lf-tg-card__sub { color: #cbd5e1; }
.lf-tg-card--dark .lf-tg-card__itens li { color: #e2e8f0; }
.lf-tg-card--dark .lf-tg-card__nota { color: #94a3b8; }
.lf-tg-card--dark .lf-tg-card__selo { background: rgba(4, 120, 87, .22); color: #6ee7b7; }

/* ===== Modal ===== */
.lf-tg-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .68);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.lf-tg-modal.is-open { display: flex; }

.lf-tg-modal__box {
    position: relative;
    width: 100%;
    max-width: 470px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: #fff;
    color: #0f172a;
    border-radius: 20px;
    padding: 28px 26px 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.lf-tg-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.lf-tg-modal__close:hover { background: #f1f5f9; color: #0f172a; }

.lf-tg-modal__titulo { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.lf-tg-modal__sub { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #475569; }

.lf-tg-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; text-align: left; }
.lf-tg-campo label { font-size: 13px; font-weight: 700; color: #334155; }
.lf-tg-campo input[type="text"],
.lf-tg-campo input[type="tel"],
.lf-tg-campo input[type="email"] {
    width: 100%;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    color: #0f172a;
    background: #fff;
    font-family: inherit;
}
.lf-tg-campo input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); }
.lf-tg-campo.has-erro input { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.lf-tg-campo__erro { font-size: 12.5px; color: #dc2626; display: none; }
.lf-tg-campo.has-erro .lf-tg-campo__erro { display: block; }

.lf-tg-aviso {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 4px 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #3730a3;
    text-align: left;
}
.lf-tg-aviso strong { font-weight: 800; }

.lf-tg-aceite { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: 13px; color: #475569; text-align: left; }
.lf-tg-aceite input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: #4f46e5; }
.lf-tg-aceite a, .lf-tg-aceite button { color: #4f46e5; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; font-size: 13px; text-decoration: underline; font-family: inherit; }
.lf-tg-aceite.has-erro { color: #dc2626; }

.lf-tg-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    background: #ff4f00;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 15px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .15s;
    font-family: inherit;
}
.lf-tg-submit:hover:not(:disabled) { background: #e04600; }
.lf-tg-submit:disabled { opacity: .7; cursor: progress; }

.lf-tg-status { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #dc2626; text-align: center; min-height: 18px; }
.lf-tg-legal { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: #94a3b8; text-align: center; }

/* ===== Estado de sucesso ===== */
.lf-tg-sucesso { text-align: center; }
.lf-tg-sucesso__ico {
    width: 62px; height: 62px; border-radius: 50%;
    background: #dcfce7; color: #047857;
    display: flex; align-items: center; justify-content: center;
    margin: 4px auto 14px; font-size: 30px; font-weight: 800;
}
.lf-tg-sucesso__titulo { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.lf-tg-sucesso__txt { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: #475569; }
.lf-tg-sucesso__txt b { color: #0f172a; }
.lf-tg-credenciais {
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px;
    padding: 14px 16px; margin: 0 0 16px; text-align: left; font-size: 14px; color: #7c2d12;
}
.lf-tg-credenciais code { font-size: 15px; font-weight: 800; letter-spacing: .05em; }
.lf-tg-sucesso__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border-radius: 999px; background: #4f46e5; color: #fff;
    font-size: 15.5px; font-weight: 800; padding: 14px 20px; text-decoration: none;
}
.lf-tg-sucesso__btn:hover { background: #4338ca; color: #fff; }
.lf-tg-sucesso__dica { margin: 12px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.55; }

@media (max-width: 520px) {
    .lf-tg-card { padding: 26px 18px 24px; border-radius: 18px; }
    .lf-tg-modal { padding: 10px; }
    .lf-tg-modal__box { padding: 24px 18px 20px; }
}

/* ===== Encaixe nas paginas do site (home v2) ===== */
.secao-teste-gratis { padding-top: 26px; padding-bottom: 26px; }
.secao-teste-gratis .container { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.hero-cta-teste { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 10px auto 6px; width: 100%; }
.hero-cta-teste .lf-tg-card__btn {
    max-width: 520px;
    font-size: 18px;
    padding: 18px 28px;
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .3);
}
.hero-cta-teste .lf-tg-card__btn:hover { box-shadow: 0 18px 40px rgba(15, 23, 42, .36); }
.hero-cta-teste__nota {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(15, 23, 42, .38);
}

/* Link para o teste gratis logo abaixo da vitrine de planos (home). */
.planos-teste-gratis {
    margin: 24px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 1rem;
}
.planos-teste-gratis__link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--lf-tg-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.planos-teste-gratis__link:hover,
.planos-teste-gratis__link:focus-visible { color: var(--lf-tg-accent-dark); }
