.evergreen-webinar-modal-open {
	overflow: hidden;
}

.evergreen-webinar-registration,
.evergreen-webinar-registration * {
	box-sizing: border-box;
}

.evergreen-webinar-registration__open,
.evergreen-webinar-registration__submit {
	appearance: none;
	border: 0;
	border-radius: var(--ew-button-radius, 14px);
	background: var(--ew-button-bg, #5b61e6);
	color: var(--ew-button-color, #fff);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	padding: 16px 28px;
	transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.evergreen-webinar-registration__open:hover,
.evergreen-webinar-registration__submit:hover {
	box-shadow: 0 14px 30px color-mix(in srgb, var(--ew-button-bg, #5b61e6) 28%, transparent);
	transform: translateY(-1px);
}

.evergreen-webinar-registration__open:focus-visible,
.evergreen-webinar-registration__submit:focus-visible,
.evergreen-webinar-registration__close:focus-visible,
.evergreen-webinar-registration input:focus-visible,
.evergreen-webinar-registration select:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ew-accent, #5b61e6) 35%, transparent);
	outline-offset: 2px;
}

.evergreen-webinar-registration__overlay {
	align-items: center;
	background: rgba(13, 20, 45, 0.64);
	backdrop-filter: blur(12px);
	display: flex;
	inset: 0;
	justify-content: center;
	overflow-y: auto;
	padding: 24px;
	position: fixed;
	z-index: 999999;
}

.evergreen-webinar-registration__overlay[hidden] {
	display: none;
}

.evergreen-webinar-registration__dialog {
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(13, 20, 45, 0.28);
	color: #16213e;
	max-width: 620px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.evergreen-webinar-registration__header {
	background: linear-gradient(135deg, color-mix(in srgb, var(--ew-accent, #5b61e6) 12%, #fff), #fff);
	border-top: 5px solid var(--ew-accent, #5b61e6);
	padding: 30px 34px 25px;
}

.evergreen-webinar-registration__header p {
	color: var(--ew-accent, #5b61e6);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.evergreen-webinar-registration__header h2 {
	color: #101a36;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.15;
	margin: 0;
}

.evergreen-webinar-registration__header span {
	color: #69738e;
	display: block;
	margin-top: 8px;
}

.evergreen-webinar-registration__close {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.86);
	border: 0;
	border-radius: 50%;
	color: #4b556f;
	cursor: pointer;
	display: flex;
	font-size: 28px;
	height: 42px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 4px;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 42px;
	z-index: 1;
}

.evergreen-webinar-registration__form {
	display: grid;
	gap: 18px;
	padding: 28px 34px 34px;
}

.evergreen-webinar-registration__form > label:not(.evergreen-webinar-registration__consent) {
	display: grid;
	gap: 7px;
}

.evergreen-webinar-registration__form label > span {
	color: #34405e;
	font-size: 14px;
	font-weight: 700;
}

.evergreen-webinar-registration input[type="text"],
.evergreen-webinar-registration input[type="email"],
.evergreen-webinar-registration select {
	appearance: none;
	background-color: #fff;
	border: 1px solid #dce2ef;
	border-radius: 12px;
	color: #17213c;
	font: inherit;
	min-height: 52px;
	padding: 12px 15px;
	width: 100%;
}

.evergreen-webinar-registration select {
	background-image: linear-gradient(45deg, transparent 50%, #52607b 50%), linear-gradient(135deg, #52607b 50%, transparent 50%);
	background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 42px;
}

.evergreen-webinar-registration__consent {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.evergreen-webinar-registration__consent input {
	accent-color: var(--ew-accent, #5b61e6);
	flex: 0 0 auto;
	height: 19px;
	margin-top: 2px;
	width: 19px;
}

.evergreen-webinar-registration__consent span {
	font-weight: 500 !important;
	line-height: 1.45;
}

.evergreen-webinar-registration__submit {
	background: var(--ew-accent, #5b61e6);
	color: #fff;
	margin-top: 3px;
	width: 100%;
}

.evergreen-webinar-registration__submit:disabled {
	cursor: wait;
	opacity: 0.66;
}

.evergreen-webinar-registration__errors {
	background: #fff2f2;
	border: 1px solid #f3b8b8;
	border-radius: 10px;
	color: #8f2929;
	font-size: 14px;
	padding: 12px 15px;
}

.evergreen-webinar-registration__errors.is-success {
	background: #ecfbf4;
	border-color: #a7e3c5;
	color: #176846;
}

.evergreen-webinar-registration__errors ul {
	margin: 0;
	padding-left: 20px;
}

.evergreen-webinar-registration__honeypot {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.evergreen-webinar-embed-notice {
	background: #fff8df;
	border-left: 4px solid #e5b63c;
	color: #5c4b19;
	padding: 12px 16px;
}

@media (max-width: 600px) {
	.evergreen-webinar-registration__overlay {
		align-items: flex-start;
		padding: 12px;
	}

	.evergreen-webinar-registration__dialog {
		border-radius: 18px;
		margin: 10px 0;
	}

	.evergreen-webinar-registration__header,
	.evergreen-webinar-registration__form {
		padding-left: 20px;
		padding-right: 20px;
	}
}
