.amm-cta-form-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.amm-cta-form-modal[hidden] {
	display: none !important;
}

body.amm-cta-form-modal-open {
	overflow: hidden;
}

.amm-cta-form-modal__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: none;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.amm-cta-form-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(800px, 100%);
	max-height: min(90vh, 800px);
	overflow: hidden;
	background: var(--amm-palette-primary-3, #ffffff);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.amm-cta-form-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px 16px;
	border-bottom: 1px solid #f3f4f6;
}

.amm-cta-form-modal__intro {
	flex: 1;
	min-width: 0;
}

.amm-cta-form-modal__title {
	margin: 0;
	font-family: var(--amm-heading-font, inherit);
	font-size: 20px;
	line-height: 1.25;
	color: var(--amm-palette-primary-2, #1e1e1e);
}

.amm-cta-form-modal__close {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--amm-palette-primary-2, #1e1e1e);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.amm-cta-form-modal__form-wrap {
	overflow: auto;
	padding: 16px 24px 20px;
}

.amm-cta-form-source[hidden] {
	display: none !important;
}

.amm-cta-form-modal__form-wrap .amm-dynamic-form,
.amm-cta-form-modal__form-wrap .wp-block-amm-dynamic-form {
	--amm-df-padding: 0;
	--amm-df-padding-tablet: 0;
	--amm-df-padding-mobile: 0;
	--amm-df-shadow: none;
	width: 100%;
	max-width: 100%;
}
