.kurs-contact [hidden] {
	display: none !important;
}

.kurs-contact__open,
.kurs-contact__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75em 1.8em;
	border: 0;
	border-radius: 999px;
	background: var(--kurs-contact-accent, #3F7A5E);
	color: var(--kurs-contact-on-accent, #fff);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.kurs-contact__open:hover,
.kurs-contact__submit:hover:not(:disabled) {
	filter: brightness(1.1);
}

.kurs-contact__open:focus-visible,
.kurs-contact__submit:focus-visible,
.kurs-contact__close:focus-visible {
	outline: 3px solid var(--kurs-contact-accent, #3F7A5E);
	outline-offset: 3px;
}

.kurs-contact__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.kurs-contact__dialog {
	width: min(680px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #1c1c1c;
	text-align: left;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.kurs-contact__dialog::backdrop {
	background: rgba(10, 15, 12, 0.6);
	backdrop-filter: blur(3px);
}

.kurs-contact__panel {
	position: relative;
	max-height: calc(100dvh - 24px);
	padding: 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.kurs-contact__title {
	margin: 0 40px 0.4em 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.kurs-contact__intro {
	margin: 0 0 1.4em;
	opacity: 0.8;
}

.kurs-contact__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.kurs-contact__close:hover {
	background: rgba(0, 0, 0, 0.12);
}

.kurs-contact__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.kurs-contact__field {
	margin: 0 0 1.1em;
}

.kurs-contact__field > label {
	display: block;
	margin: 0 0 0.35em;
	font-weight: 600;
	font-size: 0.95rem;
}

.kurs-contact__req {
	color: #b3261e;
}

.kurs-contact__field input[type=text],
.kurs-contact__field input[type=email],
.kurs-contact__field input[type=tel],
.kurs-contact__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.7em 0.85em;
	border: 1.5px solid #c4c8c5;
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 16px;
}

.kurs-contact__field textarea {
	resize: vertical;
	min-height: 7em;
}

.kurs-contact__field input[type=file] {
	box-sizing: border-box;
	width: 100%;
	padding: 0.55em;
	border: 1.5px dashed #c4c8c5;
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
}

.kurs-contact__field input:focus,
.kurs-contact__field textarea:focus {
	border-color: var(--kurs-contact-accent, #3F7A5E);
	outline: 2px solid var(--kurs-contact-accent, #3F7A5E);
	outline-offset: 1px;
}

.kurs-contact__field [aria-invalid=true] {
	border-color: #b3261e;
}

.kurs-contact__err {
	margin: 0.35em 0 0;
	color: #b3261e;
	font-size: 0.88rem;
}

.kurs-contact__hint {
	margin: -0.4em 0 1.2em;
	font-size: 0.88rem;
	opacity: 0.75;
}

.kurs-contact__field--check label {
	display: flex;
	align-items: flex-start;
	gap: 0.65em;
	font-weight: 400;
}

.kurs-contact__field--check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 0.15em;
	accent-color: var(--kurs-contact-accent, #3F7A5E);
}

.kurs-contact__status {
	min-height: 1.4em;
	margin: 0 0 0.8em;
	font-size: 0.95rem;
}

.kurs-contact__status.is-error {
	color: #b3261e;
	font-weight: 600;
}

.kurs-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kurs-contact-off {
	padding: 12px;
	border: 1px dashed #999;
	font-size: 13px;
	text-align: center;
}

html.kurs-contact-lock {
	overflow: hidden;
}

@media (max-width: 600px) {
	.kurs-contact__dialog {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	.kurs-contact__panel {
		max-height: 100dvh;
		padding: 24px 18px 32px;
	}

	.kurs-contact__submit {
		width: 100%;
	}
}
.kurs-contact--inline {
	max-width: 680px;
	margin: 0 auto;
	text-align: left;
}

.kurs-contact--inline .kurs-contact__title {
	margin-right: 0;
}
