.Modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999999;

  .modal-backdrop {
    background: rgba(31, 31, 31, .72);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }

  display: grid;
  grid-template-rows: 1fr auto 2fr;
  justify-items: center;
  align-items: start;

  .modal-container {
    grid-row: 2;
    z-index: 1;

    width: 960px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;

    background: #FAFBFC;
    color: #24292E;

    border-radius: 5px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);

    a, a:visited { color: #079DFF; }

    fieldset {
      padding: 0;
      border: 0;

      display: grid;
      justify-content: start;
    }

    input, textarea, select {
      background: #F1F2F3;
      color: #24292E;
      border-color: #D9DBDB;
      border-radius: 5px;
      padding: 12px;
      margin-bottom: 10px;
    }

    input:focus, textarea:focus, select:focus {
      outline: none;
      border-color: #079DFF;
    }

    input.error, textarea.error, select.error {
      border-color: #E15252;
      color: #E15252;
    }

    select {
      padding: 12px 30px 12px 12px;
      -moz-appearance: none;
      -webkit-appearance: none;
      appearance: none;
      background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23079DFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
      background-repeat: no-repeat, repeat;
      background-position: right .7em top 50%, 0 0;
      background-size: .65em auto, 100%;
    }

    input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
      color: #868788;
      opacity: 1; /* Firefox */
    }

    input:-ms-input-placeholder { /* Internet Explorer 10-11 */
      color: #868788;
    }

    input::-ms-input-placeholder { /* Microsoft Edge */
      color: #868788;
    }

    .modal-close-button {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
    }
  }
  @media screen and (max-width: 480px) {
    .modal-container {
      max-width: 100vw;
      max-height: 100vh;

      border-radius: 0;
    }
  }

  .modal-header {
    position: relative;
    padding: 20px;
    background: #F1F2F3;

    @media screen and (max-width: 440px) {
      padding: 15px;
    }

    h2 {
      font-family: Helvetica;
      font-size: 1rem;
      font-weight: normal;
      margin: 0;
    }
  }

  .modal-section {
    padding: 20px;
    border-bottom: 1px solid #D9DBDB;
    &:last-child { border-bottom: none; }

    display: grid;
    grid-template-columns: 100px 1fr;

    @media screen and (max-width: 440px) {
      padding: 15px;
      grid-template-columns: 1fr;
    }

    label {
      font-size: 1.25rem;
      margin-bottom: 1rem;
    }
    .modal-section-content {}
  }

  .modal-body { border: 1px solid #D9DBDB; }
  .modal-tooltip {

    letter-spacing: 0.5px;

    opacity: 1 !important;
    padding: 10px 12px;
    border-radius: 8px;
  }
  // NOTE this is the class assigned to the react-tooltips
  // see <ReactToolTip ... /> use in ./Modal.jsx

  .modal-footer {
    position: relative;
    background: #F1F2F3;

    display: grid;
    grid-template-columns: auto auto;
    justify-content: right;
    grid-gap: 1rem;

    padding: 10px 20px;

    button {
      font-family: sans-serif;
      font-size: 1.25rem;
      text-align: center;
      text-decoration: none;
      cursor: pointer;

      padding: 1rem 2rem;
      border: 1px solid #586069;
      border-radius: 4px;

      transition: background 250ms ease-in-out, 
      transform 150ms ease;
      -webkit-appearance: none;
      -moz-appearance: none;

      &.primary {
        color: #079DFF;
        border: 1px solid #079DFF;
      }
      &.secondary {
        background: none;
        color: rgba(0,0,0,0.7);
        border: 1px solid rgba(0,0,0,0);
        &:hover {
          transition: color .5s ease;
          color: rgba(255,0,0,1);
        }
      }
      &:focus {
        outline: 1px solid #079DFF;
        outline-offset: -2px;
      }
      &:active {
        transform: scale(0.99);
      }
    }
  }
}
