/* Morph Button: Default Styles */

.morph-button {
	position: relative;
	display: block;
	margin: 0 auto;
}

.morph-button > button {
	position: relative;
	padding: 0;
	border: none;
	background: none;	
	/*color: #f9f6e5;*/
        color: #fff;
	font-weight: 700;
	line-height: 15px;
	font-size: 15px;
	overflow: hidden;
}

.morph-button.open > button {
	/*pointer-events: none;*/
}

.morph-content {
	pointer-events: none;
}

.morph-button.open .morph-content {
	pointer-events: auto;
}

/* Common styles for overlay and modal type (fixed morph) */
.morph-button-fixed,
.morph-button-fixed .morph-content {
	width: 128px;
	height: 25px;
}

.morph-button-fixed > button {
	z-index: 1000;
	width: 100%;
	height: 100%;

	/*???*/
	/*-webkit-transition: opacity 0.1s 0.5s;
	transition: opacity 0.1s 0.5s;*/

	-webkit-transition: opacity 0s 0s;
	transition: opacity 0s 0s;
}

.morph-button-fixed.open > button {
	opacity: 1;

	/*Tempo para o botão de trás do overlay ficar opaquo*/
	-webkit-transition: opacity 0s;
	transition: opacity 0s;
}

.morph-button-fixed .morph-content {
	position: fixed;
	z-index: 900;
	opacity: 0;

	/*???*/
	-webkit-transition: opacity 0.3s 0.5s, width 0.4s 0.1s, height 0.4s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s, margin 0.4s 0.1s;
	transition: opacity 0.3s 0.5s, width 0.2s 0.1s, height 0.2s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s, margin 0.4s 0.1s;
}

.morph-button-fixed.open .morph-content {
	opacity: 1;
}

.morph-button-fixed .morph-content > div {
	visibility: hidden;
	height: 0;
	opacity: 0;

	/*???*/
	-webkit-transition: opacity 0.1s, visibility 0s 0.1s, height 0s 0.1s;
	transition: opacity 0.1s, visibility 0s 0.1s, height 0s 0.1s;
}

.morph-button-fixed.open .morph-content > div {
	visibility: visible;
	height: auto;
	opacity: 1;

	/*???*/
	-webkit-transition: opacity 0.3s 0.5s;
	transition: opacity 0.3s 0.5s;
}

.morph-button-fixed.active > button {
	z-index: 2000;
}

.morph-button-fixed.active .morph-content {
	z-index: 1900;
}

/* Transitions for overlay button and sidebar button */
.morph-button-overlay .morph-content,
.morph-button-sidebar .morph-content {

	/*???*/
	-webkit-transition: opacity 0.3s 0.5s, width 0.4s 0.1s, height 0.4s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s;
	transition: opacity 0.3s 0.5s, width 0.2s 0.1s, height 0.2s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s;
}

.morph-button-overlay.open .morph-content,
.morph-button-sidebar.open .morph-content {

	/*???*/
	-webkit-transition: width 0.4s 0.1s, height 0.4s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s;
	transition: width 0.2s 0.1s, height 0.2s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s;	
}

/* Morph Button Style: Overlay */
.morph-button.morph-button-overlay {
	margin: 50px auto;
}

.morph-button-overlay .morph-content {
	overflow: hidden;
	background: #e85657;
}

.morph-button-overlay.open .morph-content {
	top: 0 !important;
	left: 0 !important;
	width: 100%;
	height: 100%;
}

/* Morph Button Style: Modal */
.morph-button-modal:before {
	position: fixed;
	top: 0;
	left: 0;	
	background: rgba(0,0,0,0.5);
	content: '';
	opacity: 0;
	/*Velocidade que aparece o overlay*/
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
	pointer-events: none;
	z-index: 9999 !important;
}

.morph-button-modal.open:before {
	width: 100%;
	height: 100%;
	opacity: 1;
	pointer-events: auto;
}

.morph-button-modal.active:before {
	z-index: 1800;
}

.morph-button-modal .morph-content {
	overflow: hidden;

	/*???*/
	-webkit-transition: opacity 0.3s 0.5s, width 0.4s 0.1s, height 0.4s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s, margin 0.4s 0.1s;
	transition: opacity 0.3s 0.5s, width 0.2s 0.1s, height 0.2s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s, margin 0.4s 0.1s;
}

.morph-button-modal.open .morph-content {
	top: 30% !important;
	left: 50% !important;
	margin: -210px 0 0 -300px;
	width: 600px;
	height: 420px;
	/*Tempo de expandir o modal do estado pequeno para o grande - Animação Principal*/
	-webkit-transition: opacity 0.15s 0.1s, width 0.2s 0.1s, height 0.2s 0.1s, top 0.2s 0.1s, left 0.2s 0.1s, margin 0.2s 0.1s;
	transition: opacity 0.15s 0.1s, width 0.2s 0.1s, height 0.2s 0.1s, top 0.2s 0.1s, left 0.2s 0.1s, margin 0.2s 0.1s;

}

/* Colors and sizes for individual modals */

.morph-button.morph-button-modal{
	display: block;
	margin: 13px 0;
	float: right;
	margin-right: 36px;
}

.morph-button.morph-button-modal.morph-modal-minhauno{
	margin-right: 30px;
}

.morph-button-modal > button{
	text-align: right;
	cursor: pointer;
}

.morph-button-modal > button,
.morph-button-modal .morph-content{	
	font-weight: bold;	
}

.morph-button-modal.open .morph-content {
	margin: -90px 0 0 -135px;
	width: 340px;
	height: 380px;
	z-index: 9999999999;
	background-color: #fff;
	border-radius: 5px;
}

.morph-button-modal.open .morph-content > div{
	/*Velocidade que o conteúdo de dentro dos modais aparece*/
 	-webkit-transition: opacity 0.2s 0.2s;
	transition: opacity 0.2s 0.2s;
}

/* Morph Button Style: Sidebar */
.morph-button-sidebar,
.morph-button-sidebar .morph-content {
	width: 60px;
	height: 60px;
}

.morph-button-sidebar {
	position: fixed;
	bottom: 50px;
	left: 50px;
}

.morph-button-sidebar > button {
	line-height: 60px;
	font-size: 1.6em;
	padding: 0;
}

.morph-button-sidebar .morph-content {
	background: #e85657;
}

.morph-button-sidebar.open .morph-content {
	top: 0 !important;
	left: 0 !important;
	width: 300px;
	height: 100%;
	overflow: hidden;
	-webkit-backface-visibility: hidden;
}

/* Let's add some nice easing for all cases */
.morph-button .morph-content,
.morph-button.open .morph-content{

	/*???*/
	-webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
	transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

/* Helper classes */
.noscroll {
	overflow: hidden;
}

.morph-button-overlay.scroll .morph-content {
	overflow-y: scroll;
}

.morph-button-sidebar.scroll .morph-content {
	overflow: auto;
}

/* No JS fallback: let's hide the button and show the content */
.no-js .morph-button > button {
	display: none;
}

.no-js .morph-button {
	margin: 10px 0;
	float: none;
}

.no-js .morph-button,
.no-js .morph-button .morph-content,
.no-js .morph-button .morph-content > div {
	position: relative;
	width: auto;
	height: auto;
	opacity: 1;
	visibility: visible;
	top: auto;
	left: auto;
	-webkit-transform: none;
	transform: none;
	pointer-events: auto;
}

.morph-button .morph-content .morph-close {
	display: block;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-position: center center;
	float: right;
	clear: both;
	cursor: pointer;
        margin-top: 10px;
        margin-right: 10px;
}

	.morph-button .morph-content form {
		clear: both;
		padding: 0 20px;
		margin: auto;
	}

	input:-webkit-autofill{
		background-color: #e1e1e1 !important;
	}


	.morph-button .morph-content h2{
		font-size: 24px;
		color: #505050;
		padding: 48px 0 22px 0;
                margin-left: 40px;
		font-weight: 700;
		text-align: left;
	}

	.morph-button .morph-content form input{
		clear: both;
		width: 90%;
		background-color: #e1e1e1 !important;
		border: none;
		padding: 6% 5%;
		font-size: 14px;
                border: 1px solid #e1e1e1;
	}
        
        .morph-button .morph-content form input.error{
                border: 1px solid rgb(255, 142, 142);
        }

		.morph-button .morph-content form input[type="text"]{
			border-top-left-radius: 10px;
			border-top-right-radius: 10px;
			margin-bottom: 15px;
			border-radius: 5px;
		}

		.morph-button .morph-content form input[type="password"]{
			border-bottom-left-radius: 10px;
			border-bottom-right-radius: 10px;
			border-radius: 5px;
		}

		.morph-button .morph-content form input[type="submit"]{
			width: 100%;
			height: 60px;
			color: #fff;
			margin-top: 25px;
			cursor: pointer;
			border-bottom-left-radius: 5px;
			border-bottom-right-radius: 5px;

			background-color: #2dc6d6 !important;
			transition: background-color 0.3s ease;
			
                        transition: all 0.3s ease;
                        border: 0;
			border-radius: 5px;
		}

			.morph-button .morph-content form input[type="submit"]:hover{
				background-color: #003b4c !important;
			}

	.morph-button .morph-content form a{
		float: left;
		font-weight: 600;
		font-size: 13px;
		text-decoration: none;
		margin-top: 25px;
		margin-left: 15px;
		color: #666;
	}

.no-js .morph-button .morph-content .morph-close {
	display: none;
}

.no-js .morph-button-sidebar {
	width: 300px;
	position: fixed;
	top: 0;
	left: 0;
	margin: 0;
	height: 100%;
	background: #e85657;
	overflow: auto;
}

.no-transition {
	-webkit-transition: none !important;
	transition: none !important;
}

@media screen and ( max-height: 480px ){
    .footer-principal .footer-wrapper section.instituicao-rodape .morph-modal-sugestao-site .morph-content,
    .morph-button-modal.open .morph-content {
        height: 100% !important;
        overflow-y: auto !important;
    }
}