.rsd-form-wrapper {
	--rsd-color-primary: #2563eb;
	--rsd-color-border: #d0d7de;
	--rsd-color-text: #111827;
	--rsd-color-muted: #6b7280;
	--rsd-color-surface: #ffffff;
	--rsd-color-soft: #f8fafc;
	--rsd-color-danger: #dc2626;
	color: var(--rsd-color-text);
}

.rsd-progress-wrapper {
	margin-bottom: 24px;
}

.rsd-progress-track {
	position: relative;
	height: 6px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}

.rsd-progress-fill {
	height: 100%;
	background: var(--rsd-color-primary);
	border-radius: inherit;
	transition: width 0.25s ease;
}

.rsd-steps-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.rsd-step-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--rsd-color-border);
	border-radius: 14px;
	background: var(--rsd-color-surface);
	transition: all 0.2s ease;
}

.rsd-step-item.is-active,
.rsd-step-item.is-complete {
	border-color: var(--rsd-color-primary);
}

.rsd-step-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--rsd-color-border);
	border-radius: 50%;
	background: #eef2ff;
	font-weight: 600;
}

.rsd-step-title {
	font-size: 14px;
	font-weight: 500;
}

.rsd-form-step {
	display: none;
}

.rsd-form-step.is-active {
	display: block;
}

.rsd-fields-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.rsd-field {
	box-sizing: border-box;
	width: 100%;
	padding: 0 10px;
	margin-bottom: 18px;
}

.rsd-width-50 {
	width: 50%;
}

.rsd-width-33 {
	width: 33.3333%;
}

.rsd-field-label {
	display: inline-block;
	margin-bottom: 8px;
	font-weight: 600;
}

.rsd-required {
	color: var(--rsd-color-danger);
}

.rsd-field input,
.rsd-field textarea,
.rsd-field select {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid var(--rsd-color-border);
	border-radius: 12px;
	background: var(--rsd-color-surface);
	color: inherit;
}

.rsd-field textarea {
	min-height: 120px;
	resize: vertical;
}

.rsd-choice-group {
	display: grid;
	gap: 10px;
}

.rsd-choice-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rsd-choice-item input {
	width: auto;
	min-height: auto;
}

.rsd-field-error {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	color: var(--rsd-color-danger);
}

.rsd-field.is-error input,
.rsd-field.is-error textarea,
.rsd-field.is-error select,
.rsd-field.is-error .rsd-repeater-row {
	border-color: var(--rsd-color-danger);
}

.rsd-field-repeater {
	padding: 18px;
	border: 1px solid var(--rsd-color-border);
	border-radius: 18px;
	background: var(--rsd-color-soft);
}

.rsd-repeater-rows {
	display: grid;
	gap: 14px;
}

.rsd-repeater-row {
	position: relative;
	padding: 18px;
	border: 1px solid var(--rsd-color-border);
	border-radius: 14px;
	background: var(--rsd-color-surface);
}

.rsd-repeater-row-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 45px;
}

.rsd-repeater-cell {
	min-width: 0;
}

.rsd-repeater-cell label {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.rsd-cell-description {
	grid-column: 1 / -1;
}

.rsd-repeater-add-row,
.rsd-repeater-remove-row,
.rsd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.rsd-repeater-add-row {
	margin-top: 14px;
	background: #e0e7ff;
	color: #1e3a8a;
}

.rsd-repeater-remove-row {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	background: #fee2e2;
	color: #991b1b;
}

.rsd-step-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.rsd-btn {
	font-weight: 600;
}

.rsd-btn-primary {
	background: var(--rsd-color-primary);
	color: #ffffff;
}

.rsd-btn-secondary {
	background: #e5e7eb;
	color: #111827;
}

.rsd-btn[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.rsd-form-message {
	display: none;
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 14px;
}

.rsd-form-message.is-success {
	background: #dcfce7;
	color: #166534;
}

.rsd-form-message.is-error {
	background: #fee2e2;
	color: #991b1b;
}

@media (max-width: 767px) {
	.rsd-width-50,
	.rsd-width-33 {
		width: 100%;
	}

	.rsd-repeater-row-grid {
		grid-template-columns: 1fr;
	}
}
