.modal-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 50px 50px 50px  rgba(0, 0, 0, 1);
    padding: 2em;
    width: 90%;
    height: auto;
    max-width: 500px;
    z-index: 9999;
    background-color: #6183f3;
  }
  
  .modal-form h3 {
    margin-top: 0;
    text-align: center;
  }
  
  .modal-form form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  
  .modal-form label {
    margin-top: 0.5em;
  }
  
  .modal-form input, .modal-form textarea {
    margin-top: 0.2em;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .modal-form button[type="submit"] {
    margin-top: 0.1em;
    background-color: #2f458f;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .close-form {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2f458f;
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
  }

  @media (max-width: 768px) {
    .modal-form {
        width: 90%;
        height: auto;
        max-height: 90%;
    }

    .modal-form input, .modal-form textarea {
        font-size: 0.9em;
    }

    .modal-form button[type="submit"], .close-form {
        padding: 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .modal-form {
        width: 90%;
        height: auto;
        padding: 1em;
        max-height: 100%;
    }

    .modal-form input, .modal-form textarea {
        font-size: 0.8em;
    }

    .modal-form button[type="submit"], .close-form {
        padding: 8px;
        font-size: 0.9em;
    }
}