/* Estilos exclusivos do Simulador de Dívidas */

#resultado-dividas {
    margin-top: 24px;
}

#resultado-dividas .resumo-divida {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#resultado-dividas .cartao-divida {
    background: #f0f5fa;
    border: 1px solid #d5e2ed;
    border-radius: 12px;
    padding: 20px;
}

#resultado-dividas .cartao-divida h3 {
    font-size: 0.95rem;
    color: #40546b;
    margin: 0 0 10px;
}

#resultado-dividas .cartao-divida .valor {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0c1e35;
    overflow-wrap: anywhere;
}

#resultado-dividas .cartao-divida.total {
    grid-column: 1 / -1;
    background: #e7f2fa;
    border: 2px solid #176b9a;
}

#resultado-dividas .cartao-divida.total .valor {
    color: #176b9a;
    font-size: 2rem;
}

#resultado-dividas .detalhes-divida {
    margin-top: 16px;
    color: #40546b;
    line-height: 1.6;
}

@media (max-width: 600px) {
    #resultado-dividas .resumo-divida {
        grid-template-columns: 1fr;
    }

    #resultado-dividas .cartao-divida.total {
        grid-column: auto;
    }
}

/* Melhorias visuais do formulário de dívidas */

#form-dividas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#form-dividas label {
    font-weight: 600;
    color: #263e58;
    margin-top: 6px;
}

#form-dividas input,
#form-dividas select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #b8c9d9;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

#form-dividas input:focus,
#form-dividas select:focus {
    outline: 2px solid #176b9a;
    outline-offset: 2px;
    border-color: #176b9a;
}

#form-dividas button {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

#encargos-parcela {
    background: #f0f5fa;
    border: 1px solid #d5e2ed;
    border-radius: 12px;
    padding: 20px;
}

#encargos-parcela:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#encargos-parcela h3 {
    margin: 0 0 8px;
    color: #176b9a;
}

#encargos-parcela p {
    margin: 8px 0 0;
    color: #40546b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Preserva o comportamento dos elementos ocultos */

#form-dividas [hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    #encargos-parcela {
        padding: 15px;
    }

    #form-dividas button {
        width: 100%;
    }
}

/* Melhorias visuais dos resultados - Etapa 145 */

#resultado-dividas .resumo-divida {
    gap: 18px;
    margin-top: 20px;
}

#resultado-dividas .cartao-divida {
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(12, 30, 53, 0.06);
    transition: box-shadow 0.2s ease;
}

#resultado-dividas .cartao-divida h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#resultado-dividas .cartao-divida .valor {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.3;
}

#resultado-dividas .cartao-divida.total {
    background: linear-gradient(135deg, #e7f2fa, #d8ebf8);
    border-color: #176b9a;
    box-shadow: 0 6px 18px rgba(23, 107, 154, 0.12);
}

#resultado-dividas .cartao-divida.total .valor {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
}

#resultado-dividas .detalhes-divida {
    margin-top: 22px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

#resultado-dividas .detalhes-divida p {
    margin: 0 0 8px;
}

#resultado-dividas .detalhes-divida p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    #resultado-dividas .cartao-divida {
        padding: 18px;
    }

    #resultado-dividas .detalhes-divida {
        padding: 15px;
    }
}

/* Orientações das modalidades - Etapa 149 */

#form-dividas .orientacao-modalidade {
    background: #eef6fc;
    border-left: 4px solid #176b9a;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 4px 0 10px;
    color: #294861;
    font-size: 0.95rem;
    line-height: 1.6;
}

#form-dividas .orientacao-modalidade[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    #form-dividas .orientacao-modalidade {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* Rodapé COCARA - Etapa 153 */

#rodape-cocara {
    margin-top: 48px;
    padding: 32px 20px;
    background: #fff5df;
    border-top: 4px solid #e9ad35;
    text-align: center;
    color: #064d7a;
}

#rodape-cocara .logo-rodape {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 14px;
    border-radius: 50%;
}

#rodape-cocara p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

#rodape-cocara a {
    color: #064d7a;
    font-size: 0.95rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#rodape-cocara a:hover,
#rodape-cocara a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 600px) {
    #rodape-cocara {
        padding: 24px 12px;
    }

    #rodape-cocara .logo-rodape {
        width: 100px;
        height: 100px;
    }
}
