@import 'datepicker.css';
@import 'forms.css';

body {
  font-size: 1.6rem;
  font-family: var(--font-body), sans-serif;
  background-color: #ffffff;
  color: #050505;
}

:focus {
  outline-color: #003a56;
}

h1,
h2,
h3,
.h3,
h4,
h5,
h6 {
  color: #003a56;
  margin: 0;
  padding: 0;
}

h1 {
  font-weight: 900;
  font-size: 4.8rem;
  line-height: 5.6rem;
}
h2 {
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 4rem;
  letter-spacing: -0.5px;
}
h3,
.h3 {
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 3.2rem;
}
h4 {
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 2.6rem;
}
h5 {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 2.2rem;
  letter-spacing: 0.025rem;
}
h6 {
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 2.2rem;
  letter-spacing: 0.025rem;
}

p {
  font-size: 1.8rem;
  line-height: 2.6rem;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.copy-lead {
  font-size: 2.2rem;
  line-height: 2.8rem;
  color: #050505;
}
.copy-small {
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2rem;
  letter-spacing: 0.04rem;
}

/* buttons */
button,
a {
  cursor: pointer;
}

.btn {
  padding: 14px 24px;
  letter-spacing: -0.4px;
  display: inline-block;
  border: none;
  border-radius: 4px;
  background: #003a56;
  color: #ffffff;
  font-size: 2rem;
  line-height: 2rem;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: background 0.3s;
  overflow: visible;
}
.btn--small {
  font-size: 1.6rem;
  line-height: 1.6rem;
  padding: 13px 24px;
}
.btn--coral {
  background: #c54d61;
}
.btn:focus {
  outline: none;
  background: #003a56;
  color: #ffffff;
}
.btn--coral:focus {
  color: #ffffff;
  background: #c54d61;
}
.btn--secondary {
  padding: 13px 23px;
  background: #ffffff;
  color: #003a56;
  border: 1px solid #003a56;
}
.btn--secondary.btn--coral {
  color: #c54d61;
  border: 1px solid #c54d61;
}
.btn--secondary:focus {
  background: #ffffff;
  color: #003a56;
  border: 1px solid #003a56;
}
.btn--secondary.btn--coral:focus {
  border-color: #c54d61;
  color: #c54d61;
}
.btn:hover {
  background: #c8dde8;
  color: #003a56;
  border: none;
}
.btn--secondary:hover {
  background: #c8dde8;
  color: #003a56;
  border: 1px solid #c8dde8;
}
.btn--secondary.btn--coral:hover {
  background: #ff637d;
  border: 1px solid #ff637d;
}
.btn--coral:hover {
  background: #ff637d;
  color: #ffffff;
  border: none;
}
.btn--tertiary,
.btn--tertiary:focus {
  background: #f3f9fc;
  color: #003a56;
}
.btn:active,
.btn:active.btn--secondary,
.btn:active.btn--tertiary {
  background: #ebf8ff;
  color: #003a56;
  border: none;
}
.btn:active.btn--secondary.btn--coral {
  color: #c54d61;
  background: #ffecef;
}
.btn:hover,
.btn:active {
  text-decoration: underline;
}
.btn--coral:active {
  background: #ffecef;
  color: #c54d61;
}
.btn:focus::after,
.btn:active::after {
  content: '';
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 7px;
  border: 2px solid #003a56;
}
.btn--coral:active::after,
.btn--coral:focus::after {
  border-color: #c54d61;
}
.btn--secondary:focus::after {
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  left: 50%;
}
.btn[disabled] {
  padding: 12px 22px;
  background: #f5f5f5;
  color: #575756;
  border: 2px solid #cccccc;
  cursor: default;
  box-shadow: none;
}
.btn--secondary[disabled],
.btn--tertiary[disabled] {
  border-width: 1px;
}

.btn--register {
  color: #c54d61;
  border-color: #c54d61;
}
.btn--register.btn:active {
  background: #ffecef;
  color: #c54d61;
  border-color: #c54d61;
}
.btn--register.btn:active::after {
  border-color: #c54d61;
}
.btn--register.btn:focus {
  color: #c54d61;
  border-color: #c54d61;
}
.btn--register.btn:focus::after {
  border-color: #c54d61;
}
.btn--register.btn:hover {
  color: #ffffff;
  background-color: #ff637d;
}

/* forms */
.form__submit--loading {
  color: #003a56;
  background: #ebf8ff;
  padding: 14px 10px;
  pointer-events: none;
}
.form__submit--loading::after {
  content: '';
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 7px;
  border: 2px solid #003a56;
}
.form__submit--loading:focus {
  color: #003a56;
  background: #ebf8ff;
}
.form__spinner {
  background-size: 15px 15px;
  background-repeat: no-repeat;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  background-image: url('../gifs/spinner-blue.gif');
  display: inline-block;
}

/* icon buttons */
.icon-btn {
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  overflow: visible;
}
.icon-btn__inner {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #003a56;
  border-radius: 50%;
  position: relative;
}
.icon-btn .icon-btn__svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}
.icon-btn:hover .icon-btn__inner {
  background: #c8dde8;
}
.icon-btn:hover .icon-btn__svg {
  fill: #003a56;
}
.icon-btn:focus {
  outline: none;
}
.icon-btn:active .icon-btn__inner::after,
.icon-btn:focus .icon-btn__inner::after {
  content: '';
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid #003a56;
}
.icon-btn:active .icon-btn__inner {
  background: #ebf8ff;
}
.icon-btn:active .icon-btn__svg {
  fill: #003a56;
}
.icon-btn[disabled] .icon-btn__inner {
  background: #f5f5f5;
  border: 1px solid #cccccc;
}
.icon-btn[disabled] .icon-btn__svg {
  fill: #575756;
}
.icon-btn--large {
  padding: 0;
}
.icon-btn--large .icon-btn__inner {
  width: 48px;
  height: 48px;
}
.icon-btn--large .icon-btn__svg {
  width: 32px;
  height: 32px;
}
.icon-btn--rev .icon-btn__inner {
  transform: rotate(180deg);
}
.icon-btn--secondary .icon-btn__inner {
  background: #f5f5f5;
}
.icon-btn--secondary .icon-btn__svg {
  fill: #003a56;
}
.icon-btn--secondary:hover .icon-btn__inner::after,
.icon-btn--secondary:active .icon-btn__inner::after,
.icon-btn--secondary:focus .icon-btn__inner::after {
  content: '';
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.icon-btn--secondary[disabled] .icon-btn__inner {
  background: none;
  border: 1px solid #cccccc;
}
.icon-btn--secondary[disabled] .icon-btn__svg {
  fill: #cccccc;
}
.icon-btn--small {
  padding: 10px;
}
.icon-btn--small .icon-btn__inner {
  width: 24px;
  height: 24px;
}
.icon-btn--small .icon-btn__svg {
  width: 12px;
  height: 12px;
}

/* rich text */
.rich-text a:not(.btn) {
  background-color: transparent;
  background-image: linear-gradient(#003a56, #003a56), linear-gradient(#003a56, #003a56);
  background-size: 100% 1px, 100% 1px;
  background-position: 50% calc(100% - 2px), 50% calc(100% - 2px);
  background-repeat: no-repeat, no-repeat;
  border: 1px solid transparent;
  color: #003a56;
  font-size: 1.8rem;
  line-height: 2.6rem;
  position: relative;
  text-decoration: none;
}
.rich-text h2 a:not(.btn),
.rich-text h3 a:not(.btn),
.rich-text h4 a:not(.btn),
.rich-text h5 a:not(.btn),
.rich-text h6 a:not(.btn),
.rich-text sup a:not(.btn) {
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.rich-text a:not(.btn):visited {
  background-size: 100% 1px, 33% 1px;
  background-position: 50% calc(100% - 2px), 50% calc(100%);
}
.rich-text a:not(.btn):focus {
  border-color: #003a56;
  border-radius: 5px;
  outline: none;
}
.rich-text a:not(.btn):hover {
  background-image: linear-gradient(#003a56, #003a56), linear-gradient(#003a56, #003a56);
  background-size: 100% 1px, 100% 1px;
  background-position: 50% calc(100% - 2px), 50% calc(100%);
}
.rich-text a:not(.btn):focus:hover {
  background-image: none;
}
.rich-text .copy-lead a,
.rich-text.copy-lead a {
  font-size: 2.2rem;
  line-height: 2.8rem;
}
.rich-text .copy-small a,
.rich-text.copy-small p,
.rich-text.copy-small a {
  font-size: 1.4rem;
  line-height: 1.8rem;
}
.rich-text.copy-small a:not(.btn) {
  background: none;
  border-radius: 0;
  border-bottom: 1px solid #003a56;
}
.rich-text.copy-small a:not(.btn):hover {
  background: none;
  border-bottom-style: double;
  border-bottom-width: 3px;
}
.rich-text.copy-small a:not(.btn):focus {
  border-radius: 5px;
}

/* rich text snippets */
.rich-text h2 {
  margin: 0;
  padding: 14px 0 13px;
}
.rich-text h3 {
  margin: 0;
  padding: 15px 0 14px;
}
.rich-text h4 {
  margin: 0;
  padding: 13px 0;
}
.rich-text h5 {
  margin: 0;
  padding: 12px 0 4px;
}
.rich-text h6 {
  margin: 0;
  padding: 15px 0 8px;
}
.rich-text h2 + p,
.rich-text h3 + p,
.rich-text h4 + p,
.rich-text h5 + p,
.rich-text h6 + p {
  margin-top: 0;
}

.rich-text strong,
.rich-text b {
  font-weight: 700;
}
.rich-text p {
  margin: 15px 0;
}
.rich-text p:last-child {
  margin-bottom: 0;
}
.rich-text p:first-child {
  margin-top: 0;
}
.rich-text .btn {
  margin: 5px 0 8px;
  background-image: none;
}
.rich-text .btn--secondary {
  color: #003a56;
  border: 1px solid #003a56;
}
.rich-text .btn:hover {
  border: none;
  color: #003a56;
  background-image: none;
  text-decoration: underline;
}
.rich-text .btn:focus {
  border: none;
  background: #003a56;
}
.rich-text .btn:active {
  color: #003a56;
  background: #ebf8ff;
  text-decoration: underline;
}
.rich-text .btn:hover::after,
.rich-text .btn:focus::after {
  background: none;
}
.rich-text .btn:focus::after,
.rich-text .btn:active::after {
  content: '';
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 7px;
  border: 2px solid #003a56;
  background: none;
}
.rich-text .btn--secondary:focus {
  background: none;
  border: 1px solid #003a56;
}
.rich-text .btn--secondary:hover {
  border: 1px solid #c8dde8;
}
.rich-text .btn--secondary:active {
  text-decoration: underline;
}
.rich-text .btn:focus:hover {
  background-color: transparent;
  text-decoration: underline;
}
.rich-text .btn--secondary:focus:hover {
  color: #003a56;
  border: 1px solid #f3f9fc;
  background: #f3f9fc;
}
.rich-text.copy-small .btn {
  padding: 13px 24px 11px;
  font-weight: 400;
  border-bottom: none;
}
.rich-text.copy-small .btn--secondary {
  padding: 12px 24px 10px;
  border-bottom: 1px solid #003a56;
}
.rich-text.copy-small .btn:hover {
  border-bottom: none;
  text-decoration: underline;
}
.rich-text .copy-small .btn {
  padding: 13px 24px 11px;
  font-weight: 400;
}
.rich-text .copy-small .btn--secondary {
  padding: 12px 24px 10px;
}

.rich-text-table {
  margin: 10px 0;
  overflow-x: auto;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.8rem;
  font-weight: 400;
}
.rich-text-table table {
  border-collapse: separate;
  border-spacing: 0 2px;
  width: 100%;
}
.rich-text-table th {
  color: #003a56;
  background: #f3f9fc;
  font-weight: 400;
}
.rich-text-table th,
.rich-text-table td {
  padding: 19px 20px;
}
.rich-text-table thead + tbody tr:nth-child(odd) {
  background: none;
}
.rich-text-table thead + tbody tr:nth-child(even) {
  background: #f5f5f5;
}
.rich-text-table tbody tr:nth-child(odd) {
  background: #f5f5f5;
}
.rich-text-table caption {
  margin: 5px 0;
  text-align: left;
}

/* rich text snippets - list types */
.list {
  margin: 10px 0;
  list-style-type: disc;
  font-size: 1.8rem;
  line-height: 2.5rem;
  font-weight: 400;
}
.list--tick,
.list--clock,
.list--ordered {
  list-style-type: none;
}
.list li {
  position: relative;
  margin-bottom: 17px;
  margin-left: 29px;
}
.list li::before {
  position: absolute;
  content: '';
  display: block;
  top: 2px;
  left: -30px;
  font-size: 1.8rem;
  line-height: 2.5rem;
}
.list--text-color {
  color: #003a56;
}
.list--lead {
  font-size: 2.2rem;
  line-height: 2.8rem;
}
.list--tick li::before {
  width: 20px;
  height: 20px;
  background: var(--icon-tick);
  background-position: center;
  background-size: cover;
}
.list--tick.list--lead li::before {
  top: 3px;
}
.list--clock li::before {
  width: 19px;
  height: 19px;
  left: -28px;
  background: var(--icon-clock);
}
.list--clock.list--lead li::before {
  top: 5px;
}
.list--ordered li {
  counter-increment: count;
}
.list--ordered li::before {
  content: counter(count);
  left: -28px;
  top: 0;
  color: #c54d61;
}

/* balance */
.balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.balance__amount {
  font-weight: 700;
  color: #003a56;
}
.balance__details {
  padding: 5px 14px 3px;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(5, 5, 5, 0.1);
  font-size: 1.4rem;
  line-height: 1.6rem;
  background: #00bfd6;
  color: #003a56;
  overflow: hidden;
  white-space: nowrap;
}
.balance__details--arrears {
  color: #ffffff;
  background: #dd304f;
}

@media screen and (max-width: 768px) {
  p {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.4rem;
  }
  h1 {
    font-size: 3.2rem;
    line-height: 4rem;
  }
  h2 {
    font-size: 2.6rem;
    line-height: 3.2rem;
  }
  h3 {
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
  h4 {
    font-size: 2rem;
    line-height: 2.6rem;
  }

  .list,
  .list li::before {
    font-size: 1.6rem;
    line-height: 2.4rem;
    font-weight: 500;
  }

  .copy-small,
  .rich-text.copy-small a,
  .general-link--small {
    font-size: 1.4rem;
    line-height: 2rem;
  }

  .rich-text h2 {
    padding: 16px 0 10px;
  }
  .rich-text h3 {
    padding: 17px 0 11px;
  }
  .rich-text h4 {
    padding: 12px 0 7px;
  }
  .rich-text h5 {
    padding: 14px 0 5px;
  }
  .rich-text h6 {
    padding: 16px 0 6px;
  }
  .rich-text p {
    margin: 11px 0;
  }
  .rich-text .copy-lead a {
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
  .rich-text a:not(.btn) {
    font-size: 1.6rem;
    line-height: 2.4rem;
    font-weight: 500;
  }
  .copy-lead a:not(.btn) {
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
  .copy-small a:not(.btn) {
    font-size: 1.4rem;
    line-height: 2rem;
  }
}
