.modal-form.on {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  bottom: 50%;
  max-width: 400px;
  width: 100%;
  min-height: 400px;
  z-index: 99999;
  margin: auto;
  transition: all 1s ease;
  opacity: 1;
  overflow: visible;
  top: 34%; }
  .modal-form.on form {
    background: #0c9594;
    text-align: center;
    padding: 15px;
    color: #ffffff;
    border: 2px solid #158584;
    border-radius: 4px;
    position: relative; }
    .modal-form.on form.invalid {
      margin-top: -50px; }
  .modal-form.on p,
  .modal-form.on input,
  .modal-form.on textarea {
    margin: 5px 0 0;
    resize: none;
    width: 100%;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: block;
    max-width: calc(100% - 5px); }
  .modal-form.on input,
  .modal-form.on textarea {
    color: #a2a5a4;
    background-color: rgba(255, 255, 255, 0.67);
    padding: 5px;
    transition: all 1s ease;
    border-radius: 5px; }
    .modal-form.on input:active, .modal-form.on input:focus, .modal-form.on input:hover,
    .modal-form.on textarea:active,
    .modal-form.on textarea:focus,
    .modal-form.on textarea:hover {
      background-color: white;
      transition: all 1s ease; }
  .modal-form.on textarea {
    height: 100px; }
  .modal-form.on input.endereco-submit {
    background: #ef5316;
    color: #fff;
    padding: 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 1s ease;
    margin: 40px auto 0;
    margin-right: -1px; }
    .modal-form.on input.endereco-submit:hover {
      background: #393e41; }
  .modal-form.on p:last-child {
    margin: auto; }
  .modal-form.on .close {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 15px;
    height: 15px;
    transition: all .5s ease;
    color: #fff;
    background-color: #ef5316;
    padding: 3px;
    text-align: center;
    cursor: pointer;
    border-radius: 2em;
    font-size: 12px; }
    .modal-form.on .close:hover {
      transition: all .5s ease;
      background-color: #393e41; }

.modal-form {
  opacity: 0;
  min-height: 0;
  max-width: 0;
  overflow: hidden;
  position: absolute; }

.modal-form.on:before {
  content: '';
  position: fixed;
  background-color: white;
  opacity: .5;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: not-allowed;
  z-index: -1; }
