/* ============================================================
   FONTE E RESET
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #1A3A6B;
    --primary-blue-light: #2A5A8B;
    --primary-blue-dark: #0E2A4A;
    --secondary-blue: #E8EEF7;
    --white: #FFFFFF;
    --gray-bg: #F5F7FA;
    --gray-border: #DCE2EB;
    --gray-text: #6B7A8F;
    --dark-text: #1A2A4A;
    --success: #0D9488;
    --warning: #F59E0B;
    --danger: #DC2626;
    --shadow: 0 4px 16px rgba(26, 58, 107, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-bg);
    color: var(--dark-text);
    margin: 0;
    padding: 20px;
    padding-bottom: 140px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 16px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.topbar p {
    margin: 0;
    letter-spacing: 0.3px;
}

/* ============================================================
   FORM CONTAINER
   ============================================================ */
#form-container {
    margin-top: 80px;
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ============================================================
   LAYOUT COM PERSONA
   ============================================================ */
.conteudo-com-persona {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.formulario {
    flex: 1 1 60%;
    min-width: 300px;
}

#persona-inicial {
    width: 380px !important; /* Tamanho fixo padrão */
    max-width: 40vw !important;
    height: auto !important;
    position: relative !important;
    z-index: 1 !important;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    align-self: center;
}

@media (max-width: 992px) {
    #persona-inicial {
        width: 300px !important;
        max-width: 35vw !important;
    }
}

@media (max-width: 768px) {
    #persona-inicial {
        display: none !important; /* Esconde em telas pequenas (celular) */
    }
}

@media (min-width: 769px) {
    .conteudo-com-persona {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 20px !important;
    }
}

/* ============================================================
   TÍTULOS
   ============================================================ */
h1, h2, h3 {
    color: var(--primary-blue);
    font-weight: 600;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.nowrap {
    white-space: nowrap;
}

/* ============================================================
   LABELS E INPUTS
   ============================================================ */
label {
    font-weight: 600;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background: var(--white);
    min-width: 200px;
}

.input-group input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.08);
}

small {
    display: block;
    margin-bottom: 15px;
    color: var(--gray-text);
    font-size: 13px;
}

/* ============================================================
   BOTÕES
   ============================================================ */
button {
    padding: 14px 32px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

button:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 58, 107, 0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secundario {
    background: var(--gray-border);
    color: var(--primary-blue);
}

.btn-secundario:hover {
    background: #C5D0DE;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #0F766E;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #1DA851;
}

.btn-imprimir {
    background: var(--gray-text);
}

.btn-imprimir:hover {
    background: var(--primary-blue-dark);
}

/* ============================================================
   STEPS
   ============================================================ */
.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DADOS DO CLIENTE
   ============================================================ */
.dados-cliente {
    background: var(--secondary-blue);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-blue);
}

.dados-cliente .linha {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.dados-cliente .campo {
    display: flex;
    flex-direction: column;
}

.dados-cliente .campo label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-text);
    margin-bottom: 2px;
}

.dados-cliente .campo span {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ============================================================
   LISTA DE CONTRATOS
   ============================================================ */
.lista-contratos h3 {
    font-size: 17px;
    margin-bottom: 16px;
}

.contrato-item {
    background: var(--white);
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.contrato-item:hover {
    border-color: var(--primary-blue-light);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.contrato-item.selected {
    border-color: var(--primary-blue);
    background: var(--secondary-blue);
    box-shadow: 0 4px 16px rgba(26, 58, 107, 0.1);
}

.contrato-item .info {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.contrato-item .info div {
    display: flex;
    flex-direction: column;
}

.contrato-item .info label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--gray-text);
    margin-bottom: 2px;
}

.contrato-item .info span {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text);
}

.contrato-item .info .valor-original {
    color: var(--success);
}

.contrato-item .dias {
    background: #FEE2E2;
    color: var(--danger);
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.contrato-item .dias.verde {
    background: #DCFCE7;
    color: var(--success);
}

/* ============================================================
   OPÇÕES DE NEGOCIAÇÃO
   ============================================================ */
.opcoes-negociacao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .opcoes-negociacao {
        grid-template-columns: 1fr;
    }
}

.opcao {
    background: var(--white);
    padding: 22px;
    border-radius: 14px;
    border: 2px solid var(--gray-border);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.opcao:hover {
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow);
}

.opcao h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.opcao .valor {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 6px 0 2px;
}

.opcao .parcela {
    font-size: 14px;
    color: var(--gray-text);
}

.opcao .detalhes {
    margin: 12px 0 16px;
    padding: 12px 14px;
    background: var(--gray-bg);
    border-radius: 10px;
    font-size: 13px;
    color: var(--gray-text);
    border: 1px solid var(--gray-border);
}

.opcao .badge-desconto {
    display: inline-block;
    background: #DCFCE7;
    color: var(--success);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

.opcao button {
    width: 100%;
    margin-top: auto;
}

/* ============================================================
   CONFIRMAÇÃO
   ============================================================ */
.confirmacao h3 {
    text-align: center;
    margin-bottom: 20px;
}

.confirmacao .resumo {
    background: var(--secondary-blue);
    padding: 24px 28px;
    border-radius: 12px;
    margin: 16px 0;
    border-left: 4px solid var(--primary-blue);
}

.confirmacao .resumo .linha {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
}

.confirmacao .resumo .linha:last-child {
    border-bottom: none;
}

.confirmacao .resumo .total {
    font-weight: 700;
    font-size: 18px;
}

.buttons-confirm {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ============================================================
   SUCESSO
   ============================================================ */
.success {
    text-align: center;
}

.icone-sucesso {
    font-size: 64px;
    margin-bottom: 10px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.detalhes-acordo {
    background: var(--secondary-blue);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 16px 0;
    text-align: left;
    border-left: 4px solid var(--primary-blue);
}

.detalhes-acordo .linha {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-border);
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
}

.detalhes-acordo .linha:last-child {
    border-bottom: none;
}

/* ============================================================
   WHATSAPP AREA
   ============================================================ */
.whatsapp-area {
    background: #F0FDF4;
    padding: 24px 28px;
    border-radius: 14px;
    border: 2px solid #BBF7D0;
    margin: 20px 0;
}

.whatsapp-area h3 {
    color: var(--success);
    margin-bottom: 4px;
}

.whatsapp-area p {
    color: var(--gray-text);
    margin-bottom: 15px;
    font-size: 14px;
}

.msg-sucesso {
    background: #BBF7D0;
    color: #166534;
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 500;
    border-left: 4px solid var(--success);
}

/* ============================================================
   LOADING E ERRO
   ============================================================ */
.loading {
    display: none;
    text-align: center;
    padding: 28px 0;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid var(--gray-border);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.erro-mensagem {
    color: var(--danger);
    background: #FEE2E2;
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 16px;
    border-left: 4px solid var(--danger);
    font-weight: 500;
}

/* ============================================================
   PASSO A PASSO
   ============================================================ */
#passo-a-passo {
    list-style-type: decimal;
    padding-left: 20px;
    font-size: 15px;
    line-height: 2;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 25px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    color: var(--dark-text);
}

#passo-a-passo li {
    margin-bottom: 4px;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: var(--white);
    z-index: 1100;
    text-align: center;
    font-size: 12px;
    color: var(--gray-text);
    border-top: 1px solid var(--gray-border);
}

/* ============================================================
   LOGOS RODAPÉ
   ============================================================ */
.corner-logos {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 1200;
    background: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.corner-logos img {
    height: 35px;
    max-width: 100px;
    object-fit: contain;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .corner-logos {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        background: transparent;
        position: static;
        padding: 10px 0;
    }
    .corner-logos img {
        max-width: 80px;
        height: auto;
    }
}

/* ============================================================
   WHATSAPP FLOATING
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1500;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-balloon {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: pulse-whatsapp 2s infinite;
    transition: transform 0.2s ease;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.whatsapp-balloon:hover {
    transform: scale(1.05);
}

.whatsapp-balloon img {
    width: 24px;
    height: 24px;
}

.whatsapp-text {
    display: inline;
}

@media (max-width: 600px) {
    .whatsapp-balloon {
        padding: 12px;
        border-radius: 50%;
    }
    .whatsapp-text {
        display: none;
    }
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   RESPONSIVIDADE GERAL
   ============================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 22px;
        text-align: center;
    }
    .nowrap {
        white-space: normal;
    }
    #form-container {
        margin-top: 70px;
        padding: 10px;
    }
    .input-group input {
        min-width: 100%;
    }
    button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .corner-logos img {
        height: 28px;
        max-width: 60px;
    }
    .whatsapp-balloon {
        padding: 10px;
    }
}
/* ============================================================
   NEGOCIAÇÃO - LAYOUT OTIMIZADO
   ============================================================ */

/* --- Cabeçalho do Contrato --- */
.negociacao-header {
    grid-column: 1 / -1;
    background: var(--senff-gray, #f5f7fa);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--senff-gold, #c9a96e);
}

.contrato-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--senff-dark, #1a2a4a);
    font-size: 16px;
    margin-bottom: 4px;
}

.contrato-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
    color: var(--senff-text-light, #6b7a8f);
}

.dias-atraso {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.valor-original {
    font-weight: 500;
}

/* --- Card À Vista --- */
.card-vista {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #0d9488;
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.card-vista:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-badge-destaque {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #0d9488;
}

.badge-desconto-max {
    background: #0d9488;
    color: white;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-valor-principal {
    font-size: 32px;
    font-weight: 700;
    color: #0d9488;
    margin: 6px 0 2px;
}

.card-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 14px;
    color: var(--senff-text-light, #6b7a8f);
    margin-bottom: 12px;
}

/* --- Seção Parcelamento --- */
.parcelamento-section {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.parcelamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 8px;
    border-bottom: 2px solid var(--senff-gray-medium, #e8ecf1);
    margin-bottom: 14px;
}

.parcelamento-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 17px;
    color: var(--senff-dark, #1a2a4a);
}

.parcelamento-base {
    font-size: 13px;
    color: var(--senff-text-light, #6b7a8f);
}

/* --- Grid de Parcelas --- */
.parcelas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

@media (max-width: 500px) {
    .parcelas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .parcelas-grid {
        grid-template-columns: 1fr;
    }
}

.parcela-card {
    background: white;
    border: 1.5px solid var(--senff-gray-medium, #e8ecf1);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.parcela-card:hover {
    border-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.parcela-card.destaque {
    border-color: #0d9488;
    background: #fafffe;
}

.parcela-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.parcela-qtd {
    font-weight: 700;
    font-size: 18px;
    color: var(--senff-dark, #1a2a4a);
}

.parcela-badge {
    background: #dcfce7;
    color: #0d9488;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.parcela-recomendado {
    background: #fef3c7;
    color: #b45309;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.parcela-valor {
    font-size: 24px;
    font-weight: 700;
    color: #0d9488;
    margin: 2px 0;
}

.parcela-total {
    font-size: 13px;
    color: var(--senff-text-light, #6b7a8f);
}

.parcela-detalhes {
    font-size: 12px;
    color: var(--senff-text-light, #6b7a8f);
    margin: 4px 0 10px;
}

.btn-selecionar-parcela {
    background: transparent;
    border: 1.5px solid #0d9488;
    color: #0d9488;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-selecionar-parcela:hover {
    background: #0d9488;
    color: white;
}

/* --- Ver Todas --- */
.ver-todas {
    grid-column: 1 / -1;
    border: 2px dashed var(--senff-gray-medium, #d1d9e6);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.ver-todas:hover {
    border-color: #0d9488;
    background: #fafffe;
}

.ver-todas span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: var(--senff-dark, #1a2a4a);
}

.ver-todas-info {
    display: block;
    font-size: 13px;
    color: var(--senff-text-light, #6b7a8f);
    margin-top: 4px;
}

/* --- Botões utilitários --- */
.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-primario {
    background: #0d9488;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primario:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.btn-secundario {
    background: var(--senff-gray, #f5f7fa);
    color: var(--senff-dark, #1a2a4a);
    border: 1.5px solid var(--senff-gray-medium, #e8ecf1);
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secundario:hover {
    background: var(--senff-gray-medium, #e8ecf1);
    transform: translateY(-2px);
}

.aviso-unico {
    grid-column: 1 / -1;
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b45309;
    font-weight: 500;
    margin-bottom: 8px;
}
/* ============================================================
   PARCELAMENTO - TODAS AS OPÇÕES
   ============================================================ */

.parcelamento-info-box {
    grid-column: 1 / -1;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.parcelamento-info-box svg {
    flex-shrink: 0;
}

/* Ajustes para o grid quando tem muitas opções */
.parcelas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    grid-column: 1 / -1;
}

@media (max-width: 500px) {
    .parcelas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .parcelas-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards de parcelas */
.parcela-card {
    background: white;
    border: 1.5px solid var(--senff-gray-medium, #e8ecf1);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.parcela-card:hover {
    border-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.parcela-card.destaque {
    border-color: #0d9488;
    background: #fafffe;
}

/* Header da parcela */
.parcela-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.parcela-qtd {
    font-weight: 700;
    font-size: 18px;
    color: var(--senff-dark, #1a2a4a);
}

.parcela-badge {
    background: #dcfce7;
    color: #0d9488;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.parcela-recomendado {
    background: #fef3c7;
    color: #b45309;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* Valores */
.parcela-valor {
    font-size: 24px;
    font-weight: 700;
    color: #0d9488;
    margin: 2px 0;
}

.parcela-total {
    font-size: 13px;
    color: var(--senff-text-light, #6b7a8f);
}

.parcela-detalhes {
    font-size: 12px;
    color: var(--senff-text-light, #6b7a8f);
    margin: 4px 0 10px;
}

/* Botão de seleção */
.btn-selecionar-parcela {
    background: transparent;
    border: 1.5px solid #0d9488;
    color: #0d9488;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-selecionar-parcela:hover {
    background: #0d9488;
    color: white;
}

/* Botão Voltar */
.btn-secundario {
    background: var(--senff-gray, #f5f7fa);
    color: var(--senff-dark, #1a2a4a);
    border: 1.5px solid var(--senff-gray-medium, #e8ecf1);
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secundario:hover {
    background: var(--senff-gray-medium, #e8ecf1);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVIDADE GERAL
   ============================================================ */

@media (max-width: 768px) {
    .negociacao-header {
        padding: 12px 16px;
    }
    
    .contrato-tag {
        font-size: 14px;
    }
    
    .card-valor-principal {
        font-size: 26px;
    }
    
    .parcela-valor {
        font-size: 20px;
    }
    
    .parcelamento-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 400px) {
    .card-vista {
        padding: 14px 16px;
    }
    
    .card-valor-principal {
        font-size: 22px;
    }
    
    .parcela-card {
        padding: 10px 12px;
    }
    
    .parcela-qtd {
        font-size: 16px;
    }
    
    .parcela-valor {
        font-size: 18px;
    }
}