/* Normalise */
.bmi-calc *,
.bmi-calc *::before,
.bmi-calc *::after {
  box-sizing: border-box;
}
.bmi-calc {
  font-size: 14px;
  line-height: 1.42857;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #777;
  background-color: #fff;
}
.bmi-calc fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.bmi-calc label {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 5px;
  max-width: 100%;
}
.bmi-calc input::-moz-placeholder {
  color: #999;
  opacity: 1;
}
.bmi-calc input:-ms-input-placeholder {
  color: #999;
}
.bmi-calc input::-webkit-input-placeholder {
  color: #999;
}
.bmi-calc table {
  border-collapse: collapse;
  border-spacing: 0;
  background-color: transparent;
  color: inherit;
  font-size: inherit;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}
.bmi-calc table > tbody > tr > td,
.bmi-calc table > tbody > tr > th,
.bmi-calc table > tfoot > tr > td,
.bmi-calc table > tfoot > tr > th,
.bmi-calc table > thead > tr > td,
.bmi-calc table > thead > tr > th {
  border-top: 1px solid #ddd;
  line-height: 1.42857;
  padding: 8px;
  vertical-align: top;
}
.bmi-calc a {
  color: #007096;
}

/* Utilities */
.bmi-calc .hide {
  display: none !important;
}
.bmi-calc .text-center {
  text-align: center;
}
.bmi-calc .list-inline {
  list-style: outside none none;
  margin-left: -5px;
  padding-left: 0;
}
.bmi-calc .list-inline > li {
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}
.bmi-calc .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Type */
.bmi-calc {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
}
.bmi-calc h1 {
  font-weight: 700;
  font-family: Futura, "FuturaBT-Heavy", "Trebuchet MS", Arial, sans-serif;
  color: #007096;
  font-size: 23px;
  line-height: 1.2;
}
.bmi-calc h2 {
  font-weight: normal;
  font-family: FeltTipRoman, Chalkboard, "Marker Felt", cursive;
  font-size: 23px;
  line-height: 1.5;
  color: #e5721d;
}
.bmi-calc ul,
.bmi-calc ol {
  margin-top: 0;
  margin-bottom: 10px;
}
.bmi-calc p {
  margin: 0 0 10px;
}

/* Alerts */
.bmi-calc .alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.bmi-calc .alert-link {
  font-weight: bold;
}
.bmi-calc .alert > p,
.bmi-calc .alert > ul {
  margin-bottom: 0;
}
.bmi-calc .alert > p + p {
  margin-top: 5px;
}
.bmi-calc .alert-info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #31708f;
}
.bmi-calc .alert-info .alert-link {
  color: #31708f;
}
.bmi-calc .alert-danger {
  background-color: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
}

/* Form fields */
.bmi-calc .form-control {
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  color: #555;
  display: block;
  font-size: 12px;
  height: 30px;
  line-height: 1.5;
  padding: 5px 10px;
  transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
  width: 100%;
}
.bmi-calc .form-control:focus {
  border-color: #66afe9;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset,
    0 0 8px rgba(102, 175, 233, 0.6);
  outline: 0 none;
}
/* Chrome, Safari, Edge, Opera */
.bmi-calc input::-webkit-outer-spin-button,
.bmi-calc input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.bmi-calc input[type="number"] {
  -moz-appearance: textfield;
}

.bmi-calc input[type="checkbox"],
.bmi-calc input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  line-height: normal;
  margin: 4px 0 0;
}
.bmi-calc .checkbox input[type="checkbox"],
.bmi-calc .checkbox-inline input[type="checkbox"],
.bmi-calc .radio input[type="radio"],
.bmi-calc .radio-inline input[type="radio"] {
  margin-left: -20px;
  position: absolute;
}
.bmi-calc .checkbox-inline,
.bmi-calc .radio-inline {
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  margin-bottom: 0;
  padding-left: 20px;
  position: relative;
  vertical-align: middle;
}
.bmi-calc .checkbox-inline + .checkbox-inline,
.bmi-calc .radio-inline + .radio-inline {
  margin-left: 10px;
  margin-top: 0;
}
.bmi-calc .has-error .help-block,
.bmi-calc .has-error .control-label,
.bmi-calc .has-error .radio,
.bmi-calc .has-error .checkbox,
.bmi-calc .has-error .radio-inline,
.bmi-calc .has-error .checkbox-inline,
.bmi-calc .has-error.radio label,
.bmi-calc .has-error.checkbox label,
.bmi-calc .has-error.radio-inline label,
.bmi-calc .has-error.checkbox-inline label,
.bmi-calc .bmi-error {
  color: #a94442;
}
.bmi-calc .has-error .form-control {
  border-color: #a94442;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.bmi-calc .has-error .form-control:focus {
  border-color: #843534;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}
.bmi-calc .has-error .input-group-addon {
  color: #a94442;
  border-color: #a94442;
  background-color: #f2dede;
}

/* Buttons */
.bmi-calc .btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.bmi-calc .btn:focus,
.bmi-calc .btn:active:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
.bmi-calc .btn:hover,
.bmi-calc .btn:focus {
  text-decoration: none;
}
.bmi-calc .btn.active,
.bmi-calc .btn:active {
  background-image: none;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125) inset;
  outline: 0 none;
}
.bmi-calc .btn-default {
  color: #fff;
  background-color: #007096;
  border-color: #007c9b;
}
.bmi-calc .btn-default:hover {
  color: #fff;
  background-color: #006881;
  border-color: #004b5d;
}
.bmi-calc .btn-default:not(.disabled):active,
.bmi-calc .btn-default:not(.disabled).active {
  color: #fff;
  background-color: #006881;
  border-color: #004b5d;
}
.bmi-calc .btn-primary {
  color: #000;
  background-color: #ffcc00;
  border-color: #e6b800;
}
.bmi-calc .btn-primary:hover {
  color: #fff;
  background-color: #cca300;
  border-color: #cca300;
}
.bmi-calc .btn-primary:not(.disabled):active,
.bmi-calc .btn-primary:not(.disabled).active {
  color: #000;
  background-color: #cca300;
  border-color: #a88700;
}
.bmi-calc .btn-lg {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}

/* Button group */
.bmi-calc .btn-group {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.bmi-calc .btn-group > .btn {
  position: relative;
  float: left;
}
.bmi-calc .btn-group > .btn:hover,
.bmi-calc .btn-group > .btn:focus,
.bmi-calc .btn-group > .btn:active {
  z-index: 2;
}
.bmi-calc .btn-group .btn + .btn {
  margin-left: -1px;
}
.bmi-calc .btn-group > .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}
.bmi-calc .btn-group > .btn:first-child {
  margin-left: 0;
}
.bmi-calc .btn-group > .btn:first-child:not(:last-child) {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.bmi-calc .btn-group > .btn:last-child:not(:first-child) {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.bmi-calc [data-toggle="buttons"] > .btn input[type="radio"],
.bmi-calc [data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
.bmi-calc [data-toggle="buttons"] > .btn input[type="checkbox"],
.bmi-calc [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

/* Container */
.bmi-calc #w1 {
  background-color: #e9ecef;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 20px;
}
.bmi-calc #calculator-panel,
.bmi-calc #results-panel {
  background-color: #fff;
  padding: 20px;
}
.bmi-calc #results-panel {
  margin-top: 20px;
}

/* Columns */
.bmi-calc .split-row {
  margin-left: -15px;
  margin-right: -15px;
  display: flex;
  flex-wrap: wrap;
}
.bmi-calc .split-half {
  padding-left: 15px;
  padding-right: 15px;
}
@media (min-width: 768px) {
  .bmi-calc .split-half {
    width: 50%;
    min-width: 230px;
    display: flex;
    flex-direction: column;
  }
}

.bmi-calc .split-half  .intro {
  min-height: 5rem;
}

.bmi-calc .inline-form {
  display: flex;
  justify-content: space-between;
}
.bmi-calc .inline-form-group {
  width: 48%;
}

/* Form */
.bmi-calc .panel {
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
  padding: 15px;
}
.bmi-calc .form-group {
  margin-bottom: 15px;
}
.bmi-calc .input-group {
  border-collapse: separate;
  display: table;
  position: relative;
}
.bmi-calc .input-group .form-control {
  float: left;
  margin-bottom: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}
.bmi-calc .input-group .form-control,
.bmi-calc .input-group-addon {
  display: table-cell;
}
.bmi-calc .input-group-addon {
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding: 6px 12px;
  text-align: center;
}
.bmi-calc .input-group .form-control:first-child,
.bmi-calc .input-group-addon:first-child {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.bmi-calc .input-group .form-control:last-child,
.bmi-calc .input-group-addon:last-child {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.bmi-calc .input-group-addon:first-child {
  border-right: 0 none;
}
.bmi-calc .input-group-addon:last-child {
  border-left: 0 none;
}

/* Results */
.bmi-calc .result-row {
  margin-left: -15px;
  margin-right: -15px;
}
.bmi-calc .result-row:before,
.bmi-calc .result-row:after {
  content: " ";
  display: table;
}
.bmi-calc .result-row:after {
  clear: both;
}
.bmi-calc .result-push,
.bmi-calc .result-pull {
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  position: relative;
}
@media (min-width: 768px) {
  .bmi-calc .result-push,
  .bmi-calc .result-pull {
    float: left;
  }
  .bmi-calc .result-push {
    width: 41.6667%;
    left: 58.3333%;
  }
  .bmi-calc .result-pull {
    width: 58.3333%;
    right: 41.6667%;
  }
}
.bmi-calc #results-panel .alert h1 {
  margin: 0;
}
.bmi-calc #results-panel .alert #bmi-score {
  color: #e5721d;
}
.bmi-calc #bmi-cta {
  background-color: #fcecd9;
  margin-bottom: 20px;
  padding: 15px;
}
.bmi-calc #bmi-cta h1 {
  color: #e5721d;
}
.bmi-calc #results-panel .active td {
  border-color: #ffcc00;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
}
.bmi-calc #results-panel .active#bmi-obesity td,
.bmi-calc #results-panel .active#waist-high-risk td {
  border-color: #d50032;
  background-color: #d50032;
  color: #fff;
}
.bmi-calc #results-panel .active#bmi-overweight td,
.bmi-calc #results-panel .active#waist-at-risk td {
  border-color: #e5721d;
  background-color: #e5721d;
  color: #fff;
}
.bmi-calc #results-panel .active#bmi-healthy-weight td,
.bmi-calc #results-panel .active#waist-low-risk td {
  border-color: #007a33;
  background-color: #007a33;
  color: #fff;
}
@media (min-width: 768px) {
  .bmi-calc #results-panel .active .arrow {
    position: relative;
    margin-left: -8px;
    padding-left: -8px;
  }
  .bmi-calc #results-panel .active .arrow:after {
    right: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 204, 0, 0);
    border-right-color: #ffcc00;
    border-width: 19px;
    top: 50%;
    margin-top: -19px;
  }
  .bmi-calc #results-panel .active#bmi-obesity .arrow:after,
  .bmi-calc #results-panel .active#waist-high-risk .arrow:after {
    border-right-color: #d50032;
  }
  .bmi-calc #results-panel .active#bmi-overweight .arrow:after,
  .bmi-calc #results-panel .active#waist-at-risk .arrow:after {
    border-right-color: #e5721d;
  }
  .bmi-calc #results-panel .active#bmi-healthy-weight .arrow:after,
  .bmi-calc #results-panel .active#waist-low-risk .arrow:after {
    border-right-color: #007a33;
  }
}

/* CTAs */
.bmi-calc .cta-tile {
  border: 10px solid #fff;
  display: block;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.bmi-calc .cta-tile img {
  width: 100%;
  height: 162px;
  -o-object-fit: cover;
  object-fit: cover;
}

.bmi-calc .cta-tile .page-header {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  max-width: 25ch;
}

.bmi-calc .cta-tile .page-header .h1 {
  font-size: 1.5rem;
  line-height: 1.75;
}

.bmi-calc .cta-tile:hover {
  outline: 1px solid #007096;
}
