html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1 0 auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Number with unit: prefix (e.g. £) on the left of the number field */
.input-group-number-with-unit {
  width: min(100%, 16rem);
  max-width: 100%;
}

.input-group-number-with-unit > .form-control[type="number"] {
  flex: 1 1 auto;
  width: 1%;
  min-width: 4.5rem;
  text-align: left;
}

.input-group-number-with-unit > .input-group-number-with-unit__prefix {
  flex: 0 0 auto;
  white-space: nowrap;
}

.beneficiary-application-sections .input-group-number-with-unit > .form-control:focus {
  z-index: 3;
}

.beneficiary-application-sections .input-group-number-with-unit > .input-group-text {
  background-color: var(--bs-tertiary-bg, #e9ecef);
  color: var(--bs-body-color, #212529);
  font-weight: 500;
}

.aspire-lookup-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: text-top;
}

.aspire-lookup-indicator--found {
  color: #198754;
  border-color: #198754;
}

.aspire-lookup-indicator--missing {
  color: #dc3545;
  border-color: #dc3545;
}