body {
  margin: 0px;
}

html {
  height: 100%;
}

/* desktop */
@media screen and (min-width: 1024px) and (orientation: landscape) {
  .container {
    background-color: #f0edfd;
    display: grid;
    grid-template-columns: minmax(300px, 50vw) auto;
    min-height: 100vh;
    grid-template-rows: minmax(auto, 150px) auto 24px;
    grid-template-areas:
      "logo ."
      "image form-container"
      "footer footer";
  }

  .logo > img {
    max-height: 150px;
  }

  .image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .image > img {
    object-fit: contain;
    max-height: 700px;
    min-width: 150px;
  }

  .logo {
    padding-left: 20px;
    padding-top: 20px;
  }

  .headline {
    color: #3d5074;
    font-size: 30px;
    font-weight: 600;
  }

  .subtext {
    margin-top: 20px;
    color: #3d5074;
    font-size: 18px;
    padding: 20px 0px;
  }

  .form-container > div {
    background-color: #ffffff;
    padding: 60px;
    max-width: 350px;
    box-shadow: 2px 2px 5px 2px #00000020;
  }

  .input {
    width: 100%;
    padding: 5px 0px;
  }

  .input > input {
    padding: 10px;
    height: 30px;
    font-size: 16px;
    width: calc(100% - 20px);
    background-color: #e8ecefff;
    border: 1px solid #00000020;
  }

  .submit-button > button {
    height: 50px;
    width: 175px;
    font-size: 20px;
    color: #ffffff;
    background-color: #3bbc9a;
    border: none;
  }
  .submit-button {
    margin-top: 0px;
    margin-bottom: 20px;
  }

  .dropdown select {
    background-color: #e8ecefff;
    border: 1px solid #00000020;
    padding: 16px;
  }

  .dropdown {
    max-width: none;
  }
}



/* tablet / mobile */
@media only screen and (max-width: 1023px), screen and (orientation: portrait) {  

  .tos-links{
    background-color: #ffffff;
  }

/* mobile */
@media only screen and (max-width: 719px) {
  .container{
    grid-template-rows: minmax(200px, 300px) auto 24px;
  }
  .form-container {
    padding: 10px;
  }
}

/* Tablet */
@media only screen and (min-width: 720px) {
  .form-container {
    padding: 20px 160px;
    display: flex;
    justify-content: center;
  }

  .container{
    grid-template-rows: minmax(200px, auto) auto 24px;
  }  

  .form-container > div {
    max-width: 400px;
  }

  .submit-button > button {
    min-width: initial !important;
    max-width: initial !important;
    width: 150px !important;
  }

  .headline{
    font-size: 39px;
    margin-top: 40px;
  }
}
  .logo {
    display: none;
  }

    .container {
    position: absolute;
    min-height: 100vh;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f0edfd;

    display: grid;
    grid-template-columns: auto;
    grid-template-areas:
      "image"
      "form-container"
      "footer";
  }

  .image > img {
    min-width: 200px;
    max-height: 100%;
    object-fit: contain;
  }

  .image {
    max-width: 100vw;
  }

  .logo {
    padding: 10px;
    background-color: #ffffff;
  }

  .form-container {
    background-color: #ffffff;
  }

  .image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .input {
    width: 100%;
    padding: 5px 0px;
  }

  .input > input {
    padding: 10px;
    height: 20px;
    font-size: 16px;
    width: calc(100% - 20px);
    background-color: #e8ecefff;
    border: 1px solid #00000020;
  }

  .submit-button > button {
    height: 50px;
    width: 175px;
    font-size: 20px;
    color: #ffffff;
    background-color: #3bbc9a;
    border: none;
  }

  .headline {
    color: #3d5074;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
  }

  .subtext {
    color: #3d5074;
    font-size: 18px;
    padding: 10px 0px;
  }
  .dropdown select{
    padding: 12px;
    background-color: #e8ecefff;
  }
}


.logo {
  grid-area: logo;
}

.image {
  grid-area: image;
}

.form-container {
  grid-area: form-container;
}

.input > input:focus, .dropdown > select:focus {
  outline: none;
}

.input > button:focus {
  outline: none;
}

.headline {
  font-family: Arial, Helvetica, sans-serif;
}

.subtext {
  font-family: Arial, Helvetica, sans-serif;
}


.invalid-input {
  border: 1px solid red !important;
}

.submit-button.disabled > button {
  cursor: default;
}

.hidden {
  display: none;
}

input {
  font-family: SF Compact Display;
}

button {
  font-family: SF Compact Display;
}

.dropdown {
  display: flex;
  flex-direction: column;
}

.dropdown select{
  border: 1px solid #00000020;
  color: #000000;
  font-size: 14px;
  margin: 0px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 50%;
}

select:invalid{
  color: #8b8b8b;
}

::placeholder, ::-webkit-input-placeholder {
  color: #8b8b8b;
}

@font-face {
  font-family: SF Compact Display;
  src: url("../__assets__/SF-Compact-Display-Regular.ttf");
}

.tos-links {
  font-size: 18px;
  font-family: SF Compact Display;
  width: 100%;
  display: flex;
  justify-content: center;
  grid-area: footer;
}

.tos-links a {
  color: #3d5074;
}

.opt-in-text {
  font-family: SF Compact Display;
  margin-bottom: 10px;
  color: #3d5074;
}
