.sfcm-wrap {
	max-width: 980px;
	margin: 1.5rem auto;
	padding: 0 0.75rem;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
	border: 0;
	box-shadow: none;
}

.sfcm-form {
	background: transparent;
	border: 0 !important;
	border-radius: 0;
	padding: 1rem 0;
	box-shadow: none !important;
	outline: none !important;
}

.sfcm-section {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 1rem 1.15rem;
	margin: 0 0 1rem;
	background: #fff;
}

.sfcm-section:last-of-type {
	margin-bottom: 0;
}

.sfcm-section h3 {
	margin: 0 0 0.8rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.sfcm-grid {
	display: grid;
	/* Duas colunas estáveis no desktop evita campo “órfão” centralizado com auto-fit */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
	align-items: start;
	justify-items: stretch;
}

.sfcm-grid label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.92rem;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	align-self: stretch;
}

/* Tema/page builder costuma forçar borda e fundo branco nos inputs */
.sfcm-wrap .sfcm-form .sfcm-grid input[type="text"],
.sfcm-wrap .sfcm-form .sfcm-grid input[type="email"],
.sfcm-wrap .sfcm-form .sfcm-grid input[type="tel"],
.sfcm-wrap .sfcm-form .sfcm-grid input[type="date"],
.sfcm-wrap .sfcm-form .sfcm-grid input[type="time"],
.sfcm-wrap .sfcm-form .sfcm-grid input[type="number"],
.sfcm-wrap .sfcm-form .sfcm-grid select,
.sfcm-wrap .sfcm-form .sfcm-grid textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 0 !important;
	border-radius: 6px;
	padding: 0.55rem 0.65rem;
	font-size: 0.95rem;
	background: #f2f2f2 !important;
	background-color: #f2f2f2 !important;
	box-shadow: none !important;
}

.sfcm-grid textarea {
	min-height: 84px;
	resize: vertical;
}

.sfcm-field--full {
	grid-column: 1 / -1;
}

.sfcm-field--span-2 {
	grid-column: span 2;
}

@media (max-width: 640px) {
	.sfcm-wrap {
		margin: 1rem auto;
		padding: 0 0.65rem;
	}

	.sfcm-form {
		padding: 0.65rem 0.35rem;
	}

	.sfcm-section {
		padding: 0.85rem 0.75rem;
		border-radius: 8px;
	}

	.sfcm-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.85rem;
	}

	.sfcm-field--span-2 {
		grid-column: 1 / -1;
	}

	/* 16px evita zoom automático no Safari iOS ao focar o campo */
	.sfcm-grid input,
	.sfcm-grid select,
	.sfcm-grid textarea {
		font-size: 16px;
		min-height: 44px;
		padding: 0.65rem 0.75rem;
	}

	.sfcm-grid textarea {
		min-height: 5.5rem;
		resize: vertical;
	}

	.sfcm-actions button {
		width: 100%;
		min-height: 48px;
		font-size: 1rem;
		padding: 0.75rem 1rem;
	}
}

.sfcm-actions {
	margin-top: 1rem;
	padding-top: 0.7rem;
}

.sfcm-actions button {
	background-color: var(--e-global-color-accent, #2271b1);
	border: 0;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 6px;
	padding: 0.65rem 1rem;
	cursor: pointer;
}

.sfcm-actions button:hover {
	filter: brightness(0.92);
}

.sfcm-alert {
	padding: 0.7rem 0.8rem;
	border-radius: 6px;
	margin-bottom: 1rem;
	font-size: 0.92rem;
}

.sfcm-alert--success {
	background: #edfaef;
	color: #185b2f;
	border: 1px solid #95d5a6;
}

.sfcm-alert--error {
	background: #fff1f0;
	color: #8b1a1a;
	border: 1px solid #f3b7b4;
}

.sfcm-hidden {
	display: none;
}
