.form-container {
	background-color: var(--form-container-background-color);
	-moz-border-radius: var(--form-container-radius);
    -webkit-border-radius: var(--form-container-radius);
    border-radius: var(--form-container-radius);
    -khtml-border-radius: var(--form-container-radius);
    padding: 60px 40px;
    text-align: center;
}
.form-container p {
	color: var(--form-description-color);
}
.form-container h3, .form-container .h3 {
	color: var(--form-title-color);
	margin-bottom: 1.5rem;
}
.form-container h3 + p, .form-container .h3 + p {
	margin-bottom: 4rem;
	max-width: 94%;
	margin-left: auto;
    margin-right: auto;
}
.form-container .hs-input {
    display: inline-block;
    width: 100%;
    height: 48px;
}
.form-container form > div {
	text-align: left;
	margin-bottom: 20px;
}
.form-container form > div:last-child {
	margin-bottom: 0;
}
.form-container form > .submit {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 0;
    text-align: center;
}
.form-container form + .small {
	width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
label {
	font-family: var(--font-family-medium);
	font-weight: 500;
	font-size: 1.5rem;
	color: var(--form-description-color);
	margin-bottom: 10px;
}
.white-text label {
	color: #FFFFFF;
}
input[type="text"],
input[type="date"],
input[type="datetime"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="time"],
input[type="url"],
textarea,
select {
	width: 100%;
	height: 48px;
	outline: none;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	line-height: 1.2;
	background-color: #ffffff !important;
	margin: 0;
	border: 1px solid #8B8B8B;
	padding: 14px 16px;
	color: #111;
	font-family: inherit;
	font-size: 1.7rem;
	-webkit-appearance: none;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-tap-highlight-color: transparent;
}
input[type="text"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	background-color: #ffffff !important;
	border: 1px solid #8B8B8B;
	outline-color: transparent;
	outline-style: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}
.form-container input[type="text"]:focus,
.form-container input[type="date"]:focus,
.form-container input[type="datetime"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="number"]:focus,
.form-container input[type="search"]:focus,
.form-container input[type="time"]:focus,
.form-container input[type="url"]:focus,
.form-container textarea:focus,
.form-container select:focus {
	box-shadow: 0 0 10px var(--primary-accent-color-glow);
}
.white-text input,
.white-text textarea,
.white-text select {
	border: none;
}
textarea {
	height: auto;
    max-height: none;
}
select, select:focus  {
	display: block;
	padding: 9px 40px 9px 13px;
	max-width: 100%;
	width: 100%;
	height: auto;
	border: 1px solid #515458;
	background: url("../img/arrow-down-select.svg") calc(100% - 13px) center no-repeat;
	background-color: #fff;
	background-size: 16px 16px;
	-moz-background-size: 16px 16px;
	line-height: 19px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	height: 48px;
	line-height: 24px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	-khtml-border-radius: 3px;
}
select option  {
	padding: 0 4px;
}
select::-ms-expand  {
	display: none;
}
select:disabled::-ms-expand  {
	background: #f60;
}
body.ie select  {
	background: url("../img/arrow-down-select.svg") 96% center no-repeat;
}
form {
	color: var(--form-description-color);
}
form .submit {
	margin-left: auto;
	margin-right: auto;
	margin-top: 40px;
	text-align: center;
}
.form-container input,
.form-container select,
.form-container textarea {
	border: none !important;
}
/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
.required {
	font-family: var(--font-family-regular);
	font-weight: 400;
	color: var(--required-color);
}


#opt-in-form .form-box {
	width: 100%;
	padding: calc(30px + 2%);
}
#opt-in-form .form-box > .flex {
	width: 100%;
    max-width: 100%;
    align-items: flex-start;
    margin: 0;
}
#opt-in-form .form-box > .flex > div {
	width: 47%;
}
#opt-in-form .single-field form {
	display: -webkit-box; 
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex; 
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    align-content: flex-end;
    flex-wrap: nowrap;
    width: 100%;
    color: inherit;
}
#opt-in-form .form-box {

}
#opt-in-form .form-box .single-field form > div {
    margin: 0;
	flex-grow: 1;
}
#opt-in-form .form-box .single-field form > .email {
    max-width: 90%;
    margin-right: 15px;
}
#opt-in-form .form-box .single-field form > .submit {
	max-width: 32%;
    margin-top: 0;
    text-align: left;
}
#opt-in-form .form-box .tiny {
	margin-top: 15px;
}
#opt-in-form .form-box .h4.title.left-align {
	margin-bottom: 1rem;
}
#opt-in-form .form-box .lm-image {
	margin-right: calc(20px + 2%);
}
#opt-in-form .form-box .lm-text {
	flex-grow: 1;
}
#opt-in-form .form-box .lm-image img {
	display: block;
}
#opt-in-form .form-box > .flex > div.left.larger {
    width: 56%;
}
#opt-in-form .form-box > .flex > div.left.larger + .right {
    width: 40%;
}

@media only screen and (max-width: 1000px) {
	#opt-in-form .form-box > .flex {
		flex-wrap: wrap;
	}
	#opt-in-form .form-box > .flex > div,
	#opt-in-form .form-box > .flex > div.left.larger,
	#opt-in-form .form-box > .flex > div.left.larger + .right {
		width: 100%;
		max-width: 700px;
		margin-left: auto;
		margin-right: auto;
		align-items: flex-start;
		justify-content: center;
	}
	#opt-in-form .form-box > .flex > div:first-child {
		margin-bottom: 25px;
	}
	.single-field form {
		width: 100%
		margin-left: auto;
		margin-right: auto;
		justify-content: center;
	}
	.form-container .single-field form > div {
	    flex-grow: 1;
	}
}

@media only screen and (max-width: 600px) {
	.single-field form, #opt-in-form .form-box > .flex > div.left.larger {
		flex-wrap: wrap;
	}
	#opt-in-form .form-box .lm-image,
	#opt-in-form .form-box .lm-image img {
		width: 100%;
		max-width: 400px;
		margin-right: auto;
		margin-left: auto;
	}
	#opt-in-form .form-box .lm-image {
		margin-bottom: 25px;
	}
	#opt-in-form .form-box .h4.title.left-align,
	#opt-in-form .form-box .h4.title.left-align + p.left-align,
	.single-field form, #opt-in-form .form-box .tiny {
		text-align: center;
	}
	.form-box .single-field form > .email {
		width: 100%;
		max-width: 100%;
	}
	.form-box .single-field form > .submit {
		width: 100%;
		max-width: 100%;
		margin-top: 15px;
	}
}

@media only screen and (max-width: 500px) {
	.form-container {
	    padding: 40px 25px;
	    text-align: center;
	    margin-left: -10px;
	    margin-right: -10px;
	}
	#opt-in-form .form-box {
	    padding: 40px 25px;
	    margin-left: 0;
	    margin-right: 0;
	}
}
