/*
 * Forms and form-adjacent content.
 */

.form-layout {
	display: grid;
	gap: 2rem;
	align-items: start;
}

/* Without intro content the form spans the full layout width. */
.form-layout.form-layout--form-only {
	grid-template-columns: minmax(0, 1fr);
}

.form-layout__content {
	max-width: 34rem;
}

.form-layout__content h2 {
	margin-bottom: 0.8rem;
}

.lead-form-block .form-layout__form {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
}

.check-list {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.75rem;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5rem;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 999px;
	background: var(--color-brand-red);
}

.lead-form {
	display: grid;
	gap: 1rem;
}

.lead-form__submit {
	justify-self: start;
	width: auto;
}

/* Book demo page: centred, narrow lead form. */
.page-shell--demo .lead-form {
	max-width: 34rem;
	margin-inline: auto;
}

.form-grid {
	display: grid;
	gap: 1rem;
}

.form-field {
	margin: 0;
}

label {
	display: inline-block;
	margin-bottom: 0.45rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-blue-dark);
}

.lead-form__required {
	color: var(--color-brand-red);
}

.eventit-section--blue .lead-form label {
	color: var(--color-white);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(2, 42, 68, 0.15);
	border-radius: var(--card-radius);
	background: var(--color-white);
	color: var(--color-text);
	font: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	border-color: rgba(184, 0, 0, 0.46);
	box-shadow: 0 0 0 4px rgba(184, 0, 0, 0.08);
}

textarea {
	resize: vertical;
	min-height: 10rem;
}

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

.form-notice {
	padding: 0.9rem 1rem;
	border-radius: 0.8rem;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	font-weight: 600;
}

.form-notice p {
	margin: 0;
}

/* Opaque colours so the notice stays legible on any section background
   (white, grey or blue), not just light ones. */
.form-notice.is-success {
	background: var(--color-brand-red);
	border-color: var(--color-brand-red);
	color: #ffffff;
}

.form-notice.is-error {
	background: #fdeaea;
	border-color: #f2c2c2;
	color: #8a1f1f;
}

.lead-form .lead-form__submit.btn--nav-demo:hover,
.lead-form .lead-form__submit.btn--nav-demo:focus-visible {
	background: var(--color-white);
	border-color: var(--color-blue-dark);
	color: var(--color-blue-dark);
}

/*
 * Placeholder label style — labels are visually hidden and repeated as
 * in-field placeholders on a light grey field surface.
 */

.lead-form--placeholder input[type="text"],
.lead-form--placeholder input[type="email"],
.lead-form--placeholder input[type="tel"],
.lead-form--placeholder textarea {
	padding: 0.85rem 1.1rem;
	background: var(--color-surface-light);
	border: 1px solid rgba(2, 42, 68, 0.1);
	border-radius: 0.35rem;
}

.lead-form--placeholder input::placeholder,
.lead-form--placeholder textarea::placeholder {
	color: var(--color-grey-charcoal);
	opacity: 0.85;
}

.lead-form--placeholder textarea {
	min-height: 9rem;
}

@media (min-width: 40rem) {
	.lead-form--placeholder .form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 48rem) {
	.lead-form__submit {
		max-width: 15.6rem;
		min-height: 3.3rem;
		padding: 0.62rem 0.94rem;
		font-size: 1.12rem;
		font-weight: var(--font-weight-bold);
		line-height: 1.1;
		white-space: normal;
		text-wrap: balance;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	/* Kontakt (placeholder) form centres its Send button on mobile to match
	   the mock; Book demo keeps its default left alignment. */
	.lead-form--placeholder .lead-form__submit {
		justify-self: center;
	}
}
