/* Benedetti Calculadora – formulário público */

.bc-app {
	--bc-primary: #c20332;
	--bc-bg: #ffffff;
	--bc-text: #333333;
	--bc-label: #666666;
	--bc-border: #d9d9d9;
	--bc-error: #ff4d4f;
	--bc-radius: 12px;
	box-sizing: border-box;
	color: var(--bc-text);
	font-family: "Montserrat", "Segoe UI", sans-serif;
	margin: 0 auto;
	max-width: 920px;
	padding: 10px;
	width: 100%;
}

.bc-app *,
.bc-app *::before,
.bc-app *::after {
	box-sizing: border-box;
}

/* Garante que [hidden] vença display:flex/inline-flex do tema */
.bc-app [hidden],
.bc-app .bc-is-hidden {
	display: none !important;
}

.bc-app-component {
	background: var(--bc-bg);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: var(--bc-radius);
	box-shadow: none;
	overflow: visible;
	padding: 24px;
}

.bc-content,
.bc-panel,
.bc-field,
.bc-autocomplete {
	overflow: visible;
}

.bc-header {
	color: var(--bc-primary);
	font-size: 26px;
	font-weight: 600;
	padding-bottom: 32px;
	text-align: center;
}

.bc-header-sub {
	font-weight: 500;
}

.bc-steps {
	align-items: flex-start;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 0 auto 8px;
	max-width: 520px;
}

.bc-step {
	align-items: center;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	position: relative;
	text-align: center;
}

.bc-step:not(:last-child)::after {
	background: #e8e8e8;
	content: "";
	height: 2px;
	left: calc(50% + 14px);
	position: absolute;
	right: calc(-50% + 14px);
	top: 7px;
	z-index: 0;
}

.bc-step.is-done:not(:last-child)::after,
.bc-step.is-active:not(:last-child)::after {
	background: var(--bc-primary);
}

.bc-step-dot {
	background: #fff;
	border: 2px solid #d9d9d9;
	border-radius: 50%;
	height: 16px;
	position: relative;
	width: 16px;
	z-index: 1;
}

.bc-step.is-active .bc-step-dot,
.bc-step.is-done .bc-step-dot {
	background: var(--bc-primary);
	border-color: var(--bc-primary);
}

.bc-step-label {
	color: var(--bc-label);
	display: none;
	font-size: 12px;
	line-height: 1.2;
}

.bc-panel-title {
	color: var(--bc-text);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.45;
	margin: 18px 0 22px;
}

.bc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 4px;
}

.bc-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
	position: relative;
	width: 100%;
}

.bc-col-6 {
	flex: 1 1 calc(50% - 8px);
	min-width: 180px;
}

.bc-col-3 {
	flex: 1 1 calc(25% - 12px);
	min-width: 110px;
}

.bc-field-full {
	width: 100%;
}

.bc-field > label {
	background: linear-gradient(0deg, transparent 0, var(--bc-bg) 36%);
	border-radius: 4px 4px 8px 8px;
	color: var(--bc-label);
	font-size: 11px;
	left: 9px;
	letter-spacing: 0.02em;
	padding: 0 7px;
	position: absolute;
	text-transform: uppercase;
	top: -9px;
	z-index: 2;
}

.bc-field input[type="text"],
.bc-field input[type="email"],
.bc-field input[type="tel"],
.bc-field select,
.bc-input-suffix {
	appearance: none;
	background: #fff;
	border: 1px solid var(--bc-border);
	border-radius: 8px;
	color: var(--bc-text);
	font: inherit;
	font-size: 15px;
	height: 44px;
	outline: none;
	padding: 10px 12px;
	transition: border-color 0.15s ease;
	width: 100%;
}

.bc-field input:focus,
.bc-field select:focus,
.bc-input-suffix:focus-within {
	border-color: var(--bc-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--bc-primary) 18%, transparent);
}

.bc-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	padding-right: 32px;
}

.bc-input-suffix {
	align-items: center;
	display: flex;
	gap: 8px;
	padding: 0 12px;
}

.bc-input-suffix input {
	border: 0;
	box-shadow: none;
	flex: 1;
	height: 42px;
	min-width: 0;
	outline: none;
	padding: 0;
}

.bc-input-suffix span {
	color: var(--bc-label);
	font-size: 13px;
	white-space: nowrap;
}

.bc-error {
	background: #fff;
	border-radius: 4px;
	color: var(--bc-error);
	font-size: 11px;
	font-weight: 600;
	padding: 0 7px;
	pointer-events: none;
	position: absolute;
	right: 10px;
	text-transform: uppercase;
	top: -8px;
	z-index: 3;
}

.bc-field.is-invalid .bc-error:not(:empty) {
	opacity: 1;
}

.bc-field.is-invalid input,
.bc-field.is-invalid select,
.bc-field.is-invalid .bc-input-suffix,
.bc-field.is-invalid .bc-autocomplete input {
	border-color: var(--bc-error);
}

.bc-autocomplete {
	position: relative;
}

.bc-autocomplete-list {
	background: #fff;
	border: 1px solid var(--bc-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	display: block;
	left: 0;
	list-style: none;
	margin: 4px 0 0;
	max-height: 240px;
	overflow: auto;
	padding: 4px 0;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 9999;
}

.bc-autocomplete-list.bc-is-hidden,
.bc-autocomplete-list[hidden] {
	display: none !important;
}

.bc-autocomplete-list li {
	cursor: pointer;
	font-size: 14px;
	padding: 10px 14px;
}

.bc-autocomplete-list li:hover,
.bc-autocomplete-list li.is-active {
	background: color-mix(in srgb, var(--bc-primary) 8%, transparent);
}

.bc-autocomplete-list li.bc-autocomplete-empty {
	color: #888;
	cursor: default;
}

.bc-autocomplete-list li.bc-autocomplete-empty:hover {
	background: transparent;
}

.bc-place-hint {
	color: var(--bc-label);
	font-size: 12px;
	margin: -8px 0 14px;
}

.bc-field-check {
	margin-top: 4px;
}

.bc-check {
	align-items: flex-start;
	color: var(--bc-label);
	cursor: pointer;
	display: flex;
	font-size: 12px;
	gap: 10px;
	line-height: 1.4;
	position: static !important;
	text-transform: none !important;
}

.bc-check input {
	accent-color: var(--bc-primary);
	flex: 0 0 auto;
	margin-top: 2px;
}

.bc-check a {
	color: var(--bc-primary);
}

.bc-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding: 8px 0 8px;
}

.bc-btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	height: 48px;
	justify-content: center;
	min-width: 170px;
	padding: 0 22px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bc-btn:hover {
	transform: translateY(-1px);
}

.bc-btn:disabled {
	cursor: not-allowed;
	opacity: 0.65;
	transform: none;
}

.bc-btn-primary {
	background: var(--bc-primary);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
	color: #fff;
}

.bc-btn-primary:hover {
	filter: brightness(0.95);
}

.bc-btn-ghost {
	background: #fff;
	border-color: var(--bc-border);
	color: var(--bc-text);
}

.bc-loading {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 16px;
	justify-content: center;
	padding: 48px 16px;
}

.bc-spinner {
	animation: bc-spin 0.8s linear infinite;
	border: 3px solid #eee;
	border-radius: 50%;
	border-top-color: var(--bc-primary);
	height: 42px;
	width: 42px;
}

@keyframes bc-spin {
	to {
		transform: rotate(360deg);
	}
}

.bc-result-card {
	border: 1px solid #d1d1d1;
	border-radius: 10px;
	color: var(--bc-text);
	overflow: hidden;
	padding: 20px;
}

.bc-result-card h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 12px;
}

.bc-result-range {
	font-size: 1.57em;
	font-weight: 700;
	margin: 16px 0 20px;
	text-align: center;
}

.bc-result-card p {
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

@media (max-width: 576px) {
	.bc-app-component {
		padding: 16px 14px 20px;
	}

	.bc-header {
		font-size: 18px;
		padding-bottom: 12px;
	}

	.bc-header-sub {
		display: none;
	}

	.bc-panel-title {
		font-size: 16px;
	}

	.bc-col-6,
	.bc-col-3 {
		flex-basis: 100%;
		min-width: 0;
	}

	.bc-result-range {
		font-size: 1.29em;
		text-align: left;
	}

	.bc-btn {
		min-width: 0;
		width: 100%;
	}

	.bc-actions {
		flex-direction: column-reverse;
	}
}
