$bg: #f5f6f1;
$border: #c1cfd9;
$white: #ffffff;

.modal-card {
  width: 960px;
  padding: 80px 0;
}

.modal-card-head {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: $bg;
}

.modal-card-foot {
  display: flex;
  padding-right: 34px;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  background-color: $bg;
  justify-content: flex-end;
}

.modal-card-body {
  padding: 0 20px 20px;
  background-color: $bg;
}

.modal-subtitle {
  margin: 10px 0;
  text-transform: uppercase;
}

.form-preview-item {
  border-bottom: 1px solid $border;
  background-color: $white;

  &:first-of-type {
    border-top: 1px solid $border;
  }

  &:last-of-type {
    border-bottom: 0;
  }

  .value-column {
    padding: .75rem;
  }
}

.form-preview-table {
  overflow-x: auto;
}

.modal-card-body h2,
.form-review h2 {
  padding: 7px 20px;
  font-weight: 700;
  font-size: 16px;
}


.modal-card-body h3,
.form-review h3 {
  padding: 7px 20px;
  font-weight: 700;
  font-size: 14px;
}

.modal-card-body h4,
.form-review h4 {
  padding: 7px 20px;
  font-size: 14px;
}

.modal-subsection {
  margin-bottom: 1rem;
}

.modal-section-title {
  text-align: center;
}


@media (max-width: 768px) {

  .form-preview-item {
    .value {
      margin-top: -20px;
    }

    .level-left {
      max-width: 100%;
    }
  }
}

// Additional Info Modal

.additional-info-modal {
  .modal-content {
    width: 900px;
    max-height: 70vh;
  }
}

// Hack to display modals correctly in IE
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 779px) {

  .modal.is-active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: inline-block;
  }

  .modal-card {
    margin-top: 5%;
  }
}
