.eff-shortcode {
	--eff-blue: var(--theme-color-blue, #3b62ff);
	--eff-blue-hover: #1d44e1;
	--eff-sky: var(--theme-color-skyblue, #e6f1ff);
	--eff-panel: #eef3ff;
	--eff-cloud: #f5f8ff;
	--eff-navy: var(--theme-color-darkblue-v2, #312e60);
	--eff-copy: #535b7f;
	--eff-white: #fff;
	--eff-border: rgba(59, 98, 255, 0.14);
	font-family: "Instrument Sans", sans-serif;
	line-height: 1.5;
}

.eff-shortcode,
.eff-shortcode *,
.eff-shortcode *::before,
.eff-shortcode *::after {
	box-sizing: border-box;
}

.eff-shortcode h2,
.eff-shortcode h3,
.eff-shortcode p,
.eff-shortcode label,
.eff-shortcode button,
.eff-shortcode input,
.eff-shortcode select,
.eff-shortcode textarea {
	font-family: "Instrument Sans", sans-serif;
}

.eff-trigger {
	--button-font-size: 1.8rem;
	--button-color: #fff;
	--button-background-color: var(--eff-blue);
	--button-border-color: var(--eff-blue);
	--button-hover-color: #fff;
	--button-hover-background-color: var(--eff-blue-hover);
	--button-hover-border-color: var(--eff-blue-hover);
	cursor: pointer;
	font-family: "Instrument Sans", sans-serif;
	text-decoration: none;
	appearance: none;
	padding: 1.1rem 1.4rem .7rem 2.5rem;
	box-shadow: none;
}

.eff-trigger__label {
	display: inline-block;
}

.eff-trigger .eff-trigger__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	margin-left: 1.7rem;
	transform: none;
	transition: transform var(--theme-transition-duration, 0.4s);
}

.eff-trigger .eff-trigger__icon svg {
	display: block;
	width: 2.8rem;
	height: 2.8rem;
}

.eff-trigger:hover,
.eff-trigger:focus-visible {
	text-decoration: none;
}

.eff-trigger:hover .eff-trigger__icon,
.eff-trigger:focus-visible .eff-trigger__icon {
	transform: translateX(.5rem);
}

.eff-modal[hidden] {
	display: none;
}

.eff-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s ease, visibility .28s ease;
}

.eff-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.eff-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 0, 56, 0.58);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity .28s ease;
}

.eff-modal.is-open .eff-modal__backdrop {
	opacity: 1;
}

.eff-dialog {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 2.4rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.eff-shell {
	position: relative;
	width: min(100%, 88rem);
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	padding: 1.8rem;
	border-radius: 4.8rem 0 4.8rem 0;
	background: linear-gradient(180deg, rgba(230, 241, 255, 0.98), rgba(237, 244, 255, 0.98));
	box-shadow: 0 32px 80px -34px rgba(5, 0, 56, 0.45);
	transform: translateY(16px) scale(.985);
	opacity: 0;
	transition: transform .28s ease, opacity .28s ease;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.eff-modal.is-open .eff-shell {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.eff-dialog__close {
	position: absolute;
	top: 1.4rem;
	right: 1.4rem;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	padding: 0;
	border: 1px solid rgba(49, 46, 96, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	color: var(--eff-navy);
	font-size: 2.8rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 30px -18px rgba(5, 0, 56, 0.4);
}

.eff-dialog__close:hover,
.eff-dialog__close:focus-visible {
	border-color: rgba(59, 98, 255, 0.28);
	color: var(--eff-blue);
}

.eff-dialog__close span {
	display: block;
	transform: translateY(-1px);
}

.eff-shell__header {
	padding: 2rem 6rem 2.2rem;
	text-align: center;
}

.eff-shell__title {
	margin: 0;
	color: var(--eff-navy);
	font-size: 3.4rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.04em;
	text-transform: none;
}

.eff-shell__subtitle {
	max-width: 62rem;
	margin: 1.2rem auto 0;
	color: var(--eff-copy);
	font-size: 1.7rem;
	font-weight: 400;
	line-height: 1.6;
	text-transform: none;
}

.eff-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	overflow: hidden;
	border-radius: 2.4rem 0 2.4rem 2.4rem;
	background: var(--eff-white);
	box-shadow: 0 18px 48px -30px rgba(5, 0, 56, 0.32);
}

.eff-panel {
	padding: 3rem 3rem 3.2rem;
}

.eff-panel--light {
	background: var(--eff-white);
}

.eff-panel--accent {
	background: var(--eff-panel);
	border-left: 1px solid rgba(59, 98, 255, 0.08);
}

.eff-panel__intro {
	margin-bottom: 2.6rem;
}

.eff-panel__eyebrow {
	margin: 0 0 .8rem;
	color: var(--eff-blue);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
}

.eff-panel__title {
	margin: 0;
	color: var(--eff-navy);
	font-size: 1.95rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-transform: none;
}

.eff-field {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.eff-field + .eff-field {
	margin-top: 2.3rem;
}

.eff-field label {
	display: block;
	margin: 0;
	color: var(--eff-copy);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: .22em;
	line-height: 1.2;
	text-transform: uppercase;
}

.eff-field > label + input,
.eff-field > label + select,
.eff-field > label + textarea {
	margin-top: .7rem !important;
}

.eff-field label span {
	margin-left: .2rem;
	color: var(--eff-blue);
}

.eff-field input,
.eff-field select,
.eff-field textarea {
	display: block;
	width: 100%;
	min-height: 4.8rem;
	padding: 1rem 1.5rem;
	border: 1px solid var(--eff-border);
	border-radius: 999px;
	background: var(--eff-cloud);
	color: var(--eff-navy);
	font-size: 1.55rem;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin: 0;
}

.eff-field > input,
.eff-field > select,
.eff-field > textarea {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.eff-field select {
	padding-right: 4.2rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--eff-blue) 50%),
		linear-gradient(135deg, var(--eff-blue) 50%, transparent 50%);
	background-position:
		calc(100% - 1.9rem) calc(50% - .2rem),
		calc(100% - 1.35rem) calc(50% - .2rem);
	background-size: .55rem .55rem, .55rem .55rem;
	background-repeat: no-repeat;
}

.eff-panel--accent .eff-field input {
	background: var(--eff-white);
	border-color: var(--eff-white);
}

.eff-panel--accent .eff-field select,
.eff-panel--accent .eff-field textarea {
	background: rgba(255, 255, 255, 0.72);
}

.eff-field textarea {
	min-height: 12rem;
	border-radius: 1.8rem;
	resize: vertical;
}

.eff-field input::placeholder,
.eff-field textarea::placeholder {
	color: rgba(83, 91, 127, 0.72);
}

.eff-field input:focus,
.eff-field select:focus,
.eff-field textarea:focus {
	outline: 2px solid rgba(59, 98, 255, 0.18);
	outline-offset: 0;
}

.eff-field.has-error input,
.eff-field.has-error select,
.eff-field.has-error textarea {
	border-color: #dc2626;
	background: #fff5f5;
}


.eff-field__error {
	display: block;
	min-height: 0;
	margin: .35rem 0 0;
	color: #dc2626;
	font-size: 1.25rem;
	line-height: 1.4;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .2s ease, opacity .2s ease, margin-top .2s ease;
}

.eff-field__error:not(:empty) {
	max-height: 5rem;
	opacity: 1;
	margin-top: .55rem;
}

.eff-form__actions {
	margin-top: 1.8rem;
}

.eff-submit,
.eff-success__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .8rem;
	width: 100%;
	height: 4.8rem;
	min-height: 4.8rem;
	padding: 0 1.8rem;
	border: 1px solid var(--eff-blue);
	border-radius: 999px;
	background: var(--eff-blue);
	color: var(--eff-white);
	font: inherit;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .3s ease, border-color .3s ease;
	margin: 0;
	white-space: nowrap;
}

.eff-panel--accent .eff-form__actions {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .8rem;
}

.eff-panel--accent .eff-submit {
	width: 100%;
	min-width: 0;
	height: 4.8rem;
	min-height: 4.8rem;
	padding: 0 1.8rem;
	margin-left: auto;
}

.eff-submit__label {
	display: inline-block;
	line-height: 1;
}

.eff-submit__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2rem;
	flex: 0 0 1.2rem;
	font-size: 1.4rem;
	line-height: 1;
	transform: translateY(-1px);
}

.eff-submit:hover,
.eff-submit:focus-visible,
.eff-success__button:hover,
.eff-success__button:focus-visible {
	background: var(--eff-blue-hover);
	border-color: var(--eff-blue-hover);
}

.eff-submit[disabled] {
	opacity: .7;
	cursor: wait;
}

.eff-form__message {
	width: 100%;
	min-height: 0;
	margin: 0;
	color: var(--eff-copy);
	font-size: 1.4rem;
	line-height: 1.45;
	text-align: right;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .2s ease, opacity .2s ease;
}

.eff-form__message:not(:empty) {
	max-height: 6rem;
	opacity: 1;
}

.eff-success {
	padding: 5.6rem 3.2rem;
	border-radius: 3rem;
	background: var(--eff-white);
	text-align: center;
	box-shadow: 0 20px 60px -36px rgba(5, 0, 56, 0.55);
}

.eff-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 6.4rem;
	height: 6.4rem;
	margin-bottom: 2rem;
	border-radius: 50%;
	background: rgba(59, 98, 255, 0.12);
	color: var(--eff-blue);
	font-size: 3rem;
}

.eff-success__title {
	margin: 0;
	color: var(--eff-navy);
	font-size: clamp(3rem, 2vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.eff-success__text {
	max-width: 52rem;
	margin: 1.6rem auto 0;
	color: var(--eff-copy);
	font-size: 1.8rem;
	line-height: 1.7;
}

.eff-success__button {
	max-width: 24rem;
	margin-top: 2.4rem;
}

body.eff-modal-open {
	overflow: hidden;
}

@media (max-width: 1023px) {
	.eff-shell {
		width: min(100%, 76rem);
		max-height: calc(100vh - 3rem);
		padding: 1.2rem;
	}

	.eff-shell__header {
		padding: 1.6rem 4.8rem 1.8rem;
	}

	.eff-shell__title {
		font-size: 3rem;
	}

	.eff-shell__subtitle {
		font-size: 1.6rem;
	}

	.eff-grid {
		grid-template-columns: 1fr;
		border-radius: 2rem 0 2rem 2rem;
	}

	.eff-panel--accent {
		border-left: 0;
		border-top: 1px solid rgba(59, 98, 255, 0.08);
	}
}

@media (max-width: 1199px) {
	.eff-dialog {
		padding: 0;
		align-items: stretch;
	}

	.eff-shell {
		width: 100%;
		max-height: 100dvh;
		height: 100dvh;
		min-height: 100dvh;
		padding: 0;
		border-radius: 0;
	}

	.eff-grid {
		border-radius: 0;
		box-shadow: none;
	}

	.eff-dialog__close {
		top: 1.2rem;
		right: 1.2rem;
	}
}

@media (max-width: 767px) {
	.eff-dialog {
		padding: 0;
		align-items: stretch;
	}

	.eff-shell {
		width: 100%;
		max-height: 100dvh;
		height: 100dvh;
		min-height: 100dvh;
		padding: 0;
		border-radius: 0;
	}

	.eff-dialog__close {
		top: 1rem;
		right: 1rem;
		width: 3.6rem;
		height: 3.6rem;
		font-size: 2.4rem;
	}

	.eff-shell__header {
		padding: 3.4rem 4.6rem 1.6rem 2rem;
	}

	.eff-shell__subtitle {
		font-size: 1.5rem;
		line-height: 1.55;
	}

	.eff-grid {
		border-radius: 0;
		box-shadow: none;
	}

	.eff-panel {
		padding: 2.4rem 2.2rem;
	}

	.eff-field + .eff-field {
		margin-top: 2rem;
	}

	.eff-field input,
	.eff-field select,
	.eff-field textarea,
	.eff-submit {
		font-size: 1.5rem;
	}


	.eff-panel--accent .eff-submit {
		width: 100%;
		min-width: 0;
		padding-inline: 1.8rem;
	}

	.eff-panel--accent .eff-form__actions {
		align-items: stretch;
		padding-bottom: calc(1.8rem + env(safe-area-inset-bottom, 0px));
	}

	.eff-form__message {
		text-align: left;
	}

	.eff-success {
		min-height: 100vh;
		padding: 8rem 2rem 4rem;
		border-radius: 0;
	}

	.eff-success__text {
		font-size: 1.6rem;
	}
}
