.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open{
  display: block;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.modal-dialog{
  position: relative;
  width: min(620px, calc(100% - 24px));
  margin: 80px auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: #eef1f6;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.modal-dialog h3{
  margin: 0 0 6px 0;
  color: #23376f;
  font-weight: 900;
}

.modal-subtitle{
  margin: 0 0 14px 0;
  color: #2c3640;
  font-size: 14px;
}

.modal-form{
  display: grid;
  gap: 10px;
}

.modal-form input,
.modal-form textarea{
  width: 100%;
  border: 1px solid #cfd6e3;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
}

.modal-form textarea{
  min-height: 120px;
  resize: vertical;
}

.modal-message{
  display:none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.modal-message.is-loading{
  background: #f5f6f8;
  color: #1f2a36;
  border: 1px solid rgba(0,0,0,.08);
}

.modal-message.is-success{
  background: rgba(47,143,61,.12);
  color: #1f2a36;
  border: 2px solid rgba(47,143,61,.35);
}

.modal-message.is-error{
  background: rgba(214,58,58,.12);
  color: #1f2a36;
  border: 2px solid rgba(214,58,58,.35);
}
