:root {
    --primary: #1351b4;
    --primary-dark: #071d41;
    --primary-light: #eaf2ff;
    --accent: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --text: #14213d;
    --muted: #667085;
    --border: #e5e7eb;
    --bg: #f4f7fb;
    --white: #fff;
    --shadow: 0 20px 50px rgba(7, 29, 65, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', sans-serif !important;
    background: var(--bg);
    color: var(--text);
    letter-spacing: .1px;
}
a { color: var(--primary); }

.section-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(19,81,180,.08);
    box-shadow: 0 8px 30px rgba(7,29,65,.06);
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { width: 190px; height: auto; }
.brand-link { display: inline-flex; align-items: center; }
.header-trust { align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.header-trust i { color: var(--accent); margin-right: 4px; }

.site-main { min-height: 70vh; }
.hero-section {
    padding: 70px 0 45px;
    background: radial-gradient(circle at top left, rgba(19,81,180,.16), transparent 32%), linear-gradient(135deg, #f7fbff 0%, #eaf2ff 100%);
}
.compact-hero { padding: 52px 0; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: var(--white);
    border: 1px solid rgba(19,81,180,.14);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
}
.hero-section h1 {
    color: var(--primary-dark);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 19px;
    color: #344054;
    max-width: 720px;
    margin-bottom: 24px;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points span {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(22,163,74,.18);
    color: #14532d;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
}
.hero-points i { color: var(--accent); }

.conversion-card,
.form-card,
.article-card,
.side-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(19,81,180,.08);
}
.conversion-card { padding: 30px; }
.conversion-card h2,
.form-heading h1,
.form-card h1 { color: var(--primary-dark); font-weight: 800; margin-bottom: 8px; }
.conversion-card p { color: var(--muted); }

.form-group { margin-bottom: 20px; }
.form-group label { font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--text); }
.form-control, .form-select, select.form-control {
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 48px;
    font-size: 16px;
}
.form-control:focus, select.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .22rem rgba(19,81,180,.13);
}
.form-group small { display: block; color: var(--muted); margin-top: 6px; font-size: 12px; }
.text-danger { font-size: 13px; font-weight: 600; margin-top: 6px; display: block; }
.form-helper { display: block; color: var(--muted); margin-top: 14px; text-align: center; }

.btn { border-radius: 12px; font-weight: 700; }
.btn.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1f6ae0);
    border: 0;
    box-shadow: 0 12px 24px rgba(19,81,180,.22);
}
.btn.btn-primary:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

.trust-section { margin-top: -22px; position: relative; z-index: 3; }
.trust-card {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border: 1px solid rgba(19,81,180,.08);
}
.trust-card div { text-align: center; border-right: 1px solid var(--border); }
.trust-card div:last-child { border-right: 0; }
.trust-card strong { display: block; color: var(--primary); font-size: 22px; }
.trust-card span { color: var(--muted); font-size: 14px; }

.content-section { padding: 64px 0; }
.section-title { margin-bottom: 34px; }
.section-title h2 { color: var(--primary-dark); font-size: 34px; font-weight: 800; }
.section-title p { color: var(--muted); font-size: 17px; }
.step-card, .faq-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    height: 100%;
    box-shadow: 0 12px 26px rgba(7,29,65,.06);
}
.step-card span {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 16px;
}
.step-card h3, .faq-card h3 { color: var(--primary-dark); font-size: 20px; font-weight: 800; }
.step-card p, .faq-card p { color: var(--muted); margin-bottom: 0; }

.warning-section { padding: 10px 0 50px; }
.warning-card {
    border-radius: 24px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.warning-card h2 { color: var(--white); font-weight: 800; }
.warning-card p { opacity: .86; margin: 0; max-width: 740px; }

.form-page { padding: 50px 0 70px; }
.progress-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.progress-step {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}
.progress-step span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #eef2f7;
    margin-right: 4px;
}
.progress-step.active { border-color: rgba(19,81,180,.34); color: var(--primary); box-shadow: 0 10px 25px rgba(19,81,180,.08); }
.progress-step.active span { background: var(--primary); color: #fff; }
.form-card { padding: 34px; }
.form-heading { margin-bottom: 24px; }
.eyebrow { display: block; color: var(--primary); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .8px; margin-bottom: 8px; }
.form-heading p { color: var(--muted); }
.status-state { padding: 22px 0; }
.success-icon { color: var(--accent); font-size: 58px; margin-bottom: 12px; }
.payment-grid { display: grid; gap: 14px; }
.payment-option {
    width: 100%;
    background: #f8fbff;
    border: 1px solid #cfe0ff;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 800;
    transition: .2s;
}
.payment-option:hover { background: var(--primary-light); transform: translateY(-1px); }
.payment-option i { color: var(--primary); font-size: 28px; }
.payment-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin-top: 8px; }
.legal-note { color: var(--muted); text-align: center; font-size: 13px; }

.article-card { padding: 34px; }
.article-card h2, .article-card h3 { color: var(--primary-dark); font-weight: 800; }
.article-card h3 { margin-top: 26px; font-size: 21px; }
.article-card p { color: var(--muted); }
.cta-inline { margin-top: 28px; padding: 24px; border-radius: 18px; background: var(--primary-light); }
.side-card { padding: 26px; }
.side-card h3 { color: var(--primary-dark); font-weight: 800; }
.side-card ul { padding-left: 18px; color: var(--muted); line-height: 2; }
.side-card small { display: block; margin-top: 12px; color: var(--muted); text-align: center; }
.sticky-card { position: sticky; top: 100px; }

.section-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.82);
    padding: 42px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 28px;
}
.section-footer h4, .section-footer h5 { color: #fff; font-weight: 800; margin-bottom: 10px; }
.section-footer p { margin-bottom: 6px; font-size: 14px; }
.disclaimer { color: rgba(255,255,255,.62); font-size: 13px !important; margin-top: 14px; }

@media (max-width: 991px) {
    .hero-section { padding: 48px 0 34px; }
    .warning-card { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .header-wrap { min-height: 66px; justify-content: center; }
    .logo { width: 170px; }
    .hero-section h1 { font-size: 34px; }
    .hero-subtitle { font-size: 16px; }
    .trust-card { grid-template-columns: 1fr; }
    .trust-card div { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
    .trust-card div:last-child { border-bottom: 0; padding-bottom: 0; }
    .form-card, .conversion-card, .article-card { padding: 22px; border-radius: 18px; }
    .progress-box { grid-template-columns: 1fr; }
    .content-section { padding: 44px 0; }
}
.form-group.erro .form-control,
.form-group.erro select.form-control {
    border-color: var(--danger);
    box-shadow: 0 0 0 .18rem rgba(220,38,38,.12);
}
.form-group.sucesso .form-control,
.form-group.sucesso select.form-control {
    border-color: var(--accent);
}

.card-checkout {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(0, 100, 0, .16);
    border-radius: 18px;
    background: #fff;
}
.card-checkout h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.payment-result { margin-top: 16px; }
.pix-qrcode { max-width: 260px; width: 100%; display: block; margin: 0 auto 14px; }
.pix-code { min-height: 110px; font-size: 13px; word-break: break-all; }

/* Ajustes mobile checkout MEI */
@media (max-width: 767px) {
    body { letter-spacing: 0; }
    .form-page { padding: 22px 0 42px; }
    .form-page .container { padding-left: 14px; padding-right: 14px; }

    .progress-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 12px;
    }
    .progress-step {
        border-radius: 12px;
        padding: 9px 4px;
        font-size: 11px;
        line-height: 1.1;
        white-space: nowrap;
    }
    .progress-step span {
        width: 20px;
        height: 20px;
        margin-right: 3px;
        font-size: 11px;
    }

    .form-card,
    .conversion-card,
    .article-card {
        padding: 18px;
        border-radius: 16px;
    }
    .form-heading { margin-bottom: 16px; }
    .eyebrow { font-size: 11px; margin-bottom: 6px; }
    .form-heading h1,
    .form-card h1 {
        font-size: 25px;
        line-height: 1.15;
        margin-bottom: 6px;
    }
    .form-heading p {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .form-group { margin-bottom: 14px; }
    .form-group label { font-size: 13px; line-height: 1.25; }
    .form-control,
    .form-select,
    select.form-control {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 11px;
    }
    .form-group small { font-size: 11px; line-height: 1.3; }

    .btn-lg,
    .btn.btn-lg {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 15px;
        line-height: 1.2;
        border-radius: 12px;
    }

    .payment-grid { gap: 10px; }
    .payment-option {
        padding: 13px;
        border-radius: 13px;
        font-size: 15px;
    }
    .payment-option i { font-size: 22px; }

    .status-state { padding: 14px 0; }
    .status-state h2 { font-size: 22px; line-height: 1.2; }
    .status-state p { font-size: 14px; line-height: 1.35; }
    .success-icon { font-size: 44px; }

    .legal-note {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 380px) {
    .progress-step { font-size: 10px; padding-left: 2px; padding-right: 2px; }
    .progress-step span { width: 18px; height: 18px; margin-right: 2px; }
    .form-heading h1, .form-card h1 { font-size: 23px; }
}

#whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 10px 28px rgba(18, 140, 126, .34);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    animation: whatsappPulse 2.2s infinite;
}

#whatsapp-float:hover,
#whatsapp-float:focus {
    background: #1ebe5d;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 34px rgba(18, 140, 126, .42);
    outline: none;
}

.whatsapp-float-icon {
    width: 40px;
    height: 40px;
    display: block;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 10px 28px rgba(18, 140, 126, .34);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 28px rgba(18, 140, 126, .34);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 28px rgba(18, 140, 126, .34);
    }
}

#whatsapp-box {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 98px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 18px;
    z-index: 99999;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .22);
    overflow: hidden;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    border: 1px solid rgba(18, 140, 126, .12);
}

.whatsapp-box-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 55%, #25D366 100%);
    color: #fff;
    padding: 15px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-box-title strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
}

.whatsapp-box-title small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    opacity: .92;
}

#whatsapp-close {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .16);
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
}

#whatsapp-close:hover {
    background: rgba(255, 255, 255, .26);
}

.whatsapp-box-body {
    padding: 16px;
    background: #f7fff9;
}

.whatsapp-intro {
    margin: 0 0 13px;
    font-size: 13px;
    line-height: 1.4;
    color: #31524b;
}

.whatsapp-box-body label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #075E54;
}

.whatsapp-box-body input {
    width: 100%;
    border: 1px solid #cfe8d8;
    border-radius: 12px;
    padding: 11px 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #172b25;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.whatsapp-box-body input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .16);
    outline: none;
}

#whatsapp-start {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px;
    background: #25D366;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

#whatsapp-start:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    #whatsapp-box {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 88px;
        border-radius: 16px;
    }

    #whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
    }

    .whatsapp-float-icon {
        width: 36px;
        height: 36px;
    }
}

/* Melhorias checkout: valor do pedido, bandeiras e segurança */
.order-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 16px 18px;
    margin: 14px 0;
}
.order-summary span,
.order-summary small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.order-summary strong {
    display: block;
    color: var(--primary-dark);
    font-size: 16px;
    line-height: 1.35;
}
.order-summary-price {
    text-align: right;
    min-width: 118px;
}
.order-summary-price strong {
    color: #006400;
    font-size: 22px;
    font-weight: 800;
}
.order-summary-result {
    margin-top: 0;
    margin-bottom: 14px;
}
.secure-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0 18px;
}
.secure-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f3d3e;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.secure-strip i { color: #16a34a; }
.payment-option strong {
    display: block;
    margin-top: 4px;
    color: #006400;
    font-size: 15px;
}
.card-number-wrap {
    position: relative;
}
.card-number-wrap .form-control {
    padding-right: 108px;
}
.card-brand-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 82px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #dbe3ea;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
}
.card-brand-badge.active {
    background: #ecfdf5;
    border-color: #86efac;
    color: #006400;
}
.card-brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.card-brand-list span {
    border: 1px solid #dbe3ea;
    background: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}
.checkout-total-card,
.pix-amount-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin: 4px 0 14px;
    border-radius: 16px;
    background: #064e3b;
    color: #fff;
}
.checkout-total-card span,
.pix-amount-box span {
    font-size: 13px;
    opacity: .88;
}
.checkout-total-card strong,
.pix-amount-box strong {
    font-size: 22px;
    font-weight: 900;
}

@media (max-width: 640px) {
    .order-summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .order-summary-price {
        width: 100%;
        text-align: left;
    }
    .secure-strip {
        grid-template-columns: 1fr;
    }
    .card-number-wrap .form-control {
        padding-right: 94px;
    }
    .card-brand-badge {
        min-width: 72px;
        font-size: 11px;
    }
}


/* Ajuste mobile checkout enxuto */
.secure-strip-bottom {
    margin: 18px 0 0;
}

@media (max-width: 640px) {
    #divPagamento .form-heading {
        margin-bottom: 10px;
    }

    #divPagamento .form-heading h1 {
        font-size: 24px;
        margin-bottom: 4px;
    }

    #divPagamento .form-heading p {
        font-size: 14px;
        margin-bottom: 0;
    }

    #pedidoResumoPagamento {
        flex-direction: row;
        align-items: center;
        padding: 12px 14px;
        border-radius: 14px;
        margin: 10px 0 12px;
    }

    #pedidoResumoPagamento span,
    #pedidoResumoPagamento small {
        font-size: 11px;
    }

    #pedidoResumoPagamento strong {
        font-size: 14px;
    }

    #pedidoResumoPagamento .order-summary-price {
        width: auto;
        min-width: 92px;
        text-align: right;
    }

    #pedidoResumoPagamento .order-summary-price strong {
        font-size: 19px;
        white-space: nowrap;
    }

    .payment-grid {
        gap: 10px;
        margin-top: 8px;
    }

    .payment-option {
        padding: 13px 10px;
        border-radius: 14px;
    }

    .payment-option i {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .payment-option span {
        font-size: 13px;
    }

    .payment-option strong {
        font-size: 13px;
        margin-top: 2px;
    }

    .card-checkout {
        padding: 14px;
        margin-top: 12px;
        border-radius: 16px;
    }

    .card-checkout h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .card-brand-list {
        display: none;
    }

    .checkout-total-card,
    .pix-amount-box {
        padding: 11px 13px;
        border-radius: 13px;
        margin-bottom: 10px;
    }

    .checkout-total-card strong,
    .pix-amount-box strong {
        font-size: 19px;
    }

    .secure-strip-bottom {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 16px;
    }

    .secure-strip-bottom span {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 12px;
    }

    .order-summary-result {
        padding: 12px 14px;
        margin-bottom: 10px;
    }
}
