/* SEO Monkey Kostenrechner — Styles */

.smf-wrapper {
	max-width: 600px;
	margin: 0;
	font-family: inherit;
	min-height: 280px; /* verhindert Höhensprünge zwischen den Schritten */
}

/* Progress-Bar */
.smf-progress-bar-wrap {
	margin-bottom: 28px;
}

.smf-progress-bar {
	height: 6px;
	background: #e5e5e5;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 8px;
}

.smf-progress-fill {
	height: 100%;
	background: #f7bf1a;
	border-radius: 3px;
	transition: width 0.35s ease;
	width: 0%;
}

.smf-progress-label {
	font-size: 13px;
	color: #777;
	text-align: left;
	margin-bottom: 6px;
}

/* Schritte */
.smf-step-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 10px;
	color: inherit;
}

.smf-step-desc {
	font-size: 15px;
	color: #555;
	margin: 0 0 24px;
}

/* Felder */
.smf-field-wrap {
	margin-bottom: 20px;
}

.smf-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: inherit;
}

/* Label als primäre Frage — ersetzt die H3 */
.smf-label-question {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.3;
}

.smf-required {
	color: #e34040;
	margin-left: 2px;
}

.smf-optional {
	font-weight: 400;
	color: #888;
	font-size: 13px;
}

.smf-input {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	font-family: inherit;
	border: 2px solid #ddd;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s;
	outline: none;
}

.smf-input:focus {
	border-color: #f7bf1a;
}

.smf-input.smf-invalid {
	border-color: #e34040;
}

.smf-textarea {
	resize: vertical;
	min-height: 100px;
}

.smf-hint {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 5px;
}

.smf-error {
	display: block;
	font-size: 13px;
	color: #e34040;
	margin-top: 4px;
	min-height: 18px;
}

/* GDPR */
.smf-gdpr-wrap {
	margin-top: 8px;
}

.smf-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: #555;
}

.smf-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 17px;
	height: 17px;
	cursor: pointer;
	accent-color: #f7bf1a;
}

.smf-checkbox-label a {
	color: #f7bf1a;
	text-decoration: underline;
}

/* Navigation */
.smf-nav {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

/* Buttons */
.smf-btn {
	display: inline-block;
	padding: 12px 28px;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: normal;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.2s, background 0.2s;
}

/* Höhere Spezifität mit .smf-wrapper — schlägt Enfold-Globalstyles */
.smf-wrapper .smf-btn-next,
.smf-wrapper .smf-btn-submit {
	background: #f7bf1a !important;
	color: #1a1a1a !important;
	border: none !important;
}

.smf-wrapper .smf-btn-next:hover:not(:disabled),
.smf-wrapper .smf-btn-submit:hover:not(:disabled) {
	background: #e5b010 !important;
}

.smf-wrapper .smf-btn-back {
	background: transparent !important;
	color: #555 !important;
	border: 2px solid #ddd !important;
}

.smf-wrapper .smf-btn-back:hover {
	border-color: #aaa !important;
	color: #333 !important;
}

.smf-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Start-Button: gelb wie Weiter-Button */
.smf-wrapper .smf-btn-start {
	background: #f7bf1a !important;
	color: #1a1a1a !important;
	border: none !important;
	min-width: 160px;
}

.smf-wrapper .smf-btn-start:hover {
	background: #e5b010 !important;
}

/* Erfolgs-Meldung — zentriert unabhängig von der Wrapper-Ausrichtung */
.smf-wrapper.smf-is-success {
	margin: 0 auto;
}

.smf-success {
	text-align: center;
	padding: 40px 20px;
}

.smf-success-icon {
	width: 60px;
	height: 60px;
	background: #f7bf1a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #1a1a1a;
	margin: 0 auto 20px;
}

.smf-success h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 10px;
}

.smf-success p {
	font-size: 15px;
	color: #555;
	margin: 0;
}

/* Fehler-Banner */
.smf-submit-error {
	background: #fff0f0;
	border: 1px solid #f5c6c6;
	border-radius: 6px;
	padding: 14px 18px;
	font-size: 14px;
	color: #333;
	margin-top: 16px;
}

.smf-submit-error a {
	color: #f7bf1a;
}

/* Responsive */
@media (max-width: 480px) {
	.smf-step-title {
		font-size: 18px;
	}

	.smf-btn {
		width: 100%;
		text-align: center;
	}

	.smf-nav {
		flex-direction: column-reverse;
	}
}
