html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

a[href^="tel"]{ color:inherit; text-decoration:none; }
.clearfix:after { content:""; display:table; clear:both; }

/** resize picture */
.resizePicture { position: relative; overflow: hidden; }
.resizePicture img,
.resizePicture iframe,
.resizePicture video {
  position: absolute; top: -9999px; bottom: -9999px; left: -9999px; right: -9999px; max-width:none !important ;max-height:none !important; margin: auto; opacity: 0;
}

/* ratio picture */
.ratioPicture { position: relative; padding-bottom: 66.6%; overflow: hidden; }
.ratioPicture[data-ratio="1/1"] { padding-bottom: 100%; }
.ratioPicture[data-ratio="2/3"] { padding-bottom: 150%; }
.ratioPicture[data-ratio="3/2"] { padding-bottom: 66.6%; }
.ratioPicture[data-ratio="4/3"] { padding-bottom: 75%; }
.ratioPicture[data-ratio="16/9"] { padding-bottom: 56.25%; }
.ratioPicture img,
.ratioPicture iframe,
.ratioPicture video {
  position: absolute;
  top: -9999px;
  bottom: -9999px;
  left: -9999px;
  right: -9999px;
  height: 100%;
  margin: auto;
  max-width: none !important;
  max-height: none !important;
}
.ratioPicture iframe { width: 100%; }

/** TOOLS PAGE */
.loanTool article.tool { margin-bottom: 40px; }
.loanTool input[type="text"],
.loanTool textarea,
.loanTool select {
  width: auto;
}

.loanTool table { width: 100%; }
.loanTool table td { padding: 10px; }

.loanTool label,
.loanTool span.number {
  float: left; width: 50%;
}
.loanTool span.number { text-align: right; }
.loanTool .result { font-weight: bold; }
