.mmf-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.mmf-header {
  background: #2f2f2f;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 4px 4px 0 0;
}

.mmf-form {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.mmf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  padding: 18px;
}

.mmf-field label {
  display: block;
  font-size: 14px;
  color: #2b2b2b;
  margin: 0 0 6px;
}

.mmf-field input,
.mmf-field select {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: #fff;
  box-sizing: border-box;
  font-size: 14px;
}

.mmf-field.has-error input,
.mmf-field.has-error select {
  border-color: #d9534f;
}

.mmf-error {
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
  color: #d9534f;
}

.mmf-radio {
  display: flex;
  gap: 14px;
  align-items: center;
  height: 44px;
}

.mmf-radio input {
  width: auto;
  height: auto;
  margin-right: 6px;
}

.mmf-family {
  padding: 0 18px 18px;
}

.mmf-family-rows {
  display: grid;
  gap: 12px;
}

.mmf-family-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr 44px;
  gap: 14px;
  align-items: end;
}

.mmf-field--remove {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmf-remove {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mmf-add {
  margin-top: 12px;
  background: #1b6b84;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 3px;
  cursor: pointer;
}

.mmf-actions {
  padding: 0;
}

.mmf-submit {
  width: 100%;
  background: #2fb9ff;
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 16px;
  cursor: pointer;
}

.mmf-submit.is-loading {
  opacity: 0.75;
}

.mmf-status {
  padding: 12px 18px 18px;
  font-size: 14px;
}

.mmf-status.is-success {
  color: #1f7a1f;
}

.mmf-status.is-error {
  color: #b00020;
}

@media (max-width: 820px) {
  .mmf-grid {
    grid-template-columns: 1fr;
  }
  .mmf-family-row {
    grid-template-columns: 1fr;
  }
  .mmf-field--remove {
    justify-content: flex-start;
  }
}

