.popup-wrap {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 13000;
	display: none;
}

.popup-wrap.active {
	display: block;
}

.popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.3);
	z-index: 1;
	opacity: 0;
}

.popup-wrap.active .popup-overlay {
	-webkit-animation: reveal-popup-overlay .5s forwards;
	animation: reveal-popup-overlay .5s forwards;
}

@-webkit-keyframes reveal-popup-overlay {
    0%   { 
        opacity: 0; 
    }
    100%   {
        opacity: 1; 
    }
}

@keyframes reveal-popup-overlay {
    0%   { 
        opacity: 0; 
    }
    100%   {
		opacity: 1; 
    }
}

.popup-container {
	position: absolute;
	top: 200%;
	left: 50%;
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	padding: 40px;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	background-color: #fff;
	width: 500px;
	z-index: 10;
	opacity: 0;
	transition: .5s;
	-o-transition: .5s;
	-ms-transition: .5s;
	-moz-transition: .5s;
	-webkit-transition: .5s;
}

.popup-wrap.active .popup-container {
    -webkit-animation: reveal-popup .5s ease-out .5s forwards;
	animation: reveal-popup .5s ease-out .5s forwards;
}

@-webkit-keyframes reveal-popup {
    0%   { 
        top: 200%; 
        -webkit-transform: translateX(-50%) translateY(-200%);
        -ms-transform: translateX(-50%) translateY(-200%);
        transform: translateX(-50%) translateY(-200%); 
        opacity: 0; 
    }
    100%   {
        top: 50%; 
        -webkit-transform: translateX(-50%) translateY(-50%);
        -ms-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        opacity: 1; 
    }
}

@keyframes reveal-popup {
    0%   { 
        top: 200%; 
        -webkit-transform: translateX(-50%) translateY(-200%);
        -ms-transform: translateX(-50%) translateY(-200%);
        transform: translateX(-50%) translateY(-200%); 
        opacity: 0; 
    }
    100%   {
        top: 50%; 
        -webkit-transform: translateX(-50%) translateY(-50%);
        -ms-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
		opacity: 1; 
    }
}

.popup-container .popup-close {
    display: block;
    height: 40px;
    width: 40px;
    background-image: url(../img/png/close.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    background-size: 80%;
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 20;
}


/*--------- Enquiry Popup --------------*/

.enq-form-field {
    margin-bottom: 15px;
}

.enq-form-contact-wrap {
	padding: 50px;
	width: 30%;
}

.form-text {
    margin-bottom: 20px;
}

.form-text h4 {
    color: #444;
    font-family: "open sans";
    line-height: 32px;
    font-weight: bolder;
    font-size: 20px;
}

.form-text p {
    color: #888;
    font-family: "open sans";
    line-height: 22px;
    font-size: 14px;
}

.enq-form .enq-form-main-fields label {
    font-weight: bolder;
    font-style: inherit;
    font-family: arial;
    font-size: 14px;
    line-height: 15px;
    color: #000;
    margin-bottom: 5px;
    display: block;
}

.enq-form .enq-form-main-fields input,
.enq-form .enq-form-main-fields textarea {
    border-style: solid;
    border-width: 1px;
    border-color: #bbbbbb;
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    box-shadow: inset 0px 2px 3px #dddddd;
    -webkit-box-shadow: inset 0px 2px 3px #dddddd;
    height: 34px;
    font-size: 15px;
    line-height: 15px;
    padding-left: 8px;
    padding-right: 8px;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-style: inherit;
    font-weight: inherit;
}

.enq-form .enq-form-main-fields textarea {
    height: 90px;
    line-height: 18px;
    padding-top: 8px;
    padding-bottom: 9px;
    resize: none;
}

.checkbox-field label {
    font-size: 12px;
}

.checkbox-field {
    margin-bottom: 20px;
}

#PolicyCheckbox {
    display: inline-block;
    height: 15px;
    width: 15px;
    margin: 0 10px 10px 0;
}

.enq-form #submit-btn {
    display: block;
    border-style: none;
    border-radius: 100px;
    z-index: 2;
    background: rgba(144, 0, 240, 1);
    box-shadow: none;
    text-shadow: none;
    color: #fff;
    font-size: 16px;
    line-height: 19px;
    font-weight: 400;
    font-family: Open Sans;
    font-style: normal;
    text-align: center;
    background-repeat: no-repeat;
    font-weight: bolder;
    padding: 20px 35px;
    cursor: pointer;
}

.thank-you-wrap {
    text-align: center;
}

.thank-you-wrap img {
    display: block;
    margin: 0 auto;
    width: 100px;
    height: auto;
}


/*========== RESPONSIVENESS ==================*/

@media screen and (max-width: 768px) {
	
	.popup-container {
		width: 100%;
		height: 100%;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		padding: 50px 25px;
	}
	
	.enq-form-wrap {
		width: 100%;
		padding: 0;
	}
    
    .popup-container .popup-close {
        top: 10px;
        right: 10px;
    }
	
}



@media screen and (max-width: 480px) {
	
	.popup-container {
		padding: 50px 15px;
	}
	
	.popup-content {
		max-height: 100vh;
		overflow-y: scroll;
	}
	
	.enq-form-field {
		width: 100%;
		margin-right: 0;
	}
	
}