:root {
  --outer-width: 960px;
  --breakpoint-midi: 480px;
  --font-size-reg: 1.2rem;
  --font-size-mid: 1.3rem;
  --font-size-lead: 1.6rem;
  --font-size-lge: 2rem;
  --line-height-lead: 1.3;
  --line-height-reg: 1.45;
  --line-height-lge: 1.5;
  --colour-black: rgb(0, 0, 0);
  --colour-mid: rgba(0, 0, 0, 0.7);
  --colour-white: rgb(255, 255, 255);
  --colour-red: #e53212;
  --colour-blue: #4168c2;
  --spacing-common: 15px;
  --spacing-double: calc(var(--spacing-common) * 2);
  --transition-speed: 0.1s;
  --checkbox-size: 1.1em;
}

@font-face {
  font-family: 'BarlowRegular';

  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v12/7cHpv4kjgoGqM7E_DMs5ynghnQ.woff2)
    format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'BarlowHeading';

  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v12/7cHqv4kjgoGqM7E30-8s51ostz0rdg.woff2)
    format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

html,
body {
  padding: 0;
}

body {
  font-family: 'BarlowRegular', Helvetica, 'Trebuchet MS', Verdana, sans-serif;
  font-size: var(--font-size-mid);
  color: var(--colour-black);
  line-height: var(--line-height-reg);
}

header,
main,
footer {
  padding: 0 var(--spacing-common);
  width: auto;
  max-width: var(--outer-width);
  margin: 0 auto;
}
header {
  text-align: center;
}

.hero-block {
  width: auto;
  max-width: var(--outer-width);

  img {
    width: 100%;
    border-radius: 15px;
  }
}

hr {
  border: 0;
  margin: 0;
  height: 1px;
  background: var(--colour-black);
}

h1,
h2,
h3 {
  font-family: 'BarlowHeading', Helvetica, 'Trebuchet MS', Verdana, sans-serif;
  font-size: var(--font-size-lge);
  margin: 0 0 var(--spacing-common);
}

#compOver h1 {
  margin: 25px 0 20px;
}

/* feedback block following successful form submission */
#compActive {
  .completed-success & {
    width: 80%;
    margin: 0 auto;
  }
}

p {
  margin: 0 0 var(--spacing-common);
}

a {
  color: inherit;
  text-decoration: underline;
}

.lead {
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
}

a:hover {
  text-decoration: none;
}

strong,
b {
  color: var(--colour-dark);
}

ul {
  list-style-type: none;
  margin: 0;
  padding-left: calc(var(--spacing-common) * 2.75);
}

.uppercase {
  text-transform: uppercase;
}

/* ///////////////////////////////////////////////////////////////////////////// */

.brand-logo {
  padding: var(--spacing-double) 0 calc(var(--spacing-double) - 5px);
  align-items: center;
  display: inline-block;
  margin: 0 auto;

  & img {
    width: 90px;
    height: auto;
  }
}

fieldset {
  border: none;
  padding: 0;
  width: 90%;
}

.input-wrap {
  display: block;
  width: 100%;
}
input {
  &[type='text'],
  &[type='email'] {
    border: 1px solid var(--colour-black);
    border-radius: 0;
    padding: var(--spacing-common);
    margin-bottom: var(--spacing-double);
    display: block;
    width: calc(100% - (var(--spacing-common) * 2));
  }
  /* style the placeholders */
  &[type="text"]::placeholder,
 &[type="email"]::placeholder,
 /* Chrome/Opera/Safari */
 &[type="text"]::-webkit-input-placeholder,
 &[type="email"]::-webkit-input-placeholder,
 /* Firefox 19+ */
 &[type="text"]::-moz-placeholder,
 &[type="email"]::-moz-placeholder,
 /* Firefox 18+ */
 &[type="text"]:-moz-placeholder,
 &[type="email"]:-moz-placeholder,
 /* IE 10+ */
 &[type="text"]:-ms-input-placeholder,
 &[type="email"]:-ms-input-placeholder {
    color: var(--colour-mid);
    font-size: 1rem;
    text-transform: capitalize !important;
  }

  &[type='text']#postcode::placeholder {
    text-transform: capitalize !important;
  }
  &[type='text']#postcode {
    text-transform: uppercase;
  }
}

sup {
  font-size: var(--font-size-mid);
}
.asterisk-wrap {
  position: relative;
}
.asterisk {
  font-size: var(--font-size-mid);
  color: var(--colour-red);

  .asterisk-wrap & {
    position: absolute;
    top: -7px;
  }
}

.checkboxes {
  display: flex;
  flex-direction: column;

  & label {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;

    & input[type='checkbox'] {
      /* Add if not using autoprefixer */
      -webkit-appearance: none;
      appearance: none;
      /* For iOS < 15 to remove gradient background */
      background-color: #fff;
      /* Not removed via appearance */
      margin: 0 10px 0 0;
      font: inherit;
      color: currentColor;
      width: var(--checkbox-size);
      height: var(--checkbox-size);
      border: 1px solid currentColor;
      transform: translateY(-0.075em);
      display: grid;
      place-content: center;

      &:checked {
        background-color: var(--colour-blue);
      }

      &::before {
        content: '';
        width: 0.65em;
        height: 0.65em;
        transform: scale(0);
        transition: var(--transition-speed) transform ease-in-out;
        box-shadow: inset 1em 1em var(--colour-blue);
        transform-origin: bottom left;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
      }

      &:checked::before {
        transform: scale(1);
        box-shadow: inset 1em 1em var(--colour-white);
        /* background-color: var(--colour-white); */
      }

      &:required {
        position: relative;
        &::after {
          position: absolute;
          top: -23px;
          content: '*';
          font-size: var(--font-size-mid);
          color: var(--colour-red);
        }
      }
    }

    & span {
      line-height: 1.2;
      width: 95%;
    }
  }
}

button.btn-cta-submit {
  font-size: var(--font-size-mid);
  background-color: var(--colour-black);
  color: var(--colour-white);
  padding: var(--spacing-common);
  border: none;
  width: 300px;
  transition: all var(--transition-speed);

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--colour-white);
  }
  &:not(:disabled) {
    opacity: 1;
    background-color: var(--colour-black);
    box-shadow: none;
  }
  &:not(:disabled):hover {
    cursor: pointer;
  }
}

.icon {
    position: relative;

    &.new-window {
     position: absolute;
     top: -10px;
     right: -12px;
     width: 15px;
     height: auto;
    }
   }
                     
/* OneTrust button */
#ot-sdk-btn.ot-sdk-show-settings,
#ot-sdk-btn.ot-sdk-show-settings:hover {
  padding: 0 !important;
  font-size: var(--font-size-mid) !important;
  background: none !important;
  color: #404040 !important;
  border: none !important;
  text-decoration: underline !important;
  line-height: var(--line-height-reg) !important;
}

#ot-sdk-btn.ot-sdk-show-settings:hover {
  text-decoration: none !important;
  cursor: pointer;
}

footer ul {
  padding: 0;
}
footer li {
  display: inline;

  &::after {
    content: '|';
    padding: 0 calc(var(--spacing-common) / 2);
  }
  &:last-child::after {
    content: '';
  }
}

/* Utilities ///////////////////////////////////////////////////////////////////////////// */

.completed-success .d-optional {
  display: none !important;
}

.colour-mid {
  color: var(--colour-mid);
}

.text-centre {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus.sr-only {
  /* undo the hiding */
  width: auto;
  height: auto;
  margin: 0;
  overflow: auto;
  clip: auto;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

.d-inline-block {
  display: inline-block;
}
.pos-rel {
  position: relative;
}
.pos-abs {
  position: absolute;
}
.mb-5 {
  margin-bottom: 5px;
}
.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: var(--spacing-double);
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-50 {
  margin-bottom: 50px;
}

.red {
  color: var(--colour-red);
}
.colour-mid {
  color: var(--colour-mid);
}

                     @media screen and (min-width: 480px) and (min-device-width: 480px) {
  .d-md-block {
    display: block !important;
  }
  .hero-img-sml {
    display: none;
  }

  .hero-img-lge {
    display: block;
  }
}

@media screen and (max-width: 480px) and (max-device-width: 480px) {
  header,
  main,
  footer {
    width: auto;
  }
  .brand-logo {
    padding: var(--spacing-common) 0;
  }

  .brand-logo img {
    width: 70px;
  }
  .hero-img-sml {
    display: block;
  }

  .hero-img-lge {
    display: none;
  }

  fieldset {
    width: 100%;
  }

  button.btn-cta-submit {
    width: 100%;
    max-width: 100%;
  }
  footer li {
    display: block;

    &::after {
      content: '';
      padding: 0 calc(var(--spacing-common) / 2);
    }
  }
}
