@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500');

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
	margin: 0 auto;
	width: 100%;
}
body {
	margin: 0 auto;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 115%;
	line-height: 1;
	color: #203873;
	background: #f7f7f7;
	cursor: default;
}

.container {
	margin: 0 auto;
	max-width: 1800px;
	padding: 0 30px;
	position: relative;
}

a {
	color: #405893;
	text-decoration: none;
	filter:alpha(opacity=100);
	opacity: 1;
	-webkit-transition:all 0.2s linear;  
	-moz-transition:all 0.2s linear;  
	-o-transition:all 0.2s linear;  
	transition:all 0.2s linear;	
}
a:hover, a:focus {
	color: #196f92;
	text-decoration: underline;
	outline: 0;
	filter:alpha(opacity=100);
	opacity: 1;
	-webkit-transition:all 0.2s linear;  
	-moz-transition:all 0.2s linear;  
	-o-transition:all 0.2s linear;  
	transition:all 0.2s linear;	
}

a[href^=tel] {
	background: none !important;
	padding: 0 !important;
}
a img {
	border: 0;
}

a.btn {
	background: #203873;
	color: #fff;
	font-size: 88%;
	text-decoration: none;
	padding: 3px 15px 6px;
	font-weight: 400;
}
a.btn:hover {
	background: #2d87ab;
	color: #fff;
}

/* FORMS */
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], textarea {
	background: #f5f5f5;
	border: 0;
	outline: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 95%;
	font-weight: 400;
	padding: 15px 10px;
	width: 100%;
	box-sizing: border-box;
	-webkit-appearance: none;
	border-radius: 5px;
}
input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus,
textarea:focus {
	border: 0;
}
textarea {
	resize: none;
}
input[type='submit'], input[type='button'], button {
	font-family: 'Roboto', sans-serif;
	border: 0;
	border-radius: 5px;
	font-size: 115%;
	background: #203873;
	padding: 12px 25px 10px;
	color: #ffff;
	font-weight: 500;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	   filter:alpha(opacity=100);
	opacity: 1;
	-webkit-transition:all 0.2s linear;
	-moz-transition:all 0.2s linear;
	-o-transition:all 0.2s linear;
	transition:all 0.2s linear;
}
input[type='submit']:hover, input[type='button']:hover, button:hover {
	border: 0;
	background: #39619c;
	color: #fff;
	filter:alpha(opacity=100);
	opacity: 1;
	-webkit-transition:all 0.2s linear;
	-moz-transition:all 0.2s linear;
	-o-transition:all 0.2s linear;
	transition:all 0.2s linear;
}

div.formBody {
	float: none !important;
}
.formError {
	color: #ff0000 !important;
	font-size: 13px !important;
	font-weight: normal !important;
}
.formClr {
	display: inline-block !important;
}
fieldset.formFieldset, fieldset {
	border: none;
	padding: 0 !important;
	margin: 0 !important;
}
fieldset.formFieldset ol.formContainer li {
	padding-left: 0 !important;
}
.formCaption2 {
	margin-bottom: 0.5%;	
}
.has-error-foundation .formValidation {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

hr {
	border: none;
	border-bottom: 1px solid #d2d6df;
	margin: 3% 0;
}
img {
	max-width: 100%;
	max-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 15px;
	line-height: 1.1;
	font-weight: 400;
}
h1, h2 {
	font-size: 145%;
	color: #203873;
	margin-bottom: 25px;
}
p {
	margin-top: 0;
	line-height: 1.28;
}
strong {
	font-weight: 500;
}
em strong, strong em  {
	font-style: normal;
	color: #269c41;
}
.p p {
	margin: 0;
	line-height: 0;
}
.ul ul, .ol ol {
	list-style: none;
	padding: 0;
	margin: 0;
}
.li li {
	display: inline-block;
}

/* HEADER */
header {
	background: #fff;
	padding: 10px 0;
	margin-bottom: 20px;
}
header .grid {
	display: inline-block;
	vertical-align: middle;
}

header .logo a {
	text-indent: -99999px;
	width: 210px;
	background: url(../images/AFS-logo.svg) no-repeat left top / 100%;
	padding-top: 51px;
	display: inline-block;
}

header .mainmenu {
	float: right;
	margin-top: 15px;
}
header .mainmenu a,
header .mainmenu li.deeper {
	color: #2d2d71;
	font-size: 105%;
	font-weight: 400;
	padding: 3px 8px;
}
header .mainmenu a:hover {
	color: #4040b6;
}
header .mainmenu li.active a,
header .mainmenu li.active.deeper {
	color: #4040b6;
	font-weight: 500;
}
header .mainmenu ul.nav li.parent a:hover,
header .mainmenu ul.nav li.parent:hover a,
header .mainmenu ul.nav li.deeper:hover {
  background: #2d2d71;
  color: #fff;
  border-radius: 3px 3px 0 0;
}
header .mainmenu li.parent ul.mod-menu__sub {
	background: #2d2d71;
	font-weight: 300;
	display: none;
	position: absolute;
	z-index: 999999;
	margin-top: 2px;
	margin-left: -8px;
	padding: 6px 10px 10px 6px;
	min-width: 11em;
	width: 200px;
	border-radius: 0 0 3px 3px;
	box-shadow: 0px 6px 9px -13px #000029;
	filter:alpha(opacity=100);
	opacity: 1;
	-webkit-transition:all 0.2s linear;
	-moz-transition:all 0.2s linear;
	-o-transition:all 0.2s linear;
	transition:all 0.2s linear;
}
header .mainmenu li.parent:hover ul.mod-menu__sub {
	display: block;
	filter:alpha(opacity=100);
	opacity: 1;
	-webkit-transition:all 0.2s linear;
	-moz-transition:all 0.2s linear;
	-o-transition:all 0.2s linear;
	transition:all 0.2s linear;
}
header .mainmenu li.parent ul.mod-menu__sub li {
	display: block;
	padding-left: 2px;
}
header .mainmenu li.parent ul.mod-menu__sub li a {
	color: #fff;
	display: block;
	text-transform: none;
	padding: 5px 0px 7px;
	font-size: 85%;
	font-weight: 400;
}
header .mainmenu li.parent ul.mod-menu__sub li a:hover,
header .mainmenu li.parent ul.mod-menu__sub li.active a {
	color: #a0a0a0;
}

/* BURGER */
.burger {
	float: right;
	margin-top: 3px;
}
.menu-icon-cont .menu-icon3 {
	 margin: 0.05em 0.05em 0 0.05em !important;
	 height: .54em !important;
}

#banner {
	clear: both;
}
#banner .intro {
	background: #203873;
	color: #fff;
	padding: 2% 2% 2.4%;
	font-weight: 400;
	font-size: 110%;
	margin-bottom: 20px;
	border-radius: 5px;
}
#banner .intro h4 {
	font-size: 140%;
	font-weight: 300;
}
#banner .intro a {
	color: #fff;
}
#banner .intro p {
	line-height: 1.2;
}
#banner .breadcrumb {
	font-weight: 300;
	margin-block: 15px;
	font-size: 80%;
}
#banner .breadcrumb li.breadcrumb-item {
	padding-right: 12px;
	margin-right: 5px;
	background: url(../images/arw.svg) no-repeat center right / 7px;
}
#banner .breadcrumb li.breadcrumb-item.active {
	background-image: none; 
}

main {
	clear: both;
}
main .item-page,
.contact .intro .item {
	background: #fff;
	padding: 2% 2%;
	margin-bottom: 30px;
	overflow: hidden;
	border-radius: 5px;
}
main li {
	margin-bottom: 10px;
	line-height: 1.2;
}

main .services img {
	border-radius: 5px 5px 0px 0px;
}
main .services .items-row {
	margin-bottom: 30px;
}
main .services .items-row .item {
	display: inline-block;
	vertical-align: top;
	width: 23.8%;
	box-sizing: border-box;
	color: #fff;
	font-weight: 400;
	margin-right: 1.3%;
}
main .services .items-row .item:last-child {
	margin-right: 0;
}
main .services .items-row .item-text {
	padding: 10px 10px 0 20px;
	min-height: 270px;
}
main .services .items-row ul {
	padding-left: 17px;
	margin-top: 5px;
	margin-bottom: 0;
	list-style-type: square;
}
main .services .items-row h2 {
	color: #fff;
	font-size: 120%;
	margin-bottom: 15px;
	font-weight: 500;
}
main .services .items-row a {
	color: #fff;
}
main .services .items-row #mortgage {
	background: #f39200;
	border-radius: 5px;
}
main .services .items-row #equity {
	background: #488ccb;
	border-radius: 5px;
}
main .services .items-row #insurance {
	background: #95c11f;
	border-radius: 5px;
}
main .services .items-row #business-protection {
	background: #ec6446;
	border-radius: 5px;
}
main .services .items-intro {
	background: #fff;
	padding: 2% 2%;
	margin-bottom: 20px;
	border-radius: 5px;
}

figure {
	margin: 0 30px 7px 0;
	width: 300px;
	float: left;
}
figure img {
	border-radius: 5px 5px 0 0;
}
figcaption {
	padding: 6px 10px 8px;
	font-weight: 400;
	background: #ececec;
	margin-top: -3px;
	font-size: 90%;
	text-align: center;
	background: #203873;
	color: #fff;
}

.contact div.grid {
	display: inline-block;
	vertical-align: top;
	width: 49.5%;
	box-sizing: border-box;
}
.contact div.grid.x {
	margin-right: 0.54%;
}
.contact .rsform-block {
	margin-bottom: 1%;
}

/* CALCULATOR */
main .calculator {
	padding: 2% 2%;
	background: #fff;
	margin-top: 30px;
	border-radius: 5px;
}
main .calculator p {
	margin-bottom: 8px;
}
main .calculator p:last-of-type {
	margin-bottom: 0;
}
main .calculator h2 {
	font-size: 140%;
	margin-bottom: 20px;
}
main .calculator a {
	background: #203873;
	color: #fff;
	font-size: 90%;
	text-decoration: none;
	padding: 5px 10px 6px;
	font-weight: 500;
	text-transform: uppercase;
	margin-top: 5px;
	margin-bottom: 5px;
	display: inline-block;
	border-radius: 4px;
}
main .calculator a:hover {
	background: #39619c;
}
#mortgage-repayment-calculator main {
	background: #fff;
	padding-top: 2%;
	text-align: center;
}
main .mrcalculator h1 {
	padding-left: 2.5%;
}

footer {
	background: #203873;
	color: #fff;
	padding: 45px 0 30px;
	font-size: 95%;
	margin-top: 40px;
	overflow: hidden;
}
footer .reg {
	background: #102863;
	padding: 20px 20px 5px;
	text-align: center;
	font-size: 85%;
	font-weight: 300;
	margin-bottom: 50px;
	border-radius: 5px;
}
footer .reg a {
	color: #fff;
}
footer h3 {
	font-weight: 300;
	font-size: 90%;
	margin-bottom: 8px;
}
footer div.grid {
	float: left;
	width: 21%;
	margin-bottom: 40px;
}
footer .menu.first {
	margin-left: 2%;
}
footer .menu .separator {
	display: inline-block;
	margin-bottom: 8px;
	font-weight: 400;
	font-size: 100%;
}
footer .menu a {
	margin-bottom: 8px;
	color: #fff;
	font-size: 82%;
	display: inline-block;
}
footer .menu li.active a,
footer .menu ul.nav-child li.active a {
	font-weight: 400;
}
footer .menu ul.nav-child li a {
	font-weight: 300;
}
footer div.grid.acrons {
	text-align: center;
	margin-right: 2%;
	width: 170px;
	float: right;
}

footer#footerend {
	clear: both;
	margin-top: 0;
	background: #102863;
	color: #fff;
	padding: 30px 0 10px;
	font-size: 70%;
	overflow: hidden;
}
footer#footerend div.grid {
	width: auto;
	margin-bottom: 0;
}
footer#footerend .links a {
	color: #fff;
	margin-right: 10px;
}
footer#footerend .links li.active a {
	text-decoration: underline;
}
footer#footerend .cr {
	float: left;
	margin-left: 2%;
}
footer#footerend .cm { 
	float: right;
	margin-top: 6px;
	margin-right: 2%;
}
footer#footerend .cm a {
	color: #fff;
	text-transform: uppercase;
	font-size: 8px;
}
footer#footerend .cm a:hover {
	color: #6dc7eb;
	text-decoration: none;
}

/* SCROLL TO TOP */
#button_top {
  display: inline-block;
  background-color: rgba(41, 81, 140, 0.8);
  width: 42px;
  height: 32px;
  padding: 12px 4px 5px;
  text-align: center;
  border-radius: 50px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color .3s, opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#button_top::after {
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  line-height: 50px;
  color: #fff;
}
#button_top:hover {
  cursor: pointer;
  background-color: #39619c;
}
#button_top:active {
  background-color: #39619c;
}
#button_top.show {
  opacity: 1;
  visibility: visible;
}

/* reCaptcha Overrides */
.grecaptcha-badge {
	opacity: 0;
	right: -300px !important;
}

/* SYSTEM MESSAGES */
#system-message-container joomla-alert {
	background: #ffe3e5;
	color: #000;
	margin-top: 4%;
	padding: 15px;
	text-align: center;
	border-radius: 10px;
	font-size: 85%;
}
#system-message-container joomla-alert button {
	float: right;
	background: #00a08f;
	width: 29px;
	padding: 2px 8px 2px;
	border-radius: 50%;
	top: -25px;
	right: -25px;
	position: relative;
	color: #fff;
	font-size: 140%;
	text-decoration: none;
	font: bold normal normal 25px/1 FontAwesome;
	cursor: pointer;
}
#system-message-container joomla-alert button:hover {
	background: #ff964b;
}
#system-message-container joomla-alert div.alert-heading {
	display: none;
}
#system-message-container joomla-alert .alert-message {
	margin-bottom: 5px;
	line-height: 1.4;
}


/* RESPONSIVE ELEMENTS */
@media (max-width:1550px) {
	main .services .items-row .item {
		width: 23.75%;
	}
}

@media (max-width:1480px) {
	footer div.grid {
		width: 20%;
	}
}

@media (max-width:1280px) {
	main .services .items-row .item {
		width: 23.7%;
		font-size: 95%;
	}
}

@media (max-width:1130px) {
	.contact .rsform-block {
		margin-bottom: 13px;
	}
	footer div.grid {
		width: 32%;
	}
	footer div.grid.bp {
		margin-left: 2%;
	}
	footer div.grid.acrons {
		float: left;
		margin-right: 0;
	}
}

@media (max-width:1090px) {
	header .mainmenu a, header .mainmenu li.deeper {
		font-size: 100%;
		padding: 3px 6px;
	}
	header .mainmenu li.parent ul.mod-menu__sub {
		margin-left: -6px;
	}
	main .services .items-row .item {
		width: 23.6%;
	}
	.contact div.grid.x {
		margin-right: 0.45%;
	}
}

@media (max-width:1030px) {	
	footer#footerend .links {
		margin-bottom: 10px;
	}
}

@media (max-width:980px) {
	header {
		overflow: hidden;
	}
	header .mainmenu {
		float: none;
		display: none;
		text-indent: -99999px;
	}
	header .mainmenu a, header .mainmenu li.deeper {
		font-size: 0 !important;
	}
}

@media (max-width:950px) {
	h1, h2 {
		font-size: 26px;
	}
	.container {
		padding: 0 10px;
	}
	header .logo {
		width: 70px;
	}
	#banner .intro {
		font-size: 110%;
	}
	#banner .intro h4 {
		font-size: 130%;
	}
	footer .reg {
		padding: 20px 20px 5px;
	}
}

@media (max-width:900px) {	 
	main .services .items-row .item {
		width: 48.9%;
		margin-bottom: 1.8%;
		font-size: 100%;
	}
	main .services .items-row .item:nth-child(2) {
		margin-right: 0;
	}
	main .services .items-row .item:nth-child(3),
	main .services .items-row .item:last-child {
		margin-bottom: 0;
	}
	main .services .items-row .item h2 {
		font-size: 140%;
	}
	.contact div.grid {
		width: 100%;
	}
	.contact div.grid.x {
		margin-right: 0;
	}
}

@media (max-width:800px) {
	#mortgage-repayment-calculator main {
		padding: 2% 3% !important;	
	}
}

@media (max-width:765px) {
	header .mainmenu {
		float: none;
		display: none;
	}
	main .item-page, .contact .intro .item {
		padding-top: 10px;
	}
}

@media (max-width:650px) {
	.container {
		padding: 0 10px;
	}
	header {
		margin-bottom: 10px;
	}
	#banner .intro {
		margin-bottom: 10px;
	}
	main .items-row {
		margin-bottom: 10px;
	}
	figure {
		width: 100%;
		float: none;
		margin-right: 0;
		margin-bottom: 15px;
	}
	footer {
		font-size: 100%;
	}
	footer div.grid {
		width: 49%;
	}
	footer div.grid.in {
		margin-left: 2%;
	}
	footer div.grid.bp {
		margin-left: 0;
	}
	footer div.grid.acrons {
		float: none;
		margin-left: 2%;
	}
}

@media (max-width:530px) {
	main .services .items-row .item {
		width: 100%;
		margin-right: 0;
		padding-bottom: 15px;
		margin-bottom: 0 !important;
	}
	main .services .items-row .item:nth-child(3) {
		margin-bottom: 1.8%;
	}
	main .services .items-row .item img {
		width: 100%;
	}
	main .services .items-row .item .item-text {
		min-height: auto;
		padding-bottom: 10px;
	}
	footer#footerend {
		padding-bottom: 35px;
	}
	footer#footerend .cr,
	footer#footerend .cm {
		float: none;
		margin-left: 2%;
	}
	footer#footerend .cm {
		margin-top: 20px;	
	}
}

@media (max-width:450px) {
	footer div.grid {
		width: 95%;
		margin-bottom: 20px;
	}
	footer div.grid.mo,
	footer div.grid.bp {
		margin-left: 2%;
	}
}

@media (max-width:350px) {
	footer .reg {
		padding: 10px 10px 5px;
		font-size: 95%;
	}
}