.etb-form-wrapper {
	--etb-primary: #1d6f42;
	max-width: 780px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1e1e1e;
	box-sizing: border-box;
}
.etb-form-wrapper * { box-sizing: border-box; }

.etb-form-title {
	font-size: 1.6em;
	margin-bottom: 0.2em;
	color: var(--etb-primary);
}
.etb-form-intro {
	margin-bottom: 1.2em;
	color: #444;
}

.etb-alert {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 1em;
	font-weight: 500;
}
.etb-alert-success {
	background: #eaf7ee;
	border: 1px solid #1d6f42;
	color: #164f30;
}
.etb-alert-error {
	background: #fdecea;
	border: 1px solid #d63638;
	color: #7a1f21;
}

.etb-progress { margin-bottom: 1.5em; }
.etb-progress-bar {
	background: #e5e5e5;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}
.etb-progress-fill {
	background: var(--etb-primary);
	height: 100%;
	width: 12.5%;
	transition: width 0.3s ease;
}
.etb-progress-label {
	font-size: 0.85em;
	margin-top: 6px;
	color: #666;
	text-align: right;
}

.etb-step {
	display: none;
	animation: etb-fade 0.25s ease;
}
.etb-step.etb-active { display: block; }
@keyframes etb-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.etb-step h3 {
	font-size: 1.25em;
	border-bottom: 2px solid var(--etb-primary);
	padding-bottom: 8px;
	margin-bottom: 1em;
	color: var(--etb-primary);
}
.etb-step h4 {
	margin-top: 1.2em;
	color: #333;
}

.etb-step label {
	display: block;
	margin-bottom: 1em;
	font-weight: 600;
	font-size: 0.95em;
}
.etb-step label input[type="text"],
.etb-step label input[type="email"],
.etb-step label input[type="tel"],
.etb-step label input[type="date"],
.etb-step label input[type="file"],
.etb-step label textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-weight: 400;
	font-size: 1em;
	font-family: inherit;
}
.etb-step label textarea { min-height: 80px; resize: vertical; }

.etb-required-note {
	font-weight: 600;
	margin-bottom: 0.5em;
}
.etb-help-text {
	color: #666;
	font-size: 0.9em;
	margin-bottom: 1em;
}

.etb-radio-group, .etb-checkbox-group {
	margin-bottom: 1.2em;
}
.etb-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	margin-bottom: 10px;
	cursor: pointer;
}
.etb-option input { margin-top: 3px; flex-shrink: 0; }

.etb-subform {
	display: none;
	border-left: 3px solid var(--etb-primary);
	padding-left: 16px;
	margin: 1em 0;
}
.etb-subform.etb-visible { display: block; }

.etb-word-count {
	display: block;
	font-size: 0.8em;
	font-weight: 400;
	color: #888;
	margin-top: 4px;
}

.etb-image-preview {
	display: flex;
	gap: 10px;
	margin: 8px 0 1.2em;
}
.etb-image-preview img {
	max-height: 120px;
	border-radius: 6px;
	border: 1px solid #ddd;
}

.etb-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 2em;
	padding-top: 1.2em;
	border-top: 1px solid #eee;
}
.etb-btn {
	background: var(--etb-primary);
	color: #fff;
	border: none;
	padding: 12px 26px;
	border-radius: 6px;
	font-size: 1em;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.etb-btn:hover { opacity: 0.88; }
.etb-btn-prev {
	background: #fff;
	color: var(--etb-primary);
	border: 2px solid var(--etb-primary);
}
.etb-field-error {
	border-color: #d63638 !important;
	background: #fdecea;
}
.etb-inline-error {
	color: #d63638;
	font-size: 0.85em;
	font-weight: 400;
	display: block;
	margin-top: 4px;
}

@media (max-width: 600px) {
	.etb-form-wrapper { padding: 0 4px; }
	.etb-nav { flex-direction: column; gap: 10px; }
	.etb-btn { width: 100%; }
}
