* {
  box-sizing: border-box;
}

body {
  background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/desktop-signup-background.png") no-repeat center center
    fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container {
  width: 800px;
  padding: 35px 35px;
  margin: 100px auto;
  border-radius: 10px;
  background-color: white;
}

.logo {
  content: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/hap-logo-black.svg");
}

h1, h2 {
  text-align: center;
  font-family: SpartanBold;
  font-size: 21px;
  line-height: 24px;
}

p {
  margin: 0;
  text-align: center;
  font-family: SpartanRegular;
  font-size: 12px;
  line-height: 18px;
}

form {
  display: flex;
  flex-direction: column;
  margin: 3% 0 3%;
}

input, select {
  font-family: SpartanRegular;
  color: #6c6c6c;
  font-size: 12px;
  line-height: 13px;
  width: 257px;
  height: 35px;
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  padding: 4px 10px 0 10px;
}

input[type="email"],
input[type="password"] {
  padding-right: 35px;
}

#regionId {
  cursor: pointer;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/down-arrow-black.svg") no-repeat;
  background-position-x: 94%;
  background-position-y: 55%;
}

input:focus,
select:focus,
.address-options-modal:focus,
.modal-option:focus {
  outline: none;
  border: 2px solid #52d8d8;
}

.required {
  border-color: #f11c1c;
}

label {
  font-family: SpartanMedium;
  font-size: 12px;
  line-height: 14px;
  margin-bottom: 8px;
}

.input-container, .entry-item {
  display: flex;
  flex-direction: column;
}

.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.entry-item {
  margin-bottom: 25px;
}

.input-row {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 100px;
}

form :nth-child(1) {
  order: 1;
}
form :nth-child(2) {
  order: 2;
}
form :nth-child(3) {
  order: 3;
}
form :nth-child(4) {
  order: 4;
}
form :nth-child(5) {
  order: 5;
}
form :nth-child(6) {
  order: 6;
}
form :nth-child(7) {
  order: 7;
}
form :nth-child(8) {
  order: 8;
}
form :nth-child(9) {
  order: 9;
}

.input-row.terms {
  flex-direction: column;
  justify-content: center;
  margin-top: 26px;
}

.input-row.signin {
  justify-content: center;
}

.input-container.terms {
  flex-direction: row-reverse;
  justify-content: center;
  margin-bottom: 10px;
}

.input-container.terms label {
  font-family: SpartanRegular;
  height: 15px;
  font-size: 12px;
  line-height: 14px;
  width: 324px;
  margin: 8px 0 0 8px;
}

.input-container p {
  font-family: SpartanRegular;
  height: 15px;
  font-size: 12px;
  line-height: 14px;
  width: 324px;
}

a {
  font-family: SpartanSemiBold;
  text-decoration: none;
}

a:active,
a:visited,
a:link {
  color: black;
}

#tosConfirmation {
  width: 25px;
  height: 24px;
  appearance: none;
}

#tosConfirmation:checked {
  background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/check-blue.svg") no-repeat;
  background-position: center;
  background-size: 13px 19px;
}

#submit, #next, #login {
  background-color: #52d8d8;
  font-family: Spartan;
  width: 310px;
  height: 43px;
  border: none;
  font-size: 14px;
  line-height: 17px;
  border-radius: 7px;
  cursor: pointer;
}

#forgotPassword {
  font-family: SpartanRegular;
  color: #6c6c6c;
  font-size: 10px;
  line-height: 13px;
}

#emailImage {
  background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/email-icon.svg") no-repeat;
  background-position: center;
  background-size: contain;
  width: 40px;
  height: 31px;
}

.password-label {
  display: flex;
  justify-content: space-between;
}

.green-check {
  align-self: flex-end;
  position: absolute;
  margin: 36px 16px 0 0;
  background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/check-blue.svg") no-repeat;
  background-size: contain;
  width: 13px;
  height: 19px;
}

.horizontal-line {
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #E8E8E8;
}

.hidden {
  display: none;
}


.error {
  margin-top: 10px;
}

.error p, .error div {
  font-family: SpartanRegular;
  font-size: 10px;
  line-height: 12px;
  width: 230px;
  padding-left: 15px;
  text-align: left;
}

ul {
  margin: 0px 0px 0px 7%;
  padding: 0px;
}

.error::before {
  content: "";
  background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/error-state.svg") no-repeat;
  background-size: cover;
  width: 11px;
  height: 10px;
  position: absolute;
}

.address-options-modal {
  overflow-y: scroll;
  position: absolute;
  width: 257px;
  height: 150px;
  z-index: 10;
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  margin: 56px 0 0;
  list-style: none;
  padding: 0;
}

.modal-option {
  overflow: hidden;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: SpartanRegular;
  background-color: white;
  text-align: center;
}

.modal-option:hover {
  cursor: pointer;
  background-color: #52d8d8;
}

.itemLevel p {
  padding-bottom: 3px;
  margin-left: 0; 
}

.pageLevel {
  margin: 0 auto; 
}

.info-container {
  margin-bottom: 50px;
}

.info p {
  text-align: left;
  line-height: 18px;
  width: 70%;
  margin: 3px 0 0 15px;
}

.info b {
  font-family: SpartanBold;
  overflow-wrap: anywhere;
}

/* Media queries */

@media only screen and (max-width: 760px) {
  body {
    background-image: none;
    background-color: #6c6c6c;
    color: white;
  }

  main {
    background-color: #333331;
  }

  .container {
    margin: auto;
    margin-top: 40px;
    width: 100vw;
    padding: 0;
    border-radius: 0;
    background-color: #333331;
  }

  .container.signin {
    height: 100vh;
  }

  .input-row {
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding: 0;
  }

  .input-container {
    align-items: flex-start;
    margin-top: 26px;
    width: 80vw;
  }

  .entry-item {
    margin-top: 26px;
    width: 80vw;
  }

  .entry-item {
    margin-top: 0;
  }

  .input-row.terms {
    flex-direction: column;
    margin-top: 0;
  }

  .input-row.terms.registered {
    order: -1;
  }

  .input-row.terms.registered div {
    justify-content: flex-end;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .input-row.terms.registered div p {
    margin-left: 0;
  }

  .buttons {
    display: flex;
    justify-content: center;
    width: 80%;
  }

  .info p {
    width: 80%;
  }

  form {
    margin-bottom: 40px;
  }

  input,
  select {
    font-family: SpartanRegular;
    color: white;
    font-size: 12px;
    line-height: 14px;
    width: 100%;
    height: 40px;
    border: 1px solid #414141;
    background-color: #414141;
  }

  #regionId {
    background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/down-arrow-white.svg") no-repeat;
    background-color: #414141;
    background-position-x: 94%;
    background-position-y: 55%;
  }

  .green-check {
    margin-top: 38px;
  }

  h1,
  h2,
  p {
    width: 80%;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  a:active,
  a:visited,
  a:link {
    color: white;
  }

  .logo {
    content: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/hap-logo-white.svg");
    margin-left: 6%;
  }

  #submit, #next, #login {
    width: 100%;
    max-width: 360px;
  }

  #tosConfirmation {
    border-color: #414141;
  }

  #forgotPassword {
    color: white;
  }

  #emailImage {
    background: url("https://dev.portal.hapgroup.co.uk/cdn/assets/graphics/email-icon-white.svg") no-repeat;
  }

  .address-options-modal {
    border-color: #6c6c6c;
    width: 80%;
    max-width: 300px;
  }

  .modal-option {
    background-color: #6c6c6c;
  }

  .modal-option:hover {
    color: black;
  }

  .horizontal-line {
    border-color: #444444;
  }
}
