.subin-form-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 24px 0;
	color: #1f2933;
	font-family: inherit;
	--subin-form-bg: #fff;
	--subin-form-border: #d9e2ec;
	--subin-form-muted: #52606d;
	--subin-form-text: #1f2933;
	--subin-form-accent: #1d4ed8;
	--subin-form-accent-hover: #1e40af;
	--subin-form-radius: 8px;
	--subin-form-field-gap: 18px;
	--subin-form-padding: 28px;
}

.subin-form-wrap *,
.subin-form-wrap *::before,
.subin-form-wrap *::after {
	box-sizing: border-box;
}

.subin-form {
	display: block;
	width: 100%;
}

.subin-form-header {
	margin-bottom: 22px;
}

.subin-custom-html {
	color: var(--subin-form-text);
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.subin-custom-html > :first-child {
	margin-top: 0;
}

.subin-custom-html > :last-child {
	margin-bottom: 0;
}

.subin-custom-html--before-form {
	margin-bottom: 18px;
}

.subin-custom-html--after-form {
	margin-top: 18px;
}

.subin-custom-html--before-submit {
	margin-top: 20px;
	margin-bottom: 12px;
}

.subin-custom-html--after-submit {
	margin-top: 12px;
}

.subin-form-header-left .subin-form-header {
	text-align: left;
}

.subin-form-header-center .subin-form-header {
	text-align: center;
}

.subin-form-header h3 {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: 0;
}

.subin-form-header p,
.subin-form-footer p,
.subin-field-help {
	margin: 0;
	color: var(--subin-form-muted);
	line-height: 1.5;
}

.subin-form-message {
	min-height: 0;
	margin-bottom: 16px;
}

.subin-form-message:empty {
	display: none;
}

.subin-form-message--success,
.subin-form-message--error {
	padding: 12px 14px;
	border-radius: 6px;
	line-height: 1.5;
	font-weight: 600;
}

.subin-form-message--success {
	color: #0a6f2b;
	background: #edfaef;
	border: 1px solid #b7e4c7;
}

.subin-form-message--error {
	color: #8a2424;
	background: #fcf0f1;
	border: 1px solid #f0b8bf;
}

.subin-form-preview-note {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 14px;
	padding: 4px 8px;
	color: #52606d;
	background: #f6f7f7;
	border: 1px solid #d9e2ec;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.subin-form-fields {
	display: grid;
	gap: var(--subin-form-field-gap);
}

.subin-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.subin-field-label,
.subin-field label,
.subin-field legend {
	margin: 0;
	font-weight: 600;
	color: var(--subin-form-text);
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.subin-field fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.subin-field input[type="text"],
.subin-field input[type="email"],
.subin-field input[type="tel"],
.subin-field input[type="date"],
.subin-field textarea,
.subin-field select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	color: var(--subin-form-text);
	background: #fff;
	border: 1px solid #bcccdc;
	border-radius: 6px;
	font: inherit;
	line-height: 1.4;
	box-shadow: none;
}

.subin-form-wrap input[type="date"].subin-field-input {
	font: inherit;
	line-height: 1.4;
	appearance: auto;
}

.subin-form-wrap input[type="date"].subin-field-input::-webkit-calendar-picker-indicator {
	cursor: pointer;
}

.subin-field textarea {
	min-height: 124px;
	resize: vertical;
}

.subin-field input:focus,
.subin-field textarea:focus,
.subin-field select:focus,
.subin-choice input:focus,
.subin-consent input:focus,
.subin-form-submit:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.subin-field--error input,
.subin-field--error textarea,
.subin-field--error select {
	border-color: #b32d2e;
	box-shadow: 0 0 0 1px rgba(179, 45, 46, 0.12);
}

.subin-choice,
.subin-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 8px;
	font-weight: 400;
	line-height: 1.45;
}

.subin-choice input,
.subin-consent input {
	flex: 0 0 auto;
	margin-top: 4px;
}

.subin-required {
	color: #b32d2e;
}

.subin-field-help,
.subin-field-error,
.subin-form-privacy {
	font-size: 14px;
}

.subin-field-error {
	margin: 0;
	color: #b32d2e;
	line-height: 1.4;
}

.subin-form-footer {
	display: grid;
	gap: 8px;
	margin-top: 18px;
}

.subin-form-actions {
	margin-top: 22px;
}

.subin-form-wrap .subin-grapesjs-layout,
.subin-form-wrap .subin-grapesjs-wrapper {
	display: block;
}

.subin-form-wrap .subin-grapesjs-wrapper {
	display: grid;
	gap: 18px;
}

.subin-form-wrap .subin-form-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
	gap: 0 16px;
	min-width: 0;
}

.subin-form-wrap .subin-form-row > .subin-grapesjs-field,
.subin-form-wrap .subin-form-row > .subin-grapesjs-block,
.subin-form-wrap .subin-form-row > .subin-grapesjs-submit,
.subin-form-wrap .subin-grapesjs-wrapper > .subin-grapesjs-field,
.subin-form-wrap .subin-grapesjs-wrapper > .subin-grapesjs-block,
.subin-form-wrap .subin-grapesjs-wrapper > .subin-grapesjs-submit {
	flex: 0 1 auto;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	position: static !important;
	transform: none !important;
}

@media (max-width: 600px) {
	.subin-form-wrap .subin-form-row > .subin-grapesjs-field,
	.subin-form-wrap .subin-form-row > .subin-grapesjs-block,
	.subin-form-wrap .subin-form-row > .subin-grapesjs-submit,
	.subin-form-wrap .subin-grapesjs-wrapper > .subin-grapesjs-field,
	.subin-form-wrap .subin-grapesjs-wrapper > .subin-grapesjs-block,
	.subin-form-wrap .subin-grapesjs-wrapper > .subin-grapesjs-submit {
		width: 100% !important;
		min-width: 0;
	}
}

.subin-form-wrap .subin-grapesjs-block {
	min-width: 0;
}

.subin-form-wrap .subin-grapesjs-block--divider hr {
	border: 0;
	border-top: 1px solid currentColor;
	opacity: 0.2;
}

.subin-form-wrap .subin-grapesjs-block--image-block img {
	display: block;
	max-width: 100%;
	height: auto;
}

.subin-form-wrap .subin-grapesjs-spacer {
	min-height: 32px;
}

.subin-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	max-width: 100%;
	padding: 10px 18px;
	color: #fff;
	background: var(--subin-form-accent);
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
}

.subin-form-submit:hover {
	background: var(--subin-form-accent-hover);
}

.subin-form-submit:disabled,
.subin-form-submit[disabled] {
	cursor: not-allowed;
	opacity: 0.65;
}

.subin-form--submitting .subin-form-submit {
	cursor: not-allowed;
	opacity: 0.65;
}

.subin-hp-field {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.subin-form-admin-message {
	margin: 16px 0;
	padding: 12px 14px;
	background: #fff8e5;
	border-left: 4px solid #dba617;
}

.subin-form-layout-clean-card,
.subin-form-layout-soft-business {
	padding: var(--subin-form-padding);
	background: var(--subin-form-bg);
	border: 1px solid var(--subin-form-border);
	border-radius: var(--subin-form-radius);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.subin-form-layout-minimal {
	max-width: 680px;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.subin-form-layout-soft-business {
	--subin-form-bg: #f8fafc;
	--subin-form-border: #dbe3ea;
	--subin-form-accent: #1f5f8b;
	--subin-form-accent-hover: #174c73;
	background: var(--subin-form-bg);
	border-color: #dbe3ea;
}

.subin-form-layout-soft-business .subin-form-header {
	padding-bottom: 16px;
	border-bottom: 1px solid #e5ebf0;
}

.subin-form-layout-compact {
	max-width: 540px;
	--subin-form-padding: 20px;
	--subin-form-field-gap: 14px;
	padding: var(--subin-form-padding);
	background: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 6px;
}

.subin-form-layout-compact .subin-form-fields {
	gap: 14px;
}

.subin-form-layout-compact .subin-form-header {
	margin-bottom: 16px;
}

.subin-form-layout-full-width {
	max-width: none;
	width: 100%;
}

.subin-form-layout-two-column {
	max-width: 920px;
}

.subin-form-layout-two-column .subin-form-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--subin-form-field-gap);
}

.subin-form-layout-two-column .subin-field-type-textarea,
.subin-form-layout-two-column .subin-field-type-consent,
.subin-form-layout-two-column .subin-form-message,
.subin-form-layout-two-column .subin-form-footer,
.subin-form-layout-two-column .subin-form-actions,
.subin-form-layout-two-column .subin-custom-html {
	grid-column: 1 / -1;
}

.subin-form-style-default {
	--subin-form-accent: #1d4ed8;
	--subin-form-accent-hover: #1e40af;
}

.subin-form-style-light {
	--subin-form-bg: #fff;
	--subin-form-border: #e5e7eb;
	color: #243b53;
	background: #fff;
}

.subin-form-style-soft {
	--subin-form-bg: #f8fafc;
	--subin-form-border: #dbeafe;
	--subin-form-accent: #2563eb;
	--subin-form-accent-hover: #1d4ed8;
	background: #f8fafc;
	border-color: #dbeafe;
}

.subin-form-style-soft .subin-form-submit,
.subin-form-style-light .subin-form-submit {
	background: #2563eb;
}

.subin-form-style-soft .subin-form-submit:hover,
.subin-form-style-light .subin-form-submit:hover {
	background: #1d4ed8;
}

.subin-form-style-simple {
	border-color: #d1d5db;
	box-shadow: none;
}

.subin-form-style-simple .subin-form-submit {
	background: #2c3338;
}

.subin-form-style-simple .subin-form-submit:hover {
	background: #1d2327;
}

.subin-form-style-professional {
	--subin-form-bg: #ffffff;
	--subin-form-border: #b8c4d6;
	--subin-form-text: #18212f;
	--subin-form-muted: #475569;
	--subin-form-accent: #174c73;
	--subin-form-accent-hover: #123d5c;
	border-color: var(--subin-form-border);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.subin-form-style-professional .subin-form-header {
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
}

.subin-form-button-outline .subin-form-submit {
	color: var(--subin-form-accent);
	background: transparent;
	border: 1px solid var(--subin-form-accent);
}

.subin-form-button-outline .subin-form-submit:hover {
	color: #fff;
	background: var(--subin-form-accent);
}

.subin-form-button-soft .subin-form-submit {
	color: var(--subin-form-accent-hover);
	background: #eaf2ff;
	border: 1px solid #c9ddff;
}

.subin-form-button-soft .subin-form-submit:hover {
	background: #dbeafe;
}

.subin-form-width-narrow {
	max-width: 520px;
}

.subin-form-width-standard {
	max-width: 720px;
}

.subin-form-width-wide {
	max-width: 960px;
}

.subin-form-width-full {
	max-width: none;
	width: 100%;
}

.subin-form-layout-full-width {
	max-width: none;
	width: 100%;
}

.subin-form-spacing-compact {
	--subin-form-field-gap: 12px;
	--subin-form-padding: 20px;
}

.subin-form-spacing-comfortable {
	--subin-form-field-gap: 18px;
	--subin-form-padding: 28px;
}

.subin-form-spacing-spacious {
	--subin-form-field-gap: 24px;
	--subin-form-padding: 34px;
}

.subin-form-spacing-compact .subin-form-header {
	margin-bottom: 16px;
}

.subin-form-spacing-spacious .subin-form-header {
	margin-bottom: 28px;
}

.subin-design-block {
	margin: 0 0 var(--subin-form-field-gap);
	color: var(--subin-form-text);
}

.subin-design-block p:last-child,
.subin-design-block ul:last-child,
.subin-design-block ol:last-child {
	margin-bottom: 0;
}

.subin-design-block__title {
	margin-bottom: 6px;
	font-weight: 700;
	color: var(--subin-form-heading);
}

.subin-design-block--notice,
.subin-design-block--privacy {
	padding: 12px 14px;
	border: 1px solid var(--subin-form-border);
	border-radius: var(--subin-form-radius);
	background: #f8fafc;
}

.subin-design-block--info {
	background: #eef6ff;
	border-color: #bfdbfe;
}

.subin-design-block--success {
	background: #ecfdf3;
	border-color: #bbf7d0;
}

.subin-design-block--warning {
	background: #fff7ed;
	border-color: #fed7aa;
}

.subin-design-block--divider {
	margin: var(--subin-form-field-gap) 0;
}

.subin-design-block--divider hr {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--subin-form-border);
}

.subin-design-block--space {
	min-height: 18px;
}

.subin-layout-container {
	display: grid;
	gap: var(--subin-form-field-gap);
	min-width: 0;
}

.subin-layout-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--subin-form-field-gap);
	min-width: 0;
}

.subin-layout-column,
.subin-layout-item {
	min-width: 0;
}

.subin-layout-column {
	display: grid;
	align-content: start;
	gap: var(--subin-form-field-gap);
}

.subin-layout-width-25 {
	flex: 0 1 calc(25% - var(--subin-form-field-gap));
}

.subin-layout-width-33 {
	flex: 0 1 calc(33.333% - var(--subin-form-field-gap));
}

.subin-layout-width-50 {
	flex: 0 1 calc(50% - var(--subin-form-field-gap));
}

.subin-layout-width-66 {
	flex: 0 1 calc(66.666% - var(--subin-form-field-gap));
}

.subin-layout-width-75 {
	flex: 0 1 calc(75% - var(--subin-form-field-gap));
}

.subin-layout-width-100 {
	flex: 1 1 100%;
}

@media (max-width: 700px) {
	.subin-form-wrap {
		margin: 18px 0;
	}

	.subin-form-layout-clean-card,
	.subin-form-layout-soft-business,
	.subin-form-layout-compact {
		padding: 18px;
	}

	.subin-form-layout-two-column .subin-form-fields {
		grid-template-columns: 1fr;
	}

	.subin-form-width-narrow,
	.subin-form-width-standard,
	.subin-form-width-wide,
	.subin-form-width-full {
		max-width: none;
	}

	.subin-form-submit {
		width: 100%;
	}

	.subin-layout-row {
		display: grid;
		grid-template-columns: 1fr;
	}

	.subin-layout-column,
	.subin-layout-item {
		flex-basis: 100%;
	}
}
