/* CG Modern Form CSS */

.registration-modern__intro {
	width: 100%;
	max-width: 600px;
	text-align: center;
	color: #707070;
	font-size: 16px;
	display: block;
	margin: 60px auto 0;
}

.registration-modern .cg-form-modern {
	width: 100%;
	max-width: 360px;
	display: block;
	margin: 60px auto;
}

.registration-modern h1,
.registration-modern h2,
.registration-modern h3,
.registration-modern h4,
.registration-modern h5,
.registration-modern h6 {
	color: #000;
	font-weight: normal;
	margin: 10px 0 20px;
}

.registration-modern h1 {
	font-size: 30px;
}

.registration-modern h2 {
	font-size: 25px;
}

.registration-modern h3 {
	font-size: 20px;
}

.registration-modern h4 {
	font-size: 18px;
}

.registration-modern h5 {
	font-size: 16px;
}

.registration-modern h6 {
	font-size: 14px;
}

.cg-form-modern {
	text-align: center;
	color: #707070;
	font-size: 16px;
	box-sizing: border-box;
}

.cg-form-modern * {
	box-sizing: border-box;
}

.cg-form-modern h1,
.cg-form-modern h2,
.cg-form-modern h3,
.cg-form-modern h4,
.cg-form-modern h5,
.cg-form-modern h6 {
	color: #000;
	font-weight: normal;
	margin: 10px 0 30px;
}

.cg-form-modern h1 {
	font-size: 25px;
}

.cg-form-modern h2 {
	font-size: 20px;
}

.cg-form-modern h3 {
	font-size: 20px;
}

.cg-form-modern h4 {
	font-size: 18px;
}

.cg-form-modern h5 {
	font-size: 16px;
}

.cg-form-modern h6 {
	font-size: 14px;
}

.cg-form-modern p,
.cg-form-modern ul,
.cg-form-modern ol {
	line-height: 1.5;
}

.cg-form-modern small {
	line-height: 1.2;
}

.cg-form-modern__notice {
	color: #FF0202;
	font-weight: bold;
}

.cg-form-modern .form-field-wrapper {
	 width: 100%;
	 border: 1px solid #707070;
	 margin: 0 0 18px;
	 padding: 0 15px;
	 display: inline-block;
	 outline: solid 2px #fff;
	 transition: 0.3s all;
	 text-align: left;
	 position: relative;
}

.cg-form-modern .form-field-wrapper.third {
	width: calc(33.333% - 3px);
}

.cg-form-modern .form-field-wrapper:focus-within {
	 outline-color: #314c89;
	 border-color: #314c89;
}

.cg-form-modern .form-field-wrapper label {
	 color: #314c89;
	 font-weight: 500;
	 padding: 5px 0;
	 margin: 0;
	 width: 100%;
	 display: inline-block;
	 font-size: 14px;
}

.cg-form-modern .form-field-wrapper input[type="text"], 
.cg-form-modern .form-field-wrapper input[type="email"], 
.cg-form-modern .form-field-wrapper input[type="number"], 
.cg-form-modern .form-field-wrapper input[type="tel"],
.cg-form-modern .form-field-wrapper input[type="password"],
.cg-form-modern .form-field-wrapper select {
	 color: #707070;
	 border: none;
	 background: transparent;
	 padding: 0 0 8px;
	 margin: 0;
	 width: 100%;
	 font-weight: normal;
	 display: inline-block;
	 font-size: 16px;
	 flex-grow: 1;
	 outline: none;
}

.cg-form-modern .form-field-wrapper select {
	position: relative;
	width: 100%;
	height: 32px;
	padding: 0 20px 0 0;
	-webkit-appearance: none;
	cursor: pointer;
}

.cg-form-modern .form-field-wrapper i {
	position: absolute;
	bottom: 6px;
	right: 15px;
	color: #000;
	font-size: 16px;
	pointer-events: none;
}

.cg-form-modern .form-field-wrapper textarea {
	 color: #707070;
	 border: none;
	 background: transparent;
	 padding: 0 0 8px;
	 margin: 0;
	 width: 100%;
	 font-weight: normal;
	 display: inline-block;
	 font-size: 16px;
	 flex-grow: 1;
	 outline: none;
	 min-height: 128px;
	 resize: none;
}

.cg-form-modern .form-field-wrapper input[type="password"] {
	width: 80%;
}

.cg-form-modern .form-field-wrapper p {
	margin: 0 0 10px;
}

.cg-form-modern .form-field-wrapper > button,
.cg-form-modern .form-field-wrapper > a.btn-style {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	outline: none;
	border: none;
	background: transparent;
	color: #314c89;
	font-size: 14px;
	padding-right: 0!important;
	cursor: pointer;
	text-decoration: none;
}

.cg-form-modern .form-field-wrapper > button:hover,
.cg-form-modern .form-field-wrapper > button:focus,
.cg-form-modern .form-field-wrapper > a.btn-style:hover,
.cg-form-modern .form-field-wrapper > a.btn-style:focus {
	color: #000;
}

.cg-form-modern .form-field-wrapper > .btn-style--blue {
	background-color: #314C89;
    top: 0;
    right: 0;
    transform: none;
    height: 100%;
    color: #fff;
    padding: 0 15px!important;
}

.cg-form-modern .form-field-wrapper > .btn-style--blue:hover,
.cg-form-modern .form-field-wrapper > .btn-style--blue:focus {
	color: #fff;
	text-decoration: underline;
}

.cg-form-modern [type="submit"],
.cg-form-modern .cg-form-btn {
	display: inline-block;
	color: #fff;
	background-color: #314C89;
	margin-top: 0;
	height: 50px;
	width: 100%;
	text-decoration: none;
	line-height: 50px;
	padding: 0 75px 0 25px;
	font-size: 20px;
	border: none;
	outline: none;
	cursor: pointer;
	text-align: left;
	position: relative;
	transition: .3s all;
}

.cg-form-modern [type="submit"].centered,
.cg-form-modern .cg-form-btn.centered {
	text-align: center;
	padding: 0 25px;
}

.cg-form-modern [type="submit"].centered i,
.cg-form-modern .cg-form-btn.centered i {
	position: relative;
	top: 10px;
	right: -10px;
}

.cg-form-modern [type="submit"]:hover,
.cg-form-modern [type="submit"]:focus,
.cg-form-modern .cg-form-btn:hover,
.cg-form-modern .cg-form-btn:focus {
	background-color: #1b3163;
}

.cg-form-modern [type="submit"].grey,
.cg-form-modern .cg-form-btn.grey {
	background-color: #E4E4E4;
	color: #000;
}

.cg-form-modern [type="submit"].grey:hover,
.cg-form-modern [type="submit"].grey:focus,
.cg-form-modern .cg-form-btn.grey:hover,
.cg-form-modern .cg-form-btn.grey:focus {
	background-color: #314C89;
	color: #fff;
	text-decoration: none;
}

.cg-form-modern [type="submit"].green,
.cg-form-modern .cg-form-btn.green {
	background-color: #13C057;
	color: #fff;
}

.cg-form-modern [type="submit"].green:hover,
.cg-form-modern [type="submit"].green:focus,
.cg-form-modern .cg-form-btn.green:hover,
.cg-form-modern .cg-form-btn.green:focus {
	background-color: #0e7b39;
	color: #fff;
	text-decoration: none;
}

.cg-form-modern [type="submit"].alt,
.cg-form-modern .cg-form-btn.alt {
	background-color: #fff;
	color: #000;
	border: 1px solid #000;
	line-height: 48px;
}

.cg-form-modern [type="submit"].alt:hover,
.cg-form-modern [type="submit"].alt:focus,
.cg-form-modern .cg-form-btn.alt:hover,
.cg-form-modern .cg-form-btn.alt:focus {
	background-color: #000;
	color: #fff;
	text-decoration: none;
}

.cg-form-modern [type="submit"][disabled],
.cg-form-modern .cg-form-btn[disabled] {
	opacity: .5;
	pointer-events: none;
}

.cg-form-modern [type="submit"].icon-first,
.cg-form-modern .cg-form-btn.icon-first {
	padding: 0 25px 0 75px;
}

.cg-form-modern [type="submit"].no-icon,
.cg-form-modern .cg-form-btn.no-icon {
	padding: 0 25px;
}

.cg-form-modern [type="submit"].sm,
.cg-form-modern .cg-form-btn.sm {
	padding: 0 15px;
    font-size: 18px;
    height: 46px;
    line-height: 46px;
}

.cg-form-modern [type="submit"] i,
.cg-form-modern .cg-form-btn i {
	position: absolute;
	top: 50%;
	right: 25px;
	transform: translateY(-50%);
}

.cg-form-modern [type="submit"].icon-first i,
.cg-form-modern .cg-form-btn.icon-first i {
	right: auto;
	left: 25px;
}

.cg-form-modern button + .cg-form-modern button {
	margin: 18px 0 0;
}

.cg-form-modern__section {
	margin-bottom: 50px;
}

.cg-form-btn-group {

}

.cg-form-btn-group > * {
	margin: 18px 0;
}

.cg-form-modern .checkbox-row {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin: 20px 0;
}

.cg-form-modern .checkbox-row label {
	width: 33.333%;
	cursor: pointer;
}

.cg-form-modern .error {
	width: 100%;
    border: 1px solid #a60303;
    background-color: #a60303;
    color: #fff;
    margin: 0 0 18px;
    padding: 5px 15px;
    display: none;
    outline: solid 2px #a60303;
    transition: 0.3s all;
    text-align: left;
}

.cg-form-modern__section.nomarg {
	margin-bottom: 0;
}

.cg-form-modern [type="submit"] + p,
.cg-form-modern .cg-form-btn + p {
	margin: 10px 0 50px;
	text-align: center;
	font-size: 14px;
}

.cg-form-modern [type="submit"] + p a,
.cg-form-modern .cg-form-btn + p a {
	text-decoration: underline;
	color: #000;
}

.cg-form-modern [type="submit"] + p a:hover,
.cg-form-modern .cg-form-btn + p a:hover {
	text-decoration: none;
}

.cg-form-modern__outro > *:nth-child(1) {
	margin-bottom: 20px;
}

.cg-form-modern__alerts {
	max-width: 400px;
	display: block;
	margin: 0 auto;
	text-align: center;
}

.cg-form-modern__alert {
	width: 100%;
	padding: 15px 25px;
	text-align: center;
	margin: 30px 0 0;
	font-size: 14px;
	line-height: 1.3;
	background-color: #E4E4E4;
	border: 1px solid #BEBEBE;
	color: #000;
}

.cg-form-modern__alert.error {
	background-color: #FBCCD4;
	color: #BA0505;
	border-color: #BA0505;
}

.cg-form-modern__alert.notice {
	background-color: #FDB813;
	color: #000;
	border-color: #a47400;
}

.cg-form-modern__alert .alert-heading {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.1;
}

.cg-form-modern__alert a {
	color: inherit;
	text-decoration: underline;
}

.cg-form-modern__alert a:hover,
.cg-form-modern__alert a:focus {
	text-decoration: none;
}

.cg-form-modern__alert > *:nth-last-child(1) {
	margin-bottom: 0;
}

.cg-form-modern .form-field-wrapper.validation-failed {
	border-color: #BA0505;
}

.cg-form-modern .form-field-wrapper.validation-failed label {
	color: #BA0505;
}

.cg-form-modern .form-field-wrapper.validation-failed > button {
	color: #BA0505;
}

/* Address search */

#address-fields,
#loqate-result-wrapper,
#loqate-options-wrapper {
	display: none;
}

#address-fields {
	visibility: hidden;
}

form #loqate {
	display: block;
}

form #addressFinderToggle:hover,
form #addressFinderToggle:focus {
	text-decoration: underline;
}

form #addressFinderToggle:before {
	content: 'Enter Address Manually';
}

form.manualAddressEntry #addressFinderToggle:before {
	content: 'Use Address Finder';
}

form.manualAddressEntry #loqate {
	display: none;
}

form.manualAddressEntry #address-fields {
	display: block;
	visibility: visible;
}

form #addressFinderToggle {
	border: none;
	padding: 0 5px;
	margin: 0;
	color: #314c89;
	font-size: 16px;
	line-height: 1.5;
	background: none;
	cursor: pointer;
}

form #mySelect,
form .results {
	max-height: 300px;
	width: calc(100% + 30px);
	margin-left: -15px;
	overflow-y: auto;
}

form #mySelect button,
form .results button {
	width: 100%!important;
	font-size: 16px;
	text-align: left;
	border: none;
	border-bottom: 1px solid #e9e9e9;
	color: #000;
	background: #fff;
	padding: 5px 15px;
	cursor: pointer;
	transition: .1s all;
}

form #mySelect button:hover,
form #mySelect button:focus,
form .results button:hover,
form .results button:focus {
	background-color: #e9e9e9;
}

form #mySelect > button:nth-last-child(1),
form .results > button:nth-last-child(1) {
	border-bottom: none;
}