/**
 * Charts
 */
.chart__layout {
  display: block;
}

@media only screen and (min-width: 1025px) {
  .chart__layout {
    display: flex;
  }
}

.chart__item {
  width: 100%;
  height: 400px;
  margin: 1rem 0;
}

@media only screen and (min-width: 1025px) {
  .chart__item {
    height: 600px;
  }
}

/**
 * Forms
 */
.form {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

@media only screen and (min-width: 800px) {
  .form {
    left: -5rem;
  }
}

.form.loading {
  transition: all 0.3s;
  opacity: 0.5;
}

.form__message {
  border: 1px solid #91cf50;
  background: white;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  line-height: 2;
}

.form__message p {
  margin: 0;
}

.form__line {
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e4e4e4;
}

.form__line:first-child {
  display: none;
  width: 10rem;
}

@media only screen and (min-width: 800px) {
  .form__line {
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
    border: 0;
  }

  .form__line:first-child {
    display: block;
  }

}

.form__line__item {
  position: relative;
  margin: 0.5rem 0.5rem 1rem;
  flex: 0 1 auto;
}

.form__line__item:last-child {
  text-align: center;
  width: 100%;
}

@media only screen and (min-width: 800px) {
  .form__line__item {
    margin-bottom: 0;
  }

  .form__line__item:last-child {
    width: auto;
  }
}

.form__label {
  text-transform: uppercase;
  color: #4c4c4c;
  font-size: 0.65rem;
  line-height: 2.4;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding-top: 1rem;
}

.form__label--absolute {
  position: absolute;
  top: -2.1rem;
  display: inline;
}

@media only screen and (min-width: 800px) {
  .form__label--absolute {
    display: none;
  }
}

.form__input {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) inset;
  padding: 0.75rem;
  border: #fafafa;
  font-size: 1rem;
}

@media only screen and (min-width: 800px) {
  .form__input {
    min-width: 6rem;
    max-width: 6rem;
  }
}

.form__button {
  background: white;
  color: #91cf50;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 0;
  border-radius: 1.5rem;
  margin: 0.5rem 0.25rem;
  width: 2.25rem;
  height: 2.25rem;
  box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.2);
}

.form__button--margin {
  margin-right: 3.2rem;
}


.form__button:hover {
  background: #91cf50;
  color: white;
}

.form__submit {
  background: #91cf50;
  color: white;
  display: block;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 0;
  margin: 0.5rem auto;
  padding: 1rem;
  box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.2);
}

.form__submit:hover {
  opacity: 0.8;
}

.form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
