/****** Diagonal Widget Styles ********/
.product-specific-widget {
  max-width: 830px;
  margin: 15px 0;
}

.product_specific_widget_link, .product_specific_widget_link:hover{
  text-decoration: none !important;
}

.sign_up_btn {
  background: #D92228 0% 0% no-repeat padding-box;
  border-radius: 30px;
  text-align: left;
  font: normal normal bold 16px/26px Roboto;
  letter-spacing: -0.48px;
  color: #FFFFFF;
  opacity: 1;
  padding: 8px 40px 8px 25px;
  display: inline-block;
  position: relative;
}

.signup_btn_arrow {
  width: 0;
  height: 0;
  display: inline-block;
  top: 50%;
  right: 20px;
  position: absolute;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid white;
}

.diagonal_widget_block {
  cursor: pointer;
}

.diagonal_widget_btn {
  display: block;
}

#diagonal_widget_container {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #d92228;
  text-decoration: none;
  max-width: 821px;
  margin-bottom: 15px;
}

.diagonal_widget_block a {
  text-decoration: none !important;
}

.diagonal_widget_block a:hover {
  text-decoration: none !important;
}

#diagonal_widget_container .diagonal_column_first {
  color: #ffffff;
  width: 50%;
  padding: 22px 0 22px 22px;
  display: flex;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
}

#diagonal_widget_container .diagonal_widget_logo_icon {
  all: unset !important;
  width: 130px;
  height: 18px;
  margin-top: 0;
  margin-bottom: 5px !important;
}

#diagonal_widget_container .diagonal_column_first h2 {
  width: 100%;
  color: #ffffff;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  margin: 0;
  margin-bottom: 2px;
}

#diagonal_widget_container .diagonal_column_first p {
  width: 100%;
  text-align: justify;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 12px;
  text-align: unset;
}

#diagonal_widget_container .diagonal_column_second {
  /* Clip the background image to the desired shape */
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
  /* Force the text to wrap to the same shape 
  and give it some margin */
  shape-outside: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
  shape-margin: 25px;
  width: 50%;
  height: 100%;
  max-width: 434px;
  max-height: 210px;
  overflow: hidden;
}

#diagonal_widget_container .diagonal_column_second picture {
  display: block;
  height: 100%;
}

#diagonal_widget_container .diagonal_column_second img {
  all: unset;
  height: 210px;
  width: 100%;
  max-width: 434px;
  margin: 0;
  object-fit: cover;
}

#diagonal_widget_container .diagonal_widget_button {
  background-color: #ffffff;
  border: 1px solid #d92228;
  border-radius: 20px;
  padding: 7px 28px 7px 15px;
  color: #d92228;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
}

#diagonal_widget_container .diagonal_widget_button .diagonal_widget_button_svg {
  margin-top: 0px;
  left: 8px;
  top: 2px;
  position: relative;
  -webkit-text-stroke: 0.6px #ffffff;
  width: 8px;
  display: inline-block;
  line-height: 0px;
}

#diagonal_widget_container .diagonal_widget_button .diagonal_widget_button_svg {
  fill: #d92228;
}

.conversion_widget_mobile,
.conversion_widget_tablet,
.conversion_widget_desktop {
  display: none;
}

/**** MRC Widget Modal *****/
.mrc-modal-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.mrc-modal-container .mrc-form-container .mrc-form-wrapper {
  max-width: 800px;
  min-height: auto !important;
}

.mrc-modal-container .mrc-form-container {
  overflow-y: auto;
  overflow-x: clip;
  max-height: 100%;
}

.mrc-modal-container .mrc-form-container::-webkit-scrollbar {
  width: 15px;
}

.mrc-modal-container .mrc-form-container::-webkit-scrollbar-track {
  border-radius: 10px;
}

.mrc-modal-container .mrc-form-container::-webkit-scrollbar-thumb {
  background: #d8d8d8;
  border-radius: 10px;
}

.mrc-modal-container .mrc-form-container::-webkit-scrollbar-thumb:hover {
  background: #adadad;
}

.mrc-modal-container .mrc-scroll-wrapper {
  padding: 10px 5px;
  background-color: white;
  border-radius: 15px;
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.mrc-modal-container .mrc-form-wrapper {
  padding: 0 !important;
  position: relative;
  margin: 0 !important;
}
#mrc-close {
  position: absolute;
  top: -15px;
  right: -15px;
  padding: 10px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  background-color: #000;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  line-height: 9px;
  font-size: 20px;
}

#mrc-close:hover {
  background-color: #333333;
}

/**** textbanner Widget Css Starts *****/
.myhome-widget-cover {
  padding: 0;
}

.textbanner-widget-cover {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  box-shadow: 0px 0px 10px #00000029;
  position: relative;
  justify-content: space-between;
  text-decoration: none;
  flex-wrap: wrap;
  background-size: cover;
  background-position-y: center;
  min-height: 200px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.textbanner-widget-cover picture {
  width: 100%;
}

.textbanner_link:hover {
  text-decoration: none;
}

.textbanner-name-widget {
  display: flex;
  text-align: center;
  width: 100%;
  height: 100%;
  position: absolute;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.textbanner-widget-cover .textbanner_bgimage {
  height: 200px;
  margin: 0;
  width: 100%;
  object-fit: cover;
  filter: brightness(50%);
}

.textbanner_conversion_widget h4,
.textbanner_conversion_widget h5,
.textbanner_conversion_widget p {
  word-break: break-word;
}

#content .textbanner-name-widget .textbanner_widget_heading,
#article-content-styling .textbanner-name-widget .textbanner_widget_heading {
  color: #fff;
  font-size: 45px;
  margin-bottom: 15px;
  font-weight: 700;
}

#content .textbanner-name-widget .textbanner_widget_description,
#article-content-styling .textbanner-name-widget .textbanner_widget_description {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 24px;
}

.textbanner-widget-cover .sign_up_btn {
  border: 0px;
}   

/* Whitebg Widget Styles */
.whitebg-widget-cover {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  background: #fff 0% 0% no-repeat padding-box;
  box-shadow: 0px 0px 10px #00000029;
  padding: 30px;
  justify-content: space-between;
  text-decoration: none;
  flex-wrap: wrap;
}
.whitebg-widget-image{
  flex: 0 0 29%;
  margin-bottom: 15px;
}
.whitebg-widget-content{
  flex: 0 0 68%;
  text-align: -webkit-center;
}
.whitebg-widget-image img{
  width: 229px;
  margin: 0;
  object-fit: contain;
}
#content .whitebg_widget_heading,
#article-content-styling .whitebg_widget_heading {
  color: #000;
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0;
}

#content .whitebg_widget_description,
#article-content-styling .whitebg_widget_description {
  color: #000;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 16px;
}

.whitebg-widget-cover .sign_up_btn{
  border: 0;
}

.single-guides  #article-content-styling .product-specific-widget h2, 
.single-guides  #article-content-styling .product-specific-widget button{
  font-family: 'Poppins';
}

.single-guides  #article-content-styling .product-specific-widget p {
  font-family: 'Lora';
}

.single-guides #article-content-styling .whitebg_widget_heading {
  font-size: 25px;
}
.single-guides #article-content-styling .whitebg_widget_description {
  font-size: 17px;
  color: #477fc1;
}
.single-guides #article-content-styling .sign_up_btn {
  font-size: 14px;
  padding: 8px 40px 8px 20px;
}

.single-guides #article-content-styling .whitebg-widget-cover{
  margin: 50px 0px;
} 

/* black_and_white Widget Styles Start */
.product-specific-widget #black_and_white_widget_container {
  border: 1px solid #D9D9D9;
  border-radius: 5px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  overflow: hidden;
  gap: 10px;
}

.black_and_white_widget_bgimage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

#black_and_white_widget_container .black_and_white_widget_heading {
  flex: 0 0 70%;
  font-size: 50px;
  line-height: 52px;
  margin: 0;
  font-weight: 900;
  color: #000000;
  width: 100%;
} 

.show_bg_image #black_and_white_widget_container .black_and_white_widget_heading,
.show_bg_image #black_and_white_widget_container .highlight-text-red {
  color: #ffffff;
}

.highlight-text-red {
  color: #D92228;
}

.black_and_white_widget_bgimage {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.black_and_white_widget_btn_wrap{
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 30%;
  position: relative;
}

#black_and_white_widget_container .black_and_white_widget_button {
  /* flex: 0 0 17%; */
  width: auto;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 25px;
  border-radius: 20px;
  background-color: #D92228;
  border: 0;
  color: #ffffff;
}

#black_and_white_widget_container .black_and_white_widget_bgimage img{
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  filter: brightness(60%);
}

#black_and_white_widget_container .black_and_white_logo_image img{
  width: 30px;
  height: auto;
  margin: 0 auto;
}

.show_bg_image #black_and_white_widget_container .black_and_white_logo_image img{
  filter: brightness(0) invert(1);
}

/***** Responsive Styles *******/
/***** Styles For Mobile ******/
@media (max-device-width:767px) {
  /* Diagonal widget */
  #diagonal_widget_container {
    min-height: 120px;
    flex-direction: column;
  }
  .conversion_widget_mobile {
    display: block;
  }
  #diagonal_widget_container .diagonal_column_first {
    width: 100%;
    padding: 16px;
  }
  #diagonal_widget_container .diagonal_column_second {
    display: none;
  }
  .ni_leadform_widget .diagonal_widget_description {
    display: none !important;
  }
  .diagonal_widget_hide_mobile {
    display: none !important;
  }
  #diagonal_widget_container .diagonal_column_first h2 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 8px;
  }
  #diagonal_widget_container .diagonal_widget_button {
    padding: 4px 28px 4px 15px;
  }
  /* textbanner widget */
  .textbanner_widget_mobile {
    display: block;
  }
  .textbanner-widget-cover{
    flex-direction: row;
  }
  #content .textbanner-name-widget .textbanner_widget_heading,
  #article-content-styling .textbanner-name-widget .textbanner_widget_heading {
    font-size: 35px;
  }
  /* Whitebg widget */
  .conversion_widget_mobile {
    display: block;
  }
  /* Black and White Widget */
  .product-specific-widget #black_and_white_widget_container {
    flex-direction: column;
    padding: 20px;
  }
  #black_and_white_widget_container .black_and_white_widget_heading {
    text-align: center;
    font-size: 22px;
    line-height: 24px;
  }
  #black_and_white_widget_container .black_and_white_widget_button{
    margin: 0 auto;
    font-size: 12px;
    padding: 6px 15px;
  }
  
  #black_and_white_widget_container .black_and_white_logo_image {
    position: absolute;
    right: 0;
  }

  #black_and_white_widget_container .black_and_white_logo_image img{
    width: 20px;
  }
  
}

/***** Styles For iPad ******/
@media (max-device-width:1199px) and (min-device-width:768px){
  /* Diagonal widget */
  .conversion_widget_tablet {
    display: block;
  }
  #diagonal_widget_container {
    min-height: 175px;
    max-width: 710px;
  }
  #diagonal_widget_container .diagonal_column_first {
    padding: 20px 0 20px 20px;
  }
  #diagonal_widget_container .diagonal_column_second {
    height: 210px;
  }
  #diagonal_widget_container .diagonal_column_second img {
    height: 210px;
  }

  /* Appconext widget */
  .conversion_widget_tablet {
    display: block;
  }

  /* Whitebg widget */
  .conversion_widget_tablet {
    display: block;
  }
  .whitebg-widget-cover {
    flex-direction: row;
    padding: 15px 25px;
  }
  .whitebg-widget-image{
    order: 2;
    margin-bottom: 0;
  }
  .whitebg-widget-image img{
    height: 200px;
  }
  #content .whitebg-widget-content,
  #article-content-styling .whitebg-widget-content {
    text-align: -webkit-left;
  }
  #myhome_widget\:claim_home .whitebg-widget-content{
    flex: 0 0 61%;
  }
  /* Black and White Widget */
  .product-specific-widget #black_and_white_widget_container {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
  }
  #black_and_white_widget_container .black_and_white_widget_heading {
    text-align: center;
    font-size: 46px;
    line-height: 48px;
  }
  #black_and_white_widget_container .black_and_white_widget_button{
    margin: 0 auto;
  }
  #black_and_white_widget_container .black_and_white_logo_image {
    position: absolute;
    right: 0;
  }
}

/***** Styles For Desktop ******/
@media (min-device-width:1200px) {
  .conversion_widget_desktop {
    display: block;
  }

  /* textbanner widget */
  .conversion_widget_desktop {
    display: block;
  }

  /* Whitebg widget */
  .conversion_widget_desktop{
    display: block;
  }
  .whitebg-widget-cover {
    flex-direction: row;
    padding: 15px 25px;
  }
  .whitebg-widget-image{
    order: 2;
    margin-bottom: 0;
  }
  .whitebg-widget-image img{
    height: 200px;
  }
  #content .whitebg-widget-content,
  #article-content-styling .whitebg-widget-content {
    text-align: -webkit-left;
  }  
}

@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
  #black_and_white_widget_container .black_and_white_widget_heading {
    font-size: 36px;
    line-height: 38px;
  }
}

/****** model popup style start  ******/
.agent_model {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 99999999;
  /* Sit on top */
  padding-top: 100px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content */
.agent-modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 12px 24px 24px 24px;
  border: 1px solid #888;
  width: 612px;
}

/* The Close Button */
.close_button,
.close_button_small {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  border: none;
  background-color: transparent;
  height: 16px;
  position: relative;
  width: 16px;
  margin-left: auto;
}

.close_button:hover,
.close_button:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.connect-head {
  line-height: 28px;
  margin-bottom: 36px;
  font-weight: 700;
}

.cordinator-head {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.local-text {
  line-height: 24px;
  font-weight: 400;
  margin-bottom: 24px;
}

.label-wrapper label {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 0px;
}

.input-wrapper .input_field {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
  height: 40px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  padding: 0px 16px;
}

.input-wrapper {
  position: relative;
}

.label-wrapper {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
}

span.req {
  font-size: 12px;
  line-height: 16px;
  margin-top: 5px;
}

.button-wrapper .btn {
  background: #d92228;
  border: 1px solid #d92228;
  border-radius: 32px;
  padding: 8px 16px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  width: 196px;
  height: 48px;
}

.button-wrapper .btn:hover,
.button-wrapper .btn:active,
.button-wrapper .btn:focus {
  background-color: rgb(184, 29, 34);
  border-color: rgb(184, 29, 34);
  color: #fff;
}

.button-wrapper {
  margin-bottom: 20px;
  position: relative;
}

.consent p {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  margin-bottom: 24px;
}

.call-no p {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 0px;
}

.agent-connect-form {
  margin-bottom: 0px;
}

.close_button::before,
.close_button_small::before {
  transform: rotate(45deg);
}

.close_button::after,
.close_button_small::after {
  transform: rotate(-45deg);
}

.close_button::before,
.close_button::after {
  background-color: rgb(51, 51, 51);
  content: " ";
  height: 22px;
  position: absolute;
  top: 0px;
  width: 2px;
}

.close_button_small::before,
.close_button_small::after {
  background-color: #fff;
  content: " ";
  height: 9px;
  position: absolute;
  top: 0;
  width: 2px;
}

.close_button:hover {
  background-color: transparent;
  border-color: transparent;
}

.d-none {
  display: none;
}

.thank_you_image {
  text-align: center;
  margin-bottom: 40px;
}

.thank_you_content .cordinator-head {
  margin-bottom: 20px;
}

.thank_you_content h3 {
  font-size: 16px;
  line-height: 24px;
}

.co-list li {
  margin-bottom: 8px;
  font-weight: 400;
}

.co-list {
  margin-bottom: 24px;
}

.call-no a {
  color: #1e61d9;
}

#connect-agent-btn:active .connect-agent-svg {
  fill: #333333;
}

.button-wrapper .connect-agent-svg {
  position: relative;
  margin-left: 6px;
  top: 3px;
  width: 10px;
  fill: #ffffff;
}

.thank_you_open .agent-modal-content {
  padding: 15px 24px 40px;
}

.more_consent {
  display: none;
}

.more_link {
  text-decoration: underline;
  cursor: pointer;
}

.tooltiptext:hover .agent_tooltip {
  visibility: visible;
  opacity: 1;
}

.agent_tooltip {
  position: absolute;
  width: 210px;
  bottom: 20px;
  background-color: #000;
  color: #fff;
  visibility: hidden;
  left: -90px;
  margin-left: 0;
  padding: 10px;
  line-height: 18px;
  text-decoration: none;
  font-size: 13px;
}

.agent_tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 7px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.tooltiptext {
  text-decoration: underline;
  position: relative;
  cursor: pointer;
}

.consent_content {
  position: relative;
}

.hidden {
  display: none;
}

.remove_link a,
.cordinator-head a.vglnk,
.consent_content>a:first-child {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: #333;
}

.agent_tooltip a.vglnk {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: #fff;
}

#first-name-err,
#email_field_err,
#phone_field_err {
  font-size: 12px;
  margin: 4px 0px 0px;
  color: rgb(184, 29, 34);
  position: absolute;
  bottom: 3px;
  font-weight: 400;
}

.close_button_small.mobile {
  display: none;
}

.diagonal_widget_btn {
  cursor: pointer;
}

#form-err {
  font-size: 14px;
  margin: 4px 0 0;
  color: #b81d22;
  position: absolute;
  bottom: -20px;
  font-weight: 600;
}

#connect-agent-btn.spinner {
  position: relative;
}
#connect-agent-btn.spinner .connect-agent-svg, #connect-agent-btn.spinner .btn_content {
  display: none;
}

#connect-agent-btn.spinner .spinner-icon {
  width: 22px;
  height: 22px;
  border: solid 3px transparent;
  border-top-color: #fff !important;
  border-left-color: #fff !important;
  border-radius: 90%;
  position: absolute;
  animation: loading-bar-spinner 1.5s linear infinite;
  right: 42%;
  top: 12px;
}

@keyframes loading-bar-spinner {
0%   { transform: rotate(0deg);   transform: rotate(0deg); }
100% { transform: rotate(360deg); transform: rotate(360deg); }
}

@media screen and (max-width: 767px) {
  .agent-modal-content {
    width: 100%;
    padding: 12px;
    position: absolute !important;
    bottom: 0;
  }

  .input-wrapper .input_field,
  .label-wrapper {
    max-width: 358px;
  }

  .agent_tooltip {
    left: 0;
    width: fit-content;
    font-size: 14px;
    line-height: 21px;
  }

  .agent_tooltip:after {
    display: none;
  }

  .consent {
    position: relative;
  }

  .tooltiptext {
    position: initial;
  }

  .close_button_small.mobile {
    display: block;
  }

  .tooltiptext.showtooltip .agent_tooltip {
    visibility: visible !important;
  }

  .tooltiptext .agent_tooltip {
    visibility: hidden !important;
  }

  #form-err {
    position: relative;
    bottom: 0;
  }
}

@media screen and (max-width: 380px) {
  .agent-modal-content {
    height: 100%;
    overflow-y: scroll;
  }
}

/* model popup style end */
/* Start iFrame embed widgets */
.iframe-widget-container {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}
.local_listings, .iframe-widget-container iframe{
  width: 830px;
  height: 230px;
}

iframe.mortgage_rate_table {
  height: 940px;
}
/* .iframe-widget-container.mortgage-rates-widget-container {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  overflow-y: auto;
  max-height: 800px;
  padding: 10px;
} */

@media (max-width: 996px) {
  .most-expensive-listings-widget {
    width: 280px;
    height: 230px;
  }
}
@media (max-width: 768px){
  iframe.mortgage_rate_table{
    height: 770px
  }
}
@media (max-width: 430px){
  iframe.mortgage_rate_table{
    height: 1190px;
  }
}
@media (max-width: 414px){
  iframe.mortgage_rate_table{
    height: 1215px
  }
}
@media (max-width: 390px){
  iframe.mortgage_rate_table{
    height: 1265px;
  }
}
@media (max-width: 375px){
  iframe.mortgage_rate_table{
    height: 1270px;
  }
}
/* End iFrame embed widgets */