{% load i18n %}

<style>
/** Wrapper class name is provided by JS **/
.sentry-error-embed-wrapper {
  display: block;
  outline: none;
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.sentry-error-embed * {
  margin: 0;
  padding: 0;
  background: inherit;
  color: inherit;
}
.sentry-error-embed {
  background: #fff;
  margin: 0 auto;
  max-height: 80%;
  margin-top: 4%;
  text-align: left;
  border: 1px solid #fff;
  padding: 40px;
  max-width: 700px;
  overflow: auto;
  border-radius: 3px;
  color: #546076;
  box-shadow: 0 0 0 1px rgba(0,0,0, .3), 0 10px 40px rgba(0,0,0, .3);
}
.sentry-error-embed .clearfix {
  *zoom: 1;
}
.sentry-error-embed .clearfix:before,
.sentry-error-embed .clearfix:after {
  display: table;
  content: "";
  line-height: 0;
}
.sentry-error-embed .clearfix:after {
  clear: both;
}
.sentry-error-embed a,
.sentry-error-embed a:visited {
  color: #546076;
  font-weight: 500;
  text-decoration: none;
}
.sentry-error-embed * {
  -webkit-font-smoothing: antialiased;
  font-family: "Helvetica Neue", helvetica, sans-serif;
}
.sentry-error-embed p {
  margin: 0 0 20px;
}
.sentry-error-embed form {
  margin: 0;
}
.sentry-error-embed a:active,
.sentry-error-embed a:focus, a:hover {
  color: #1E263C;
  text-decoration: underline;
}
.sentry-error-embed h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 5px;
  color: #394359;
}
.sentry-error-embed header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E8EBF1;
}
.sentry-error-embed header p {
  color: #94A0B3;
  font-size: 16px;
}
.sentry-error-embed .form-field {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}
.sentry-error-embed .form-field label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}
.sentry-error-embed .form-field input,
.sentry-error-embed .form-field textarea {
  font-size: 15px;
  padding: 8px 12px;
  border: 1px solid #BAC2D3;
  background: #FBFBFC;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: auto;
  -webkit-box-sizing : border-box;‌​
  -moz-box-sizing : border-box;
  box-sizing : border-box;
  box-shadow: inset 0 1px 1px rgba(0,0,0, .06);
  border-radius: 2px;
}

.sentry-error-embed .form-field input::-webkit-input-placeholder,
.sentry-error-embed .form-field textarea::-webkit-input-placeholder {
  color: #94A0B3;
}

.sentry-error-embed .form-field input:focus,
.sentry-error-embed .form-field textarea:focus {
  outline: none;
  border-color: #94A0B3;
}

.sentry-error-embed .form-errors input,
.sentry-error-embed .form-errors textarea {
  border-color: #E35141;
}
.sentry-error-embed .form-field textarea {
  height: 100px;
}
.sentry-error-embed .form-submit .btn {
  border: none;
  color: #fff;
  background: #25A6F7;
  padding: 10px 15px;
  margin-right: 15px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  float: left;
  border: 1px solid #1D87CE;
  box-shadow: 0 1px 1px rgba(0,0,0, .12);
}
.sentry-error-embed .form-submit .close {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  float: left;
}
.sentry-error-embed .form-submit .btn:hover {
  background: #1D87CE;
}
.sentry-error-embed .form-submit .powered-by {
  padding: 10px 0;
  margin: 0;
  float: right;
  font-size: 14px;
}
.sentry-error-embed .form-submit .powered-by a {
  text-indent: -9999em;
  display: inline-block;
  color: #1E263C;
  width: 81px;
  height: 18px;
	background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnL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jloOC43YzQuMywwLDctMi4zLDctNS45YzAtMy43LTIuNi01LjgtNy4xLTUuOGgtOC42VjI2Ljl6Ii8+PHBvbHlnb24gZmlsbD0iIzFEMjYzQyIgcG9pbnRzPSIyMjMsNDEuOSAyMjMsMjkuNyAyMTAuOCwxMS4xIDIxNi4yLDExLjEgMjI1LjQsMjUuNiAyMzQuNiwxMS4xIDIzOS44LDExLjEgMjI3LjYsMjkuNiAyMjcuNiw0MS45ICIvPjwvZz48L3N2Zz4=);
  background-repeat: no-repeat;
  background-size: 81px 18px;
  margin-left: 4px;
  position: relative;
  top: 2px;
  opacity: .75;
}
.sentry-error-embed .message-success,
.sentry-error-embed .message-error {
  text-align: center;
  font-size: 16px;
  padding: 30px;
  margin: -21px 0 20px;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0, .06);
}
.sentry-error-embed .message-success {
  border: 1px solid #C9DEC2;
  background: #FCFEFB;
}
.sentry-error-embed .message-error {
  border: 1px solid #ECCFCC;
  background: #FEFDFD;
}
.sentry-error-embed .error-wrapper p:last-child {
  margin-bottom: 0;
}
@media screen and (max-height: 570px) {
  .sentry-error-embed {
    max-height: none;
    margin-top: 0;
  }
}

@media screen and (max-width: 660px) {
  .sentry-error-embed {
    padding: 10px;
    max-width: none;
  }
  .sentry-error-embed h2 {
    font-size: 22px;
  }
  .sentry-error-embed header p {
    font-size: 14px;
  }
}
@media screen and (max-width: 480px) {
  .sentry-error-embed {
    padding: 10px;
    margin-top: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: 100%;
    max-height: none;
  }
  .sentry-error-embed h2 {
    font-size: 20px;
    line-height: 24px;
  }
  .sentry-error-embed header p {
    font-size: 13px;
  }
  .sentry-error-embed header h2 > span,
  .sentry-error-embed header p > span {
    display: none;
  }
  .sentry-error-embed .form-submit {
    text-align: center;
  }
  .sentry-error-embed .form-submit .btn,
  .sentry-error-embed .form-submit .close,
  .sentry-error-embed .form-submit .powered-by {
    float: none;
    display: block;
    margin: 0 auto;
  }
  .sentry-error-embed .form-submit .powered-by {
    margin-top: 10px;
    font-size: 10px;
  }
}
</style>

<div class="sentry-error-embed clearfix">
  <header>
    <h2>{% blocktrans %}It looks like we're having <span>some internal</span> issues.{% endblocktrans %}</h2>
    <p><span>{% trans "Our team has been notified." %}</span> {% trans "If you'd like to help, tell us what happened below." %}</p>
  </header>
  <form>
    <div class="error-wrapper"></div>
    <div class="form-content">
      <div class="form-field clearfix">
        <label>{% trans "Name" %}</label>
        {{ form.name }}
      </div>
      <div class="form-field clearfix">
        <label>{% trans "Email" %}</label>
        {{ form.email }}
      </div>
      <div class="form-field clearfix">
        <label>{% trans "What happened?" %}</label>
        {{ form.comments }}
      </div>
    </div>
    <div class="form-submit clearfix">
      <button type="submit" class="btn">{% trans "Submit Crash Report" %}</button>
      <a class="close">{% trans "Close" %}</a>
      {% if show_branding %}
      <p class="powered-by">
        {% trans "Crash reports powered by <a href=\"https://sentry.io\">Sentry</a>" %}
      </p>
      {% endif %}
    </div>
  </form>
</div>
