@import '../../partials/variables';

.form {
  display: flex;
  flex-direction: column;

  width: 70%;

  background-color: var(--background-color);

  @media (max-width: $mobile-breakpoint) {
    width: 100%;
  }

  &__section {
    &--last {
      & .form__fieldset {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
      }
    }

    &--actions {
      display: flex;
      flex-direction: row !important;

      & .form__fieldset {
        flex-direction: row;

        & > * {
          margin: 0 0 0 5px;
        }
      }
    }
  }

  &__fieldset {
    @extend .fieldset;
  }

  &__header {
    display: flex;
    flex-direction: row;

    @include block-padding;
  }

  &__actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;

    @include block-padding;
  }

  &__title {
    font-size: 18px;
  }

  &__intro {
    @include block-padding;
  }

  & .favicon {
    height: 20px;
  }
}

form {
  @extend .form;
}
