@import "variables";

.form_section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;

  h3 {
    width: 100%;
    margin: $form-section-margin;
    font-weight: $semi-bold;
    border-bottom: 2px solid $medium-blue;

    span.optional {
      color: $grey-text;
      font-size: 12px;
      padding-left: 10px;
      font-weight: normal;
    }
  }
}

i.icon-info-circled {
  color: $medium-blue;
  font-size: 18px;
}

.tooltip_container {
  display: inline-block;
  position: relative;
}

.tooltip {
  background: black;
  color: white;
  border-radius: 5px;
  position: absolute;
  bottom: 30px;
  width: 200px;
  left: -100px;
  padding: 16px;

  &:after {
    top: 100%;
    left: 50%;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border: 10px solid transparent;
    border-top-color: black;
    margin-left: -10px;
  }
}

.form_row {
  padding: 5px;
  margin: 20px;
  width: calc(50% - 50px);

  label {
    white-space: nowrap;
    margin-bottom: 8px;
  }
}

.error_container {
  display: flex;
  flex-grow: 1;
  width: calc(50% - 20px);
  margin: 0 10px;
}

.error_message {
  color: red;
  padding-left: 5px;
  margin: 0 auto;
}

input, select {
  width: calc(100% - 20px);
  padding: 10px;
  font-size: 22px;
  background: $input-background-color;
  border: none;
  color: $medium-blue;
  letter-spacing: 2px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: $input-background-color url("https://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/br_down.png") no-repeat calc(100% - 15px);
}

.submit, .download {
  padding: 20px;
  text-align: center;
  border-top: 1px solid $light-border-color;
}

.button, button {
  background: $default-button-color;
  color: white;
  padding: 10px 30px;
  width: 50%;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  letter-spacing: 2px;
}

.navigation_buttons {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid $light-border-color;
  border-bottom: 1px solid $light-border-color;
  padding: 20px;

  a {
    text-decoration: none;
    width: auto;
    margin: 0 20px;
  }

  .button {
    width: auto;
  }
}

.back {
  border: 2px solid $default-button-color;
  color: $default-button-color;
  background: white;
  margin-left: 10px;
}

a.back {
  text-decoration: none;
}

.sample_images {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid $light-border-color;
  border-bottom: 1px solid $light-border-color;
  padding: 15px;

  a {
    text-decoration: none;
    width: auto;
    margin: 2px 5px;
  }

  .button {
    width: auto;
  }
}

.image_button, button {
  background: $default-button-color;
  color: white;
  padding: 10px 30px;
  width: 50%;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  letter-spacing: 1px;
}
