/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000 ; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow-y: hidden; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding: 15% auto;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin-top: 40% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  padding: 15%;
  border-radius: 10px;
  position: relative;
}

/* The Close Button */
.close {
  color: #FFF;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 1rem;
  top: 2px;
  transition: all .3s ease;
  z-index: 10;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Header */
.modal-header {
    padding: 2px 16px;
    background: linear-gradient(180deg, #92c16b 0%, #c8d659 100%)#5cb85c;
    color: white;
    border-radius: 10px 10px 0 0;
    position: relative;
  }
  
  .modal-header h2{
    font-size: 2rem;
    padding: 2.5rem 0 1rem;
    text-align: center;
  }
  
  /* Modal Body */
  .modal-body {
    padding: 1rem 16px 2px;
  }
  
  /* Modal Footer */
  .modal-footer {
    padding: 2px 16px;
    background: linear-gradient(180deg, #92c16b 0%, #c8d659 100%);
    color: white;
  }
  
  /* Modal Content */
  .modal-content {
    z-index: 1000;
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 60%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    max-width: 880px;
  }

  .modal-content input{
    background: #fcfcfc;
    border: 2px solid #e4e4e4;
    display: block;
    width: 100%;
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    border-radius: 8px;
  }
  
  .modal-content input[type=file]{
    background-color: #a1c562;
    border: #a1c562;
    color: #FFF;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  .campo{
    position: relative;
  }

  label{
    border-radius: 8px;
    display: flex;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .termo-button{
    align-items: center;
    background: #a1c562;
    border-radius: 8px 0 0 8px;
    color: #FFF;
    cursor: pointer;
    display: flex;
    height: 100%;
    padding: .5rem 1rem;
    width: 175px;
  }

  .termo-arq{
    align-items: center;
    background: white;
    border: 2px solid #e4e4e4;
    border-radius: 0 8px 8px 0;
    display: flex;
    padding-left: 1rem;
    width: calc(100% - 175px);
  }

  label svg{
    margin-right: 8px;
  }

  .modal-content input:focus{
    outline: none;
  }

  .modal-content button{
    background: #a1c562;
    border: none;
    cursor: pointer;
    padding: 1rem 3rem;
    display: block;
    margin: 2rem auto;
  }
  
  /* Add Animation */
  @keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
  }

  .form-estilo {
    width: 80%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  .loading{
    align-items: center;
    background: linear-gradient(180deg, #92c16b 0%, #c8d659 100%);
    border-radius: 10px;
    color: #FFF;
    display: none;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .loading p{
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 1rem;
    padding-left: 2rem;
  }

  .active{
    display: flex;
  }

  .ld {
      display: inline-block;
      width: 80px;
      height: 80px;
  }

  .ld::after {
      content: " ";
      display: block;
      width: 64px;
      height: 64px;
      margin: 8px;
      border-radius: 50%;
      border: 6px solid #FFF;
      border-color: #FFF transparent;
      animation: ld 1.2s linear infinite;
  }
  
  @keyframes ld {
      0% {
          transform: rotate(0deg);
      }
      100% {
          transform: rotate(360deg);
      }
  }