.nm-sub-dialog {
	position: fixed;
	top: 0;	 left: 0;
	width: 100%; height: 100%;
	z-index: 1234;
	display: none;
}
.nm-sub-dialog-overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	z-index: 1;
	background: rgb(15, 31, 18);
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	-webkit-backface-visibility: hidden;
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
}
.nm-sub-dialog-wrapper {
	width: 458px;/*100%*/
	max-width: 458px;
	min-width: 380px;
	min-height: 500px;
	margin: 0 auto;
	position: absolute;
	z-index: 2;
	/*left: 50%;
	margin-left: -229px;
	bottom: 50px;*/

    top: 25%;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;

}
.nm-sub-dialog .content {
 	background: #fff;
 	width: 100%;
 	max-width: 450px;
 	min-height: 310px;
 	margin: 0 auto;
	text-align: center;
 	border-style: solid;
 	border-color: #89c439;
	z-index: 0;
 	position: relative;
}
.nm-sub-dialog .close-button {
	float: right;
	margin: 8px 8px 0 0;
	z-index: 2;
	position: absolute;
 	right: 0px;
    cursor: pointer;
}
.nm-sub-dialog .masthead {
	width: 100%;
	margin: 0 auto;
	text-align: center;
	max-height: 152px;
}
.nm-sub-dialog .masthead img {
	position: relative;
    z-index: 9999;
}
.nm-sub-dialog .header {
	width: 100%;
	line-height: 31px;
	font-size: 32px;
	color: #000;
	margin: 0 auto;
	padding-top: 30px;
	padding-bottom: 14px;
	text-align: center;
	max-width: 280px;
}
.nm-sub-dialog .copy {
	width: 100%;
	max-width: 274px;
	text-align: center;
	margin: 0 auto;
	padding-bottom: 4px;
	line-height: 22px;
}
.nm-sub-dialog .form-area {
	margin:0 auto;
	padding-bottom: 24px;
}
.nm-sub-dialog #nm-sub-dialog-email {
	width: 100%;
	max-width: 230px;
	background-color: #e2e9d9;
	border-radius: 4px 0 0 4px;
	height: 36px;
	padding-left: 10px;
	border: 0px;
}
.nm-sub-dialog #nm-sub-dialog-button {
	width: 100%;
	max-width: 42px;
	display:inline-block;
	background-color: #88cc35;
	border-radius: 0 4px 4px 0;
	height: 38px;
	border: 0;
	padding: 0;
	margin: 0;
	vertical-align: top;
	margin-left: -4px;
}
#nm-sub-dialog-button-sm{
    width: 100%;
    background-color: #88cc35;
	border-radius: 4px;
	height: 36px;
	border: 0;
	padding: 0;
	margin: 0;
    max-width: 230px;
    margin-top: 10px;
}

.nm-sub-dialog #nm-sub-dialog-button img {
	vertical-align:middle;
	padding: 10px 7px;
}
.nm-sub-dialog #nm-sub-dialog-msg {
	color: #CC252D;
	min-height: 20px;
	line-height: 20px;
}
.nm-sub-dialog .pdpa {
	width: 100%;
	max-width: 305px;
	text-align: center;
	margin: 0 auto;
	font-size: 12px;
	line-height: 19px;
}

#nm-sub-dialog-content.loading:before {
	content: '';
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.9) url(/img/loadingAnimation.gif) no-repeat 50% 50%;
	z-index: 1;
}
#nm-sub-dialog-content.success .form-area {
	display: none;
}
#nm-sub-dialog-content.success .copy {
	min-height: 124px;
}

.nm-sub-dialog.dialog--open { display: block; }
.nm-sub-dialog.dialog--close { display: block; }
.nm-sub-dialog.dialog--open .nm-sub-dialog-wrapper,
.nm-sub-dialog.dialog--close .nm-sub-dialog-wrapper {
	-webkit-animation-duration: 0.3s;
	animation-duration: 0.3s;
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
}

.nm-sub-dialog.dialog--open .nm-sub-dialog-overlay {
	opacity: 0.9;
	-webkit-animation-duration: 0.3s;
	animation-duration: 0.3s;
	-webkit-animation-name: anim-overlay;
	animation-name: anim-overlay;
}

.nm-sub-dialog.dialog--open .nm-sub-dialog-wrapper {
	-webkit-animation-name: anim-open;
	animation-name: anim-open;
}

.nm-sub-dialog.dialog--close .nm-sub-dialog-wrapper {
	-webkit-animation-name: anim-close;
	animation-name: anim-close;
}

.nm-sub-dialog.dialog--open .header,
.nm-sub-dialog.dialog--open .form-area {
	-webkit-animation: anim-elem 0.3s both;
	animation: anim-elem 0.3s both;
}

.nm-sub-dialog.dialog--open .header {
	-webkit-animation-delay: 0.05s;
	animation-delay: 0.05s;
}

.nm-sub-dialog.dialog--open .form-area {
	-webkit-animation-delay: 0.1s;
	animation-delay: 0.1s;
}

@-webkit-keyframes anim-open {
	0% { opacity: 0; -webkit-transform: translate3d(0, 50px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
}

@keyframes anim-open {
	0% { opacity: 0; -webkit-transform: translate3d(0, 50px, 0); transform: translate3d(0, 50px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

@-webkit-keyframes anim-close {
	0% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
	100% { opacity: 0; -webkit-transform: translate3d(0, 50px, 0); }
}

@keyframes anim-close {
	0% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
	100% { opacity: 0; -webkit-transform: translate3d(0, 50px, 0); transform: translate3d(0, 50px, 0); }
}

/* Inner elements animations */
@-webkit-keyframes anim-elem {
	0% { opacity: 0; -webkit-transform: translate3d(0, 25px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
}

@keyframes anim-elem {
	0% { opacity: 0; -webkit-transform: translate3d(0, 25px, 0); transform: translate3d(0, 25px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

/* overlay */
@-webkit-keyframes anim-overlay {
	0% { opacity: 0 }
	100% { opacity: 0.9 }
}

@keyframes anim-overlay {
	0% { opacity: 0 }
	100% { opacity: 0.9 }
}


@media (max-width: 1060px) {

    .nm-sub-dialog #nm-sub-dialog-email {
        border-radius: 4px;
    }

    .nm-sub-dialog-wrapper{
       width: 100%;
	   max-width: 458px;
	   min-width: 300px;
    }

    .nm-sub-dialog-wrapper {
        top: 10%;
    }

}
