.controly-form-wrap {
	background: #fffafb;
	box-sizing: border-box;
	color: #292629;
	font-family: inherit;
	margin: 0 auto;
	max-width: 1080px;
	padding: 22px;
	width: 100%;
}

.controly-form__header {
	margin: 0 auto 16px;
	max-width: 700px;
	text-align: center;
}

.controly-kicker {
	background: #fff;
	border: 1px solid #f0e1e8;
	border-radius: 999px;
	color: #ec368b;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 0 10px;
	padding: 7px 11px;
	text-transform: uppercase;
}

.controly-form__header h2 {
	color: #292629;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 8px;
}

.controly-form__header p {
	color: #7f7479;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.controly-form {
	display: grid;
	gap: 12px;
}

.controly-form__section {
	background: #fff;
	border: 1px solid #f0e1e8;
	border-radius: 15px;
	box-shadow: 0 6px 18px rgba(70, 42, 53, 0.035);
	box-sizing: border-box;
	padding: 20px;
}

.controly-form__section-head {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.controly-form__section-head > span {
	align-items: center;
	background: #fde8f2;
	border-radius: 999px;
	color: #ec368b;
	display: inline-flex;
	flex: 0 0 28px;
	font-size: 11px;
	font-weight: 700;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.controly-form__section-head h3 {
	color: #292629;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 2px;
}

.controly-form__section-head p {
	color: #7f7479;
	font-size: 13px;
	line-height: 1.4;
	margin: 0;
}

.controly-form__grid {
	display: grid;
	gap: 14px 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.controly-field,
.controly-upload,
.controly-consent {
	box-sizing: border-box;
	color: #312d30;
	display: grid;
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
	line-height: 1.35;
	margin: 0;
}

.controly-field--wide {
	grid-column: 1 / -1;
}

.controly-field input,
.controly-field select,
.controly-field textarea {
	appearance: none;
	background: #fff;
	border: 1px solid #ead9e1;
	border-radius: 9px;
	box-sizing: border-box;
	color: #292629;
	font-family: inherit;
	font-size: 14px;
	height: 46px;
	line-height: 1.4;
	margin: 0;
	padding: 0 13px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
	width: 100%;
}

.controly-field textarea {
	height: auto;
	max-height: 120px;
	min-height: 92px;
	padding-bottom: 11px;
	padding-top: 11px;
	resize: vertical;
}

.controly-field select {
	background-image:
		linear-gradient(45deg, transparent 50%, #ec368b 50%),
		linear-gradient(135deg, #ec368b 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 20px,
		calc(100% - 13px) 20px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 38px;
}

.controly-field input:focus,
.controly-field select:focus,
.controly-field textarea:focus {
	border-color: #ec368b;
	box-shadow: 0 0 0 3px rgba(236, 54, 139, 0.08);
	outline: none;
}

.controly-field.has-error input,
.controly-field.has-error select,
.controly-field.has-error textarea,
.controly-upload.has-error .controly-upload__box,
.controly-consent.has-error {
	border-color: #df6d7b;
}

.controly-select-label small {
	color: #91858a;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	margin-top: -1px;
}

.controly-upload {
	position: relative;
}

.controly-upload input[type="file"] {
	height: 1px;
	opacity: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.controly-upload__box {
	align-items: center;
	background: #fffafd;
	border: 1px dashed #e9c5d5;
	border-radius: 12px;
	box-sizing: border-box;
	cursor: pointer;
	display: grid;
	gap: 5px;
	min-height: 122px;
	padding: 16px;
	text-align: center;
	transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.controly-upload__icon {
	align-items: center;
	background: #fde8f2;
	border-radius: 999px;
	color: #ec368b;
	display: inline-flex;
	font-size: 17px;
	font-weight: 700;
	height: 30px;
	justify-content: center;
	justify-self: center;
	line-height: 1;
	width: 30px;
}

.controly-upload__box strong {
	color: #292629;
	font-size: 14px;
	font-weight: 700;
}

.controly-upload__hint,
.controly-file-name {
	color: #91858a;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.controly-upload__preview {
	display: none;
	justify-self: center;
	margin-top: 3px;
}

.controly-upload__preview img,
.controly-upload__preview .controly-upload__pdf {
	border: 1px solid #f0e1e8;
	border-radius: 8px;
	height: 48px;
	object-fit: cover;
	width: 48px;
}

.controly-upload__preview .controly-upload__pdf {
	align-items: center;
	background: #fff;
	color: #ec368b;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	justify-content: center;
}

.controly-upload__actions {
	display: none;
	gap: 8px;
	justify-content: center;
	margin-top: 4px;
}

.controly-upload__actions button {
	background: #fff;
	border: 1px solid #ead9e1;
	border-radius: 999px;
	color: #6f6067;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	height: 28px;
	padding: 0 11px;
}

.controly-upload:hover .controly-upload__box,
.controly-upload input:focus + .controly-upload__box,
.controly-upload.has-file .controly-upload__box,
.controly-upload.is-dragging .controly-upload__box {
	background: #fff5fa;
	border-color: #ec368b;
	box-shadow: 0 0 0 3px rgba(236, 54, 139, 0.06);
}

.controly-upload.has-file .controly-upload__preview,
.controly-upload.has-file .controly-upload__actions {
	display: flex;
}

.controly-consent {
	align-items: flex-start;
	background: #fffafd;
	border: 1px solid #f0e1e8;
	border-radius: 10px;
	display: grid;
	font-size: 13px;
	font-weight: 400;
	gap: 0 10px;
	grid-template-columns: 18px 1fr;
	line-height: 1.45;
	padding: 11px 12px;
	position: relative;
}

.controly-consent input {
	height: 18px;
	margin: 1px 0 0;
	opacity: 0;
	position: absolute;
	width: 18px;
}

.controly-consent__box {
	background: #fff;
	border: 1px solid #d9cbd1;
	border-radius: 5px;
	box-sizing: border-box;
	height: 18px;
	margin-top: 1px;
	width: 18px;
}

.controly-consent input:checked + .controly-consent__box {
	background: #ec368b;
	border-color: #ec368b;
}

.controly-consent input:checked + .controly-consent__box::after {
	color: #fff;
	content: '✓';
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.controly-consent input:focus + .controly-consent__box {
	box-shadow: 0 0 0 3px rgba(236, 54, 139, 0.08);
}

.controly-consent__text {
	color: #50484d;
	font-weight: 400;
}

.controly-consent__text a {
	color: #ec368b;
	font-weight: 600;
	text-decoration: none;
}

.controly-consent [data-error-for] {
	grid-column: 2;
}

.controly-form [data-error-for] {
	color: #b42318;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	min-height: 14px;
}

.controly-submit__note {
	background: #fff7fa;
	border: 1px solid #f2e0e7;
	border-radius: 9px;
	color: #7f7479;
	font-size: 12px;
	line-height: 1.45;
	margin: 14px 0 0;
	padding: 10px 12px;
}

.controly-submit-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
}

.controly-form button[type="submit"] {
	align-items: center;
	background: #ec368b;
	border: 0;
	border-radius: 22px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0 22px;
	transition: background-color 0.16s ease, opacity 0.16s ease;
}

.controly-form button[type="submit"]:hover {
	background: #d92a7b;
}

.controly-form button[type="submit"]:disabled {
	cursor: wait;
	opacity: 0.68;
}

.controly-form button[type="submit"].is-loading span {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.controly-form button[type="submit"].is-loading span::after {
	animation: controlySpin 0.7s linear infinite;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 999px;
	content: '';
	height: 12px;
	width: 12px;
}

.controly-form-status {
	color: #7f7479;
	font-size: 13px;
	line-height: 1.45;
}

.controly-form-status.is-success {
	align-items: center;
	background: #fff;
	border: 1px solid #f0e1e8;
	border-radius: 15px;
	color: #292629;
	display: grid;
	gap: 6px;
	padding: 18px;
	text-align: center;
	width: 100%;
}

.controly-form.is-submitted .controly-form__section--final .controly-form__section-head,
.controly-form.is-submitted .controly-form__section--final .controly-form__grid,
.controly-form.is-submitted .controly-form__section--final .controly-submit__note,
.controly-form.is-submitted .controly-form__section--final button[type="submit"] {
	display: none;
}

.controly-form-status.is-success::before {
	align-items: center;
	background: #eaf8ef;
	border-radius: 999px;
	color: #16803c;
	content: '✓';
	display: inline-flex;
	font-size: 18px;
	font-weight: 700;
	height: 34px;
	justify-content: center;
	justify-self: center;
	width: 34px;
}

.controly-form-status.is-error,
.controly-message-error {
	background: #fff6f6;
	border: 1px solid #f1c1c4;
	border-radius: 10px;
	color: #8a1f28;
	font-size: 13px;
	line-height: 1.45;
	padding: 10px 12px;
}

@keyframes controlySpin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 720px) {
	.controly-form-wrap {
		padding: 12px;
	}

	.controly-form__header {
		margin-bottom: 14px;
		text-align: left;
	}

	.controly-form__header h2 {
		font-size: 21px;
	}

	.controly-form__section {
		padding: 16px;
	}

	.controly-form__grid {
		grid-template-columns: 1fr;
	}

	.controly-submit-row,
	.controly-form button[type="submit"] {
		width: 100%;
	}
}
