/* ==========================================================
   Simulação Consórcio Fipal — [simulacao_consorcio]
   ========================================================== */

.fipal-sim {
	max-width: 460px;
	margin: auto;
	padding: 26px;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(15, 42, 68, 0.14);
	font-family: "Segoe UI", Arial, sans-serif;
	border: 1px solid #e6ecf3;
	box-sizing: border-box;
}

/* ----------------------------------------------------------
   Barra de progresso
   ---------------------------------------------------------- */
.fipal-sim__progress {
	height: 6px;
	background: #e8eef6;
	border-radius: 10px;
	margin-bottom: 18px;
	overflow: hidden;
}

.fipal-sim__progress-fill {
	width: 33%;
	height: 100%;
	background: #0f2a44;
	border-radius: 10px;
	transition: width 0.35s ease;
}

/* ----------------------------------------------------------
   Títulos
   ---------------------------------------------------------- */
.fipal-sim__title {
	text-align: center;
	color: #0f2a44;
	font-size: 21px;
	font-weight: 900;
	margin: 0 0 6px;
	line-height: 1.3;
}

.fipal-sim__subtitle {
	text-align: center;
	color: #64748b;
	font-size: 13px;
	margin: 0 0 18px;
}

/* ----------------------------------------------------------
   Labels
   ---------------------------------------------------------- */
.fipal-sim__label {
	display: block;
	font-size: 13px;
	color: #334155;
	font-weight: 600;
	margin: 0;
}

.fipal-sim__label--section {
	margin-top: 18px;
}

/* ----------------------------------------------------------
   Select
   ---------------------------------------------------------- */
.fipal-sim__select {
	width: 100%;
	padding: 14px;
	margin-top: 6px;
	border-radius: 14px;
	border: 1px solid #dbe3ec;
	font-size: 14px;
	background: #f9fbfd;
	color: #0f2a44;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s;
}

.fipal-sim__select:focus {
	border-color: #0f2a44;
}

/* ----------------------------------------------------------
   Toggle de modo (Parcela / Carta de crédito)
   ---------------------------------------------------------- */
.fipal-sim__mode-group {
	display: flex;
	border-radius: 14px;
	background: #f1f5f9;
	padding: 4px;
	margin-top: 8px;
	gap: 4px;
}

.fipal-sim__mode-btn {
	flex: 1;
	padding: 12px;
	border: none;
	border-radius: 12px;
	background: transparent;
	font-weight: 700;
	font-size: 14px;
	color: #0f2a44;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.fipal-sim__mode-btn--active {
	background: #0f2a44;
	color: #ffffff;
}

/* ----------------------------------------------------------
   Valor exibido e range
   ---------------------------------------------------------- */
.fipal-sim__value-display {
	margin: 8px 0 14px;
	font-size: 32px;
	font-weight: 900;
	color: #0f2a44;
	line-height: 1.2;
}

.fipal-sim__range {
	width: 100%;
	accent-color: #0f2a44;
	height: 6px;
	border-radius: 6px;
	cursor: pointer;
	box-sizing: border-box;
	display: block;
}

.fipal-sim__range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #64748b;
	margin-top: 6px;
}

/* ----------------------------------------------------------
   Botões
   ---------------------------------------------------------- */
.fipal-sim__btn {
	display: block;
	width: 100%;
	margin-top: 22px;
	padding: 16px;
	border-radius: 40px;
	border: 2px solid transparent;
	background: #0f2a44;
	color: #ffffff;
	font-weight: 900;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.2s;
	box-sizing: border-box;
}

.fipal-sim__btn:hover {
	opacity: 0.88;
}

.fipal-sim__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.fipal-sim__btn--outline {
	background: #ffffff;
	color: #0f2a44;
	border-color: #0f2a44;
}

.fipal-sim__btn--outline:hover {
	background: #f1f5f9;
	opacity: 1;
}

.fipal-sim__btn-group {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.fipal-sim__btn-group .fipal-sim__btn {
	flex: 1;
	margin-top: 0;
}

/* ----------------------------------------------------------
   Inputs de texto
   ---------------------------------------------------------- */
.fipal-sim__input {
	display: block;
	width: 100%;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid #dbe3ec;
	font-size: 14px;
	color: #0f2a44;
	background: #f9fbfd;
	margin-bottom: 12px;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s, background 0.2s;
}

.fipal-sim__input:focus {
	border-color: #0f2a44;
	background: #ffffff;
}

/* ----------------------------------------------------------
   Passo 3 — Resumo e mensagem
   ---------------------------------------------------------- */
.fipal-sim__step--result {
	text-align: center;
}

.fipal-sim__resume-box {
	background: #f8fafc;
	border-radius: 14px;
	padding: 10px 16px;
	font-size: 14px;
	color: #334155;
	text-align: left;
	margin-bottom: 16px;
}

.fipal-sim__resume-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	border-bottom: 1px solid #e8eef6;
	gap: 12px;
}

.fipal-sim__resume-row:last-child {
	border-bottom: none;
}

.fipal-sim__resume-label {
	color: #64748b;
	font-size: 13px;
	flex-shrink: 0;
}

.fipal-sim__resume-val {
	font-weight: 700;
	color: #0f2a44;
	font-size: 14px;
	text-align: right;
}

.fipal-sim__resume-row--highlight {
	background: #e8f0fa;
	border-radius: 8px;
	padding: 10px 12px;
	margin: 6px -4px 0;
	border-bottom: none;
}

.fipal-sim__resume-row--highlight .fipal-sim__resume-label {
	color: #0f2a44;
	font-weight: 700;
}

.fipal-sim__resume-row--highlight .fipal-sim__resume-val {
	font-size: 16px;
	color: #0f2a44;
}

.fipal-sim__message {
	font-size: 14px;
	padding: 10px 14px;
	border-radius: 10px;
	margin-bottom: 14px;
}

.fipal-sim__message--success {
	background: #e8f5e9;
	color: #2e7d32;
}

.fipal-sim__message--error {
	background: #fdecea;
	color: #c62828;
}
