@import '../../_global/styles/mixins';
@import '../../_global/styles/vars';

.election-form {
  --theme-color-link: #fff;
  --theme-color-link-hover: #fff;
  font-size: var(--font-size-small);
  background: linear-gradient(140deg, var(--theme-color-gradient-01) 30%, var(--theme-color-gradient-02) 75%, var(--theme-color-gradient-03) 108%);
  padding: 30px 30px 0 30px;
  border-radius: var(--border-radius-xs);
  color: #fff;
  margin-bottom: 20px;
  @media(max-width: 567px) {
    padding-bottom: 14px;
  }

  h2 {
    margin-top: var(--section-headline-margin);
    margin-bottom: 0.9em;
    font-size: 36px;
    @media(max-width: 767px) {
      font-size: 24px;
    }
  }

  &--form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    @media(max-width: 767px) {
      flex-wrap: wrap;
    }
    @media(max-width: 567px) {
      flex-wrap: nowrap;
      flex-direction: column;
      align-items: flex-end;
    }
  }

  button.search-submit {
    position: static;
    margin-bottom: 14px;
    @media(max-width: 567px) {
      margin-bottom: 0;
    }
  }

  .input-wrapper {
    flex: 1;
    display: flex;
    @media(max-width: 767px) {
      flex: initial;
      width: calc(50% - 15px);
    }
    @media(max-width: 567px) {
      width: 100%;
    }

    input,
    select {
      margin: 0 30px 14px 0;
      @media(max-width: 767px) {
        margin-right: 0;
      }
    }

    input {
      width: 100%;
      flex-grow: 1;
    }

    @media(max-width: 567px) {
      display: block;
    }
  }
}