﻿/** Base Blazor Styles */
#app {
  max-width: 100vw;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

/** Theme Styles */
html, body, p, a, * {
  font-family: "Merriweather Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
}

html, body, * {
  box-sizing: border-box !important;
}

/** Fonts */
@font-face {
  font-family: "Merriweather Sans";
  font-style: normal;
  font-weight: 900;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-ExtraBold.ttf);
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: italic;
  font-weight: 900;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-ExtraBoldItalic.ttf);
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-Bold.ttf);
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: italic;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-BoldItalic.ttf);
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-Regular.ttf);
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-Italic.ttf);
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: normal;
  font-weight: 300;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-Light.ttf);
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: italic;
  font-weight: 300;
  font-stretch: normal;
  font-display: swap;
  src: url(/static/fonts/MerriweatherSans-LightItalic.ttf);
}
p, a, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

/** Colors */
/** Media Queries */
:root {
  --theme-black: #090C02;
  --theme-blue: #456990;
  --theme-gray: #5E6472;
}

hr {
  border: none;
  background: #1ea888;
  min-height: 3px;
  width: 100%;
}
hr.secondary {
  min-height: 2px;
  background: rgba(2, 10, 12, 0.35);
}

/** Colors */
/** Media Queries */
/** Buttons */
button, .button {
  box-sizing: border-box;
  border-radius: 2px;
  padding: 12px 24px;
  background: #eee;
  display: inline-block;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 200ms ease;
  font-size: 11pt;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
button:hover, .button:hover {
  background: #ddd;
}
button.large, .button.large {
  padding: 18px 32px;
  font-size: 14pt;
  letter-spacing: 1px;
}
button.primary, .button.primary {
  background: #020a0c;
  color: white;
}
button.primary:hover, .button.primary:hover {
  background: #282f30;
}
button.secondary, .button.secondary {
  background: #1ea888;
  color: white;
}
button.secondary:hover, .button.secondary:hover {
  background: #1a9276;
}

/** Colors */
/** Media Queries */
/** Calculator */
.calculator {
  background: #fafafa;
  padding-bottom: 72px;
}
.calculator > header {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover !important;
  background-blend-mode: darken;
}
.calculator > header > h1 {
  color: white;
  font-size: 2.75em;
  font-weight: bolder;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
  margin-top: -2.5em;
  max-width: 500px;
  text-align: center;
  letter-spacing: 0;
}
.calculator > section {
  background: white;
  border-radius: 2px;
  min-height: 300px;
  max-width: 650px;
  /*width: 100vw;*/
  padding: 2em;
  margin-top: -7.5em;
  margin-left: auto;
  margin-right: auto;
}
@media only screen and (min-width: 700px) {
  .calculator > section {
    padding: 2em 4em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  }
}
.calculator > section > form {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.calculator > section .calculator-intro {
  font-size: 1.275em;
  font-weight: 400;
  line-height: 1.5em;
  text-align: center;
  margin-bottom: 1em;
}
.calculator > section .calculator-submit {
  width: 100%;
  padding-top: 2em;
  display: flex;
  flex-direction: column;
}
.calculator > section .disclaimer {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 2.5em;
  font-size: 10pt;
  font-weight: 200;
}
.calculator > section .disclaimer > p:not(:last-child) {
  margin-bottom: 1em;
}

.financing-row {
  padding: 0.75em 1em;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid #eee;
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.5em;
  position: relative;
}
@media only screen and (min-width: 700px) {
  .financing-row {
    display: grid;
    grid-template-columns: 25% 25% 50%;
  }
}
.financing-row img.close {
  cursor: pointer;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 24px;
  height: 24px;
  z-index: 2;
}
.financing-row div {
  flex-basis: 47.5%;
}
.financing-row div label {
  font-size: 9pt !important;
  margin-bottom: 0.25rem;
  display: block;
}
.financing-row div[data-apr] {
  max-width: 100%;
  flex-basis: 1;
  font-size: 14pt;
  font-weight: bolder;
}
.financing-row div[data-apr] small {
  font-size: 10pt;
  font-weight: 100 !important;
  padding: 0 4px;
}
.financing-row div[data-apr] .form-control > div {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.financing-row div[data-apr] .form-control > div input {
  min-width: 65px !important;
}
.financing-row div[data-apr] .form-control > div > small:first-child {
  padding-left: 0 !important;
}
.financing-row div[data-apr] .form-control > div > small:last-child {
  padding-right: 0 !important;
}
.financing-row div[data-apr] p {
  padding-top: 5px;
  padding-left: 6px;
}

/** Colors */
/** Media Queries */
/** Navigation -- mobile first */
nav.navbar {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
nav.navbar > header.navbar-header {
  height: 60px;
  padding: 0 2em;
  background: var(--theme-black);
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
nav.navbar > header.navbar-header > .navbar-brand {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
}
nav.navbar > header.navbar-header > .navbar-brand > img {
  max-height: 36px;
  width: auto;
  margin-right: 0.5em;
}
nav.navbar > header.navbar-header > .navbar-brand > p {
  font-size: 1.25em;
  line-height: 1rem;
  font-weight: bold;
}
nav.navbar > header.navbar-header > .navbar-toggler {
  background: transparent;
  padding: 0;
}
nav.navbar > header.navbar-header > .navbar-toggler > div {
  display: flex;
  align-items: center;
}
nav.navbar > header.navbar-header > .navbar-toggler > div > svg {
  margin-bottom: -2px;
}
nav.navbar > section.navbar-items {
  background: #111;
  transition: max-height 250ms ease-in;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
nav.navbar > section.navbar-items > a {
  transition: background 200ms ease;
  padding: 16px 20px;
  color: white;
  text-decoration: none;
  font-size: 12pt;
  font-weight: bolder;
  transition: color 250ms ease;
}
nav.navbar > section.navbar-items > a:hover {
  color: #1ea888;
}
@media only screen and (max-width: 699px) {
  nav.navbar.expanded > section.navbar-items {
    max-height: 100vh;
  }
  nav.navbar.expanded > section.navbar-items > a {
    position: relative;
  }
  nav.navbar.expanded > section.navbar-items > a::after {
    transition: opacity 200ms ease;
    opacity: 0;
    position: absolute;
    top: 29.5%;
    right: 30px;
    content: ">";
    font-weight: bold;
  }
  nav.navbar.expanded > section.navbar-items > a:not(:last-child) {
    border-bottom: 1px solid #333;
  }
  nav.navbar.expanded > section.navbar-items > a:hover {
    cursor: pointer;
    background: #222;
  }
  nav.navbar.expanded > section.navbar-items > a:hover::after {
    opacity: 1;
  }
}
@media only screen and (min-width: 700px) {
  nav.navbar {
    flex-direction: row;
    justify-content: flex-start;
  }
  nav.navbar > header.navbar-header {
    flex-grow: 0;
  }
  nav.navbar > header.navbar-header > button {
    display: none;
  }
  nav.navbar > section.navbar-items {
    background: var(--theme-black);
    display: flex;
    align-items: center;
    flex-grow: 1;
    flex-direction: row;
    max-height: 100vh !important;
  }
  nav.navbar > section.navbar-items > div > a {
    font-weight: bold;
  }
}

/** Colors */
/** Media Queries */
/** Popovers */
div[data-popover] {
  display: inline-block;
  position: relative;
}
div[data-popover] > span[data-popover-icon] {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #020a0c;
  margin-left: 0.25em;
  margin-bottom: -2px;
  border-radius: 99em;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}
div[data-popover] > span[data-popover-icon] > span {
  color: white;
  font-weight: bold;
  font-size: 10pt;
  margin-top: 3px;
  margin-left: 0;
}
div[data-popover] > div[data-popover-content] {
  visibility: hidden;
  width: 200px;
  background: white;
  color: #020a0c;
  padding: 0.75em 1em;
  border-radius: 4px;
  position: absolute;
  left: calc(-100px - 0.5em);
  top: 1.5em;
  z-index: 2;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
div[data-popover]:hover > div[data-popover-content] {
  visibility: visible;
}

/** Colors */
/** Media Queries */
/** Site Loading Screen */
#app > .app-loader {
  background: #333;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#app > .app-loader > .loading-box {
  box-sizing: border-box;
  width: clamp(300px, 100%, 450px);
  max-width: 100vw;
  min-height: 100%;
  background: rgba(2, 10, 12, 0.75);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2em 3em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media only screen and (min-width: 700px) {
  #app > .app-loader > .loading-box {
    min-height: 100px;
  }
}
#app > .app-loader > .loading-box > .loading-box__title {
  margin-top: 1rem;
  font-size: 2rem;
}
#app > .app-loader > .loading-box img.loading-box__logo {
  display: inline-block;
  max-width: 64px;
  height: auto;
}
#app > .app-loader > .loading-box > .loading-box__spinner {
  margin: 1.5em 0;
}

/** Colors */
/** Media Queries */
.form-control {
  display: block;
  gap: 0.25em;
  padding: 0.25em;
}
@media only screen and (max-width: 700px) {
  .form-control:not(:last-child) {
    margin-bottom: 1em;
  }
}
.form-control > label {
  color: #333;
  font-size: 10.5pt;
  font-weight: 300;
  padding-left: 2px;
  margin-bottom: 6px;
  display: block;
}
.form-control > input:not([type=radio]) {
  width: 100%;
}
.form-control.inline {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.form-control.inline > label {
  margin-top: 1px;
  margin-bottom: 0;
}

.input-control {
  display: block;
  position: relative;
}
.input-control.percent::after {
  position: absolute;
  content: "%";
  display: block;
  right: 0.75em;
  top: 27.5%;
  font-weight: 300;
  font-size: 10pt;
  color: #888;
}
.input-control.percent > input[type=text],
.input-control.percent > input[type=number] {
  padding-right: 2em;
  text-align: right;
  -moz-appearance: textfield;
}
.input-control.percent > input[type=text]::-webkit-outer-spin-button, .input-control.percent > input[type=text]::-webkit-inner-spin-button,
.input-control.percent > input[type=number]::-webkit-outer-spin-button,
.input-control.percent > input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-control.money::before {
  position: absolute;
  content: "$";
  display: block;
  left: 1em;
  top: 27.5%;
  font-weight: 300;
  font-size: 10pt;
  color: #888;
}
.input-control.money input[type=text],
.input-control.money input[type=number] {
  text-indent: 1.125em;
}
.input-control > input {
  width: 100%;
}

/** Colors */
/** Media Queries */
input[type=text],
input[type=number] {
  border: 2px solid #eee;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  padding: 8px;
  outline: none;
  transition: border-color 200ms ease;
  min-width: 0 !important;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}
input[type=text]:focus,
input[type=number]:focus {
  border-color: #62e3c5;
  box-shadow: 0 1px 3px rgba(30, 168, 136, 0.5);
}
input[type=text]::placeholder,
input[type=number]::placeholder {
  color: gray;
}
input[type=text].valid.modified:not([type=checkbox]),
input[type=number].valid.modified:not([type=checkbox]) {
  border-color: #26b050;
  box-shadow: 0 1px 3px rgba(0, 128, 0, 0.25);
}
input[type=text].invalid,
input[type=number].invalid {
  border-color: red;
}

input[type=radio] {
  display: inline-block;
}

/** Colors */
/** Media Queries */
section.lander header.hero.lander {
  background: rgba(0, 0, 0, 0.6) url(/static/img/hero/hero-lander.jpg) no-repeat center center;
  background-size: cover;
  background-blend-mode: darken;
  color: white;
}
section.lander .calculator-suggestions {
  background: rgba(2, 10, 12, 0.99);
  padding: 6em 2em;
}
section.lander .calculator-suggestions .calculator-suggestion-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5em;
}
@media only screen and (max-width: 699px) {
  section.lander .calculator-suggestions .calculator-suggestion-grid > div:not([data-calc-suggestion]) {
    min-height: auto;
  }
}
@media only screen and (min-width: 700px) {
  section.lander .calculator-suggestions .calculator-suggestion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 1200px) {
  section.lander .calculator-suggestions .calculator-suggestion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div {
  min-height: 175px;
  padding: 1em;
  transition: all 200ms ease;
  background-blend-mode: darken;
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div[data-calc-suggestion]:hover {
  transform: scale(1.1);
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div h3, section.lander .calculator-suggestions .calculator-suggestion-grid > div a {
  color: white;
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div h3 {
  font-weight: bolder;
  font-size: 1.75em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div:not([data-calc-suggestion]) {
  background: black;
  border: 3px solid #1ea888;
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div:not([data-calc-suggestion]) h3 {
  font-weight: 200;
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div > a {
  height: 100%;
  display: flex;
  align-items: end;
  text-decoration: none;
}
section.lander .calculator-suggestions .calculator-suggestion-grid > div[data-calc-suggestion=property-investment] {
  background: rgba(0, 0, 0, 0.5) url(/static/img/hero-mini/property-investment.png) no-repeat center center;
  background-size: cover;
}
