.wpzoom-forms-modal {
	display: none;
	position: fixed;
	justify-content: center;
	align-items: center;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
}
.wpzoom-forms-modal-content {
	background-color: #fff;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid #888;
	width:auto;
	max-width: 850px;
}
.wpzoom-forms-templates-list {
	display: grid;
	flex-wrap: wrap;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20px;
}
.wpzoom-forms-templates-list li {
	border: 1px solid #ddd;
	border-radius: 10px;
	outline: none;
	position: relative;
}
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro):hover,
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro):focus,
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro).active {
	border-color: #3496FF;
}
.wpzoom-forms-templates-list li a {
	display: block;
	padding: 15px 20px;
	outline: none !important;
	box-shadow: none;
	text-decoration: none;
	color:#242628;
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
}
.wpzoom-forms-template-list-item.wpzoom-forms-template-list-item-pro a {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro) a:hover,
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro).active a {
	color: #3496FF;
}
.wpzoom-forms-templates-list li svg:not(.wpzoom-contact-form-icon) {
	fill: black;
}
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro):hover svg:not(.wpzoom-contact-form-icon),
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro).active svg:not(.wpzoom-contact-form-icon) {
	fill: #3496FF;
}
.wpzoom-forms-templates-list li svg.wpzoom-contact-form-icon {
	stroke: black;
}
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro):hover svg.wpzoom-contact-form-icon,
.wpzoom-forms-templates-list li:not(.wpzoom-forms-template-list-item-pro).active svg.wpzoom-contact-form-icon {
	stroke: #3496FF !important;
}

.wpzoom-forms-templates-list li a span,
.wpzoom-forms-templates-list li a:hover span {
	display:block;
	font-size: 14px;
	line-height: 22px;
	color:#242628;
	font-weight: 400;
	opacity: 0.8;
}
.wpzoom-forms-templates-list li .pro-only {
	position: absolute;
	top: 0;
	right: 10px;
	line-height: 1.5;
	color: #fff;
	background: #f57c00;
	padding: 0 4px;
	border-radius: 2px;
	transform: translate(50%, -50%);
}

.wpzoom-forms-modal-header {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #ddd;
	padding-bottom: 20px;
	margin-bottom: 30px;
}
.wpzoom-forms-modal-header h2 {
	display: flex;
	font-size: 20px;
	line-height: 26px;
	margin: 0;
}
.wpzoom-forms-modal-header h2 span {
	margin-right: 15px;
}
.wpzoom-forms-templates-list li a .wpzoom-forms-icon-holder {
	display: flex;
	padding-right: 10px;
	position: relative;
	top:6px;
}
.wpzoom-forms-template-list-wrapper {
	display: flex;
}

.wpzoom-forms-modal-footer {
	display: flex;
	justify-content: flex-end;
	border-top: 1px solid #ddd;
	padding-top: 20px;
	margin-top:30px;
}
.wpzoom-forms-modal-footer .button-primary {
	background: #3496ff !important;
	border: none !important;
	padding: 0 20px;
}
#wpzoom_close_modal {
	background: none;
	margin-right: 15px;
	color: #3496ff;
	border-color: #3496ff;
}

.wpzoom-forms-modal-close {
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

div.wpzoom-forms_form {
	background: rgba(0,0,0,0.06);
    border-radius: 5px;
    padding: 40px 20px;
}

/* When screen height is less than modal height, add top margin */
@media screen and (max-height: 900px) {
	.wpzoom-forms-modal {
	  align-items: flex-start;
	  padding-top: 45px;
	}
	.wpzoom-forms-modal-content {
		margin-bottom: 80px;
	}
}

@media screen and (max-width: 782px) { 
	.wpzoom-forms-templates-list {
		grid-template-columns: 1fr;
	}
	.wpzoom-forms-modal {
		align-items: flex-start;
		padding-top: 45px;
	}
	.wpzoom-forms-modal-content {
		margin-bottom: 80px;
	}
}
@media screen and (max-width: 375px) { 
	.wpzoom-forms-modal {
		align-items: flex-start;
		padding-top: 60px;
	}
	.wpzoom-forms-modal-content {
		margin-bottom: 100px;
	}
}