.cta26-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2933;
}

.cta26-form {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.cta26-form h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #14532d;
}

.cta26-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.cta26-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 400;
}

.cta26-grid label span {
    font-size: 13px;
    font-weight: 600;
    color: #52606d;
}

.cta26-grid input,
.cta26-grid select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    min-height: 40px;
    border: 1px solid #cbd2d9;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2933;
    background: #fff;
    outline: none;
}

.cta26-grid input:focus,
.cta26-grid select:focus {
    border-color: #15803d;
    box-shadow: 0 0 0 1px #15803d;
}

.cta26-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.cta26-actions button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cta26-actions button:first-child {
    background: #15803d;
    color: #fff;
}

.cta26-actions button:first-child:hover {
    background: #166534;
}

.cta26-actions .secondary {
    background: #f3f4f6;
    color: #1f2933;
    border: 1px solid #d1d5db;
}

.cta26-actions .secondary:hover {
    background: #e5e7eb;
}

#cta26-loading {
    margin-top: 20px;
    font-style: italic;
    color: #52606d;
}

#cta26-error {
    margin-top: 20px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 6px;
}

#cta26-results {
    margin-top: 24px;
}

.cta26-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.cta26-kpis > div {
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    padding: 16px;
    background: #f9fafb;
}

.cta26-kpis span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #52606d;
}

.cta26-kpis strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #14532d;
}

.cta26-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.cta26-card {
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    padding: 16px;
    background: #f9fafb;
    box-shadow: none;
    margin: 0;
}

.cta26-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #14532d;
    border-bottom: 1px solid #e2e5e9;
    padding-bottom: 8px;
}

.cta26-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 8px;
    column-gap: 8px;
}

.cta26-card dt {
    font-size: 13px;
    font-weight: 400;
    color: #52606d;
}

.cta26-card dd {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    color: #1f2933;
}

.cta26-tech {
    background: #fff;
}

.cta26-note {
    margin: 24px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    border-top: 1px solid #e2e5e9;
    padding-top: 12px;
}


@media (max-width: 900px) {
    .cta26-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cta26-wrap {
        padding: 18px;
    }

    .cta26-grid,
    .cta26-kpis,
    .cta26-results-grid {
        grid-template-columns: 1fr;
    }

    .cta26-actions {
        flex-wrap: wrap;
    }
}

/* Destaques principais dos resultados */
.cta26-kpis-featured {
    grid-template-columns: minmax(260px, 1.35fr) minmax(260px, 1.35fr) minmax(180px, .8fr);
    align-items: stretch;
}

.cta26-kpis-featured > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 105px;
}

.cta26-kpi-sale {
    background: #14532d !important;
    border-color: #14532d !important;
    box-shadow: 0 8px 22px rgba(20, 83, 45, .16);
}

.cta26-kpi-sale span,
.cta26-kpi-sale small,
.cta26-kpi-sale strong {
    color: #ffffff !important;
}

.cta26-kpi-sale strong {
    font-size: 30px !important;
    line-height: 1.15;
}

.cta26-kpi-profit {
    border-width: 2px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
}

.cta26-kpi-profit strong {
    font-size: 28px !important;
    line-height: 1.15;
}

.cta26-profit-positive {
    background: #ecfdf3 !important;
    border-color: #15803d !important;
}

.cta26-profit-positive strong {
    color: #166534 !important;
}

.cta26-profit-negative {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
}

.cta26-profit-negative strong {
    color: #b91c1c !important;
}

.cta26-kpis-featured small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.cta26-kpi-secondary {
    align-self: stretch;
}

@media (max-width: 760px) {
    .cta26-kpis-featured {
        grid-template-columns: 1fr;
    }

    .cta26-kpi-sale strong,
    .cta26-kpi-profit strong {
        font-size: 26px !important;
    }
}

/* Correção de compatibilidade com Elementor/temas: mantém os campos lado a lado */
.cta26-wrap .cta26-form .cta26-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: end !important;
}

.cta26-wrap .cta26-form .cta26-grid > label {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.cta26-wrap .cta26-form .cta26-grid input,
.cta26-wrap .cta26-form .cta26-grid select {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 820px) {
    .cta26-wrap .cta26-form .cta26-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .cta26-wrap .cta26-form .cta26-grid {
        grid-template-columns: 1fr !important;
    }
}
