:root {
	--agersoe-event-form-ink: #203b4a;
	--agersoe-event-form-muted: #667d88;
	--agersoe-event-form-line: #d6e1e5;
	--agersoe-event-form-soft: #f3f8f8;
	--agersoe-event-form-accent: #176b73;
	--agersoe-event-form-accent-dark: #0f4f56;
}

.agersoe-event-form {
	width: min(760px, 100%);
	margin: 0 auto 64px;
	color: var(--agersoe-event-form-ink);
}

.agersoe-event-form__panel {
	border: 1px solid var(--agersoe-event-form-line);
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 12px 36px rgba(32, 59, 74, 0.08);
	overflow: hidden;
}

.agersoe-event-form__header {
	padding: 34px 38px 28px;
	background: linear-gradient(135deg, #edf7f5 0%, #f8fbf9 100%);
	border-bottom: 1px solid var(--agersoe-event-form-line);
}

.agersoe-event-form__eyebrow {
	margin: 0 0 8px;
	color: var(--agersoe-event-form-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.agersoe-event-form h2,
.agersoe-event-form h3,
.agersoe-event-form p {
	margin-top: 0;
}

.agersoe-event-form h2 {
	margin-bottom: 10px;
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	line-height: 1.1;
}

.agersoe-event-form__header > p:last-child,
.agersoe-event-form__section-heading p,
.agersoe-event-form__hint {
	margin-bottom: 0;
	color: var(--agersoe-event-form-muted);
	font-size: 14px;
	line-height: 1.55;
}

.agersoe-event-form__notices {
	padding: 20px 38px 0;
}

.agersoe-event-form__notice {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #e5c0c0;
	background: #fff7f7;
	color: #8a3030;
}

.agersoe-event-form__notices .em-notice-error {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #e5c0c0;
	background: #fff7f7;
	color: #8a3030;
}

.agersoe-event-form__notices .em-notice-error p {
	margin: 0 0 6px;
}

.agersoe-event-form__notices .em-notice-error p:last-child {
	margin-bottom: 0;
}

.agersoe-event-form__form {
	margin: 0;
}

.agersoe-event-form__section {
	padding: 28px 38px;
	border-bottom: 1px solid #e8eff0;
}

.agersoe-event-form__section--compact {
	padding-bottom: 24px;
}

.agersoe-event-form__section-heading {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 18px;
}

.agersoe-event-form__section-heading h3 {
	margin-bottom: 0;
	font-size: 1.2rem;
	line-height: 1.25;
}

.agersoe-event-form__section-heading p {
	margin-bottom: 0;
	text-align: right;
}

.agersoe-event-form__field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.agersoe-event-form__field--time {
	position: relative;
}

.agersoe-event-form__field + .agersoe-event-form__field {
	margin-top: 18px;
}

.agersoe-event-form__field label,
.agersoe-event-form__check {
	color: var(--agersoe-event-form-ink);
	font-size: 14px;
	font-weight: 700;
}

.agersoe-event-form__field input,
.agersoe-event-form__field textarea,
.agersoe-event-form__field select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	border: 1px solid #bdcfd4;
	border-radius: 6px;
	background: #ffffff;
	color: var(--agersoe-event-form-ink);
	font: inherit;
	font-size: 16px;
}

.agersoe-event-form__field input,
.agersoe-event-form__field select {
	min-height: 46px;
	padding: 9px 12px;
}

.agersoe-event-form__field textarea {
	min-height: 148px;
	padding: 11px 12px;
	line-height: 1.55;
	resize: vertical;
}

.agersoe-event-form__field input:focus,
.agersoe-event-form__field textarea:focus,
.agersoe-event-form__field select:focus {
	outline: 0;
	border-color: var(--agersoe-event-form-accent);
	box-shadow: 0 0 0 3px rgba(23, 107, 115, 0.13);
}

.agersoe-event-form__field input:disabled {
	background: #edf2f3;
	color: #8a9ca3;
}

.agersoe-event-form__grid {
	display: grid;
	gap: 14px;
}

.agersoe-event-form__grid--date {
	grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}

.agersoe-event-form__grid--location {
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
	margin-top: 18px;
}

.agersoe-event-form__check {
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 18px;
	cursor: pointer;
}

.agersoe-event-form__check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--agersoe-event-form-accent);
}

.agersoe-event-form__check a {
	color: var(--agersoe-event-form-accent-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.agersoe-event-form__hint {
	margin-top: 7px;
}

.agersoe-time-picker {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: end;
	gap: 10px;
	width: 260px;
	max-width: calc(100vw - 44px);
	padding: 12px;
	border: 1px solid var(--agersoe-event-form-line);
	border-radius: 7px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(32, 59, 74, 0.16);
}

.agersoe-time-picker[hidden] {
	display: none;
}

.agersoe-time-picker__field {
	display: grid;
	gap: 5px;
	color: var(--agersoe-event-form-ink);
	font-size: 12px;
	font-weight: 700;
}

.agersoe-time-picker__field select {
	box-sizing: border-box;
	min-height: 42px;
	padding: 8px;
	border: 1px solid #bdcfd4;
	border-radius: 6px;
	background: #ffffff;
	color: var(--agersoe-event-form-ink);
	font: inherit;
	font-size: 16px;
}

.agersoe-time-picker__field select:focus,
.agersoe-time-picker__done:focus-visible {
	outline: 3px solid rgba(23, 107, 115, 0.22);
	outline-offset: 2px;
}

.agersoe-time-picker__done {
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--agersoe-event-form-accent);
	border-radius: 6px;
	background: var(--agersoe-event-form-accent);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.agersoe-time-picker__done:hover {
	border-color: var(--agersoe-event-form-accent-dark);
	background: var(--agersoe-event-form-accent-dark);
}

.agersoe-event-form__upload {
	padding: 16px;
	border: 1px dashed #abc2c7;
	border-radius: 7px;
	background: var(--agersoe-event-form-soft);
}

.agersoe-event-form__upload .em-input-upload {
	margin: 0;
}

.agersoe-event-form__upload .em-input-upload-files {
	margin-bottom: 0;
}

.agersoe-event-form__footer {
	display: flex;
	justify-content: flex-end;
	padding: 22px 38px 28px;
}

.agersoe-event-form__submit {
	min-height: 48px;
	padding: 11px 22px;
	border: 1px solid var(--agersoe-event-form-accent);
	border-radius: 6px;
	background: var(--agersoe-event-form-accent);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.agersoe-event-form__submit:hover,
.agersoe-event-form__submit:focus-visible {
	border-color: var(--agersoe-event-form-accent-dark);
	background: var(--agersoe-event-form-accent-dark);
}

.agersoe-event-form__submit:focus-visible {
	outline: 3px solid rgba(23, 107, 115, 0.22);
	outline-offset: 2px;
}

.agersoe-event-form [hidden] {
	display: none;
}

@media (max-width: 640px) {
	.agersoe-event-form__header,
	.agersoe-event-form__section {
		padding-right: 22px;
		padding-left: 22px;
	}

	.agersoe-event-form__notices {
		padding-right: 22px;
		padding-left: 22px;
	}

	.agersoe-event-form__section-heading {
		display: block;
	}

	.agersoe-event-form__section-heading p {
		margin-top: 6px;
		text-align: left;
	}

	.agersoe-event-form__grid--date,
	.agersoe-event-form__grid--location {
		grid-template-columns: 1fr;
	}

	.agersoe-time-picker {
		width: 100%;
		max-width: none;
		grid-template-columns: 1fr 1fr;
	}

	.agersoe-time-picker__done {
		grid-column: 1 / -1;
	}

	.agersoe-event-form__footer {
		padding-right: 22px;
		padding-left: 22px;
	}

	.agersoe-event-form__submit {
		width: 100%;
	}
}