.atech-gf-modal {
	border: none;
	border-radius: 20px;
	padding: 0;
	max-width: min( 700px, calc( 100vw - 2rem ) );
	width: 100%;
	max-height: calc( 100vh - 2rem );
	overflow: visible;
	background: transparent;
}

.atech-gf-modal::backdrop {
	background: rgba( 0, 0, 0, 0.55 );
}

.atech-gf-modal__inner {
	position: relative;
	background: var(--wp--preset--color--accent-2, #fff);
	border-radius: 20px;
	padding: clamp( 1.5rem, 3vw, 2.5rem );
	max-height: calc( 100vh - 2rem );
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.2 );
}

.atech-gf-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	background: var( --wp--preset--color--accent-2, #f8f8f8 );
	color: var( --wp--preset--color--contrast, #1e1e1e );
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.atech-gf-modal__close:hover,
.atech-gf-modal__close:focus-visible {
	background: var( --wp--preset--color--accent-1, #fee500 );
	outline: none;
}

.atech-gf-modal__content {
	min-height: 120px;
}

.atech-gf-modal__content.is-loading {
	display: flex;
	align-items: center;
	justify-content: center;
}

.atech-gf-modal__loading,
.atech-gf-modal__error {
	margin: 2rem 0;
	text-align: center;
	color: var( --wp--preset--color--contrast, #1e1e1e );
}

.atech-gf-modal__error {
	color: #b00020;
}

.atech-gf-modal .gform_wrapper {
	margin: 0;
}
