.ysm_input_wrapper {
	display: flex;
	flex-direction: column-reverse;
}

.ydm_row {
	margin-left: -20px;
	margin-top: -20px;
	display: flex;
	flex-wrap: wrap;
	width: 90%;
    margin: auto;
    margin-bottom: 30px;
}

.ysm_col {
	width: calc(50% - 20px);
	margin-top: 20px;
	margin-left: 20px;
	display: inline-block;
}

form.ysm_container {
	background-color: #f8f7f7;
	padding: 50px;
}

form.ysm_container .ysm_header {
	font-family: 'Comfortaa', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    border-bottom: 2px solid #e00535;
    padding: 0px 0 10px;
    margin-bottom: 20px;
	font-weight: 600;
}

.ysm_label {
	color: #9a9a9a;
    font-size: 12px;
    font-weight: 600;
}

#top .ysm_container .ysm_col .ysm_input_wrapper select.ysm_input, 
#top .ysm_container .ysm_col .ysm_input_wrapper input.ysm_input {
	background-color: white !important;
    padding: 12px 30px 12px 20px;
	border-radius: 3px;
}

#top .ysm_container .ysm_col .ysm_input_wrapper select.ysm_input {
	background-image: url(triangle.svg);
    background-size: 12px;
    background-position: calc(100% - 13px);
}

.ysm_input_wrapper > :focus {
	box-shadow: 0 0 5px rgba(0,0,0,.2);
}

.ysm_submit_container {
	text-align: center;
}

#ysmSubmitBtn {
	cursor: pointer;
	background-color: #e00535;
    border: none;
    color: white;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 3px;
	transition: all .2s linear;
	position: relative;
}

#ysmSubmitBtn::after {
	position: absolute;
	top: calc(50% + 1px);
	right: 25px;
	display: inline-block;
	content: '';
	margin-left: 10px;
	height: 10px;
	width: 10px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	border: 2px solid white;
	border-left: 2px solid transparent;
	animation: 1s linear 0s rotate infinite;
	opacity: 0;
}

#ysmSubmitBtn[disabled]::after {
	transition: all .2s linear .2s;
	opacity: 1;
}

#ysmSubmitBtn[disabled] {
	cursor: not-allowed;
	padding: 15px 50px 15px 10px;
}

@keyframes rotate {
	0% {
		transform: translateY(-50%) rotate(0deg);
	}
	100% {
		transform: translateY(-50%) rotate(360deg);
	}
}

#ysmThankyou {
	margin-bottom: 20px;
}

#ysmThankyou::after {
	content: '';
	display: inline-block;
	height: .5em;
	width: .7em;
	border-bottom: 2px solid green;
	border-left: 2px solid green;
	transform: rotate(-45deg);
	margin-left: .6em;
	margin-bottom: 0.2em;
}

@media screen and (max-width: 992px) {
	.ydm_row {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.ysm_col {
		width: 100%;
    	margin-left: 0px;
	}
	
	form.ysm_container {
		padding: 50px 30px;
	}
}