/* ------------------------
      General styles
   ------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&display=swap");

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body,
html {
  height: 100%;
  font-family: "Open Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body,
div,
span,
img,
ol,
ul,
li,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
option,
legend,
label,
table,
th,
td,
tr,
article,
aside,
caption,
figure,
footer,
header,
hgroup,
mark,
nav,
section,
time,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

img {
  max-width: 100%;
}

a:hover,
a:focus,
a:active {
  text-decoration: none;
  outline: none !important;
  border: 0;
}

input:focus {
  outline: none;
}

input::-moz-focus-inner {
  border: 0;
  display: none;
}

input::-webkit-focus-inner {
  border: 0;
  display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

::-webkit-input-placeholder {
  color: #666;
  opacity: 1;
  /* Firefox */
}

:-ms-input-placeholder {
  color: #666;
  opacity: 1;
  /* Firefox */
}

::-ms-input-placeholder {
  color: #666;
  opacity: 1;
  /* Firefox */
}

::placeholder {
  color: #666;
  opacity: 1;
  /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #666;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #666;
}

table {
  border-collapse: collapse;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
}

ul,
li {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0px;
}

form {
  position: relative;
}

.form-control:focus {
  outline: none !important;
  border: none !important;
  -webkit-box-shadow: 0 0 0;
  box-shadow: 0 0 0;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-size: inherit;
  color: inherit;
}

h1:hover a,
h2:hover a,
h3:hover a,
h4:hover a,
h5:hover a,
h6:hover a {
  font-size: inherit;
  color: inherit;
}

hr {
  margin: 0;
  padding: 0;
  border-color: #000;
}

ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

li {
  list-style: none;
}

a:hover,
a:focus,
button:hover,
button:focus {
  outline: 0;
  text-decoration: none;
}

.bg-grey {
  background: #f8fbff;
}

/* --------------------------
     Header Section Styles
   --------------------------- */
header {
  padding-top: 20px;
}

.innerHeader {
  box-shadow: 1px 1px 8px rgb(67 87 67 / 30%);
  border-radius: 6px;
  padding: 15px 10px;
}

.CallNumber {
  font-weight: bold;
  font-size: 24px;
  text-decoration: none;
  margin-right: 20px;
  color: #2d3990;
  text-decoration: none;
}

.CallNumber a {
  text-decoration: none;
  color: #2d3990;
}

/* linkSection */

.linkSection {
  background-color: #2a3990;
  border-radius: 6px;
  margin: 30px 0;
  padding: 90px 20px;
  box-shadow: 1px 1px 8px rgb(67 87 67 / 30%);
}

.linkSection h1 {
  text-transform: capitalize;
  color: #fff;
  font-size: 44px;
  font-weight: normal;
  text-align: center;
  margin-bottom: 40px;
}

.linksBlock {
  max-width: 980px;
  margin: 0 auto;
}

.LinkItem {
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 14px;
  display: block;
}

.linkSection .row>* {
  padding-right: 9px;
  padding-left: 9px;
}

.linkName {
  background-color: #dc1835;
  color: #fff;
  font-size: 20px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  outline: none;
}

.linkName:hover {
  color: #fff;
  text-decoration: none;
  outline: none;
}

/* footer */

footer {
  padding-bottom: 20px;
}

.footerInner {
  box-shadow: 1px 1px 8px rgb(67 87 67 / 30%);
  border-radius: 6px;
  padding: 20px;
}

.footerInner p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footerInner p a {
  text-decoration: none;
}

.homeLogo {
  max-width: 80px;
}

.mortgagelogo {
  text-align: right;
}
@media screen and (min-width: 768px) and (max-width: 1024px)  {
 .LinkItem {
    max-width: 90%;
    margin: 0 auto 16px;
}
.linkSection h1 {
  font-size: 34px;
}
.linkName {

}
.linkName {
    font-size: 16px;
    padding: 10px 6px;
}
.linkSection {
  padding: 90px 20px;
}


}
@media all and (device-width: 1024px) and (device-height: 768px) and (orientation:landscape) {
  .LinkItem {
    max-width: 90%;
    margin: 0 auto 16px;
}
.linkSection {
  padding: 90px 20px;
}
.linkSection h1 {
  font-size: 34px;
}
.linkName {
    font-size: 16px;
    padding: 10px 6px;
}
}
@media screen and (max-width: 767px) {
  .linkSection h1 {
        font-size: 22px;
  }
  .LinkItem {
    max-width: 60%;
    margin: 0 auto 14px;
}
  .form-block {
    padding: 15px !important;
  }
  .logo {
    margin-bottom: 20px;
    text-align: center;
  }

  .CallNumber {
    text-align: center;
    width: 100%;
  }

  .linkSection {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logoBlock img {
    width: 100%;
  }

  .form-block .form-group {
    display: flex;
    flex-direction: column;
  }

  .form-block .form-group label {
    text-align: left;
    min-height: 44px;
        justify-content: flex-start;
  }

  .form-block .form-group .form-field {
    width: 100% !important;
  }
  .form-block .form-group .form-field {
    margin-left: 0 !important;
  }
}

.form-block {
  background-color: #2a3990;
  border-radius: 50px;
  max-width: 800px;
  padding: 60px 40px;
  min-height: 300px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
}

.form-block form {
  width: 100%;
}

.form-group label {
  color: #ffffff;
  min-width: 180px;
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;

}

.form-field label {
color: #fff !important;
background-color: #fc0000;
padding: 4px 8px;
font-size: 13px;
border-radius:2px;
margin-top: 5px;
min-height: auto;
}

.form-group label span {
  color: #fc0000;
  margin-right: 10px;
  margin-left: 5px;
}

.form-block .form-group {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;

}

.form-block .form-group .form-field {
  width: calc(100% - 308px);
  margin-left: 10px;
}

.form-block .form-group .form-field input {
  border: solid 2px #000000e1 !important;
  border: none;
  min-height: 44px;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.button-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 0 !important;
}

.button-submit button {
  background-color: #fc0000;
  border: none;
  color: #fff;
  min-height: 42px;
  min-width: 260px;
  font-weight: 600;
  border-radius: 50px;
}

.mortgagelogo img{
	max-height: 75px;
	margin: auto;
	display: flex;
    align-items: center;
}

.logoBlock{
  background: #fff;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 180px;
  flex: 1 1 auto;
  min-width: 100%;
}
.logoBlock img{
  object-fit: contain;
}

.linksBlock .row > [class*='col-']{ display:flex; }
.linksBlock .LinkItem{ display:flex; flex-direction:column; width:100%; }

.logoBlock img{
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) and (max-width: 991.98px){
  .logoBlock{ min-height: 160px; padding: 10px; }
}

@media (max-width: 767.98px){
  .logoBlock{ min-height: 140px; padding: 8px; }
}