/* Simulador de Crédito e Seguros - Estilos Frontend */

.scs-simulador-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.scs-tela {
    display: none;
}

.scs-tela.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scs-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.scs-titulo-principal {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
    text-align: center;
}

.scs-btn-simular {
    background: var(--scs-cor-principal, #dc2626);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.scs-btn-simular:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.scs-subtitulo {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin: 0 0 30px 0;
}

/* Tipos de Seguro */
.scs-tipos-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.scs-tipo-item {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.scs-tipo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--tipo-imagem-fundo);
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.scs-tipo-item > * {
    position: relative;
    z-index: 1;
}

.scs-tipo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scs-tipo-item.active {
    background: #333333;
    border-color: var(--scs-cor-principal, #dc2626);
}

.scs-tipo-item.active .scs-tipo-icone {
    filter: brightness(0) invert(1);
}

.scs-tipo-item.active .scs-tipo-titulo {
    color: #ffffff;
}

.scs-tipo-icone {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: block;
    transition: all 0.3s ease;
}

.scs-tipo-icone-placeholder {
    width: 50px;
    height: 50px;
    background: #cccccc;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.scs-tipo-titulo {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    display: block;
    transition: color 0.3s ease;
}

/* Opções de Pagamento */
.scs-opcoes-pagamento {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 8px;
}

.scs-opcao-pagamento {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--scs-cor-principal, #dc2626);
    background: transparent;
    color: var(--scs-cor-principal, #dc2626);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scs-opcao-pagamento.active {
    background: var(--scs-cor-principal, #dc2626);
    color: #ffffff;
}

.scs-opcao-pagamento:hover {
    opacity: 0.8;
}

/* Valor */
.scs-valor-container {
    margin-bottom: 30px;
}

.scs-label-valor {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
    text-align: center;
}

.scs-valor-exibido {
    text-align: center;
    margin-bottom: 20px;
}

.scs-valor-numero {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
}

.scs-slider-container {
    position: relative;
    padding: 0 10px;
}

.scs-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e5e5;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.scs-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--scs-cor-principal, #dc2626);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scs-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.scs-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--scs-cor-principal, #dc2626);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scs-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.scs-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #999999;
}

/* Botões */
.scs-btn-continuar,
.scs-btn-enviar {
    width: 100%;
    padding: 16px;
    background: var(--scs-cor-principal, #dc2626);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.scs-btn-continuar:hover,
.scs-btn-enviar:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.scs-btn-continuar:active,
.scs-btn-enviar:active {
    transform: translateY(0);
}

/* Formulário */
.scs-form {
    margin-top: 20px;
}

.scs-form-group {
    margin-bottom: 20px;
}

.scs-input,
.scs-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.scs-input:focus,
.scs-select:focus {
    outline: none;
    border-color: var(--scs-cor-principal, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.scs-input::placeholder {
    color: #999999;
}

.scs-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Mensagem */
.scs-mensagem {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.scs-mensagem.sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.scs-mensagem.erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsivo */
@media (max-width: 768px) {
    .scs-simulador-container {
        padding: 15px;
    }
    
    .scs-card {
        padding: 30px 20px;
    }
    
    .scs-titulo-principal {
        font-size: 20px;
    }
    
    .scs-tipos-container {
        gap: 10px;
    }
    
    .scs-tipo-item {
        min-width: 100px;
        padding: 15px 10px;
    }
    
    .scs-tipo-icone {
        width: 40px;
        height: 40px;
    }
    
    .scs-valor-numero {
        font-size: 28px;
    }
    
    .scs-opcoes-pagamento {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .scs-card {
        padding: 25px 15px;
    }
    
    .scs-titulo-principal {
        font-size: 18px;
    }
    
    .scs-tipos-container {
        flex-direction: column;
    }
    
    .scs-tipo-item {
        max-width: 100%;
    }
    
    .scs-valor-numero {
        font-size: 24px;
    }
}

