.cf {
	--cf-accent: #2563eb;
	--cf-border: rgba(15, 23, 42, 0.18);
	--cf-bg: #ffffff;
	--cf-text: #0f172a;
	--cf-muted: #475569;
	--cf-error: #dc2626;
	--cf-success: #15803d;
}

.cf-render-placeholder {
	padding: 12px 14px;
	border: 1px dashed rgba(245, 158, 11, 0.65);
	border-radius: 10px;
	background: rgba(254, 243, 199, 0.45);
	color: #78350f;
	font-size: 13px;
	line-height: 1.45;
}

.cf .cf-form:not(.gctx) {
	display: block;
}

.cf .cf-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cf .cf-message {
	display: none;
	padding: 10px 14px;
	margin: 0 0 14px;
	border-radius: 10px;
	border: 1px solid var(--cf-border);
	font-size: 14px;
}

.cf .cf-message.is-success {
	display: block;
	border-color: rgba(22, 163, 74, 0.45);
	background: rgba(22, 163, 74, 0.1);
	color: var(--cf-success);
}

.cf .cf-message.is-error {
	display: block;
	border-color: rgba(220, 38, 38, 0.45);
	background: rgba(220, 38, 38, 0.1);
	color: var(--cf-error);
}

.cf .cf-progress {
	position: relative;
	height: 8px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	margin: 0 0 18px;
}

.cf .cf-progress-bar {
	width: 0;
	height: 100%;
	background: var(--cf-accent);
	transition: width 0.24s ease;
}

.cf .cf-step {
	display: none;
}

.cf .cf-step.is-active {
	display: block;
}

.cf .cf-step-head {
	margin-bottom: 14px;
}

.cf .cf-step-head h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	color: var(--cf-text);
}

.cf .cf-step-body:not(.gctx) {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.cf .cf-field {
	width: 100%;
	display: grid;
	gap: 6px;
}

.cf .cf-field.cf-field-w-16 {
	width: 16%;
}

.cf .cf-field.cf-field-w-25 {
	width: 25%;
}

.cf .cf-field.cf-field-w-33 {
	width: 33.3333%;
}

.cf .cf-field.cf-field-w-50 {
	width: 50%;
}

.cf .cf-field.cf-field-w-66 {
	width: 66.6667%;
}

.cf .cf-field.cf-field-w-75 {
	width: 75%;
}

.cf .cf-field.cf-field-w-100 {
	width: 100%;
}

.cf .cf-field label,
.cf .cf-field legend {
	font-size: 14px;
	line-height: 1.4;
	color: var(--cf-text);
}

.cf .cf-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cf .cf-field input,
.cf .cf-field select,
.cf .cf-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--cf-border);
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 15px;
	line-height: 1.45;
	background: var(--cf-bg);
	color: var(--cf-text);
}

.cf .cf-field textarea {
	min-height: 130px;
	resize: vertical;
}

.cf .cf-field.cf-field-upload input[type="file"] {
	padding: 10px;
}

.cf .cf-upload-hint {
	font-size: 12px;
	color: var(--cf-muted);
}

.cf .cf-choice-group {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cf .cf-choice-group.is-vertical {
	display: grid;
	gap: 8px;
}

.cf .cf-choice-group.is-horizontal {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cf .cf-choice-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cf .cf-choice-option input[type="checkbox"],
.cf .cf-choice-option input[type="radio"] {
	width: auto;
	padding: 0;
	margin: 0;
}

.cf .cf-choice-image {
	line-height: 0;
}

.cf .cf-choice-image img {
	display: block;
	max-width: 56px;
	height: auto;
	border-radius: 6px;
}

.cf .cf-content {
	width: 100%;
}

.cf .cf-content-headline {
	margin: 0;
}

.cf .cf-content-text p:first-child {
	margin-top: 0;
}

.cf .cf-content-text p:last-child {
	margin-bottom: 0;
}

.cf .cf-field-error {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--cf-error);
}

.cf .cf-field.has-error input,
.cf .cf-field.has-error select,
.cf .cf-field.has-error textarea,
.cf .cf-field.has-error .cf-choice-group {
	border-color: rgba(220, 38, 38, 0.5);
}

.cf .cf-field.is-hidden-by-logic {
	display: none !important;
}

.cf .cf-step-actions,
.cf .cf-actions {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.cf .cf-preview-step-nav {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.cf .cf-preview-step-btn {
	border: 1px solid var(--cf-border);
	background: #fff;
	color: var(--cf-text);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	line-height: 1.1;
	cursor: pointer;
}

.cf .cf-preview-step-btn.is-active {
	background: var(--cf-accent);
	border-color: var(--cf-accent);
	color: #fff;
}

body.studio-preview-contactform-mode #studio-preview-root {
	padding: 16px 0 28px;
}

body.studio-preview-contactform-mode .cf.is-builder-source {
	width: min(960px, 100%);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.cf .cf-btn {
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cf .cf-btn-back {
	background: transparent;
	border-color: var(--cf-border);
	color: var(--cf-text);
}

.cf .cf-btn-next,
.cf .cf-btn-submit {
	margin-left: auto;
	background: var(--cf-accent);
	color: #fff;
}

.cf .cf-btn:hover {
	opacity: 0.88;
}

.cf.is-modern-labels .cf-field {
	position: relative;
}

.cf.is-modern-labels .cf-field > label {
	font-weight: 600;
}

@media (max-width: 767px) {
	.cf .cf-field[class*="cf-field-w-"] {
		width: 100%;
	}

	.cf .cf-step-actions {
		flex-wrap: wrap;
	}

	.cf .cf-btn-next,
	.cf .cf-btn-submit {
		margin-left: 0;
	}

	body.studio-preview-contactform-mode .cf.is-builder-source {
		padding: 0 12px;
	}
}
