@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
    --pink-lopes: #e91e63;
    --pink-hover: #c2185b;
    --bg-gray: #f8f9fa;
    --text-dark: #333;
    --text-muted: #666;
    --placeholder-color: #999;
    --border-color: #dee2e6;
    --success-green: #28a745;
    --warning-yellow: #fff3cd;
    --warning-border: #ffeeba;
    --warning-text: #856404;
}

.koreimob-simulador-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
}

.simulador-header {
    text-align: center;
    margin-bottom: 25px;
}

.simulador-header .mcmv-logo {
    width: 60px;
    margin-bottom: 15px;
}

.koreimob-simulador-container h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Melhorias de Input com Ícones */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-svg {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: var(--pink-lopes);
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input, 
.input-wrapper select {
    width: 100%;
    padding: 12px 16px 12px 48px; /* Padding aumentado para o ícone */
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.input-wrapper input::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

.input-wrapper input:focus, 
.input-wrapper select:focus {
    outline: none;
    border-color: var(--pink-lopes);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.input-wrapper select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23e91e63" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--pink-lopes);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--pink-hover);
}

.info-msg, .limit-msg {
    font-size: 12px;
    margin-top: 6px;
    color: var(--text-muted);
}

.footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Modal e Resultados */
.simulador-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.btn-voltar {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: #eee;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Resultados */
.results-header-box {
    margin-bottom: 25px;
}

.alert-success {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.alert-success .icon {
    font-size: 30px;
}

.subsidio-card {
    background: #fff8e1;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    border: 1px solid #ffe082;
}

.results-section {
    margin-bottom: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.result-item {
    background: var(--bg-gray);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.result-item label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.result-item .value {
    font-weight: 700;
    font-size: 18px;
}

.value.highlight { color: var(--pink-lopes); }
.value.success { color: var(--success-green); }

.alert-warning {
    background: var(--warning-yellow);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.faixa-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-gray);
    padding: 20px;
    border-radius: 12px;
}

.faixa-badge {
    background: var(--pink-lopes);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
}

.parcela-card {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

.parcela-main .label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.parcela-main .value {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.parcela-footer {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.btn-whatsapp {
    display: block;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
}

.disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
}

.koreimob-faq-container {
    margin-top: 30px;
    max-height: none;
    overflow: visible;
}

.koreimob-faq-container h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    padding: 15px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
}

.faq-question::after {
    content: '+';
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 14px;
    color: var(--text-muted);
}

.faq-answer.show {
    max-height: 500px;
    padding-bottom: 15px;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .results-grid { grid-template-columns: 1fr; }
    .parcela-footer { flex-direction: column; gap: 10px; }
}
