form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  row-gap: 2rem;
  column-gap: 1rem;
  margin-block: 6rem;
  text-align: center;

  @media screen and (max-width: 1320px) {
    grid-template-columns: repeat(2, 1fr);
  }

  .large {
    grid-column: span 2;
  }
  
  .field {
    position: relative;
    display: grid;
    justify-self: stretch;
    
    @media screen and (max-width: 820px) {
      grid-column: span 2;
    }

    .field__error {
      color: var(--primary);
      text-align: left;
      padding-top: 1rem;
      font-weight: 500;
      font-size: 1rem;
    }

    button {
      justify-self: stretch;
  
      &::placeholder {
        color: black;
        font-weight: 500;
      }
    }
  }

  label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;

    .checkbox {
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: var(--background);
      width: 2rem;
      height: 2rem;
      border-radius: 0.25rem;
      outline: 2px solid var(--primary);
      font-size: 1.5rem;
      color: var(--background);
    }

    input[type='checkbox'] {
      &:checked + .checkbox {
        color: var(--primary);
      }

      visibility: hidden;
      width: 0;
    }

  }
  
  select, input {
    background-color: white;
    border: none;
    border-bottom: 3px solid var(--secondary-light);
    font-size: 1.5rem;
    font-style: italic;
    padding-block: 0.5rem;

    &[readonly] {
      border-width: 1px;
      border-color: gray;
      cursor: default;
    }
  }

  .navigation {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    padding-inline: 3rem;
  }

  button {
    background-color: var(--primary);
    font-size: 2rem;
    justify-self: center;
    padding: 0.75rem 4rem;
    grid-column: span 2;
    margin-top: 1rem;
  }

  a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    grid-column: span 2;
  }

  @media screen and (max-width: 1080px) {
    display: flex;
    flex-direction: column;
  }
}
