@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
main {
  font-family: "Inter", sans-serif;
  font-weight: 300;
}

.main {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: 400%;
  background-position: center top;
  z-index: -1;
  @media screen and (min-width: 768px) {
    background-size: 250%;
  }
  @media screen and (min-width: 1024px) {
    background-size: 100%;
  }
}

.container {
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding-left: 15px;
  padding-right: 15px;

  @media screen and (min-width: 768px) {
    padding-left: 30px;
    padding-right: 30px;
  }

  @media screen and (min-width: 1025px) {
    padding: 0;
    max-width: 1000px;
  }
}

a{
  text-decoration: underline;
  &:hover{
    color: #4E53FE;
  }
  &:visited{
    color: #A5A5A5;
  }
}

form {
  margin: auto;
  max-width: 620px;
  display: flex;
  gap: 20px;
  flex-direction: column;

  .field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    font-weight: 500;
    flex-wrap: wrap;
    &.required-field {
      label {
        padding-bottom: 5px;

        &::after {
          content: "*";
          padding-left: 5px;
          color: #FD7C0B;
        }
      }
    }

    input:not([type="checkbox"]) {
      width: 100%;
      outline: 1px solid white;
      padding: 10px;
      border-radius: 5px;
      transition: all .1s ease-in-out;

      &:hover {
        outline-color: #4E53FE;
      }
      &:focus {
        outline-color: #4E53FE;
      }
      &.error{
        outline-color: #FD7C0B;
      }
    }
  }
}

.checkbox-field {
  h4 {
    font-weight: 500;
  }

  label {
    display: block;
    text-align: left;
    font-weight: 500;
    line-height: 1.3;
    flex-basis: 90%;
    @media screen and (min-width: 768px){
      flex-basis: 90%;
    }
  }

  .field {
    flex-direction: row;
    margin-bottom: 10px;
    font-size: 16px;
    width: 100%;
  }

  span:nth-child(n+2) {
    font-weight: 300;
  }

  input[type="checkbox"] {
    margin-right: 10px;
    flex-basis: 6%;
  }
}

::placeholder {
  font-weight: 300;
}

#subscribe {
  span {
    font-weight: 300;
  }

  .field {
    margin-bottom: 0;
  }
}

/*
 * https://getcssscan.com/css-checkboxes-examples
 */
.checkbox-wrapper-48 input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  font: inherit;
  border: 0.1em solid #fff;
  margin-bottom: -0.125em;
}

.checkbox-wrapper-48 input[type=checkbox] {
  transition: all .1s ease-in-out;
  border-radius: 0.25em;
}

.checkbox-wrapper-48 input:hover {
  border: 0.125em solid #4E53FE;
}

.checkbox-wrapper-48 input:checked {
  border-color: transparent;
  border: 0.125em solid #fff;
  background: #4E53FE border-box;
  box-shadow: 0 0 0 0.1em inset #fff;
}

/* for number input hide arrow */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
